You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce an agent abstraction to support Claude and OpenAI Codex CLIs. Added internal/agent providers (ClaudeProvider, CodexProvider), resolution and installation checks (Resolve, CheckInstalled), and tests. Wire provider selection via --agent / --agent-path flags, CHIEF_AGENT env vars, and .chief/config.yaml (agent.provider, agent.cliPath). Propagate the provider into TUI, new, edit, and convert flows; convert and fix-json now run through the provider. Added Codex JSONL parser for the loop output and accompanying tests. Updated config struct, docs (README, installation, configuration, troubleshooting), and various command code to use the provider abstraction. Key new files: internal/agent/*.go, internal/cmd/convert.go, internal/loop/codex_parser*.go and tests; updated main.go, cmd handlers, prd conversion wiring and docs to reflect multi-agent support.
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,17 @@ See the [documentation](https://minicodemonkey.github.io/chief/concepts/how-it-w
44
44
45
45
## Requirements
46
46
47
-
-[Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) installed and authenticated
47
+
-**[Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code)** or **[Codex CLI](https://developers.openai.com/codex/cli/reference)** installed and authenticated
48
+
49
+
Use Claude by default, or configure Codex in `.chief/config.yaml`:
50
+
51
+
```yaml
52
+
agent:
53
+
provider: codex
54
+
cliPath: /usr/local/bin/codex # optional
55
+
```
56
+
57
+
Or run with `chief --agent codex` or set `CHIEF_AGENT=codex`.
Copy file name to clipboardExpand all lines: docs/reference/configuration.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,9 @@ Chief stores project-level settings in `.chief/config.yaml`. This file is create
13
13
### Format
14
14
15
15
```yaml
16
+
agent:
17
+
provider: claude # or "codex"
18
+
cliPath: ""# optional path to CLI binary
16
19
worktree:
17
20
setup: "npm install"
18
21
onComplete:
@@ -24,6 +27,8 @@ onComplete:
24
27
25
28
| Key | Type | Default | Description |
26
29
|-----|------|---------|-------------|
30
+
| `agent.provider` | string | `"claude"` | Agent CLI to use: `claude` or `codex` |
31
+
| `agent.cliPath` | string | `""` | Optional path to the agent binary (e.g. `/usr/local/bin/codex`). If empty, Chief uses the provider name from PATH. |
27
32
| `worktree.setup` | string | `""` | Shell command to run in new worktrees (e.g., `npm install`, `go mod download`) |
28
33
| `onComplete.push` | bool | `false` | Automatically push the branch to remote when a PRD completes |
29
34
| `onComplete.createPR` | bool | `false` | Automatically create a pull request when a PRD completes (requires `gh` CLI) |
@@ -83,17 +88,29 @@ These settings are saved to `.chief/config.yaml` and can be changed at any time
83
88
84
89
| Flag | Description | Default |
85
90
|------|-------------|---------|
91
+
| `--agent <provider>` | Agent CLI to use: `claude`or `codex` | From config / env / `claude` |
92
+
| `--agent-path <path>` | Custom path to the agent CLI binary | From config / env |
| `--force` | Auto-overwrite on conversion conflicts | `false` |
91
98
99
+
Agent resolution order: `--agent`/ `--agent-path` → `CHIEF_AGENT` / `CHIEF_AGENT_PATH` env vars → `agent.provider` / `agent.cliPath` in `.chief/config.yaml` → default `claude`.
100
+
92
101
When `--max-iterations` is not specified, Chief calculates a dynamic limit based on the number of remaining stories plus a buffer. You can also adjust the limit at runtime with `+`/`-` in the TUI.
93
102
103
+
## Agent
104
+
105
+
Chief can use **Claude Code** (default) or **Codex CLI** as the agent. Choose via:
106
+
107
+
- **Config:** `agent.provider: codex` and optionally `agent.cliPath: /path/to/codex` in `.chief/config.yaml`
0 commit comments