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.
ARCHETYPE
MCP Hoarder
Six or more MCP servers wired in. Every tool, always in context.
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)
| server | source | est. 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)
| event | matcher | runs |
|---|---|---|
| SessionStart | * | ~/reg/my/compose/coder-compose/scripts/session-start-hook.sh |
| SessionEnd | * | ~/reg/my/compose/coder-compose/scripts/session-end-hook.sh |
| PostToolUse | Write|Edit|Bash|NotebookEdit | ~/reg/my/compose/coder-compose/scripts/agent-activity-hook.sh |
| PostToolUseFailure | Write|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
cassler/awesome-claude-code-setup
Give Claude the super powers it deserves with this power user collection of bash scripts and slash commands
Pragmatist 31.8k tok ·
msbaek/dotfiles
—
Pragmatist 37.3k tok ·
nandhasuhendra/dotfiles
My configuration files that I use on several applications and Linux desktops.
MCP Hoarder 19.1k tok ·
ifitsmanu/claude-template
The best Claude Code setup template. 14 commands, 5 agents, 6 MCP servers, auto-formatting hooks. Based on Boris Cherny's workflow.
Fort Knox 17.2k tok ·