Skip to main content

Documentation Maintenance

ProtoAgent changes quickly, so the docs are structured as a maintenance map. Update docs in the same pull request as code changes when user-visible behavior, runtime contracts, or architecture boundaries change.

Update Rules

ChangeRequired docs update
New shell commandCLI / Command Reference
New slash commandCLI / Command Reference and possibly a focused CLI page
New TUI panel or modalCLI / Fullscreen TUI
New provider or config keyCLI / Models And Config, Core / Config And Models, Reference / Environment
New runtime env varReference / Environment
New agent, tool, or capabilityCore / Agent Deck, Core / Safety And Tools
New Context Loom signal or schema fieldCore / Context Loom Internals, CLI / Context Loom In The CLI
New memory behaviorCore / State And Memory, CLI / Projects And Sessions
New lint, type-check, formatter, or contributor workflowContributing / Development Workflow, Reference / Verification
ACP implementationACP / Overview, ACP / Plan, Reference / File Map

Writing Style

Prefer:

  1. Concrete commands.
  2. Tables for command/reference material.
  3. Short source-file maps.
  4. Diagrams for data flow.
  5. Clear "current status" labels when behavior is planned but not implemented.

Avoid:

  1. Promising ACP behavior before server code exists.
  2. Describing sessions.json as model memory.
  3. Duplicating long source comments.
  4. Hiding safety boundaries behind marketing language.

Page Ownership

Each doc page should have a narrow reason to change:

Page groupOwns
Getting StartedUser setup and first successful run.
CLITerminal behavior and commands.
CorePython and ProtoLink runtime contracts.
ACPPlanned editor integration until implementation lands.
PlaygroundSample target apps only.
ReferenceFile map, environment, troubleshooting, verification.

Docusaurus Structure

PathPurpose
docs/content/Markdown docs.
docs/sidebars.jsSidebar ordering and categories.
docs/docusaurus.config.jsSite configuration.
docs/src/pages/index.jsxHomepage.
docs/src/css/custom.cssGlobal styling.
docs/static/img/banner.jpegLocal copy of the repo banner.

Before Merging Docs Changes

Run:

cd docs
npm run build

If you changed commands or runtime behavior, also run the relevant code checks:

cargo test --manifest-path cli/Cargo.toml
PYTHONPATH=core .venv/bin/python -m unittest discover core/tests