Skip to content

Commit 9a3f5d8

Browse files
committed
docs(skills): add provider-specific override references
1 parent 4d10642 commit 9a3f5d8

7 files changed

Lines changed: 106 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Claude overrides
2+
3+
DevSpace passes `--model` to the Claude Agent SDK. When `--effort` is present,
4+
DevSpace passes the SDK effort value with adaptive thinking enabled.
5+
6+
The SDK effort vocabulary is:
7+
8+
- `low`
9+
- `medium`
10+
- `high`
11+
- `xhigh`
12+
- `max`
13+
14+
Support is model-dependent. Some Claude models expose only part of this set or
15+
do not support the effort option. Prefer configured defaults and omit an
16+
override when the selected model's capability is unknown.
17+
18+
```bash
19+
devspace agents run claude --model <model> --effort <supported-level> "<brief>"
20+
```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Codex overrides
2+
3+
DevSpace passes `--model` to the Codex SDK and maps `--effort` to model
4+
reasoning effort.
5+
6+
The SDK accepts these effort labels:
7+
8+
- `minimal`
9+
- `low`
10+
- `medium`
11+
- `high`
12+
- `xhigh`
13+
14+
The selected model may support only a subset. Prefer the profile or provider
15+
default. Omit `--effort` when the exact model capability is unknown.
16+
17+
```bash
18+
devspace agents run codex --model <model> --effort <supported-level> "<brief>"
19+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copilot overrides
2+
3+
DevSpace connects to Copilot through ACP. `--model` selects the ACP `model`
4+
option and `--effort` selects the ACP `thought_level` option.
5+
6+
Both option sets are announced by the running Copilot ACP session and may vary
7+
by version or account. Do not invent a value. Omit the override unless the user
8+
provided an exact value known to that Copilot installation.
9+
10+
```bash
11+
devspace agents run copilot --model <exact-model> --effort <exact-thought-level> "<brief>"
12+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Cursor overrides
2+
3+
DevSpace connects to Cursor through ACP. `--model` selects the ACP `model`
4+
option and `--effort` selects the ACP `thought_level` option.
5+
6+
Both option sets are announced by the running Cursor ACP session and may vary
7+
by version or account. Do not invent a value. Omit the override unless the user
8+
provided an exact value known to that Cursor installation.
9+
10+
```bash
11+
devspace agents run cursor --model <exact-model> --effort <exact-thought-level> "<brief>"
12+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OpenCode overrides
2+
3+
DevSpace passes `--model` to OpenCode. A model may be written as
4+
`<provider>/<model>` when the OpenCode provider id is needed.
5+
6+
DevSpace maps `--effort` to the OpenCode model `variant` field. Variant names
7+
are model-specific; there is no safe global effort list. Omit `--effort` unless
8+
the exact variant is already known from the user's configuration or request.
9+
10+
```bash
11+
devspace agents run opencode --model <provider/model> --effort <exact-variant> "<brief>"
12+
```

skills/subagents/references/pi.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Pi overrides
2+
3+
DevSpace passes `--model` to Pi and maps `--effort` to Pi's native
4+
`--thinking` option.
5+
6+
Pi accepts these thinking labels:
7+
8+
- `off`
9+
- `minimal`
10+
- `low`
11+
- `medium`
12+
- `high`
13+
- `xhigh`
14+
15+
Pi applies model-specific capability rules, so a selected model may expose or
16+
honor only a subset. Prefer the profile or provider default when uncertain.
17+
18+
```bash
19+
devspace agents run pi --model <model> --effort <supported-level> "<brief>"
20+
```

src/skills.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,17 @@ try {
208208
),
209209
true,
210210
);
211+
const subagentsSkill = loadWorkspaceSkills(experimentalConfig, projectRoot).skills.find(
212+
(skill) => skill.name === "subagents",
213+
);
214+
assert.ok(subagentsSkill);
215+
const codexReference = join(subagentsSkill.baseDir, "references", "codex.md");
216+
assert.equal(resolveSkillReadPath([subagentsSkill], new Set(), codexReference), undefined);
217+
assert.equal(
218+
resolveSkillReadPath([subagentsSkill], new Set([subagentsSkill.baseDir]), codexReference)
219+
?.absolutePath,
220+
codexReference,
221+
);
211222

212223
const duplicateConfig = loadConfig({
213224
DEVSPACE_ALLOWED_ROOTS: projectRoot,

0 commit comments

Comments
 (0)