Skip to content

Commit eaddcb1

Browse files
authored
Merge pull request #55 from Waishnav/codex/local-agent-profiles-cli
Add local agent profile and supporting local agents CLI including codex, claude code, pi, opencode, cursor etc
2 parents 4c43606 + f50f02a commit eaddcb1

44 files changed

Lines changed: 3455 additions & 1065 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Subagent profiles and DevSpace agent CLI plan
2+
3+
## Decision
4+
5+
Subagent profiles describe roles over built-in coding-agent providers.
6+
DevSpace owns provider invocation and lifecycle. Custom CLI-backed agents,
7+
provider action objects, and model-visible backend details are out of scope for
8+
v1.
9+
10+
The model-facing workflow stays small:
11+
12+
```bash
13+
devspace agents ls
14+
devspace agents run <profile-or-id> "<prompt>"
15+
devspace agents show <id>
16+
```
17+
18+
Profile discovery happens through the compact catalog returned by
19+
`open_workspace`. `devspace agents ls` lists existing subagent sessions for the
20+
current workspace; it does not list profile definitions.
21+
22+
## Profile schema
23+
24+
Profiles are discovered from:
25+
26+
- `~/.devspace/agents/*.md`
27+
- project `.devspace/agents/*.md`
28+
29+
Supported frontmatter fields:
30+
31+
```yaml
32+
schema: devspace-agent/v1
33+
name: reviewer
34+
description: Read-only reviewer for bugs, security risks, and missing tests.
35+
provider: codex
36+
model: gpt-5.4
37+
disabled: false
38+
```
39+
40+
Supported providers:
41+
42+
- `codex`
43+
- `claude`
44+
- `opencode`
45+
- `pi`
46+
- `cursor`
47+
- `copilot`
48+
49+
Removed from v1 profile schema:
50+
51+
- `backend`
52+
- `command`
53+
- `mode`
54+
- `permissions`
55+
- `actions`
56+
57+
## Provider mapping
58+
59+
DevSpace maps provider ids to native integrations:
60+
61+
- `codex`: Codex SDK
62+
- `claude`: Claude Code SDK
63+
- `opencode`: OpenCode SDK
64+
- `pi`: Pi RPC mode
65+
- `cursor`: ACP
66+
- `copilot`: ACP
67+
68+
The adapter registry is the internal seam future MCP tools can reuse if we move
69+
from skill plus CLI guidance to first-class MCP agent tools.
70+
71+
## Model exposure
72+
73+
`open_workspace` exposes only compact profile metadata:
74+
75+
```json
76+
{
77+
"name": "reviewer",
78+
"description": "Read-only reviewer for bugs, security risks, and missing tests.",
79+
"provider": "codex",
80+
"model": "gpt-5.4"
81+
}
82+
```
83+
84+
The profile body, provider protocol, raw provider transcript, and adapter
85+
details stay outside the default model context.
86+
87+
Shell calls launched through DevSpace receive `DEVSPACE_WORKSPACE_ID` and
88+
`DEVSPACE_WORKSPACE_ROOT`, so `devspace agents ls` can scope itself without the
89+
model passing workspace flags.
90+
91+
## Non-goals
92+
93+
- Custom or arbitrary subagent commands.
94+
- Provider-specific action DSLs.
95+
- Exposing raw provider transcripts by default.
96+
- Tracking changed files or tests from provider output.

0 commit comments

Comments
 (0)