AgentForge

Production-grade AI agent framework. Define business logic — the framework handles execution, memory, observability, and deployment.

npm install @ahzan-agentforge/corepip install agentforge

Execution Engine

Event-driven agent loop with planning, stepping, checkpointing, retry, and rollback.

Provider-Agnostic LLM

Swap between Anthropic, OpenAI, Gemini, and Ollama with a single config change.

Tool System

Type-safe tools with Zod validation, retry, caching, and compensating actions.

Memory Layer

Working, session, and long-term memory with PgVector embeddings.

Budget Governance

Token and cost limits with per-model cost models and warning thresholds.

Autonomy Policy

Declarative trust rules — allow, deny, or escalate tool calls at runtime.

Multi-Agent Protocol

Coordinator with handoffs, trust model, workspace, and cycle detection.

Observability

OpenTelemetry instrumentation, anomaly detection, and visual inspector.

Testing Utilities

MockLLM, TestHarness, and StepDebugger for deterministic agent testing.

MCP Compatible

Model Context Protocol client and server — expose or consume MCP tools.

Built-in Integrations

Pre-built tools for Slack, GitHub, Gmail, Stripe, Notion, Supabase, and more.

Python SDK

Full API parity with the TypeScript core — snake_case, Pydantic validation.