~ / rigs / mmnto-ai / totem

mmnto-ai/totem

Rules you can enforce, state you can derive, context you can query: plain files in your repo, under whichever coding agent you use.

↗ GitHub ★ 17 Apache-2.0 updated 3d ago project Claude CodeCodexGemini CLICopilot
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~102.9k tokens
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ claude mcp add totem -- cmd /c npx -y @mmnto/mcp
$ npx degit mmnto-ai/totem/.claude ./rig-totem  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add totem -- cmd /c npx -y @mmnto/mcp
$ npx degit mmnto-ai/totem/.agents/skills/review-loop .claude/skills/review-loop
$ npx degit mmnto-ai/totem/.agents/skills/review-reply .claude/skills/review-reply
$ npx degit mmnto-ai/totem/.agents/skills/signoff .claude/skills/signoff
$ npx degit mmnto-ai/totem/.agents/skills/signon .claude/skills/signon
$ npx degit mmnto-ai/totem/.claude/skills/postmerge .claude/skills/postmerge
$ npx degit mmnto-ai/totem/.claude/skills/preflight .claude/skills/preflight
$ npx degit mmnto-ai/totem/.claude/skills/prepush .claude/skills/prepush
$ npx degit mmnto-ai/totem/.junie/skills/totem-rules .claude/skills/totem-rules
$ curl -fsSL --create-dirs -o .claude/agents/build-leg.md https://raw.githubusercontent.com/mmnto-ai/totem/main/.claude/agents/build-leg.md
$ curl -fsSL --create-dirs -o .claude/agents/explore-leg.md https://raw.githubusercontent.com/mmnto-ai/totem/main/.claude/agents/explore-leg.md
$ curl -fsSL --create-dirs -o .claude/agents/falsification-leg.md https://raw.githubusercontent.com/mmnto-ai/totem/main/.claude/agents/falsification-leg.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "node .claude/hooks/PreWriteShield.cjs"
          }
        ]
      },
      {
        "matcher": "Bash|PowerShell",
        "hooks": [
          {
            "type": "command",
            "command": "node .claude/hooks/gate-wrapper.cjs --event transport-shield --strict"
          },
          {
            "type": "command",
            "command": "node .claude/hooks/gate-wrapper.cjs --event merge-ready --pilot"
          }
        ]
      }
    ]
  }
}

MCP servers (1)

serversourceest. tokens
@mmnto/mcp · "totem" npm 2.5k

Skills (8)

Subagents (3)

build-leg
model: opus
Bounded Opus build leg for mechanical labor against a ruled spec — fixtures, mechanical variations on an exemplar, sweeps, file authoring to a verbatim contract clause. Never handed a ruling or contra
explore-leg
model: opus
Read-only-charge Opus exploration/derivation leg — censuses, sweeps, searches, state derivation across many files or repos. Returns grounded conclusions with named sources; no-edit tool grant.
falsification-leg
model: opus
Standing pre-merge falsification leg (mmnto-ai/totem-strategy:doctrine/model-tiering.md § Review legs). Dispatch on any self-authored judgment-dense diff BEFORE presenting it for merge, and again on a

Hooks (7)

eventmatcherruns
PreToolUseWrite|Editnode .claude/hooks/PreWriteShield.cjs
PreToolUseBash|PowerShellnode .claude/hooks/gate-wrapper.cjs --event transport-shield --strict
PreToolUseBash|PowerShellnode .claude/hooks/gate-wrapper.cjs --event merge-ready --pilot
SessionStart*node .claude/hooks/session-context.mjs
SessionStart*node .claude/hooks/SessionStart.cjs
PreCompact*bash .claude/hooks/pre-compact.sh
PostCompact*bash .claude/hooks/post-compact.sh

Permissions

deny (0)
—
ask (0)
—
allow (5)
Bash(npm view *)
Bash(gdlint *)
Bash(gh search *)
mcp__totem-dev__search_knowledge
mcp__totem-strategy__search_knowledge

Similar rigs

copied ✓