Skip to main content
Apache 2.0 · Open source · Works with any model by mubaidr.js.org

Turn AI coding into an engineering process.

A coordinated team of specialist agents that classify, plan, implement, review, and learn from every task. TDD by default, independent code review on every change, scoped handoffs that cut token cost, and resumable plans you can come back to. One command installs it into any project.
agent pipeline5 stages
  1. 1
    Classifygem-orchestrator

    task route · context file list

  2. 2
    Plangem-planner

    plan.yaml · acceptance criteria

  3. 3
    Implementgem-implementer

    green tests · reviewed diff

  4. 4
    Reviewgem-reviewer

    review verdict · security audit

  5. 5
    Learngem-skill-creator

    SKILL.md skill file

You know what?
These are just agent definitions and system instructions - nothing complex, nothing hidden, no magic.
How it works

One pipeline, five stages.

Every task flows through the same pipeline. Each stage has one job, a defined output, and a scoped handoff to the next - no full-context dumps.
01

Classify

gem-orchestrator

Reads the task, assigns complexity and risk, then routes to the right specialist. No repo inspection - uses only the request and supplied evidence.

Output: task route · context file list

02

Plan

gem-planner

Builds an ordered wave plan with scoped handoffs and acceptance criteria. MEDIUM/HIGH only - TRIVIAL/LOW goes straight to execution.

Output: plan.yaml · acceptance criteria

03

Implement

gem-implementer

TDD: write a failing test first, then minimal code, then refactor. One-line reason per decision. Bug fixes route through Debugger first.

Output: green tests · reviewed diff

04

Review

gem-reviewer

Independent quality, security, and contract review. Three axes - mode, target, scope - matched to risk. Blocks on broken tests or unverified claims.

Output: review verdict · security audit

05

Learn

gem-skill-creator

Promotes findings with confidence ≥ 0.95 into repo memory. Reusable patterns become SKILL.md playbooks for the next session.

Output: SKILL.md skill file

What you get

Engineering discipline, enforced.

The agents don't suggest good practice - they run it. These are the gates every session passes through.
TDD by default
Every implementation starts with a failing test. Code is written only to make that test pass, then refactored. No test, no code.
Code review on every change
A separate reviewer agent checks quality, security, and contracts before anything merges. Broken tests or unverified claims block the change.
Security audits
Targeted checks for hardcoded secrets, unsafe deserialization, missing input validation, and data-flow issues. Security findings block until resolved.
Cost-aware model routing
Planner, Debugger, and Reviewer use premium models; Implementer, Researcher, and testers use explore models. Scoped handoffs cut tokens by ~80%.
Resumable plans
Every MEDIUM/HIGH task gets a persistent plan_id. Close the session and resume from the last milestone - no context rebuild.
Works with your tools
One workflow across Copilot, Claude Code, Cursor, Codex, Gemini, Windsurf, and OpenCode. Same plan.yaml, same agent behavior everywhere.
Anti-slop directives
Agents refuse dead buttons, buzzwords, and template filler. Every line of code must do something concrete - verified by review.
Research behind Gem Team

Every feature is backed by evidence.

Design decisions cite verifiable research, provider docs, or published benchmarks - no fabricated statistics.
Prompt caching cuts API cost
Cache read ≈ 0.1× input (90% discount) across OpenAI, Anthropic, and Google. Scoped handoffs reuse context prefixes across turns instead of re-sending full history. - OpenAI · Anthropic · Google caching docs
Risk-gated specialist allocation
Multi-agent overhead can be 60× latency; MAS benefits diminish as LLM capability improves. Specialists activate only when uncertainty justifies coordination cost. - ProcPilot (IEEE IEMCON 2026) · MAFBench (arXiv:2602.03128)
TDD improves AI code generation
Test-driven interactive generation improved pass@1 by +45.97% across 4 LLMs and 2 Python datasets. Every implementation starts with a failing test. - TiCoder (IEEE TSE 2024)
Model routing lowers cost
RouteLLM: >2× cost reduction without quality loss; UCCI: 31% cost reduction (95% CI [27%, 35%]). Premium for planning/review, explore for execution. - RouteLLM (ICLR 2025) · UCCI (arXiv:2605.18796)
Structured hand-offs beat narrative
JSON hand-off extraction achieves 0.96 feasibility vs narrative summarization at 0.48. Evidence travels by reference via typed artifact paths. - State Compression (arXiv:2607.18265)
Prefix caching reduces cost 41–80%
Cache-aware payload ordering and cluster-contiguous scheduling keep shared context warm across multi-agent turns. - Don't Break the Cache (arXiv:2601.06007)
Common first tasks

What to try in your first session.

Pick one and run it through the pipeline.
Write a plan for your task
Describe what you want to build and get a plan.yaml with milestones, acceptance criteria, and a scope cut before any code is written.
Run TDD on a feature
Start with a failing test, write code to make it pass, then refactor. No test, no code.
Review a change before it merges
Submit a diff for an independent quality, security, and contract check. Broken tests block the change.
Save a reusable skill
Turn a successful session into a SKILL.md so the next session starts from proven patterns instead of blank files.
Bring your own tools

Works with the tools you already use.

Install once, use from any of these.
GitHub Copilot
Claude Code
Cursor
OpenCode
Codex CLI
Gemini CLI
Windsurf

Install the team in one command.

APM installs the agents and skills into your project. Open source, Apache 2.0, works with any model.
curl -sSL https://aka.ms/apm-unix | sh
apm install mubaidr/gem-team