This release is a pre-release and may not be stable for production use.
A file-based, human-gated memory ledger for AI coding agents
Agents take notes constantly; most of those notes rot in chat logs. hongzhao gives your agent a small set of plain-text ledgers — claims, project contracts, knowledge entries — with deterministic validation and compilation. Nothing enters an agent's context until you (or a rule you wrote) say so.
Status: pre-release (v0.1). Interfaces may change before v0.1.0.
Tell your coding agent (Claude Code, Codex CLI, ZCode, ...):
Read https://github.com/cmeng-CM/hongzhao/blob/main/docs/INSTALL.md and install hongzhao for me. My client is claude_code. It will follow the agent install protocol and report a pass/fail table. Prefer typing yourself? Manual install is three commands.
pip install hongzhao # or: uv tool install hongzhao hongzhao init ~/my-memory --example hongzhao --root ~/my-memory compile hongzhao --root ~/my-memory validate You now have a green demo kit: raw notes, a compiled index, and a rendered bootstrap. Explore ~/my-memory/compiled/ — every view is plain markdown.
hongzhao --root ~/my-memory validate # schema + containment checks hongzhao --root ~/my-memory compile # rebuild derived views hongzhao --root ~/my-memory doctor # client / blocks / output health Agent installation block Paste this into your agent client's instruction file (or let bridge-install manage the block for you — see docs/clients.md):
# hongzhao memory routing memory_root: ~/my-memory Read compiled/bootstrap.md first; route tasks via compiled/effective-memory/index.md. Never read raw/ except for evidence tracing. Run `hongzhao --root ~/my-memory compile` after writing records; treat compile errors as stop signals. How it works raw/ (claims, dated truth) ──compile──▶ compiled/ (effective views) registry/ + project contracts ──compile──▶ render/ (bootstrap, client blocks) knowledge registry ──compile──▶ knowledge map Five explicit relations between claims (supersedes, covers, derives, conflicts, resolves) replace "newest wins". See docs/claim-schema.md and the diagrams in docs/design.md.
Approaches we deliberately did not take (and what to use instead):
Full documentation: docs/. Security model: SECURITY.md. Contributing (DCO required): CONTRIBUTING.md. Beta program: docs/beta.md.
License: Apache-2.0 — see LICENSE. 中文简介:README.zh-CN.md。
All 2 files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




