Skip to main content

Rhidoc

Rhidoc is a CLI for agentic documentation management. Rhidoc is short for rhizomatic documentation, a single body of context growing in all directions. A docs workspace managed by rhidoc can accelerate spec-driven development and eliminate the ambiguity between project requirements and source code that leads to hallucinations.

Quick start

pip install rhidoc
rhidoc init

rhidoc init creates the docs workspace structure, with instructions for agents provided by the docs themselves as well as optional skills.

Rhidoc at a Glance

Here's a snippet of rhidoc's own docs structure:

$ rhidoc tree
.rhidoc
├── 00-handbook -- Handbook
│   ├── 00-index -- Handbook
│   ├── 01-about -- About This Workspace
│   ├── 02-maintenance -- Maintenance
│   ├── 03-conventions -- Conventions
│   ├── 04-plain-language -- Plain Language
│   └── 05-controlled-vocabulary -- Controlled Vocabulary
├── 02-architecture -- Architecture
│   ├── 00-index -- Architecture
│   ├── 01-script-pipeline -- Reconciliation Architecture
│   └── 02-design-patterns -- Design Patterns
│       ├── 00-index -- Design Patterns
│       └── 01-python-for-ai -- Python for AI Agents
├── 03-product-design -- Product Design
│   ├── 00-index -- Product Design
│   ├── 01-workspace-scripts -- Workspace Scripts
│   │   ├── 00-index -- Workspace Scripts
│   │   ├── 01-workspace-scripts -- Rhidoc Docs API — Design
│   │   ├── 02-invariants -- Workspace Invariants
│   │   ├── 03-properties -- Property Catalog
│   │   └── 04-errors -- Error Catalog
│   ├── 02-cli-user-flow -- CLI User Flow

The key part is a DocRef; for example, doc03.01.03 resolves to the path .rhidoc/03-product-design/01-workspace-scripts/03-properties.md. The format is readable for humans, gives context to an LLM, and enables deterministic operations.

Doc development loop

  • Ahead of code generation, a human starts a session with a coding agent to make necessary docs.
  • The agent loads rhidoc skills and MANIFEST.md into its context, which lets it cheaply locate relevant docs.
  • The agent briefs the human on the status of relevant docs.
  • The human inputs design decisions in natural language to the agent.
  • The agent updates the docs with deterministic rhidoc commands.
  • Finally, the agent rhidoc regenerate updates MANIFEST.md for the next session.

Sidecars

Some context is highly structured and is an awkward fit in a prosaic markdown file. Rhidoc provides sidecars. You can write scripts that verify your sidecar specs. For example, you can write inventory of screens in a mobile app in doc02.01-screens, a concept inventory in doc01.03-concepts, and then a script that verifies that every concept-action has an affordance somewhere in your app. Through this, design flaws are surfaced early, and coding agents have access to verified, unambiguous context.

More information at WORKSPACE.md (WIP).

Installation

Requires Python 3.10+. Install via pip:

pip install rhidoc

Or install for development:

pip install -e .

Usage

rhidoc init              # create a new .rhidoc/ workspace
rhidoc create doc01.03   # add a doc entry
rhidoc move doc01.03 doc02.01
rhidoc regenerate        # rebuild MANIFEST.md
rhidoc tree              # print workspace structure
rhidoc ai-skill          # print full command reference for AI agents

Run rhidoc --help for the complete command list.

Tests

just test

License

AGPL-3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rhidoc-0.7.0.tar.gz (369.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rhidoc-0.7.0-py3-none-any.whl (113.4 kB view details)

Uploaded Python 3

File details

Details for the file rhidoc-0.7.0.tar.gz.

File metadata

  • Download URL: rhidoc-0.7.0.tar.gz
  • Upload date:
  • Size: 369.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for rhidoc-0.7.0.tar.gz
Algorithm Hash digest
SHA256 77060c1c500a6071106dd4001d48d6ac8386c8fde899cd76e8c9dfdc923ad809
MD5 7e3563fed9acf348d86016780e16f16d
BLAKE2b-256 cb19371677ef03be5e4b0d0ecf53ebe2128c5b4051a49c790dde2d7ed8073b84

See more details on using hashes here.

Provenance

The following attestation bundles were made for rhidoc-0.7.0.tar.gz:

Publisher: publish.yml on saxonthune/rhidoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rhidoc-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: rhidoc-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 113.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for rhidoc-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 938e5c57137f8468d53372cde310d22de1f61a7cf2c62b91ba8a620e1c2e0a4b
MD5 31490a08979e94f4140cdff57a70567a
BLAKE2b-256 93859e18961e4c0cb8e726a76dac2fb3ac2e5cfab649d576a098615d67e9fce9

See more details on using hashes here.

Provenance

The following attestation bundles were made for rhidoc-0.7.0-py3-none-any.whl:

Publisher: publish.yml on saxonthune/rhidoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page