Skip to content

DOC

Reference

Commands cheatsheet, environment variables, file paths, model recommendations, and glossary.

Reference

Quick-access reference for ulk commands, paths, variables, and terminology.


Essential Commands Cheatsheet

Session lifecycle

CommandEffect
/ulk:bruce goDetect project state, take the most logical action
/ulk:bruce statusFull project diagnostic
/ulk:bruce nextExecute next task from docs/todo.md
/ulk:bruce fixFind and fix errors
/ulk:bruce auditCode quality audit
/ulk:bruce audit all4 parallel audits (code, perf, a11y, SEO)
/ulk:bruce reviewPre-delivery completeness review
/ulk:bruce shipPre-release checks
/ulk:bruce syncSync with Notion/Linear
/ulk:godspeedQuick project diagnostic (30s, cached 30 min)
/ulk:2b3End-of-session: lint → tests → commit → memory capture
/ulk:xavierVerify work context (account, repo, last state)
/ulk:gandalfContext health check
/ulk:gandalf statusQuick context zone assessment

Context hygiene

CommandEffect
/rewindUndo last turn, reformulate from clean state
/clearClear context (use between unrelated tasks)
/compactCompact with preservation instructions
/compact Preserve: X. Discard: Y.Targeted compact
/effort lowMinimal reasoning (mechanical tasks)
/effort mediumMost prompts — efficient default
/effort highDefault for Opus 4.8 agentic coding
/effort xhighHardest tasks + long async workflows (was Opus 4.7 default)
/effort maxRarely justified

Audits

CommandEffect
/ulk:sargeras10-axis full project audit
/ulk:ed209OWASP Top 10 security audit
/ulk:killbillCloud cost audit (Vercel, GitHub, Neon)
/ulk:blackemperorAll 4 audits in parallel, consolidated report
/ulk:perf-auditorCore Web Vitals, bundle, database
/ulk:a11y-auditorWCAG 2.1/2.2 accessibility
/ulk:seo-auditorSEO technical audit
/ulk:visionCode quality, 8 dimensions
/context-auditToken health score 0-100
/ulk:verifySpec-to-code conformance (3 dimensions × 3 severities)

Documentation

CommandEffect
/ulk:shuriGenerate/update spec.md, todo.md, CLAUDE.md, README.md
/ulk:strangeReverse-engineer spec from code
/ulk:strange mode=promptReverse-engineer prompt from AI output
/ulk:lovecraft memory captureCapture MEMORY.md → docs/_memory/
/ulk:lovecraft memory surfaceRead-only vault summary for current session
/ulk:lovecraft memory distributeInject vault into CLAUDE.md
/ulk:lovecraft memory dreamREM consolidation: dedup, normalize, archive
/ulk:agamottoReverse-engineer design from Figma URL → docs/design.md

Skills

CommandEffect
/cavemanActivate terse output mode for session
/caveman offDeactivate terse output mode
/symbols list <file>List all TypeScript/JavaScript symbols
/symbols view <file> <symbol>View one symbol body
/symbols refs <file> <symbol>Find references across codebase
/context-mode query <id>Retrieve stored verbose output
/context-mode listList N most recent stored outputs
/context-mode statsInterception rate, tokens saved
/architecture-diagramGenerate HTML+SVG architecture diagram

Deployment

CommandEffect
/ulk:deploy-vercelDeploy to Vercel
/ulk:deploy-netlifyDeploy to Netlify
/ulk:deploy-cloudflareDeploy to Cloudflare Workers/Pages
/ulk:deploy-awsDeploy to AWS
/ulk:deploy-dockerDocker build + push
/ulk:deploy-flyDeploy to Fly.io

Installation and maintenance

CommandEffect
./install.shInstall or reinstall ulk
./install.sh --dry-runSimulate without writing files
git pull && ./install.shUpgrade to latest version
ulk install --audit-onlyPre-install audit without writing to ~/.claude/
ulk cleanRemove orphan files (renamed/deleted agents)
ulk clean --dry-runList orphans without deleting
ulk skills listList declared external skills
ulk skills updateFetch/install all external skills
./framework/tools/check-tools.shCLI + skills diagnostic
node framework/cheatheet/generate-registry.cjsRegenerate registry.json + registry.md
node framework/cheatheet/generate-commands.cjsRegenerate commands/ from agents/

Managed Agents (cloud)

CommandEffect
ulk ma sargeras "<prompt>"Run sargeras as a Managed Agent
ulk ma ed209 "<prompt>"Run ed209 as a Managed Agent
ulk ma 2b3 "<prompt>"Run 2b3 as a Managed Agent
ulk install --audit-only --with-managed-agentsAudit managed agents setup

RTK (token compression)

CommandEffect
rtk proxy <cmd>Compress a command’s verbose output
rtk gainView cumulative savings
rtk gain --historyCommand history with per-command savings
rtk --versionVerify correct RTK is installed

Environment Variables

VariableDefaultEffect
CLAUDE_CODE_DISABLE_1M_CONTEXTunsetSet to 1 to disable Opus’s 1M context window (4.7/4.8), force 200K (auto-compact at ~155K)
CLAUDE_AUTOCOMPACT_PCT_OVERRIDEunsetSet to 80 to trigger compact at 80% rather than at overflow
ANTHROPIC_API_KEYrequired for Managed AgentsAnthropic API key (first-party only — not Bedrock/Vertex)
AUTO_DREAM_MIN_HOURS24Minimum hours between auto-dream cycles
AUTO_DREAM_MIN_SESSIONS5Minimum sessions between auto-dream cycles
CHROME_PORT9222Chrome DevTools Protocol port (mb CLI)
CHROME_BINsystemChrome binary path (mb CLI)

Write environment variables in ~/.claude/settings.json:

{
  "env": {
    "CLAUDE_CODE_DISABLE_1M_CONTEXT": "1",
    "CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "80"
  }
}

Do not set CLAUDE_CODE_SUBAGENT_MODEL — it overrides all agents’ model: frontmatter declarations.


Important File Paths

Repository structure

PathContents
framework/agents/All 90 agent definitions (markdown files)
framework/agents/_shared/Shared protocols, base rules, model policy
framework/agents/registry.jsonAuto-generated agent registry (count, names, phases, categories)
framework/cli/ulk CLI source (Go)
framework/packages/coreShared TypeScript library (parser, types, GitHub client)
framework/packages/status-boardProject tracking dashboard
framework/schemas/JSON schemas (todo, spec, project, dashboard)
framework/community-skills/Vendored community skills (source)
framework/tools/Shell scripts (cli-registry.json, accountability-report.sh, etc.)
framework/managed-agents/Managed Agents orchestrators and triggers
framework/cheatheet/Registry and command generator scripts
docs/guides/Technical guides (token-optimization, large-codebase, managed-agents)
docs/research/Spike documents (spikes are research notes for features)
docs/audits/Archived audit reports (sargeras, ed209)
site/Documentation site (Astro, ulk.regrets.app)

~/.claude/ (installed files)

PathContents
~/.claude/commands/Slash commands for each agent
~/.claude/skills/Installed skills (figma-, swift-, kepano-*, etc.)
~/.claude/hooks/Optional hooks (memory loop, auto-dream, accountability)
~/.claude/agent-memory-local/Persistent memory for 9 memory-enabled agents
~/.claude/state/State files (context-mode.sqlite, auto-dream.json, auto-dream.lock)
~/.claude/settings.jsonGlobal Claude Code settings
~/.claude/mcp.jsonMCP server configuration

Project-level files (in your project, committed to git)

PathContents
CLAUDE.mdProject context for Claude Code (stack, agents, doc-mode)
docs/spec.mdNarrative spec (Obsidian frontmatter + sections)
docs/todo.mdKanban board (Obsidian Kanban format)
docs/design.mdDesign source of truth (palette, typography, tokens, anti-patterns)
docs/backlog/Faru doc-mode: one card per folder (CARD.md)
docs/_memory/Cross-session knowledge vault (managed by Lovecraft)
docs/audits/Archived audit reports
.ulk-reports/Accountability trail, audit reports (gitignored)
.ulk/managed-agents/ids.jsonManaged Agent IDs (gitignored)

Model and Effort Recommendations by Task Type

Task typeRecommended modelRecommended effort
Full project audit (sargeras, ed209)Opusxhigh
Orchestration (bruce, blackemperor)Opusxhigh
Architecture decision (tony)Opusxhigh
Design system (stark, agamotto)Opusxhigh
Error fixing (robocop)Opusxhigh
Session checkpoint (2b3)Sonnethigh
Task execution (task-runner)Sonnethigh
Doc generation (shuri)Sonnethigh
Deploy (deploy-vercel, etc.)Sonnethigh
Frontend implementation (brique)Sonnethigh
Quick diagnostic (godspeed)Haikulow
Context monitoring (gandalf)Haikulow
Mechanical reformattingSonnetlow
Most day-to-day promptsSonnetmedium
Heavy planning, trade-off analysisOpusxhigh

Glossary

Agent

A markdown file in framework/agents/ with a YAML frontmatter that defines its role, model, tools, and invocation. When installed, it becomes a Claude Code slash command (/ulk:<name>). Agents have no code dependencies — they are dependency-free markdown files.

Skill

A reusable instruction set installed in ~/.claude/skills/. Skills extend Claude’s capabilities for a specific domain (Figma integration, Swift patterns, Obsidian formatting). They are invoked as slash commands and can be loaded by agents via the loads_skills: frontmatter field.

MCP (Model Context Protocol)

A standardized protocol for connecting Claude to external tools and data sources. MCP servers provide tools (read/write file systems, query databases, call APIs). In ulk, CLIs are preferred over MCPs when available (CLI = 0 tokens vs MCP tool call overhead).

Sub-agent

A Claude Code sub-session spawned by the main session to handle a specific task with a clean context. The sub-agent returns only its synthesis to the main session. Used to prevent context pollution during heavy explorations (reading many files, searching a large codebase).

Phase

A lifecycle stage in the development process. ulk defines 7 phases: define, plan, build, verify, review, ship, orchestrator. Each agent declares its phase in frontmatter. Bruce routes to agents based on the current project phase.

Context rot

Gradual degradation of response quality as the context accumulates irrelevant content — failed attempts, corrected approaches, transitional summaries, repeated information. The 5 context hygiene rules exist specifically to prevent context rot.

Faru

ulk’s default documentation mode since 2026-05-18. A kanban-native, agent-first doc format where each spec is a folder (docs/backlog/YYYY-MM-DD-TYPE-SLUG/) with a CARD.md. One card = one deliverable. The format is git-native and directly dispatched to Claude agents.

Managed Agent

A ulk agent that runs as an autonomous cloud session via the Anthropic Managed Agents API. Triggered by cron, webhook, or CLI. Runs without a local machine. 5 agents are currently ported: sargeras, ed209, lovecraft, 2b3, ci-guard.

A high-scrutiny operating mode activated by Bruce on critical signals (security finding, scope creep, context >80%, audit warning). In Banner Mode, Bruce triple-checks every routing decision against three questions: why / risks / downstream impact.

Context Manifest

A frontmatter convention that lets agents declare their token budget, loaded files, loaded skills, and MCP usage. Bruce reads these declarations before routing to prevent context overflow. Key fields: context_budget, loads_files, loads_mcps, mcp_cap_strategy.

CLAUDE.md

The project-level instruction file read by Claude Code at session start. It contains the project context, stack, agent configuration, and doc-mode. Committed to git, it is the shared source of truth for team-wide AI behavior in a project.

Auto-Dream

A background memory consolidation cycle inspired by REM sleep. Runs when ≥24 hours have passed and ≥5 sessions have occurred since the last cycle. Merges duplicates, normalizes timestamps, archives obsolete entries, rebuilds the vault index. Write sandbox restricted to docs/_memory/**. Never touches code.

RTK

Rust Token Killer — a CLI proxy that compresses verbose command outputs by 60–90%. Invoked as rtk proxy <cmd>. Included in the base ulk installation.