Skip to content
Open
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ SwarmForge runs locally. Before starting a runnable branch, make sure the target
- `git`
- `tmux`
- Babashka (`bb`)
- At least one configured agent backend, such as `codex`, `claude`, `copilot`, or `grok`
- At least one configured agent backend, such as `codex`, `claude`, `copilot`, `grok`, or `pi`

## Getting Started

Expand Down
5 changes: 3 additions & 2 deletions swarmforge/scripts/swarmforge.bb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
(fail! (str red "Error:" reset " Duplicate worktree '" worktree "' in " (:config-file ctx))))
(when (or (str/includes? worktree "/") (#{"." ".."} worktree))
(fail! (str red "Error:" reset " Invalid worktree '" worktree "' for role '" role "'")))
(when-not (#{"claude" "codex" "copilot" "grok"} agent)
(when-not (#{"claude" "codex" "copilot" "grok" "pi"} agent)
(fail! (str red "Error:" reset " Unsupported agent '" agent "' for role '" role "'")))
(when-not (#{"task" "batch"} receive-mode)
(fail! (str red "Error:" reset " Invalid receive mode '" receive-mode "' for role '" role "' on line " line-no ": expected task or batch")))
Expand Down Expand Up @@ -339,7 +339,8 @@
"claude" (str "claude --append-system-prompt-file " (sq (str prompt-file)) " --permission-mode acceptEdits -n " (sq (str "SwarmForge " display)) " " (extra-args-prefix row) "\"$(cat " (sq (str prompt-file)) ")\"")
"codex" (str "codex -C " (sq (str role-worktree)) " " (extra-args-prefix row) "\"$(cat " (sq (str prompt-file)) ")\"")
"copilot" (str "copilot -C " (sq (str role-worktree)) " --name " (sq (str "SwarmForge " display)) " " (extra-args-prefix row) "-i \"$(cat " (sq (str prompt-file)) ")\"")
"grok" (str "grok --cwd " (sq (str role-worktree)) " " (grok-permission-prefix row) (extra-args-prefix row) "--rules \"$(cat " (sq (str prompt-file)) ")\" --verbatim \"$(cat " (sq (str prompt-file)) ")\"")))
"grok" (str "grok --cwd " (sq (str role-worktree)) " " (grok-permission-prefix row) (extra-args-prefix row) "--rules \"$(cat " (sq (str prompt-file)) ")\" --verbatim \"$(cat " (sq (str prompt-file)) ")\"")
"pi" (str "pi --name " (sq (str "SwarmForge " display)) " --no-context-files " (extra-args-prefix row) "\"$(cat " (sq (str prompt-file)) ")\"")))
(= index 0)
(str "; exit_code=$?; SWARMFORGE_TERMINAL_BACKEND=" (sq (:terminal-backend ctx))
" nohup " (sq (str (fs/path (:script-dir ctx) "swarm-cleanup.sh")))
Expand Down