Assistants and setup

Supported tools

stacklit setup --list shows all 26 targets, including Aider, Cline, Continue, OpenCode, Roo Code, Kiro and a generic AGENTS.md. Anything else can read stacklit.json directly.

stacklit setup

stacklit setup [claude|cursor|aider]

Uses the existing stacklit.json, or generates one if none exists, then configures AI tools:

Target Detected by What it changes
claude claude on PATH or a CLAUDE.md file injects the map into CLAUDE.md, adds the stacklit server to .mcp.json
cursor a .cursor directory or .cursorrules injects the map into .cursorrules, adds .cursor/mcp.json
aider aider on PATH or .aider.conf.yml injects the map into .aider.conf.yml

With no argument it configures every detected tool and installs the post-commit hook. If no tool is detected it prints the map to stdout so you can paste it. .mcp.json is listed in this repository’s .gitignore because it is user-specific; decide for your own repo whether to commit it.

Claude Code crawl guard (opt in): stacklit setup claude --crawl-guard[=nudge|redirect|off] installs a PreToolUse hook that recognises repo-wide crawls (find ., ls -R, tree, grep -r or rg on the root, Glob **/*, a Read of a directory, generic “explore the codebase” subagent prompts). A bare --crawl-guard means nudge; pass a mode with =. nudge adds a pointer to the stacklit command. redirect denies with a reason naming the command, at most twice in a row per session and only while the index is current. off removes the hook, as does --uninstall. Supports --dry-run. Details in docs/SESSIONS.md.