This guide covers installation, initial setup, and your first CSA commands.
- At least one supported AI tool installed:
- claude-code (Anthropic)
- codex (OpenAI)
- gemini-cli (Google)
- opencode (OpenRouter)
- Git 2.30+
- Optional: mise for binary version management
- Optional: gh for PR workflows
mise downloads prebuilt binaries from GitHub Releases via the ubi backend. No Rust toolchain required.
# Install mise if needed
curl https://mise.run | sh
# Install csa and weave
mise use -g ubi:RyderFreeman4Logos/cli-sub-agent[exe=csa]
mise use -g ubi:RyderFreeman4Logos/cli-sub-agent[exe=weave]
# Verify
csa --version
weave --help
# Upgrade later
mise upgrade# Prebuilt binary
curl -fsSL https://raw.githubusercontent.com/RyderFreeman4Logos/cli-sub-agent/main/install.sh | sh
# Or build from source via the install script
curl -fsSL https://raw.githubusercontent.com/RyderFreeman4Logos/cli-sub-agent/main/install.sh | sh -s -- --from-sourceRequires Rust 1.85+ (rustc --version).
git clone https://github.com/RyderFreeman4Logos/cli-sub-agent.git
cd cli-sub-agent
cargo install --path crates/cli-sub-agent # Installs `csa`
cargo install --path crates/weave # Installs `weave`If you use an AI coding agent (Claude Code, Codex, etc.), paste this prompt into a new session to run the full setup automatically:
Read https://raw.githubusercontent.com/RyderFreeman4Logos/cli-sub-agent/main/skill.md and follow the steps to configure CSA and programming workflow patterns for this project.
The agent will install CSA and Weave, initialize your project, and
interactively select workflow patterns (commit, review, security audit,
planning) -- all guided by skill.md.
cd my-project
csa initThis creates .csa/config.toml with project metadata. Use csa init --full
to auto-detect available tools and generate tier configuration, or
csa init --template for a fully-commented reference config.
csa doctorReports which AI tools are installed and reachable.
Edit .csa/config.toml to customize tiers, enable/disable tools, and set
resource limits. See Configuration for the full schema.
For global settings (API keys, concurrency limits), edit
~/.config/cli-sub-agent/config.toml.
# Auto-select tool from tier config
csa run --sa-mode false "analyze the authentication flow"
# Specify a tool
csa run --sa-mode false --tool codex "implement user auth module"
# Auto-select tool (explicit)
csa run --sa-mode false --tool auto "fix login page bug"# Resume the most recent session
csa run --sa-mode false --last "continue the implementation"
# Resume by ULID prefix
csa run --sa-mode false --session 01JK "continue the refactor"# Review uncommitted changes (auto-selects heterogeneous model)
csa review --sa-mode false --diff
# Review a commit range
csa review --sa-mode false --range main...HEAD
# Multi-reviewer consensus
csa review --sa-mode false --diff --reviewers 3 --consensus majoritycsa debate --sa-mode false "Should we use anyhow or thiserror for error handling?"csa session list # List all sessions
csa session list --tree # Tree view with genealogy
csa session result -s 01JK # View execution resultCreate ~/.config/cli-sub-agent/config.toml for settings shared across
all projects:
[defaults]
max_concurrent = 3
tool = "claude-code" # Fallback for --tool auto
[review]
tool = "auto" # Enforce heterogeneous review
[tools.codex]
max_concurrent = 5
[tools.codex.env]
OPENAI_API_KEY = "sk-..."- Commands -- full CLI reference
- Configuration -- tiers, aliases, resource limits
- Sessions -- session lifecycle and genealogy
- Architecture -- crate structure and design principles