Skip to content

Read the result

ContextCraft varies each file's detail according to relevance and token cost. The resulting artifact includes a path listing and selected content, with framing that depends on the output format.

TierRetained detail
FULLComplete loaded source after secret protection
SKELDeclarations, structural extras, and documentation
SIGSCompact declaration outlines
TREEA path entry, when the listing budget allows

Outlines are for understanding a file's interface and shape, so they need not be executable source. Unsupported languages have TREE and FULL available, while binary, invalid UTF-8, oversized, and suppressed sensitive files remain path-only.

Limit maximum detail

Use --tier to cap the available content levels:

Shell
contextcraft . --tier sigs --budget 4000 -o interfaces.md

The cap does not force every file into that tier. Under a tight budget, files can remain TREE and the listing itself can be shortened.

Read the statistics

--stats prints the exact token total, budget, file count, project count, dependency edge count, and selected tier counts to stderr. It does not change the artifact bytes and cannot be combined with --quiet.

The reported count covers the complete serialized artifact, including paths, escaping, and framing, for the selected tokenizer. See token budgets and output formats.

Continue with choose files to control discovery, or use output schemas when integrating with a tool.