MAGI System for VS Code
Three Claude agents deliberate on your code, challenge each other and vote. They are MELCHIOR-1 (technical), BALTHASAR-2 (operational) and CASPER-3 (strategic). You get a short, reasoned decision with the dissent kept. Nothing is written to your files until you approve it.
Requirements
- A Claude subscription with Claude Code 2.1.280 or newer, installed and logged in. Run
claude update if claude --version is older.
- MAGI runs Claude Code headless with your login. It never reads your credentials.
The MAGI board
- Red: the agent is idle.
- Blue, breathing: the agent is thinking. A bright rim marks the agent that is active right now.
- Green: the agent has voted. Its vote is shown inside: 承認 APPROVE, 否決 REJECT, 棄権 ABSTAIN.
While the agents answer each other, the link between the two that are talking lights up. The sounds are synthesized in the style of a 90s terminal, and you can switch them off.
Commands
Right-click → MAGI, or use the Command Palette:
| Command |
Who answers |
Result |
| Explain Code |
MELCHIOR |
explanation in a Markdown tab |
| Explain Error |
MELCHIOR |
root cause and fix for the diagnostic at the cursor |
| Debug This Code |
all three (quick) |
likely bugs and fixes |
| Review Selection |
full deliberation |
merge / don't merge, with votes and dissent |
| Refactor Selection |
MELCHIOR |
proposed change, shown as a diff to approve |
| Generate Documentation |
CASPER |
proposed change, shown as a diff to approve |
| Generate Tests |
MELCHIOR |
new test file, shown as a diff to approve |
| Analyze Architecture / Repository |
full deliberation |
report on structure, dependencies, security |
| Ask MAGI |
full deliberation |
decision with votes |
| Compare Solutions |
full deliberation |
chosen option, and when each alternative would win |
Implement decision
After an APPROVED deliberation, press 実行 IMPLEMENT DECISION. MELCHIOR reads your project (read-only) and proposes the changes. You review each file as a diff and choose Apply or Reject.
A file that changed since MELCHIOR read it is never overwritten. Paths outside the workspace, .git and node_modules are refused.
Also included
- Skills: MAGI finds your Claude Code skills, including the workspace's
.claude/skills. Workspace skills stay untrusted until you review them.
- Plugins and tools: MAGI finds the MCP servers you have configured, but none runs until you approve it. Commands and test runs ask you before every single run.
- Memory: each workspace keeps its decisions and facts in
.magi/magi.db. Add .magi/ to your .gitignore.
- Editable agents: you can edit each agent's personality (Markdown, with versions), its reasoning sliders, model and effort.
Privacy and safety
- Your code is sent to Claude only through your own Claude Code login.
- Tool calls that run commands are shown to you and need your approval each time.
Credits
MAGI System is a fan homage to the MAGI supercomputer from Neon Genesis Evangelion. It is not affiliated with or endorsed by Khara or Gainax. All artwork and sounds are original.