Open source coding agent with a built-in engineering process

A lead agent understands your intent, maps it into engineering tasks, and delegates to specialized workers.

$ npm i -g @magnitudedev/cli
Star us on GitHub →
Magnitude Interface
  • - Follows your intent. The process stays accountable to your goal and clarifies when it isn't clear.
  • - Less babysitting. The lead drives the process so you don't have to.
  • - Holds up on long tasks. The lead coordinates but doesn't code, so its context stays focused.
  • - Verifies everything. Plans get challenged, code gets reviewed, UI gets checked in the browser.
  • - Full model control. Balance cost, speed, and intelligence across the lead and each worker.

## How it works

A lead agent chats with you to understand your intent. It groups the task into feature, bug, or refactor, each with its own workflow. It builds a task tree, breaks the work into subtasks, and matches each one to a more specific workflow for things like research or implementation. It then delegates each task to specialized workers with focused context and toolsets.

The lead coordinates those workers through full plan / build / verify loops. The task tree updates as work unfolds and adapts as you steer it. You can jump in anytime by chatting with the lead. Otherwise, it keeps going autonomously until clarification is actually needed.

### Workers

The lead agent manages all workers on your behalf. It can message, stop, resume, or redirect them and run many in parallel.

Magnitude comes out of the box with the following workers:

  • - Explorer: for doing codebase or web research, both broad and narrow
  • - Planner: for evaluating various implementation strategies
  • - Builder: for implementing code changes directly in your files
  • - Reviewer: for strict, independent review of code changes
  • - Debugger: for root causing bugs and fixing them
  • - Browser: for verifying UI changes with a built-in browser agent

Magnitude may use none or all of these in a given session. For a quick fix in a single file, it may edit it directly. For a very in-depth change, it may use the whole team. For most tasks, it will use some combination of explorer, planner, builder, and reviewer.

How Magnitude works diagram

### Providers

Magnitude works with most major model providers out of the box, including open source and local models. You can use your ChatGPT Plus/Pro or GitHub Copilot subscription.

OpenAI
Subscription, API Key
GitHub Copilot
Subscription
Anthropic
API Key
Google Gemini
API Key
OpenRouter
API Key
Google Vertex AI
GCP Credentials
Amazon Bedrock
AWS Credentials
Vercel AI Gateway
API Key
Cerebras
API Key
MiniMax
API Key
Z.AI
API Key
Moonshot AI
API Key
LM Studio
Local
Ollama
Local
llama.cpp
Local
Other Local Models
OpenAI Compatible

See the provider docs for full provider support.

### Under the hood

There's a lot of harness engineering that makes this all possible:

  • - Robust agent lifecycle control with multiple context injection points
  • - Topic-specific reasoning traces to improve task adherence
  • - Two way communication between the lead and workers
  • - Long-lived workers that can be resumed when context is still relevant
  • - Shared workspace between the lead and workers (outside the project)
  • - Sensible permissions system for safer shell execution
  • - True model agnostic XML syntax

## Why we built this

We love AI coding and were early power users of Claude Code. But left unsupervised, it quickly turns into slop. We expected Claude Code to keep evolving to fix this, but it hasn't. It leans too far into "just let the model figure it out". Codex is similar.

Projects like Superpowers (which gives CC more skills) have gained a lot of momentum because people want agents to follow better software development practices. But in practice, the results are mixed. You often have to keep prompting the agent to actually use the skills, especially as tasks get longer.

This is because these skills are layered on top of an underlying agent primitive that wasn't built to use them consistently. So instead, we built the engineering process into the primitive itself.

$ npm i -g @magnitudedev/cli
Backed by Y Combinator