Knowledge

The hanzo knowledge commands.

Also for this capability: API · CLI · MCP · SDKs

Your team's wiki and your agents' memory, searchable by meaning.

API reference →

hanzo knowledge files list

Every command takes --json for the raw response and --help for its own flags. Sign in once with hanzo auth login; the commands below use that session, and the org they act in is the one it carries.

CommandWhat it does
hanzo knowledge graphReturns the caller org's knowledge as a node/edge graph shaped for a force-directed renderer: pages, memories and synced sources as nodes; the page parent tree, the wikilinks between pages, and each source's connector provenance as edges.
hanzo knowledge importImport an Obsidian, Notion, Roam or Evernote export into the org's knowledge base
hanzo knowledge reindexRebuilds the caller org's retrieval from its documents: every passage is removed, and every page, memory and source is cut into passages and embedded again with the configured model; the lexical index is reconciled to the same documents.
hanzo knowledge searchRuns a hybrid search over the caller org's own knowledge — its wiki pages, its agent memories and everything its connectors have synced.

Connectors

CommandWhat it does
hanzo knowledge connectors callback <provider>Finishes an OAuth connection: it exchanges the provider's code for a token, seals that token in KMS, and records the connection.
hanzo knowledge connectors catalogReturns the ONE catalog of everything a caller can connect: every first-party connector and every long-tail one, in a single list sorted by provider.
hanzo knowledge connectors connect <provider>Returns the provider authorize URL the console opens to connect this org's account.
hanzo knowledge connectors listReturns every supported knowledge connector with THIS org's connection state and the REAL number of documents each has ingested into the org's store.
hanzo knowledge connectors rm <provider>Revokes a connection: it tombstones the stored credential so a later sync cannot reuse it, removes this provider's passages from the org's store, and marks the connector disconnected.
hanzo knowledge connectors sync <provider>Pulls the provider's documents for the caller's org and files them as knowledge sources, which the store's own hook then indexes — so a synced document is retrievable exactly like a hand-written page.

Files

CommandWhat it does
hanzo knowledge files createMakes an object in one of the caller's org buckets a workspace file.
hanzo knowledge files get <id>Answers one of the caller's org files: what it is, where its bytes are, and how far its ingest has got.
hanzo knowledge files graph <id>Answers one of the caller's org files' place in the org's graph: the files it links to and is linked from (a hyperlink, a citation by name), the files that name the same entities, and the entities it names.
hanzo knowledge files listAnswers the caller's org files, most recently changed first, each with its status and stage — optionally only those in one bucket, which is how Drive shows a folder's files with their index state.
hanzo knowledge files retrieveGrounds an answer in the caller's org files, table of contents first: candidate documents are found by searching their passages; a model reads their tables of contents — titles and one-line summaries — and picks the sections the answer is in; hybrid search drills into the passages of those sections; and the graph expands to the sections they link to or name the same entities as, in any file of the workspace.
hanzo knowledge files rm <id>Removes one of the caller's org files from the index — its table of contents, passages, full-text rows, mentions and links — and its record.
hanzo knowledge files searchAnswers the passages of the caller's org files that match a query, each citing its file › section › paragraph: the search behind Drive's box, and the first step an agent takes across a workspace.
hanzo knowledge files sections get <id> <section>Answers one section of one of the caller's org files: its own text, its subsections, the sections it links to or shares entities with — in this file or another — and the entities it names.
hanzo knowledge files toc <id>Answers one of the caller's org files' table of contents: every section in document order with its depth, its parent and a one-line summary.
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.