Samurai Agent
Prevent JS/TS regression bugs by reviewing AI code edits inside your IDE — before they break your app.

Watch the demo (YouTube) · GitHub Pages · Source
Open source under the MIT License. Install from the VS Code Marketplace or Open VSX.
What it does
- Detects AI-like edit bursts (editor + filesystem).
- Scores JS/TS regression risk locally — no model call.
- Shows an IDE warning; one click starts a focused review.
- The agent uses tools (search, git, diagnostics, sandbox) and your LLM.


Samurai does not replace Cursor or Copilot. It reviews what they write.
Bring your own key
There is no default model and no proxy.
In the Samurai Agent panel → Settings:
- Choose a provider: OpenAI, Gemini, or Anthropic.
- Type any model name that provider accepts.
- Paste your API key (stored in VS Code Secret Storage).
Nothing runs until an entry is active.
Develop
pnpm install
pnpm run compile
# Press F5 in VS Code / Cursor to launch the Extension Development Host
pnpm test -- --selectProjects unit
See CONTRIBUTING.md and ARCHITECTURE.md.
License
MIT — see LICENSE.md.
| |