~ / rigs / smartmemory / stratum

smartmemory/stratum

State machine dispatch server for AI agent workflows. Typed YAML specs, MCP server (stratum-mcp), and Python library (stratum-py) — postconditions, retries, gates, and auditable execution traces for Claude Code and Codex.

↗ GitHub ★ 1 NOASSERTION updated today project Claude CodeCodex
share on X
ARCHETYPE
MCP Hoarder
Six or more MCP servers wired in. Every tool, always in context.
CONTEXT TAX · EVERY TURN
~22.5k tokens
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
1/5
No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ claude mcp add smartmemory-memory -e SM_DEFAULT_TENANT_ID=YOUR_SM_DEFAULT_TENANT_ID -e SM_DEFAULT_USER_ID=YOUR_SM_DEFAULT_USER_ID -- uv --directory ~/reg/my/SmartMemory/smart-memory-service run smartmemory-mcp
$ claude mcp add playwright -- npx -y @playwright/mcp@latest
$ claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem ./
$ claude mcp add memory -- npx -y @modelcontextprotocol/server-memory
$ npx degit smartmemory/stratum/app/.claude ./rig-stratum  # 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 smartmemory-memory -e SM_DEFAULT_TENANT_ID=YOUR_SM_DEFAULT_TENANT_ID -e SM_DEFAULT_USER_ID=YOUR_SM_DEFAULT_USER_ID -- uv --directory ~/reg/my/SmartMemory/smart-memory-service run smartmemory-mcp
$ claude mcp add playwright -- npx -y @playwright/mcp@latest
$ claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem ./
$ claude mcp add memory -- npx -y @modelcontextprotocol/server-memory
$ curl -fsSL --create-dirs -o .claude/agents/codex.md https://raw.githubusercontent.com/smartmemory/stratum/main/.claude/agents/codex.md

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 7,204 rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(rm -rf *)",
      "Read(**/*.pem)",
      "Bash(rm -rf /)",
      "Bash(git push --force:*)",
      "Bash(sudo *)",
      "Read(.env)",
      "Bash(rm -rf /*)",
      "Read(./.env.*)",
      "Read(~/.aws/**)",
      "Bash(git push --force*)",
      "Bash(rm -rf:*)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(sudo:*)",
      "Bash(git reset --hard*)",
      "Bash(git reset --hard:*)",
      "Read(.env.*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(rm:*)",
      "Bash(git rebase *)",
      "Bash(wget *)",
      "Bash(npm publish:*)",
      "Bash(git commit *)",
      "Bash(gh pr merge *)"
    ]
  }
}

MCP servers (6)

serversourceest. tokens
compose local / custom 2.5k
stratum local / custom 2.5k
~/reg/my/smartmemory/smart-memory-service · "smartmemory-memory"
env: SM_DEFAULT_TENANT_ID, SM_DEFAULT_USER_ID
pypi 2.5k
Playwright MCP · "playwright" npm 7.5k
Filesystem npm 4.2k
Memory (knowledge graph) · "memory" npm 2.6k

Subagents (1)

codex
model: haiku
Dispatch an implementation, fix, refactor, test, research or review task to Codex through Stratum. Use for any real code change — the main loop orchestrates and adjudicates, Codex implements. Carries

Hooks (4)

eventmatcherruns
SessionStart*~/reg/my/compose/coder-compose/scripts/session-start-hook.sh
SessionEnd*~/reg/my/compose/coder-compose/scripts/session-end-hook.sh
PostToolUseWrite|Edit|Bash|NotebookEdit~/reg/my/compose/coder-compose/scripts/agent-activity-hook.sh
PostToolUseFailureWrite|Edit|Bash|NotebookEdit|Read|Glob|Grep~/reg/my/compose/coder-compose/scripts/agent-error-hook.sh

Plugins (1)

plugin-dev@claude-plugins-official

Similar rigs

copied ✓