matcha

Simple. Efficient. Deliberate. Never twice.
Anti-bloat engineering convention for AI coding agents.

โœฆ 6 Agents โœฆ 6 Commands โœฆ 16 Rule Sets โœฆ 3 Hooks โœฆ 12 Platforms โœฆ 20 Tasks โšก Live Claude
$ curl -fsSL https://raw.githubusercontent.com/plumpslabs/matcha/main/install.sh | bash

What is matcha?

Every AI coding session starts the same: jump in, write code, realize mid-way you missed something obvious. matcha is a 6-checkpoint filter that runs before, during, and after every implementation— catching the things you'd catch yourself if you stopped to think.

The Four Tenets

01

Simple

Minimum moving parts. One function = one thing. If it feels complex, it's wrong.

02

Efficient

No filler. No dead code. Every line earns its place.

03

Deliberate

Think before you code. 5W1H check before starting. Explicit errors.

04

Never Twice

Search before you write. Reuse, don't rewrite.

The 6-Checkpoint Filter

Every implementation passes through these gates:

๐ŸŽฏ

Purpose — 5W1H

What/Why/Who/When/Where/How. Can't answer Why/How? → STOP.

๐Ÿ”Ž

Reuse

Before writing: search codebase for existing implementations. Never write what already exists.

๐Ÿ”

Stack Audit

Scan manifests, services, deps. Overlap found? → STOP. Report.

๐Ÿ› ๏ธ

Implementation

No hardcode. Explicit errors. One function. "Is there a simpler path?"

๐Ÿงน

Cleanup

Done = working AND clean. Temp files, debug code, unused imports. Decision log.

โœ…

Verify

Auto-detect + run tests, typecheck, lint. Tests fail? → STOP and fix first.

Quick Install

Three ways to get matcha on your AI coding agent:

curl → bash
Any AI agent — auto-detects 12 platforms
curl -fsSL https://raw.githubusercontent.com/plumpslabs/matcha/main/install.sh | bash
Claude Code Plugin
Claude Code marketplace
/plugin marketplace add https://github.com/plumpslabs/matcha
npm (clone)
From cloned repo
git clone https://github.com/plumpslabs/matcha.git
cd matcha && node bin/matcha.js init

See QUICKSTART.md for the full guide · install.sh

Agents

Six specialized agents, each covering a checkpoint in the matcha filter:

AgentCheckpointUse Case
@matcha-planner๐ŸŽฏ PurposePlan features through 4 checkpoints
@matcha-finder๐Ÿ”Ž ReuseHunt existing code before writing new
@matcha-auditor๐Ÿ” StackStack audit for service overlap
@matcha-reviewer๐Ÿ› ๏ธ + ๐Ÿงน + โœ…Code review + verify tests passed
@matcha-cleaner๐Ÿงน CleanupRemove temp/debug/unused code
@matcha-debugger๐ŸŽฏ → โœ…Systematic debugging

Commands

CommandDescription
/matcha:statusSession status & component availability
/matcha:why5W1H check before starting
/matcha:auditStack audit for overlaps & inefficiencies
/matcha:reviewPost-implementation review
/matcha:intensitySet level: observe / enforce / audit
/matcha:debtShow technical debt from decision logs

CLI Reference

From the cloned repository:

CommandDescription
node bin/matcha.js statusShow version, platform, components, shield status
node bin/matcha.js why5W1H interactive check (supports piped input)
node bin/matcha.js auditQuick project stack audit (manifests, CI/CD, Docker, env)
node bin/matcha.js verifyAuto-detect test framework, run tests + typecheck + lint
node bin/matcha.js initRun install.sh from the cloned repo

Benchmark CLI

Run benchmarks from the repo:

CommandDescription
npm run benchmarkCompliance scan on current project
npm run benchmark:jsonCompliance scan with JSON output
node benchmark/generate-report.jsFull 3-arm agentic benchmark + report generation
node benchmark/agentic-runner.js --simulateSimulated benchmark using default solutions (no Claude required)
node benchmark/agentic-runner.js --arm matchaSingle arm only (no Claude required)

Invoke: @matcha-reviewer or /matcha:audit · Full reference in AGENTS.md

Hooks System

matcha ships 3 lifecycle hooks that enforce philosophy deterministically—no prompt engineering, no guessing.

๐Ÿ›ก๏ธ

PreToolUse — matcha-shield.js

Blocks dangerous commands before they reach the OS: rm -rf /, git push --force, DROP DATABASE, curl | bash, shutdown, mkfs, chmod 777 and more. Also implements the 5W1H planning gate in enforce mode.

๐Ÿงน

PostToolUse — matcha-post-write.js

Automatically scans modified files after every Write/Edit for cleanup issues: empty catch blocks (critical), hardcoded credentials, debug logs, TODO/FIXME left in code. Injects additionalContext for self-correction.

โน๏ธ

Stop — matcha-stop.js

Scans git diff for real issues at session end. Reports: debug code, oversized functions, untracked files, import density. Deterministic—no LLM guesswork.

Platform Support

PlatformIntegration
Claude Code.claude/settings.json — PreToolUse + PostToolUse + Stop hooks
OpenCodetool.execute.before in matcha.mjs plugin
Qoderhooks.jsonbefore:tool_use event
Antigravity CLIgemini-extension.json — tool lifecycle

Learn more: Kuma (runtime safety) · Fennec (developer observability) · Architecture docs →

Architecture

๐Ÿง 

6 Agents

Planner · Finder · Auditor · Reviewer · Cleaner · Debugger

๐Ÿช

3 Lifecycle Hooks

PreToolUse (shield) → PostToolUse (cleanup) → Stop (tips)

๐Ÿ“

16 Rule Sets

TypeScript, Go, Python, Java, PHP, React Native + common rules

๐ŸŽฏ

12 Platforms

Claude Code · OpenCode · Cursor · Windsurf · Cline · Kiro · Qoder · Qwen · Codebuff · Antigravity · OpenClaw · agy

โš™๏ธ

3-Arm Benchmark

20 coding tasks × baseline/terse/matcha. Correctness + Adversarial + LOC metrics.

๐Ÿ›ก๏ธ

Kuma + Fennec

Kuma blocks dangerous commands. Fennec gives AI browser + terminal visibility.

Intensity Levels

LevelBehavior
observeTips only. No blocking.
enforceFull 6-checkpoint filter. Default.
auditEnforce + mandatory cleanup. Everything flagged.

Benchmark

Loading benchmark data