captain-search-cli
Use Captain Search from the terminal when the user needs exact csearch or captain-search commands, checkout-based CLI usage, future PyPI-installed CLI usage, smoke tests, provider selection, repo-scoped code search, webpage fetches, JSON output, or shell-friendly troubleshooting. Prefer this skill for direct CLI workflows from a checkout or installed package. Do not use it for MCP client or server setup unless the user explicitly asks for MCP installation.
Captain Search CLI
Use this skill for direct terminal work with Captain Search.
Resolve the entrypoint
- If you are inside a checkout of this repository, prefer
uv run csearch .... - If the project virtualenv is already active and
csearchresolves,csearch ...is acceptable. - Outside the repo root, use
uv run --directory /path/to/captain-search csearch .... - Only use published-package entrypoints such as
uvx --from captain-search csearch ...oruv tool install captain-searchafter a public package release exists. - If the user wants the public-install path or asks why
uvx csearchis wrong, explain thatcsearchis a script exposed by thecaptain-searchpackage, so the correct one-off form isuvx --from captain-search csearch .... - If the user wants a reusable agent install from this checkout, use
uv run csearch skill install --scope user. After a public release exists, preferuvx --from captain-search csearch skill install.
Pick the workflow
- For first-run install, auth, smoke tests, or a recommended setup path, read
references/onboarding.md. - For exact command construction, formats, and subcommand rules, read
references/commands.md. - For provider trouble, empty results, or rate limits, run
uv run csearch doctorfrom the checkout before assuming a backend is broken.
Non-negotiable CLI rules
- Use the short subcommands:
web,code,fetch,doctor,skill,mcp,version. - Do not use legacy
search-web,search-code,fetch-webpage, orserveexamples. - Bare
csearchorcaptain-searchprints help and exits0. Usemcpexplicitly for server mode. - Use
web --allfor breadth. Do not use--provider multior--provider all. web,code, andfetchall support--format json.- Treat exit code
0as top-level success only. Provider-level warnings or partial failures can still appear in the output. - Keep install guidance honest: do not present
uv tool install captain-searchoruvx --from captain-search ...as currently available unless the package has actually been published.
Route quickly
- Live web results or provider fan-out: use
web. - Repository-aware code lookup: use
code. - HTML, GitHub blob URLs, PDFs, or docs extraction: use
fetch. - Provider health and cooldown inspection: use
doctor. - MCP server launch: use
mcp.
Minimal examples
uv run csearch skill install --scope user
uv run csearch web "openai api" --max-results 5
uv run csearch code "search_web" --repo mnm-matin/captain-search --format json
uv run csearch fetch https://example.com --format json
uv run csearch doctor
uv run csearch mcp --transport stdio