No paths means the current directory. Supply one directory or several
repository-relative regular files, using -- before filenames that start with a
dash. Long options accept --option=value, and short value options accept forms
such as -b8000 and -fjson.
Context and output
Option
Meaning
--budget, -b
Positive integer token budget, default 16000
--focus
Task description used in ranking
--focus-file
Favor a path or glob, repeatable
--tier
Maximum tree, sigs, skel, or full
--format, -f
markdown, json, or xml
--encoding
cl100k_base or o200k_base
--output, -o
Atomic file output, or - for stdout
--stats, -s
Statistics on stderr
--quiet, -q
Suppress notices while keeping errors visible
Discovery
Option
Meaning
--jobs, -j
0 for automatic workers, or 1 through 8
--exclude
Additional .gitignore pattern, repeatable
--max-file-size
Source byte limit, accepting integer units such as 1MiB
--include-dir
C/C++ include root, repeatable
--gitignore, --no-gitignore
Enable or disable .gitignore and .ignore
--default-excludes, --no-default-excludes
Enable or disable common and language defaults
--hidden, --no-hidden
Include or exclude hidden paths
Discovery defaults enable ignore rules, language exclusions, and hidden paths.
Symlinks are not followed, and explicit file inputs bypass discovery exclusions.
See files and exclusions for source loading boundaries.
Protection and configuration
Option
Meaning
--secrets
redact, block, or off, default redact
--secret-allow
Exempt a path from suppression and scanning, repeatable
--config
Load a selected JSON configuration file
--no-config
Disable automatic .contextcraft.json loading
Playground and help
Option
Meaning
--playground
Start a local session and open a browser
--port
Playground port, with 0 selecting an available port
--no-open
Print the session URL without opening a browser
--help, -h
Show grouped help and examples
--version, -V
Print the build version
--port and --no-open require --playground. --quiet cannot be combined with
--stats, and --config cannot be combined with --no-config.
Exit codes and streams
Code
Meaning
0
Successful generation, help, or version
1
Operational failure, including missing or unreadable inputs
2
Invalid arguments or configuration
130
Cancellation
141
Closed output pipe
Artifact bytes go to stdout unless a file is selected, while diagnostics and
statistics go to stderr. Configuration syntax and type errors include a file,
line, and column. Failed generation preserves an existing output artifact.