Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ urlencoding = "2"
base64 = "0.22"
futures = "0.3"
which = "7"
tempfile = "3"
clap_complete = "4.5.65"
rusqlite = { version = "0.39.0", features = ["bundled"] }

[dev-dependencies]
tempfile = "3"
tokio-test = "0.4"
wiremock = "0.6"
assert_cmd = "2"
Expand Down
12 changes: 8 additions & 4 deletions docs/gr-spawn.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ Each agent can have a startup prompt file (Markdown) that defines its role, resp
reviewer.md
```

Prompts are injected via the `--prompt` flag when launching the agent's CLI tool. They should include:
Startup prompt delivery follows the target runtime's native instruction boundary. For
Codex, gitgrip passes the file as `developer_instructions`, keeping identity separate
from the first user turn. Other tools can consume the same file through their configured
launch arguments, such as Claude Code's `--append-system-prompt-file`.

Prompts should include:
- Role description
- Responsibilities
- Startup checklist (join channel, read journal, check unread, start loop)
Expand Down Expand Up @@ -140,7 +145,7 @@ tmux select-window -t myproject:lead
|-------|---------|-------------|
| `session_name` | `"synapt"` | tmux session name |
| `channel` | `"dev"` | Default channel all agents join |
| `auto_journal` | `true` | Agents read `recall_journal` on startup |
| `auto_journal` | `true` | Paste recall startup context into Codex as a compatibility fallback. Disable when a runtime SessionStart hook owns continuity. |
| `mock_launch` | `false` | Use echo/sleep instead of real agent launch |

### [agents.*] section
Expand All @@ -151,7 +156,7 @@ tmux select-window -t myproject:lead
| `model` | no | `claude-sonnet-4-6` | Model ID |
| `tool` | no | `claude` | CLI tool (`claude`, `codex`, `cursor`) |
| `worktree` | no | `main` | Git worktree or `"new"` to auto-create |
| `startup_prompt` | no | — | Path to .md startup prompt file |
| `startup_prompt` | no | — | Path to an agent identity prompt. Codex receives it as developer instructions. |
| `channel` | no | from `[spawn]` | Channel to auto-join |
| `loop_interval` | no | `5m` | Channel read loop cadence |
| `heartbeat_interval` | no | `60` | Seconds between heartbeat pings |
Expand All @@ -174,4 +179,3 @@ tmux select-window -t myproject:lead
| `SYNAPT_LOOP_INTERVAL` | `loop_interval` field | `2m` |

Plus any custom vars from the `env` table in `agents.toml`.

Loading