Hanzo
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 →

CommandCallsWhat it does
hanzo code ask getGET /v1/code/askAnswers a question about the caller org's code with a CITED answer: retrieval packs grounding context, then the…
hanzo code ask createPOST /v1/code/askIs askGet with the question in the request BODY, for a question too long or too awkward to put in a URL.
hanzo code contextPOST /v1/code/contextPacks the most relevant code for a query into a token budget — THE primitive for a coding agent that has to decide what…
hanzo code fileGET /v1/code/fileReturns the INDEXED content of one file — read_file over the chunks the search tiers hold, for pulling up code an agent…
hanzo code indexPOST /v1/code/index(re)indexes a repository for the caller's org, incrementally: files whose content hash is unchanged are skipped, so…
hanzo code searchGET /v1/code/searchFinds code in the caller org's index across three orthogonal retrieval tiers fused by reciprocal-rank fusion: lexical…
hanzo code treeGET /v1/code/treeReturns one repository's file structure with a per-file symbol count — get_repo_structure over the org's own index,…

How is this guide?