Skip to content

Commit 5657fb6

Browse files
committed
Add documentation
1 parent 1add44a commit 5657fb6

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

docs/agent-adapters.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Agent Adapters
2+
3+
The MVP uses a simple command wrapper instead of hard-coding model APIs.
4+
5+
Example:
6+
7+
```bash
8+
agentflow run AF-20260613-001 --command "claude < {prompt}" --check "pytest -q"
9+
agentflow run AF-20260613-001 --command "codex exec --prompt-file {prompt}" --check "pytest -q"
10+
agentflow run AF-20260613-001 --command "cat {prompt}" --agent manual
11+
```
12+
13+
`{prompt}` is replaced with the generated context-pack path.
14+
15+
## Planned adapter presets
16+
17+
Future versions can define presets like:
18+
19+
```json
20+
{
21+
"agents": {
22+
"claude-code": {
23+
"command": "claude < {prompt}"
24+
},
25+
"codex-cli": {
26+
"command": "codex exec --prompt-file {prompt}"
27+
},
28+
"gemini-cli": {
29+
"command": "gemini --prompt-file {prompt}"
30+
}
31+
}
32+
}
33+
```
34+
35+
## Worktree isolation
36+
37+
The next major feature is to run each task in its own `git worktree`, so multiple agents can work in parallel without overwriting each other's files.

0 commit comments

Comments
 (0)