@dotdotgod/codex
v0.2.3
Published
Codex adapter for dotdotgod project memory workflows.
Maintainers
Readme
@dotdotgod/codex
Codex adapter for dotdotgod's docs-first project-memory workflow.
This package is a bundle of workflow skills, not runtime magic: it ships a Codex plugin manifest (.codex-plugin/plugin.json) that points to skill instructions Codex reads and follows. Use it when you want Codex to initialize shared project docs, load bounded repository context, plan from durable docs before implementation, and review changed files with graph-impact evidence before handoff.
Start Here
Make the bundled skills visible to Codex: register the package through your Codex environment's plugin mechanism if it supports plugin manifests, or copy the skills/ directories into a trusted Codex skills location.
Codex environments may not expose the same slash-command model as Pi or Claude Code. When slash commands are unavailable, use dotdotgod trigger phrases in normal chat:
dd:initdd:loaddd:plan Update the API migration plan.dd:impactdd:plan-goal Add the new export API to the auth module.The bundled skills interpret those phrases as command-like workflow requests.
What It Adds to Codex
| Skill or trigger | Use it for | Result |
| --- | --- | --- |
| dd:init / project-initializer | Start a repository with dotdotgod conventions. | Creates or normalizes AGENTS.md, thin agent entrypoints, docs indexes, active-plan space, and archive map. |
| dd:load / project-load | Load project memory read-only. | Prefers dotdotgod load-snapshot <root> --json, then falls back to README-index reads. |
| dd:plan / doc-first-planning | Plan before implementation. | Captures current intent in docs/plan/<task-slug>/README.md. |
| dd:impact / impact-review | Review changed files before verification or handoff. | Uses dotdotgod graph impact to identify likely related docs, tests, commands, and source files. |
| dd:plan-goal / plan-goal | Run 5-stage structured planning before implementation. | Produces durable checkpoint files in docs/plan/<task>/.dotdotgod-plan/ and a plan README. |
| document-clarify | Improve docs wording without changing behavior contracts. | Clarifies README/spec/test/arch/plan/archive docs using memory-area roles. |
Included
- Codex plugin manifest:
.codex-plugin/plugin.json - Skills:
project-loaddoc-first-planningproject-initializerimpact-reviewdocument-clarifyplan-goal
Shared Project-Memory Contract
AGENTS.mdremains canonical.CODEX.mdstays thin and points toAGENTS.md.- Specs describe behavior and requirements.
- Architecture docs explain rationale, boundaries, and conventions.
- Test docs explain verification strategy, regression coverage, fixtures, and commands.
- Active plans use
docs/plan/<task-slug>/README.md. - Completed plans move to
docs/archive/plan/<task-slug>/. - Temporary reports move to
docs/archive/report/<report-slug>/. docs/archive/README.mdis the archive map; archive bodies should be read only when targeted.
Memory Areas and Traceability
By default, docs/spec/** has two separate roles:
- It is stable shared project memory for product behavior and requirements.
- It is the traceability-enforced path for behavior specs.
Projects can customize memory roles with memory.areas, and can customize traceability requirements with traceability.required and traceability.exclude.
Optional Hooks
Codex can run lifecycle hooks from trusted Codex configuration layers. dotdotgod does not require hooks: the bundled skills and dd:load, dd:plan, dd:init, and dd:impact trigger phrases work without them.
Use hooks only when you want opt-in reminders or validation around the same workflow. Current Codex docs keep plugin-bundled hooks opt-in behind plugin_hooks, so this package defaults to skills and documented trusted hook examples instead of surprise runtime hooks. See hooks/README.md for advisory examples.
Local Development
pnpm --filter @dotdotgod/codex run verify
pnpm --filter @dotdotgod/codex run pack:dry-runLearn More
See the root README, Context curation, Context mechanics, Memory area config, and Traceability config.
Compared with Graphify-Style Memory
This adapter packages reusable workflow skills. It guides Codex to prefer a bounded dotdotgod load snapshot, avoid broad archive scans, and follow README indexes before reading raw files. The strength is structured retrieval from explicit project-maintained links, not a giant graph report.
