Quick start
Run sparse in a project folder. The first launch asks for your OpenRouter key, then opens the interactive REPL.
sparse # interactive REPLsparse run "rename getCwd" # one-shot, non-interactivesparse route "fix typo" # show the chosen route without running itsparse lead astra # pin the Lead model (planning + hard work)sparse workhorse glm-5.3-flash # pin the Workhorse (mechanical work)sparse logs # browse run journals and decision timelinessparse loop "make CI green" # generate and run a self-correcting loopIn the REPL
Section titled “In the REPL”- Type
/for commands, such as/agent,/plan,/debug,/review,/orchestrate,/lead,/workhorse,/models,/logs,/loopand/mcp. - Type
@to reference a file. /effort low|medium|high|maxsets how hard the agent works./fastskips the classifier, context gathering and validators.
Let your repo’s instructions in
Section titled “Let your repo’s instructions in”Sparse reads AGENTS.md, CLAUDE.md, .cursorrules, .cursor/rules and project .sparse rules, skills and subagents only after you trust the folder:
sparse trustSee Agent access and safety for what trust does and doesn’t protect.