Skip to content
Docs

CLI Tools Reference

CodeForge includes 25 core CLI tools and utilities in the default inventory.

This page also includes closely related runtimes, package managers, and language servers so you can see the full command-line surface in one place.

These tools manage your Claude Code sessions, track usage, and provide monitoring capabilities.

Launch Claude Code with the full CodeForge configuration — custom system prompt, all plugins, agents, and skills active.

Terminal window
# Start a CodeForge-configured Claude session
cc
# Equivalent — 'claude' is an alias for the same configuration
claude

Both cc and claude set up the CodeForge system prompt, enable plan permission mode, and load all configured plugins. This is the primary way to start Claude Code in a CodeForge environment.

Launch Claude Code without any CodeForge configuration — no custom system prompt, no plugins, no agents. Useful for debugging or when you need vanilla Claude Code behavior.

Terminal window
# Start vanilla Claude Code
ccraw

Launch Claude Code with a writing-focused system prompt, optimized for documentation and content creation tasks.

Terminal window
# Start Claude in writing mode
ccw

Search through your Claude Code session history (JSONL files) with boolean queries, role filtering, and time scoping. Built in Rust for fast searching across large session archives.

Terminal window
# Basic search across all sessions
ccms "authentication flow"
# Search within the current project only
ccms --project "$(pwd)" "query"
# Filter by role — find Claude's past decisions
ccms -r assistant "what was decided about the database schema"
# Filter by role — find what you previously asked
ccms -r user "auth approach"
# Boolean queries
ccms "(auth OR authentication) AND NOT test"
# Time-scoped search
ccms --since "1 day ago" "recent work"
ccms --since "1 week ago" "architecture decisions"
# JSON output for structured parsing
ccms -f json "query" -n 10
# Statistics about your session history
ccms --stats ""
# Interactive TUI mode (not available from within Claude)
ccms

View your Claude API usage statistics, including token counts, costs, and session summaries. Installed via npm from the ccusage project.

Terminal window
# View usage statistics
ccusage

View your OpenAI Codex CLI token usage statistics, including daily and monthly breakdowns. Companion to ccusage from the same ccusage project, reading session data from ~/.codex/.

Terminal window
# Daily Codex usage
ccusage-codex daily
# Monthly Codex usage
ccusage-codex monthly

Analyze token consumption patterns across sessions to understand usage efficiency and identify sessions with unusually high token burn.

Terminal window
# Analyze token burn rate
ccburn

Real-time terminal-based Claude session monitor. Shows active sessions and their current status.

Terminal window
# Start the session monitor
claude-monitor

A headless Chromium browser (Playwright-based) available for agents that need to inspect web content or take screenshots.

Terminal window
# Launch the agent browser
agent-browser

OpenAI’s open-source terminal coding agent, analogous to Claude Code. A self-contained Rust binary installed via npm that provides a full-screen TUI for reading, editing, and executing code. Requires an OpenAI account (ChatGPT Plus/Pro/Business/Edu/Enterprise for browser login, or an API key).

Terminal window
# Launch Codex CLI
codex
# Codex requires authentication on first run:
# Option 1: Browser login — select "Sign in with ChatGPT"
# Option 2: API key — set OPENAI_API_KEY in .devcontainer/.secrets

Verify your CodeForge installation health — checks that all expected tools are installed, plugins are loaded, and configuration is valid.

Terminal window
# Run the setup health check
check-setup

List all available CodeForge CLI tools with their installation status and versions.

Terminal window
# Show all tools and their status
cc-tools

This displays a formatted table showing every tool, whether it is installed, and its version number.

codeforge — CodeForge CLI (Experimental)

Section titled “codeforge — CodeForge CLI (Experimental)”

Multi-command CLI for development workflows — session search, plugin management, configuration, codebase indexing, and devcontainer management.

Terminal window
# Search session history
codeforge session search "authentication approach"
# List plugins and their status
codeforge plugin list
# Build a codebase symbol index
codeforge index build
# Manage devcontainers
codeforge container ls

When run outside the container, commands auto-proxy into the running devcontainer. Use --local to run against the host filesystem.

codeforge proxy — API Traffic Inspection

Section titled “codeforge proxy — API Traffic Inspection”

Launch Claude Code through mitmproxy to inspect API traffic between Claude and the Anthropic API. Useful for debugging prompt construction, token usage, and request/response payloads.

Terminal window
# Launch Claude Code with traffic inspection on port 8081
codeforge proxy

The proxy runs on port 8081. Open the mitmproxy web interface to view, filter, and inspect all API calls in real time.

Dynamic port forwarding bridge for the devcontainer. Forwards ports between the host and the running devcontainer, enabling access to services running inside the container from the host machine.

Terminal window
# Start the devcontainer bridge
dbr

A status bar widget for your terminal prompt that displays contextual information about your current Claude Code session — active agent, model, token usage, and session status. Integrates with your shell prompt to provide at-a-glance session awareness.

Terminal window
# Configure the statusline
ccstatusline

These tools are used both manually and automatically by the Auto Code Quality Plugin to maintain code standards.

CommandLanguagesPurposeExample
ruffPythonLinting and formattingruff check src/ && ruff format src/
biomeJS/TS/JSONLinting and formattingbiome check src/
shellcheckShellScript lintingshellcheck scripts/*.sh
shfmtShellScript formattingshfmt -w scripts/*.sh
dprintMD/TOML/JSONFormattingdprint fmt
hadolintDockerfileLintinghadolint Dockerfile
CommandPurposeDetails
sg / ast-grepStructural code search using AST patternsFull documentation
tree-sitterSyntax tree parsing and symbol extractionFull documentation

These tools are covered in depth on the Code Intelligence page.

CodeForge includes modern language runtimes and fast package managers so you can work with multiple languages out of the box.

ToolVersionPurposeExample
Node.jsvia nvmJavaScript runtimenode --version
Python3.14 via uvPython runtimepython --version
Rustvia rustupRust toolchain (opt-in — commented out by default)cargo --version
BunlatestFast JS runtime and package managerbun install
uvlatestFast Python package manageruv pip install requests
Govia featureGo toolchaingo version
GitHub CLI (gh)latestGitHub operations from the terminalgh pr create
ToolPurposeExample
tmuxTerminal multiplexer for session managementtmux new -s work
jqJSON processor for command-line data manipulationcat data.json | jq '.results[]'
gitVersion control (pre-configured)git log --oneline -10
dockerContainer management (host Docker socket mounted)docker ps
LSP serversLanguage servers for code intelligenceSee Code Intelligence

The table below is broader than the canonical 25-tool inventory because it also includes language servers that are useful to discover alongside the CLI tools.

#CommandCategoryDescription
1cc / claudeSessionClaude Code with CodeForge config
2cc-orcSessionClaude Code in orchestrator mode (delegation-first)
3ccrawSessionVanilla Claude Code
4ccwSessionClaude Code in writing mode
5ccmsSessionSession history search (currently disabled)
6ccusageSessionAPI usage statistics
7ccburnSessionToken burn analysis
8ccstatuslineSessionTerminal status bar widget
9claude-monitorSessionReal-time session monitor
10agent-browserSessionHeadless browser for agents
11check-setupSessionInstallation health check
12cc-toolsSessionList all available tools
13codeforgeSessionCodeForge CLI — session search, plugins, indexing (experimental)
14codeforge proxySessionLaunch Claude Code through mitmproxy for API traffic inspection
15codexSessionOpenAI Codex CLI terminal coding agent
16ccusage-codexSessionCodex token usage statistics
17dbrInfrastructureDevcontainer bridge for dynamic port forwarding
18ruffQualityPython linting and formatting
19biomeQualityJS/TS/JSON linting and formatting
20shellcheckQualityShell script linting
21shfmtQualityShell script formatting
22dprintQualityMarkdown/TOML/JSON formatting
23hadolintQualityDockerfile linting
24sg / ast-grepIntelligenceStructural code search
25tree-sitterIntelligenceSyntax tree parsing
26pyrightIntelligencePython LSP server
27typescript-language-serverIntelligenceTypeScript/JS LSP server