Docs and rules for use by humans and LLMs/agents.
Any filenames like @docs/general/agent-rules/python-rules.md are paths from the root of this repository.
All project and development documentation is organized in docs/, which follow the
Speculate project structure:
development.md—Environment setup and basic developer workflows (building, formatting, linting, testing, committing, etc.)
Always read development.md first!
Other docs give background but it includes essential project developer docs.
General rules that apply to all projects:
-
@docs/general/agent-rules/—General rules for development best practices (general, pre-commit, TypeScript, Convex)
-
@docs/general/agent-guidelines/—Guidelines and notes on development practices
-
@docs/general/agent-setup/—Setup guides for tools (GitHub CLI, beads, etc.)
Project-specific specifications, architecture, and research docs:
-
@docs/project/specs/—Change specifications for features and bugfixes:
-
active/—Currently in-progress specifications -
done/—Completed specifications (historic) -
future/—Planned specifications -
paused/—Temporarily paused specifications -
Incremental bead coordination and native comments sequences stabilization, native storage, Git-only transport, linked Linear conversation, and portable workers with separate release and recovery gates.
-
Decision beads and review state adds
review: pending(an outcome awaiting sign-off that releases the work it blocks), a single kind registry, and the planned decision kind with scoped agent decision autonomy. -
PR review lifecycle and sub-agent delegation defines the review-state contract and request vocabulary, policy grants in
AGENTS.mdwithtbd policy, thesetup-tbdprocess, model tiers and generated tier agent definitions, and the delegation procedure, with a final list of documentation updates.
-
-
@docs/project/architecture/—System design references and long-lived architecture docs (templates and output go here)
-
Candidate native comment record architecture documents the dormant internal record/storage and inventory/transition foundations and a proposed future f10 activation boundary. Current and freshly initialized repositories remain on f08; no native-comment command, public package surface, active runtime caller, or activation path is available.
-
On-disk format versioning defines the compatibility and migration contract: f08 by default, explicit f09 activation for open-valued bead kinds, and the separate requirements for any future f10 native-comment activation. It also defines the generated integration format (f100 and up) stamped into agent surfaces, which is versioned separately from the repository format.
-
-
@docs/project/research/—Research notes and technical investigations
-
Bead watching and cross-agent coordination includes the current source review, candidate designs, and a reconciliation map of earlier plans and research. Superseded research remains under
research/archive/with successor links; distinct unfinished plans retain their own scope and owners. -
Sub-agents in Claude Code and Codex collects sub-agent mechanics, vendor guidance from Anthropic and OpenAI, and orchestration practice, backing the review lifecycle and delegation plan. It absorbed the archived February 2026 Claude Code sub-agents brief.
-
In addition to these repository docs, tbd provides managed documentation via the
tbd docs group and per-kind readers:
tbd design—Read the packaged main design specification, including the current f08 boundary, candidate native-comment model, agent policy grants (settable preferences inAGENTS.md: the four-valuegithub-mergeladder and independentpr-review-requirements), and the PR review lifecycle (lettered reviews, dispositions, merge gate)tbd docs—Status overview of managed docs;tbd docs listshows every doc across kinds with[forked]/[customized]/[local]markerstbd docs show <name>—Read any doc by name;tbd docs show tbd-docsis the CLI manual (aliastbd docs manual)tbd shortcut <name>/tbd guidelines <name>/tbd template <name>—Per-kind readers (with--list)tbd docs sync—Refresh the gitignored.tbd/docs/cache (also run by setup)
tbd docs fork <name> (or --all) copies managed docs into a visible, git-tracked
docs/tbd/ folder; tbd then serves your copies everywhere it served the upstream ones.
tbd docs update three-way merges upstream changes into forked copies after an upgrade;
tbd docs status shows each doc’s state.
See “Managing Docs” in tbd docs show tbd-docs for the full model.
You can register external documentation from any URL (including GitHub blob URLs):
tbd guidelines --add=<url> --name=<name>
tbd shortcut --add=<url> --name=<name>
tbd template --add=<url> --name=<name>GitHub blob URLs are automatically converted to raw URLs.
If direct fetch returns HTTP 403, the system falls back to gh api for authenticated
access.
User-added shortcuts are stored in shortcuts/custom/ to keep them separate from
bundled docs. The unified form is tbd docs add <docref> (the per-kind flags remain as
aliases), and docs_cache.local_dirs can serve additional in-repo doc directories.