This file provides instructions for AI coding agents (Codex CLI, Claude Code, etc.) working on this repository.
autoforge is an autonomous SDLC framework. You have access to harness tools via bash commands.
# Search codebase for patterns
PYTHONPATH=. python3 -m autoforge.harness.tools search "pattern" --dir autoforge/
# View file with line numbers
PYTHONPATH=. python3 -m autoforge.harness.tools view path/to/file.py --start 1 --end 50
# Edit file (with Python syntax validation)
PYTHONPATH=. python3 -m autoforge.harness.tools edit path/to/file.py --old "old code" --new "new code"
# Run shell command
PYTHONPATH=. python3 -m autoforge.harness.tools run-cmd "pytest tests/ -v"
# List directory
PYTHONPATH=. python3 -m autoforge.harness.tools list-dir autoforge/agents
# Extract search patterns from issue text
PYTHONPATH=. python3 -m autoforge.harness.tools localize --issue "bug description"
# Analyze a repository and propose goals
PYTHONPATH=. python3 -m autoforge.harness.init --dir /path/to/repo- Read the issue description
localize --issue "..."to extract search patternssearch "pattern"to find relevant filesview path/to/file.pyto read the codeedit path/to/file.py --old "..." --new "..."to fix the bugrun-cmd "pytest tests/"to verify the fix
- Python 3.11+, Pydantic v2, httpx
- Immutable data (frozen dataclass / Pydantic model)
- Files under 400 lines
- Run tests:
PYTHONPATH=. python3 -m pytest tests/ -v
autoforge/
├── agents/ # 7 SDLC agents + resolver stack
├── core/ # PipelineRunner, LLMClient, Config, Memory, Hooks
├── schemas/ # Pydantic schemas for structured artifact passing
├── tools/ # ACI toolkit, arXiv/GitHub API clients
├── harness/ # Agent harness mode (init, tools, solve)
└── bench/ # SWE-bench evaluation pipeline