@inngest/agent-kit framework for the primary coding agent network, and the OpenAI SDK directly for vision-based design spec extraction.
Required API keys
| Variable | Description |
|---|---|
OPENAI_API_KEY | Required for all OpenAI model calls |
ANTHROPIC_API_KEY | Available for alternative model routing |
GEMINI_API_KEY | Available for alternative model routing |
ForgeAI is built on
@inngest/agent-kit, which abstracts model calls through a unified agent and network API. You can swap models per agent without changing tool or network logic.Models in use
- Coding agent (GPT-5.2)
- Design spec extraction (GPT-4o)
- Naming agent (GPT-5.2)
The primary agent that generates, reads, and updates project files inside the E2B sandbox.The agent runs inside a
inngest/functions.ts
createNetwork with maxIter: 20. The network router exits when the agent sets a <task_summary> in its response, which is detected via the onResponse lifecycle hook.inngest/functions.ts
Agent network state
The coding agent network tracks two pieces of shared state across iterations:inngest/functions.ts
Agent-kit primitives used
| Primitive | Purpose |
|---|---|
createAgent | Define an agent with a model, system prompt, and tools |
createNetwork | Compose agents into a routed loop with shared state |
createTool | Define a typed tool with a Zod parameter schema and async handler |
createState | Initialise typed state shared across network iterations |
Related pages
Inngest background jobs
How the agent network runs as a durable background function.
Design to code
How uploaded screenshots are converted to design specs and forwarded to the agent.