Sattva
Sattva — intent-first workflow for Claude Code

Process sized to the change. Intent first, plan as the spec, an independent check before and after the code.

S / M / L by the size of the change · Gates held by hooks, not prompts · Verify in a clean context · Plugin for Claude Code

Install View on GitHub

Formerly Keystone · MIT license

What it is

A standalone Claude Code plugin that picks the amount of process by the size of the change. A small fix is done at once and checked. A clear task goes through a short plan with risks. A task with open decisions runs the full chain: intent → plan → independent check of the plan → implement → verify in a clean context.

Process sized to the change

/sattva:start sizes every task S, M or L. A one-line fix is edited and checked at once; only a task with open decisions runs the full chain.

Intent in your words

grill asks every decision that is yours, then intent.md records them as numbered I-n lines you sign off. Facts are found by the agent; decisions stay yours.

The plan is the spec

One plan.md with risks and a check per task, every row traced to an I-n. /sattva:check reviews it in clean contexts and reports intent coverage before you approve.

Gates held by hooks

No code edits while the plan is a draft, no git push or PR until verify passes. Plain Node hooks, not prompt text the model can talk itself out of.

Independent verify

A verifier that did not write the code gives every task and I-n a line: ok, missing, wrong or not proven. A checked box is not evidence.

Security in the chain

/sattva:security audits OWASP Top 10:2025, LLM Top 10, agent/MCP config and supply chain; on L its gate sits under verify.

Resume without replaying the chat

Each stage ends in a committed file and a Next: command. Long sessions hand over to a clean one through the plan; cost is counted per stage.

Three levels

The agent proposes the level, you confirm it. Any sign of L makes the task L.

S

The diff fits in one sentence, no decisions for you, a check exists.

edit → check → report
M

One obvious approach, a few files.

/sattva:plan → Approve → /sattva:implement → /sattva:verify
L

Several decisions; data or schema; security; other teams' modules; an unclear “done”.

/sattva:intent → /sattva:plan (+ check) → Approve → new session → /sattva:implement → /sattva:verify

How it works

Sattva follows Anthropic's AI-native SDLC playbook: every stage ends in a committed file, the next one starts by reading it.

Sattva user flow mapped onto the AI-native SDLC playbook: Plan → Design → Build → Test → Deploy → Maintain
StageEnds withIn Sattva
1. Planintent.md/sattva:intent — grill asks every decision that is yours, then writes intent in your words; you accept it
2. Designfolded into the plan/sattva:plan writes requirements + design and runs /sattva:check (fresh-context analyzer + validator) before you approve
3. Buildplan.md, then the diffApprove, /clear, /sattva:implement task by task; no code while the plan is a draft (hook)
4. Testfresh-context verifier/sattva:verify runs your build/test/lint, then an independent verifier: PASS · PASS-UNPROVEN · FAIL
5. Deploymerged changegit push / gh pr create stay closed until verify passes (hook); release steps run after your yes
6. Maintainincident → new intent/sattva:fix (regression test first), or a new /sattva:intent when the finding is bigger

See it in action

An L-level task, abridged.

> /sattva:start add reminders for overdue invoices
  Level: L — several decisions are yours, touches data and notifications.
> /sattva:intent add reminders for overdue invoices
  Q1 — Who creates a reminder, the system or the user?
       Recommended: system — invoices already carry due_date (src/billing/invoice.ts:41)
  Wrote docs/sattva/2026-10-12-invoice-reminders/intent.md — I-1…I-9.
> /sattva:plan docs/sattva/2026-10-12-invoice-reminders/intent.md
  Risks: duplicate sends on retry · timezone of "overdue" · opt-out not stored yet
  Coverage: 9/9 (100%) · 2 findings. Apply? > yes
  Approve plan? > Approve
> /clear
> /sattva:implement
  Tasks 1–14: 13 done, 1 BLOCKED: staging SMTP not reachable.
> /sattva:verify
  I-1…I-9: ok 7 · not proven 2. Unrequested: none.
  Verdict: PASS-UNPROVEN → verify.md. git push stays closed until you prove it.

Install

In Claude Code:

/plugin marketplace add sattva2020/sattva-plugin
/plugin install sattva@sattva

Or from a shell:

claude plugin marketplace add sattva2020/sattva-plugin
claude plugin install sattva@sattva

Requires Claude Code 2.1.218+ and Node.js on PATH for the hooks. Full reference, commands and changelog are in the GitHub repository.