Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.supermodeltools.com/llms.txt

Use this file to discover all available pages before exploring further.

Builds a high-level project summary (a “context bomb”) and writes it to stdout. Use it after Claude Code compacts its context window to re-establish understanding of your codebase structure, domains, and key files. With an API key configured (run supermodel login), restore calls the Supermodel API for an AI-powered analysis including semantic domains, external dependencies, and critical file ranking. Without an API key (or with --local), restore performs a local scan of the repository file tree and produces a simpler structural summary.

Synopsis

supermodel restore [flags]

Flags

FlagDescription
--dirProject directory (default: cwd)
--localUse local file scan instead of the Supermodel API
--max-tokensMaximum token budget for the output (default 2000)
-h, --helpHelp for restore

Examples

# Pipe into your agent (typical use)
supermodel restore

# Local-only, no API call
supermodel restore --local

# Larger budget for big repos
supermodel restore --max-tokens 4000