Skip to main content

Module agent

Module agent 

Source
Expand description

Agent command building + tmux invocation.

Supports Claude, Codex, OpenCode, Grok (plus Kimi/MiniMax as Claude aliases). Runs the agent via a runner.sh script executed as the tmux session shell.

Structs§

AgentInvocation
Agent invocation configuration.

Enums§

Shipcheck
Whether the agent tests through shipcheck: the repo opts in and the shipcheck on PATH has commit. An older shipcheck gets the plain workflow step

Functions§

build_agent_message
Build the agent message (task prompt).
build_review_prompt
Build the review prompt for the review agent.
build_runner_script
Build the runner shell script contents for testing and inspection.
build_system_prompt
Build the system prompt for the agent.
install_shipcheck_hooks
Runs shipcheck install so every agent CLI gets shipcheck’s hooks in this worktree. Returns whether install ran. It never fails the task
review_system_prompt
Build the system prompt for the review agent.
spawn_in_tmux
Spawn the agent in a tmux session.