AgentForge is a Python CLI package for learning how coding-agent harnesses work. It runs in your terminal, loads configuration from your project and user environment, calls an LLM provider, and exposes local tools through an approval-aware harness.
From PyPI after release:
pip install agentforge-harnessFrom a local checkout:
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"Create config with the setup wizard:
agentforge initCheck local readiness:
agentforge doctorStart the TUI:
agentforgeOr run a single prompt:
agentforge run "read this project and summarize the harness architecture"AgentForge needs one configured model provider. The setup wizard writes the project config and tells you which API key to set.
For hosted providers such as OpenRouter, OpenAI, and Anthropic, the wizard asks for the provider, API key, and default model. It does not ask for a base URL. OpenRouter gets its default base URL automatically, while OpenAI and Anthropic use their SDK defaults.
For custom OpenAI-compatible providers, the wizard asks for the base URL first, then the API key and model.
Common keys:
OPENROUTER_API_KEY=...
OPENAI_API_KEY=...
ANTHROPIC_API_KEY=...
API_KEY=...See Provider Setup for provider-specific examples.
Inside the interactive session:
/help
/doctor
/tools
/skills
/plan
/build
/stats
/exit
Recommended first manual test:
- Ask AgentForge to list files.
- Ask it to read
README.MD. - Ask it to create a tiny file and approve the write.
- Ask it to edit that file.
- Run
/checkpoint. - Run
/export html. - Run
/stats.
Project config lives in:
.agentforge/config.toml
Runtime state such as sessions and checkpoints is stored in the platform data directory for agentforge. Use /sessions, /resume, /checkpoints, and /restore to inspect and reuse it.
For local development:
HOME=/tmp/agentforge-test-home python3 -m pytest -q
python3 -m compileall -q agentforge_harness tests main.py scripts
python3 scripts/release_smoke.pyUse an isolated HOME during tests so session/config writes do not depend on machine-specific user directories.