spacedriveapp / spacedriveapp/spacebot
AgentConfig UI missing ROLE.md editor
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.4k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
Summary
The ROLE.md identity file is supported by the backend (Identity struct in src/identity/files.rs loads and renders it under ## Role), but the AgentConfig page in the web UI does not expose it for editing.
Current behavior
AgentConfig.tsx defines three identity sections:
SOUL.md→ SoulIDENTITY.md→ IdentityUSER.md→ User
ROLE.md is absent from the SECTIONS array, so there is no way to edit it through the UI.
Expected behavior
A fourth entry should be added to the identity sections:
{ id: "role", label: "Role", group: "identity", description: "ROLE.md", detail: "The agent's responsibilities, scope, what to handle vs what to escalate. In multi-agent setups this is what differentiates agents operationally." }
Workaround
Edit ~/.spacebot/agents/{agent_id}/workspace/ROLE.md directly.
References
src/identity/files.rs— loadsROLE.mdand injects it as## Roleinto the system promptinterface/src/routes/AgentConfig.tsx—SECTIONSarray missing theroleentry
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in interface/src/routes/AgentConfig.tsx and inspect the SECTIONS array alongside the existing SOUL.md, IDENTITY.md, and USER.md entries. Add the specified ROLE.md section, then confirm the AgentConfig page exposes Role editing and that the entry corresponds to the backend support described in src/identity/files.rs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100