{"name":"code","stage":"ga","description":"Package code is search and symbols across your repos, for you and your agents.","operations":[{"operationId":"get_code_ask","method":"GET","href":"/v1/code/ask","summary":"Answers a question about the caller org's code with a CITED answer: retrieval packs grounding context, then the synthesizer writes the answer over exactly those spans, which come back alongside it."},{"operationId":"post_code_ask","method":"POST","href":"/v1/code/ask","summary":"Answers a question about the caller org's code with a CITED answer, taking the question from the request BODY, for a question too long or too awkward to put in a URL."},{"operationId":"post_code_context","method":"POST","href":"/v1/code/context","summary":"Packs the most relevant code for a query into a token budget — THE primitive for a coding agent that has to decide what to put in a prompt."},{"operationId":"get_code_file","method":"GET","href":"/v1/code/file","summary":"Returns the INDEXED content of one file — read_file over the chunks the search tiers hold, for pulling up code an agent just found."},{"operationId":"post_code_index","method":"POST","href":"/v1/code/index","summary":"(re)indexes a repository for the caller's org, incrementally: files whose content hash is unchanged are skipped, so re-sending a whole tree is cheap."},{"operationId":"get_code_search","method":"GET","href":"/v1/code/search","summary":"Finds code in the caller org's index across three orthogonal retrieval tiers fused by reciprocal-rank fusion: lexical (FTS5 trigram over code-tokenized text), symbolic (real definition and reference edges), and semantic (embedding cosine over AST-boundary chunks)."},{"operationId":"get_code_tree","method":"GET","href":"/v1/code/tree","summary":"Returns one repository's file structure with a per-file symbol count — get_repo_structure over the org's own index, with no git checkout involved."}],"_links":{"describedby":{"href":"/v1/openapi.json?capability=code"},"self":{"href":"/v1/code"},"up":{"href":"/v1"}}}