@dotdotgod/codex 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,26 +1,38 @@
1
1
  # @dotdotgod/codex
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@dotdotgod/codex.svg)](https://www.npmjs.com/package/@dotdotgod/codex) [![GitHub](https://img.shields.io/badge/GitHub-dotdotgod%2Fdotdotgod-181717?logo=github)](https://github.com/dotdotgod/dotdotgod/tree/main/packages/codex) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
3
+ [![npm version](https://img.shields.io/npm/v/@dotdotgod/codex.svg)](https://www.npmjs.com/package/@dotdotgod/codex) [![GitHub](https://img.shields.io/badge/GitHub-dotdotgod%2Fdotdotgod-kit-181717?logo=github)](https://github.com/dotdotgod/dotdotgod-kit/tree/main/packages/codex) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
4
4
 
5
5
  > **Change a file, know what else must be checked.**
6
6
 
7
- Codex adapter for dotdotgod's context curation workflow. It packages reusable skills that help Codex initialize shared agent docs, load bounded project memory, and plan from docs before implementation.
8
-
9
- Impact/context in practice:
7
+ ```bash
8
+ $ dotdotgod graph impact . --changed packages/cli/src/core.mjs --compact
9
+ ```
10
10
 
11
11
  ```text
12
- dd:init creates the memory scaffold
13
- dd:load reads a bounded snapshot and relevant docs
14
- dd:plan captures durable task intent before implementation
12
+ docs:
13
+ - docs/spec/REFERENCE_EXPANSION.md (91; incoming:implemented_by, semantic_similarity)
14
+ - docs/test/REFERENCE_EXPANSION.md (65.3; verified_by, semantic_similarity)
15
+ - docs/spec/LOAD_PROJECT.md (35.8; related_doc, semantic_similarity)
16
+
17
+ tests:
18
+ - packages/cli/test/core.test.mjs (78.6; semantic_similarity, incoming:semantic_similarity, verified_by)
19
+ - packages/cli/test/e2e.test.mjs (51.4; verified_by)
20
+
21
+ files:
22
+ - packages/cli/src/core.mjs (100; changed-file)
23
+ - packages/pi/extensions/plan-mode/index.ts (45; implemented_by, semantic_similarity)
15
24
  ```
16
25
 
17
- The same project-memory graph that powers `dotdotgod graph impact` can surface likely related docs, tests, source, and config for changed files. The graph is not only traceability: it also uses Markdown links, README routes, headings, package metadata, memory-area membership, commands, tests, and deterministic routing hints.
26
+ `graph impact` ranks the specs, tests, architecture notes, config docs, and source files most likely to matter for a change. `--compact` keeps the result agent-facing: grouped by docs/tests/files and annotated with the reasons each item is likely relevant. It uses the project-memory graph built from Markdown links, README routes, headings, traceability blocks, package metadata, memory areas, and deterministic routing hints.
27
+
28
+ Codex adapter for dotdotgod's context curation workflow. It packages reusable skills that help Codex initialize the fixed load-context surface, load bounded project memory, and plan from explicit maintained graph links before implementation.
18
29
 
19
30
  ## What Gets Better?
20
31
 
21
32
  - Codex can start from `AGENTS.md` and the dotdotgod docs map.
22
33
  - Load guidance prefers `dotdotgod load-snapshot <root> --json` when the CLI is available, then falls back to README-index reads.
23
34
  - Codex can use docs structure as retrieval intent: specs for behavior, architecture for rationale, tests for verification, plans for current work, and archive indexes for past decisions.
35
+ - Planning guidance encourages agents to keep README routes, traceability blocks, plans, and archives current so `graph impact` remains useful.
24
36
  - Planning work captures current intent in `docs/plan/<task-slug>/README.md` before implementation.
25
37
  - Completed plans and temporary reports use the same archive structure as Pi and Claude Code, turning outcomes into future context.
26
38
  - `dd:load`, `dd:plan`, and `dd:init` can be used as command-like trigger phrases where direct slash commands are unavailable.
@@ -70,8 +82,8 @@ pnpm --filter @dotdotgod/codex run pack:dry-run
70
82
 
71
83
  ## Learn More
72
84
 
73
- See the [root README](../../README.md), [GitHub repository](https://github.com/dotdotgod/dotdotgod), [`docs/concept/CONTEXT_CURATION.md`](../../docs/concept/CONTEXT_CURATION.md), [`docs/concept/CONTEXT_MECHANICS.md`](../../docs/concept/CONTEXT_MECHANICS.md), [`docs/spec/MEMORY_AREA_CONFIG.md`](../../docs/spec/MEMORY_AREA_CONFIG.md), and [`docs/spec/TRACEABILITY_CONFIG.md`](../../docs/spec/TRACEABILITY_CONFIG.md).
85
+ See the [root README](../../README.md), [GitHub repository](https://github.com/dotdotgod/dotdotgod-kit), [`docs/concept/CONTEXT_CURATION.md`](../../docs/concept/CONTEXT_CURATION.md), [`docs/concept/CONTEXT_MECHANICS.md`](../../docs/concept/CONTEXT_MECHANICS.md), [`docs/spec/MEMORY_AREA_CONFIG.md`](../../docs/spec/MEMORY_AREA_CONFIG.md), and [`docs/spec/TRACEABILITY_CONFIG.md`](../../docs/spec/TRACEABILITY_CONFIG.md).
74
86
 
75
87
  ## Compared with Graphify-Style Memory
76
88
 
77
- This adapter packages reusable workflow skills. It guides Codex to prefer a bounded dotdotgod load snapshot when available, avoid broad archive scans, and follow README indexes before reading raw files. The strength is structured retrieval from project-declared memory, not a giant graph report.
89
+ This adapter packages reusable workflow skills. It guides Codex to prefer a bounded dotdotgod load snapshot when available, avoid broad archive scans, and follow README indexes before reading raw files. The strength is structured retrieval from explicit project-maintained links and the fixed docs surface, not a giant graph report.
package/hooks/README.md CHANGED
@@ -8,6 +8,7 @@ Use hooks only when you want opt-in reminders, lightweight validation, or local
8
8
 
9
9
  - Use `dd:load` or the `project-load` skill when you intentionally want a curated project-memory load.
10
10
  - Use `dd:plan` or the `doc-first-planning` skill before implementation, refactors, migrations, or multi-step work.
11
+ - During planning, prefer bounded dotdotgod context/status helpers: `status`, `load-snapshot`, `resolve`, `expand`, `graph impact`, `graph communities`, read-only `config`, and intentional `index` refreshes. Do not run mutating scaffold/config commands such as `init` or `config init` from hooks unless the user explicitly requested that setup.
11
12
  - Use hooks for small reminders at session start, prompt submission, supported tool boundaries, or stop time.
12
13
 
13
14
  ## Opt-In Levels
@@ -118,6 +119,7 @@ A strict script must read hook JSON from stdin, confirm the session is explicitl
118
119
 
119
120
  - Do not run `pnpm run verify` after every tool call.
120
121
  - Do not run `dotdotgod index` as an automatic stop hook.
122
+ - Do not run `dotdotgod init` or `dotdotgod config init` automatically.
121
123
  - Do not move active plans to `docs/archive/` automatically.
122
124
  - Do not block all source writes without an explicit plan-only state signal.
123
125
  - Do not imply Codex has Claude/Pi slash-command parity.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotdotgod/codex",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Codex adapter for dotdotgod project memory workflows.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -31,13 +31,13 @@
31
31
  "README.md",
32
32
  "LICENSE"
33
33
  ],
34
- "homepage": "https://github.com/dotdotgod/dotdotgod/tree/main/packages/codex#readme",
34
+ "homepage": "https://github.com/dotdotgod/dotdotgod-kit/tree/main/packages/codex#readme",
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "git+https://github.com/dotdotgod/dotdotgod.git",
37
+ "url": "git+https://github.com/dotdotgod/dotdotgod-kit.git",
38
38
  "directory": "packages/codex"
39
39
  },
40
40
  "bugs": {
41
- "url": "https://github.com/dotdotgod/dotdotgod/issues"
41
+ "url": "https://github.com/dotdotgod/dotdotgod-kit/issues"
42
42
  }
43
43
  }
@@ -36,6 +36,7 @@ Prefer live repository docs in this order:
36
36
  - Read nearest README indexes and relevant focused docs.
37
37
  - For behavior changes, prefer specs with CLI-enforced fenced `json dotdotgod` traceability blocks in the final section; use their source, test, related-doc, and verification-command mappings before editing code.
38
38
  - When the dotdotgod CLI is available and likely target files are known, run `dotdotgod graph impact <root> --changed <path> --compact --json` for a small bounded set of those files. Use the related specs, tests, docs, commands, scores, and reasons to strengthen target files, risks, and verification steps. If impact lookup fails or the CLI is unavailable, continue with README-index and traceability fallback evidence.
39
+ - During planning, treat these dotdotgod commands as bounded context/status helpers: `status`, `load-snapshot`, `resolve`, `expand`, `graph impact`, `graph communities`, read-only `config`, and `index`. Do not run mutating scaffold/config commands such as `init` or `config init` unless the user explicitly asks for initialization or config creation.
39
40
  - Use `grep` or `find` after reference expansion, impact, and targeted reads when the task needs fallback discovery or raw source text search.
40
41
  - Read code only after docs identify likely module boundaries, impact output points to relevant files, or docs are missing/stale.
41
42
  3. Create or update the active plan at:
@@ -293,6 +293,8 @@ Dotdot code conventions for keeping implementation simple and maintainable.
293
293
  - Do not abstract code that is not reused.
294
294
  - If code grows beyond 150 lines, consider splitting or extracting focused units even when it is not reused.
295
295
  - Review files approaching 250 lines for focused extraction by responsibility.
296
+ - Treat repeated \`dotdotgod graph impact\` results that collapse onto one large file as a design signal to split mixed responsibilities by behavior.
297
+ - Dotdotgod impact reveals hotspots but does not replace focused module boundaries.
296
298
  - Prefer extracting pure helpers when behavior can be tested without runtime dependencies.
297
299
  - Keep runtime integration explicit and local until a stable reuse pattern appears.
298
300
  - Do not abstract reused code when the reused behavior is likely to split into separate features or flows later.
@@ -22,6 +22,7 @@ Do not modify files during the load pass unless the user explicitly asks for edi
22
22
  - If `dotdotgod` is installed or available in the repository, run `dotdotgod load-snapshot <root> --json`.
23
23
  - If the local environment allows package execution but no `dotdotgod` binary is available, optionally run `npx @dotdotgod/cli load-snapshot <root> --json`.
24
24
  - Treat the snapshot as the first-pass project-memory map for cache status, graph size, memory areas, related communities, and archive inclusion policy.
25
+ - During load/planning, treat `dotdotgod status`, `load-snapshot`, `resolve`, `expand`, `graph impact`, `graph communities`, read-only `config`, and `index` as bounded context/status helpers. Avoid mutating scaffold/config commands such as `init` or `config init` unless the user explicitly asks for initialization or config creation.
25
26
  - Use `dotdotgod graph impact <root> --changed <path> --compact --json` as a task-focused impact map when the user identifies a likely source/config/doc file.
26
27
  - Use `grep` or `find` after `expand`, impact, and targeted reads when the task needs fallback discovery or raw source text search.
27
28
  - Fall back to raw `dotdotgod graph impact <root> --changed <path> --json` only when diagnostics need the full payload.