Plan. Retrieve. Reason. Collaborate. Execute. Verify.
AgentForge is an extensible multi-agent AI platform built around
LangGraph, hybrid RAG, knowledge graphs, MCP tools,
human-in-the-loop workflows, persistent state, and real-time streaming.
Why AgentForge โข Architecture โข Capabilities โข Quick Start โข Roadmap
Most AI applications still look like this:
โโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโ
โ USER โ โโโโบ โ LLM โ โโโโบ โ ANSWER โ
โโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโ
AgentForge is built around a different execution model:
โโโโโโโโโโโโโโโโ
โ USER โ
โโโโโโโโฌโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ INTENT ROUTER โ
โโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ SUPERVISOR โ
โโโโโโโโโฌโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
โ WEB/RAG โ โ GRAPH โ โ MATH โ
โ AGENT โ โ AGENT โ โ AGENT โ
โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโ
โ TOOLS / MCP โ
โโโโโโโโโโฌโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโ
โ HUMAN APPROVAL โ
โโโโโโโโโโฌโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโ
โ EVALUATION โ
โโโโโโโโโโฌโโโโโโโโโโ
โผ
FINAL ANSWER
The current implementation already includes a 12-agent LangGraph workflow, routing, RAG, knowledge-graph reasoning, web retrieval, HITL, persistence, and evaluation.
AgentForge is built for people who want to move from:
"LLM wrapper"
to:
"AI system."
It combines multiple AI engineering patterns in one extensible foundation:
|
Agent Orchestration Supervisor-driven LangGraph workflows with specialized reasoning stages. |
Hybrid RAG Vector retrieval + lexical retrieval + fusion + reranking. |
Knowledge Graph Relationship-aware reasoning over local knowledge. |
|
MCP External tool integration with local fallbacks. |
HITL Pause workflows and require explicit approval. |
Persistent State Checkpointed graph state + durable conversations. |
|
Streaming Real-time FastAPI streaming endpoints. |
Observability Prometheus + Grafana + health/readiness probes. |
Authentication User-scoped authenticated workflows. |
These capabilities are already represented in the repository's current implementation and documentation.
AgentForge currently orchestrates:
01 Safety
02 Intent Routing
03 Clarification
04 Query Rewriting
05 Recency Guard
06 Human Approval Gate
07 Web Retrieval
08 Knowledge Graph Reasoning
09 RAG
10 Mathematical Reasoning
11 Response Generation
12 Evaluation
A user does not need to know which AI mechanism is appropriate.
AgentForge decides:
"What kind of reasoning does this task require?"
โ
"Which information sources are relevant?"
โ
"Which tools should be used?"
โ
"Does this require approval?"
โ
"How should the answer be verified?"
AgentForge's local RAG pipeline combines multiple retrieval strategies:
QUERY
โ
โโโโโโโโโโโโดโโโโโโโโโโโ
โผ โผ
Semantic Retrieval Lexical Retrieval
(Vector) (BM25)
โ โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
โผ
Rank Fusion
โ
โผ
Reranking
โ
โผ
Grounded Context
The current Chroma-based pipeline supports vector retrieval, lexical ranking, Reciprocal Rank Fusion, and optional LLM reranking.
Not every question is semantic.
Some questions are about relationships.
AgentForge provides a dedicated graph-oriented retrieval path:
Documents
โ
Graph-RAG Store
โ
Relationship Retrieval
โ
NetworkX Reasoning
โ
RAG Grounding
โ
Answer
This is designed for relationship-style local queries and uses a separate graph-RAG ingestion path.
AgentForge supports MCP-backed tools through a dedicated bridge architecture.
Agent
โ
โผ
MCP Bridge
โ
โผ
MCP Tool Server
โฑ โฒ
โผ โผ
Web Search Calculator
The current implementation also provides local fallbacks when MCP is unavailable.
AI does not have to blindly continue every workflow.
For supported tasks:
Agent
โ
โผ
Proposed
Action
โ
โโโโโโดโโโโโ
โผ โผ
APPROVE REJECT
โ โ
โผ โผ
CONTINUE STOP
AgentForge isn't designed around a disposable request.
Graph State
โ
Checkpoint
โ
Resume
User
โ
Thread
โ
Messages
โ
Metadata
โ
Audit
The documented persistence layer includes PostgreSQL checkpointer tables, conversation storage, users, and HITL events.
POST /invoke
POST /streamGET /healthz
GET /readyz
GET /metricsGET /store/threads
GET /store/{thread_id}
POST /feedbackThe project also exposes authenticated registration/login and HITL audit endpoints.
AgentForge ships with:
FastAPI
โ
โผ
/metrics
โ
โผ
Prometheus
โ
โผ
Grafana
You can monitor:
- request rate
- 5xx error rate
- P95 latency
- traffic by endpoint
- status-code distribution
โโโโโโโโโโโโโโโโโโโโโ
โ USER โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ FASTAPI โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ INTENT ROUTER โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ SUPERVISOR โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ
โ WEB โ โ RAG โ โ GRAPH โ
โ AGENT โ โ AGENT โ โ AGENT โ
โโโโโโฌโโโโโ โโโโโโฌโโโโโ โโโโโโฌโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ MCP / TOOLS โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ HITL GATE โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ EVALUATION โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ FINAL RESPONSE โ
โโโโโโโโโโโโโโโโโโโโโ
| Layer | Technology |
|---|---|
| ๐ Backend | Python |
| โก API | FastAPI |
| ๐ง Orchestration | LangGraph |
| ๐ฅ๏ธ UI | Streamlit |
| ๐ Persistence | PostgreSQL |
| ๐ RAG | ChromaDB |
| ๐ธ๏ธ Graph | NetworkX |
| ๐ Tools | MCP |
| โก Cache | Redis / in-memory fallback |
| ๐ Monitoring | Prometheus + Grafana |
| ๐ณ Containers | Docker |
| โธ๏ธ Deployment | Kubernetes |
| ๐ CI/CD | GitHub Actions |
AgentForge/
โ
โโโ agent/ # AI orchestration + agents + tools
โโโ client/ # Python client
โโโ service/ # FastAPI service + persistence
โโโ schema/ # Request / response schemas
โโโ scripts/ # RAG ingestion
โโโ docs/ # Architecture documentation
โโโ docker/ # Container definitions
โโโ k8s/ # Kubernetes manifests
โโโ monitoring/ # Prometheus configuration
โโโ media/ # Architecture assets
โ
โโโ compose.yaml
โโโ run_service.py
โโโ run_client.py
โโโ streamlit_app.py
โโโ requirements.txt
โโโ README.md
The current repository separates orchestration, tools, local RAG, graph RAG, persistence, service APIs, monitoring, and deployment.
The repository currently includes:
- Python tests
- Docker build verification
- push/PR triggers
- version-tag releases
- Docker image publishing
- manual dispatch
These workflows are already documented in the repository.
git clone https://github.com/Roshanrameshhub/AgentForge.git
cd AgentForgepip install -r requirements.txtpython run_service.pystreamlit run streamlit_app.pydocker compose up -d --buildThe documented local stack includes FastAPI, Streamlit, Prometheus, and Grafana.
Place PDFs inside:
rag_docs/
Run:
python scripts/ingestion/ingest_local_rag_pdfs.py \
--pdf-dir rag_docs \
--resetThen ask:
local: summarize the uploaded documents
For graph-oriented documents:
graph_rag_docs/
python scripts/ingestion/ingest_graph_rag_pdfs.py \
--pdf-dir graph_rag_docs \
--resetAgentForge is evolving toward a broader autonomous AI workbench.
- LangGraph supervisor
- Multi-agent workflow
- Hybrid RAG
- Knowledge graph reasoning
- MCP tools
- Human-in-the-loop
- Persistent graph state
- Conversation persistence
- Streaming
- Monitoring
- Authentication
- Dynamic task planning
- Parallel agent execution
- Long-term memory
- Context compression
- Agent verification
- Self-correction
- Better evaluation
- Advanced retrieval
- Multimodal AI
- Realtime voice
- Computer-use workflows
- Expanded MCP ecosystem
- Agent/plugin marketplace
- Autonomous multi-step execution
The existing codebase already provides the supervisor, retrieval, HITL, persistence, MCP, and monitoring foundations on which these capabilities can evolve.
The current implementation is strong as an orchestration foundation but is still evolving.
Known limitations include:
- heuristic evaluation rather than complete factual verification
- clarification requiring a subsequent user turn
- possible routing errors for ambiguous inputs
- retrieval quality depending on ingestion, embeddings, chunking, and reranking quality
AgentForge can serve as a foundation for building:
Research Agents
Developer Copilots
Knowledge Assistants
Document Intelligence
Enterprise AI Workflows
Autonomous Task Systems
Multi-Agent Applications
The underlying goal is simple:
Don't build another chatbot. Build a system that can reason through work.
Contributions are welcome across:
- new agents
- retrieval strategies
- MCP integrations
- security
- evaluation
- observability
- agent state
- multimodal workflows
- performance optimization
AgentForge is distributed under the MIT License.
See LICENSE for the full terms.
This project is derived from an MIT-licensed open-source foundation and has been renamed and substantially extended as AgentForge. Original license and copyright notices are retained.
The orchestration layer for the next generation of AI applications.