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.

Extracts the minimal graph context relevant to the given file: direct imports, functions defined, callers, and (optionally) type declarations. Output is structured markdown for direct injection into LLM context windows, keeping token usage minimal while preserving semantic relevance. Use --output json for structured consumption by tools. Aliases: ctx, context

Synopsis

supermodel focus <file> [flags]

Flags

FlagDescription
--depthImport traversal depth (default 1)
--typesInclude type/class declarations
--forceRe-analyze even if cache is fresh
-o, --outputOutput format: markdown | json (default markdown)
-h, --helpHelp for focus

Examples

supermodel focus internal/api/client.go

# Walk imports two hops deep, include types
supermodel focus internal/api/client.go --depth 2 --types

# JSON for tool consumption
supermodel focus internal/api/client.go -o json