Commands
All CLI commands and slash commands available in the CodeForge DevContainer. Commands are shell aliases and functions defined in setup-aliases.sh and deployed to .bashrc and .zshrc on container start.
Session Commands
Section titled “Session Commands”Commands for launching and managing Claude Code sessions.
| Command | Description | Example |
|---|---|---|
cc | Launch Claude Code with the main system prompt, plugins, and plan mode | cc |
claude | Identical to cc | claude |
ccw | Launch Claude Code with the writing system prompt (for docs and prose) | ccw |
ccraw | Launch vanilla Claude Code with no custom config, prompts, or plugins | ccraw |
cc-orc | Launch Claude Code in orchestrator mode (delegation-first workflow) | cc-orc |
All session commands auto-detect the Claude binary location: ~/.local/bin/claude (native install) is preferred, then /usr/local/bin/claude, then PATH lookup. If ChromaTerm (ct) is installed, output is wrapped through it for color highlighting.
Analysis and Monitoring Commands
Section titled “Analysis and Monitoring Commands”Commands for session analysis, usage tracking, and system monitoring.
| Command | Description | Example |
|---|---|---|
ccms | Search Claude Code session history. Supports boolean queries, role filtering, time scoping, and project isolation. (currently disabled — replacement pending) | ccms --project "$(pwd)" "auth approach" |
ccusage | View Claude API usage statistics | ccusage |
ccburn | Analyze token burn rate and consumption patterns with pace indicators | ccburn |
ccstatusline | Terminal status line displaying session metrics, git state, token usage, and burn rate | (runs automatically) |
claude-dashboard | Web-based session monitoring dashboard on port 7847 with cost estimates and activity heatmaps | claude-dashboard |
claude-monitor | Real-time Claude session activity monitor | claude-monitor |
agent-browser | Headless Chromium browser for agent automation with accessibility tree snapshots | agent-browser |
check-setup | Verify CodeForge installation health — checks tools, config, and aliases | check-setup |
cc-tools | List all installed CodeForge CLI tools with version info | cc-tools |
dbr | Dynamic port forwarding via devcontainer-bridge (container↔host) | dbr |
Code Quality Commands
Section titled “Code Quality Commands”Pre-installed tools for linting, formatting, and code analysis.
| Command | Languages | Purpose | Example |
|---|---|---|---|
ruff | Python | Fast linting and formatting (replaces Black + Flake8) | ruff check . --fix |
biome | JS/TS/JSON/CSS | Unified linting and formatting | biome check . |
shellcheck | Shell | Script linting with structured diagnostics | shellcheck script.sh |
shfmt | Shell | Script formatting | shfmt -w script.sh |
dprint | MD/TOML/YAML | Pluggable multi-language formatter | dprint fmt |
hadolint | Dockerfile | Dockerfile best practice linting | hadolint Dockerfile |
Code Intelligence Commands
Section titled “Code Intelligence Commands”Commands for structural code search and syntax analysis. These tools understand code structure (AST) rather than treating source files as plain text.
| Command | Purpose | Example |
|---|---|---|
ag / sg | ast-grep — structural code search using AST patterns. Find code by structure, not text. | sg -p 'console.log($$$)' -l js |
tree-sitter | Tree-sitter CLI — parsing, syntax tree operations, and grammar development | tree-sitter parse file.py |
ast-grep Examples
Section titled “ast-grep Examples”# Find all console.log statements in JavaScriptsg -p 'console.log($$$)' -l js
# Find functions with more than 3 parameters in Pythonsg -p 'def $FUNC($A, $B, $C, $D, $$$)' -l python
# Find unused imports in TypeScriptsg -p 'import { $NAME } from $_' -l tstree-sitter Examples
Section titled “tree-sitter Examples”# Parse a file and show the syntax treetree-sitter parse file.py
# Highlight a file with syntax colorstree-sitter highlight file.pySpec Workflow Slash Commands
Section titled “Spec Workflow Slash Commands”Slash commands for specification-driven development. These are used within Claude Code sessions (type them in the chat, not the shell).
| Command | Purpose | Example |
|---|---|---|
/spec-init | Bootstrap the .specs/ directory with templates | /spec-init |
/spec-new <feature> | Create a new feature specification from the standard template | /spec-new user-signup |
/spec-refine <feature> | Validate assumptions, get user approval before implementation | /spec-refine user-signup |
/spec-build <feature> | Orchestrate full implementation: plan, build, review, and close | /spec-build user-signup |
/spec-review <feature> | Verify implementation against spec requirements | /spec-review user-signup |
/spec-update | As-built spec closure after implementation | /spec-update |
/spec-check | Audit spec health — find stale, incomplete, or unapproved specs | /spec-check |
Ticket Workflow Slash Commands
Section titled “Ticket Workflow Slash Commands”Slash commands for issue and ticket management within Claude Code sessions.
| Command | Purpose |
|---|---|
/ticket:new | Create a new GitHub issue in EARS format |
/ticket:work | Start working on a ticket with a technical implementation plan |
/ticket:create-pr | Generate a PR from ticket context with security review |
/ticket:review-commit | Review commits against ticket requirements |
Git Workflow Slash Commands
Section titled “Git Workflow Slash Commands”Standalone slash commands for git operations within Claude Code sessions. These work independently of the ticket workflow but optionally link to tickets when context exists.
| Command | Purpose | Example |
|---|---|---|
/ship | Review changes, commit, push, and optionally create a PR | /ship |
/pr:review | Review an existing PR and post findings (never merges) | /pr:review 42 |
/ship Workflow
Section titled “/ship Workflow”- Gathers git context (status, diff, branch, project rules)
- Conducts full review (security, rules, quality, architecture, tests)
- Presents findings by severity — user decides what to fix, defer to issues, or ignore
- Drafts commit message — user must approve before committing
- Commits and pushes
- Asks whether to create a PR — only creates if user confirms
/pr:review Workflow
Section titled “/pr:review Workflow”- Identifies target PR (by number, URL, or auto-detects from current branch)
- Fetches PR details, diff, and reads changed files in full
- Conducts aggressive analysis (attack surface, threat modeling, dependencies, rules, architecture, quality, tests, breaking changes)
- Presents findings — user selects what to include in review, create as issues, or ignore
- Posts review comment to PR (never approves or merges)
GitHub CLI
Section titled “GitHub CLI”The GitHub CLI (gh) is pre-installed for repository operations.
| Command | Purpose | Example |
|---|---|---|
gh issue list | List repository issues | gh issue list --state open |
gh issue view | View issue details | gh issue view 42 |
gh pr create | Create a pull request | gh pr create --title "Add feature" |
gh pr view | View pull request details | gh pr view 15 |
gh api | Make authenticated GitHub API requests | gh api repos/owner/repo/pulls |
Other Useful Commands
Section titled “Other Useful Commands”These additional commands are available in the container environment:
| Command | Purpose |
|---|---|
git | Version control (pre-configured with worktree support) |
docker | Container management via Docker-outside-of-Docker |
jq | JSON processing and filtering |
tmux | Terminal multiplexer for Agent Teams split-pane sessions |
bun | Fast JavaScript runtime and package manager |
cargo | Rust package manager (opt-in — Rust toolchain is commented out by default) |
uv | Fast Python package installer |
Command Sources
Section titled “Command Sources”Commands come from different sources in the CodeForge setup:
| Source | Commands | How Defined |
|---|---|---|
| Shell aliases | cc, claude, ccw, ccraw, cc-orc, check-setup | setup-aliases.sh writes to .bashrc/.zshrc |
| Shell functions | cc-tools | setup-aliases.sh writes to .bashrc/.zshrc |
| DevContainer features | ccusage, ccburn, ruff, biome, sg, dbr, etc. | install.sh in each feature directory |
| Slash commands | /spec-new, /ticket:new, /ship, /pr:review, /ps, etc. | Skill SKILL.md files in plugin directories |
| External features | gh, docker, node, bun | Installed via devcontainer.json features |
Related
Section titled “Related”- CLI Tools — detailed tool descriptions and usage examples
- Spec Workflow — specification command details and lifecycle
- Environment Variables — env vars that affect command behavior