--code to search code content instead.
entire checkpoint search is an equivalent alias. In CLI versions 0.9.0 and earlier, entire search was hidden from entire --help but remained runnable.
By default, search is scoped to the current repository. Use --repo, --all-repos, or repo:* to change the scope.
Run without arguments to open interactive search. Use --json for machine-readable output.
Examples
Flags
Inline Filters
CLI queries also support inline filters:author:NAMEdate:week|monthbranch:NAMErepo:OWNER/NAMErepo:*
Code Search
Use--code to search code content instead of checkpoints, commits, and sessions. Results are grouped under a repo:path heading with line-numbered matches beneath it.
--case-sensitive, but the search backend does not yet apply it. In --code mode, repo: is the only supported inline filter. The author:, branch:, and date: tokens are treated as literal query text, and the --author, --branch, --date, and --page flags do not apply.
In interactive search, press 4 to switch to the Code tab.
Related Guides
Search
Compare semantic and keyword search with literal code search.
Search in the CLI
Use both search modes from your terminal.
Search Past Work and Code
Practice search with a guided tutorial.