CLICode
Code
7 `hanzo` commands for Code, each calling one operation on api.hanzo.ai.
Package code is search and symbols across your repos, for you and your agents.
7 commands · API reference →
| Command | Calls | What it does |
|---|---|---|
hanzo code ask get | GET /v1/code/ask | Answers a question about the caller org's code with a CITED answer: retrieval packs grounding context, then the… |
hanzo code ask create | POST /v1/code/ask | Is askGet with the question in the request BODY, for a question too long or too awkward to put in a URL. |
hanzo code context | POST /v1/code/context | Packs the most relevant code for a query into a token budget — THE primitive for a coding agent that has to decide what… |
hanzo code file | GET /v1/code/file | Returns the INDEXED content of one file — read_file over the chunks the search tiers hold, for pulling up code an agent… |
hanzo code index | POST /v1/code/index | (re)indexes a repository for the caller's org, incrementally: files whose content hash is unchanged are skipped, so… |
hanzo code search | GET /v1/code/search | Finds code in the caller org's index across three orthogonal retrieval tiers fused by reciprocal-rank fusion: lexical… |
hanzo code tree | GET /v1/code/tree | Returns one repository's file structure with a per-file symbol count — get_repo_structure over the org's own index,… |
How is this guide?