AgentForge
AgentForge is an open-source terminal AI coding agent framework (harness) written in Python, designed to help learners understand the internal structure of modern coding agents. It is not a simple chatbot wrapper, but is built around core mechanisms such as the agent loop, tool calling, MCP integration, the skills system, security approvals, persistence, and checkpoints. The project supports OpenRouter, OpenAI, Anthropic, and custom OpenAI-compatible model providers, and offers streaming responses, typed tool calls, approval gates, output sanitization, secret redaction, prompt injection boundaries, hooks, subagents, context compaction, loop detection, persistent memory, session snapshots, event logs, JSON reports, HTML/Markdown session export, resume/restore commands, plan/build modes, a skills system, and a Rich terminal interface. It can be installed via pip install agentforge-harness and is suitable as a teaching lab environment for learning AI framework engineering.