By sankalpasawa
Sutra — Operating system for building with AI. Input routing, depth estimation, writing style, output trace. Opinionated governance for Claude Code sessions.
npx claudepluginhub sankalpasawa/sutrav2.64.0 (2026-08-02) - Sutra UI: local governance panel (FastAPI + Electron shell) from PR #85, shipped with security hardening. Websocket handshakes on /ws/chat and /ws/term now reject non-loopback Origins before accept() and TrustedHostMiddleware blocks DNS rebinding; agent-permission modes that auto-approve (acceptEdits, bypassPermissions) require SUTRA_UI_ALLOW_UNSAFE_PERM_MODES=1 and are clamped at the point of use, not only where they are written; agent workdir is confined to $HOME (SUTRA_UI_WORKDIR_ROOT to widen); openExternal restricted to http(s); npx --no-install; fixture_seed refuses the live registry. 14 new guard tests; 146 tests green. + v2.40.0 (2026-07-20) - D63: per-turn governance stack HARD fleet-wide. New Stop floor per-turn-hard-gate.sh floors Input Routing + Depth on no-tool turns; codex-consult-gate.sh at Depth>=3 degrades to pass without the codex binary; /core:start contract expanded 4->9 blocks, gated behind onboarding so enforcement never precedes the contract. + v2.39.20 (2026-07-08) - Testlify field-incident fix: blueprint-check.sh HARD-blocked Write even after a correct prose BLUEPRINT, because the hook reads ONLY the .claude/blueprint-registered marker and no fleet-visible surface said to write it — the model's only advertised exit (BLUEPRINT_ACK=1, unusable on Write calls) taught a Bash bypass of the gate. per-turn-discipline-prompt.sh now states the marker contract (write the marker via the Write tool with HAS_OUTPUT/HAS_VERIFY/HAS_PER_STEP_VERIFY) before the first Edit/Write of each turn, and blueprint-check.sh gains an out-of-repo guard: absolute paths outside $CLAUDE_PROJECT_DIR (e.g. ~/.claude/** memory files, sibling repos) are out of scope — they could never match any whitelist and were blocked by accident. Inside-repo enforcement unchanged; tests 6/6. (#78 depth-gate + error-text split ships separately; A4 text-validation via #73.) + v2.39.19 (2026-07-06) - #63 fix: /core:start now DOCUMENTS the H-Sutra header contract it enforces — the header format (DIRECTION/VERB/TIMING/CHANNEL/REV/RISK) is written into CLAUDE.md as its own section, closing the invisible-rule gap that caused repeated 'redo with the header' blocks. After update, re-run /core:start to regenerate the block. (A4 block-text validation ships separately via #73.) + v2.39.18 (2026-06-30) - loop-budget-guard per-turn reset + agent-orchestration exemption: fixes the session-wide 'tool-budget guard hard-stopped further file reads' deadlock. The guard's call counter was cumulative-per-session and never reset, so a long working session crossed the 250 ceiling on ordinary Bash/Read/Write calls and hard-stopped itself. New loopguard-turn-reset.sh (UserPromptSubmit) truncates the counter at the start of each real user turn (budget is now per-turn; a 250-call runaway in one turn still blocks; synthetic turns skipped). Agent/Task/Workflow dispatches are exempt (a fan-out is not a loop). (A4 block-text validation lands separately via PR #73.) Operating system for building with AI. See CHANGELOG.md.
Sutra Native v1.4.0 — STANDALONE runtime-active founder workflow engine for Claude Code. v1.4.0 (2026-05-06, D49) makes Native fully standalone — no core@sutra dependency at runtime. Native ships its own H-Sutra producer hook (hooks/per-turn-h-sutra.sh) + vendored classifier (scripts/classify.sh) + shared lib (lib/h-sutra-classify-and-write.sh, sync'd from canonical at sutra/marketplace/plugin/lib/). Co-installed with core@sutra: arbitration intrinsic to lib (first producer wins per-turn lock). Single env break-glass SUTRA_HSUTRA_FORCE_DISABLE=1 (loud-logged); no file toggles. Codex round-1..5 design review folds applied (threads 019dfc31..019dfc52). + v1.3.0 (2026-05-04) shipped W1-W6: W1 per-step timeout_ms + invoke_host_llm CLI + create-trigger CLI; W2 approval-gate primitive (3 events + step.requires_approval + resumeApproved); W3 workflow status/cancel + tenant list; W4 on_failure pause/rollback/escalate; W5 PNC predicate parser + commitment_broken event; W6 cutover validate + dry-run. + v1.2.x (2026-05-04) host-LLM wire (LiteExecutor.invoke_host_llm dispatches via hostLLMActivity claude --bare / codex exec) + Asawa replica via Native primitives ($HOME/.sutra-native-asawa-replica/, 21D+8C+6W+6T). SessionStart hook auto-activates the engine; founder input flows UserPromptSubmit hook (Native's own per-turn-h-sutra.sh OR core's per-turn-discipline-prompt.sh — arbitrated) → H-Sutra log → HSutraConnector → Router (deterministic + optional LLM fallback) → LiteExecutor (step_graph runner) → RendererRegistry (8 default terminal renderers) → SUCCESS Execution. Ships compiled dist/ + bin/sutra-native CLI + library exports (@sutra/native main/exports/types) + D3 starter kit + 1207 contract+integration tests + SBOMs. Standalone install: native@sutra alone produces JSONL + tails it; no core@sutra required.
7-day visitors to each marketplace page
Claude Code gives you a brilliant agent. Sutra makes it a Chief of Staff: governance, memory, per-turn discipline, and a fleet feedback loop — so one founder can run many companies through the same operating system, and every company running it makes the canon better for all of them.
curl -fsSL https://sankalpasawa.github.io/sutra/install.sh | bash
Then in any project: cd your/project && claude → /core:start.
The story, pillars, and hardstops: sutra website.
Sutra also ships a macOS desktop app — the placement registry (departments, charters,
placements) with a Claude chat panel, terminal, git diff and file editor beside it. It
drives your local claude CLI, so it bills as your existing subscription, never the
API.
cd marketplace/plugin/sutra-ui && ./install.sh
open -a Sutra
The installer builds a real Electron app at /Applications/Sutra.app (it runs
npm install for you on first run) and a sutra-ui CLI that serves on a free port.
Re-run ./install.sh to update; ./install.sh --uninstall removes both.
macOS only today, and it needs the claude CLI already logged in. Full details —
permission modes, the workdir picker, the gated editor, what each pane reads —
are in marketplace/plugin/sutra-ui/README.md.
Native is Sutra rebuilt as a real engine — deterministic workflows and the Work-Atom primitive — instead of prompt discipline inside Claude Code. It is the productization of everything the plugin has proven in production.
Canon note: Native runtime details are canonical in
os/engines/NATIVE-ENGINE.mdand the ADRs inos/decisions/. If anything in this README conflicts with those, the canon docs win. Orientation index:os/native/README.md.
The question everyone asks — answered by behavior, not title.
The full question-by-question ledger — strategic, commercial, tactical, and the honest OPEN items — lives in CLARITY.md.
| Path | What it is |
|---|---|
marketplace/plugin/ | The shipping Sutra plugin (skills, hooks, governance) |
marketplace/plugin/sutra-ui/ | The macOS desktop app — registry, chat, terminal, git, editor |
os/engines/NATIVE-ENGINE.md | Native's canonical charter (source of truth) |
os/decisions/ | ADRs — decision rationale of record |
os/native/ | Native canon, one part-file per concern (index) |
os/charters/ | Cross-cutting charters (tokens, speed, permissions) |
website/ | The sutra-os story page |
CLARITY.md | Pitch ledger: every "what are you doing?" question, answered or OPEN |
CATALOG.md · VISION.md · PRODUCT-VISION.md | Product vision + typed catalog |
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.