@iamdevlinph/codex-kit 1.0.10 → 1.0.11

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
@@ -41,6 +41,13 @@ read-only checks, documentation, bookkeeping, and clear changes spanning up to
41
41
  roughly three files. Automatic delegation is reserved for broad discovery,
42
42
  large multi-file implementation or debugging, and high-risk review.
43
43
 
44
+ For a substantial task that splits into genuinely independent slices, the root
45
+ may run multiple `implementer` instances concurrently. Each receives exclusive
46
+ file or module ownership and separate validation scope. Work that shares types,
47
+ schemas, configuration, generated artifacts, migrations, lockfiles, or dependency
48
+ ordering stays with one implementer or runs sequentially; multiple files alone
49
+ do not justify duplicate agents.
50
+
44
51
  `quick-implementer` remains installed for explicit manual delegation but is not
45
52
  selected by the default automatic route. The root reuses delegated test evidence
46
53
  and normally performs only lightweight integration checks.
@@ -133,13 +140,12 @@ pnpm dlx @iamdevlinph/codex-kit@latest project init
133
140
 
134
141
  This creates:
135
142
 
136
- - `AGENTS.md`, containing the reusable defaults and a project-specific section
143
+ - `AGENTS.md`, containing a project-specific section ready for reconciliation
137
144
  - `TEMPLATE_AGENTS.md`, a local reference copy used for future comparisons
138
145
  - `.codex-kit-state.json`, reconciliation bookkeeping
139
146
 
140
- The template reference is not an active Codex instruction file. Add repository
141
- commands, paths, architecture, integrations, and exceptions to the
142
- project-specific section of `AGENTS.md`.
147
+ Add repository commands, paths, architecture, integrations, and exceptions to
148
+ the project-specific section of `AGENTS.md`.
143
149
 
144
150
  ### Generate project-specific guidance
145
151
 
@@ -26,8 +26,17 @@ Select custom agents by exact name:
26
26
  For tasks with multiple phases, sequence only the roles that add value. For
27
27
  example, use `code-explorer` before implementation only when broad discovery is
28
28
  actually needed, and use `code-reviewer` after implementation only when the
29
- change meets its risk threshold. Avoid parallel write-heavy work and never assign
30
- overlapping files to multiple agents.
29
+ change meets its risk threshold. Avoid parallel write-heavy work by default and
30
+ never assign overlapping files to multiple agents.
31
+
32
+ Multiple `implementer` instances may run concurrently only when a substantial
33
+ task divides into genuinely independent slices. Give each instance exclusive
34
+ ownership of named files or modules and a separate validation scope. Do not
35
+ parallelize slices that share schemas, types, configuration, lockfiles, generated
36
+ artifacts, migrations, or dependency ordering. If ownership overlaps or one
37
+ slice depends on another, use one implementation agent or sequence the agents.
38
+ The parent performs final integration validation after all slices return. Do not
39
+ spawn duplicate agents merely because multiple files are involved.
31
40
 
32
41
  Prefer the parent fast path when delegation would cost more than the work. Do not
33
42
  spawn a subagent solely because a tool will write a file. Delegate based on task
@@ -37,13 +37,17 @@ the managed markers.
37
37
 
38
38
  ## Template Maintenance
39
39
 
40
- - Projects normally use `AGENTS.md` as the active instruction file. The source
41
- template is `assets/TEMPLATE_AGENTS.md` in the private `codex-kit` repository
42
- and public package.
43
- - A project-local `TEMPLATE_AGENTS.md` is an optional temporary sync/reference
44
- copy, not an active file or automatic update path. Updating `AGENTS.md` does
45
- not update either template, and an updated `AGENTS.md` need not be copied back
46
- to its local reference.
40
+ - `TEMPLATE_AGENTS.md` is a staged reference copy of codex-kit's reusable
41
+ instructions, not active project guidance. Active repository guidance lives
42
+ in `AGENTS.md` and applicable project skills under `.agents/skills`.
43
+ - When `codex-kit project status` reports `reconciliation required`, compare the
44
+ template reference with `AGENTS.md`, apply relevant reusable changes, preserve
45
+ project-specific rules, reconcile applicable skills, then run
46
+ `codex-kit project mark-applied`.
47
+ - Keep project-specific rules out of `TEMPLATE_AGENTS.md`. Treat local template
48
+ edits as candidates that must be generalized and promoted to the canonical
49
+ `assets/TEMPLATE_AGENTS.md` in the codex-kit repository. Updating `AGENTS.md`
50
+ does not update either template automatically.
47
51
  - Keep project-specific context outside the managed `AGENTS.md` block; keep only
48
52
  reusable cross-project rules in the packaged template.
49
53
  - When a request introduces a reusable workflow preference, convention, agent
@@ -78,8 +82,9 @@ change project behavior. Review existing project skills under .agents/skills and
78
82
  move conditionally relevant, repeatable procedures out of AGENTS.md only when a
79
83
  skill is warranted. Preserve critical safety and authorization rules in
80
84
  AGENTS.md, preserve existing relevant skills, avoid speculative skills, and
81
- validate any skill you create or modify. Afterward, summarize what was preserved,
82
- what moved into a skill, and whether any local rules appear template-worthy.
85
+ validate any skill you create or modify. Afterward, summarize what was
86
+ preserved, what moved into a skill, and whether any local rules appear
87
+ template-worthy.
83
88
  ```
84
89
 
85
90
  ## Core Behavior
@@ -110,6 +115,13 @@ what moved into a skill, and whether any local rules appear template-worthy.
110
115
  - Avoid broad commands. After changes, run the smallest targeted verification
111
116
  that meaningfully validates them when practical, then report the command and
112
117
  result. Use the repository's documented package manager and scripts.
118
+ - For behavior changes and bug fixes, add or update the smallest focused
119
+ automated tests that meaningfully prevent regression when the repository has
120
+ an established test setup.
121
+ - Do not introduce a test framework or create low-value tests solely to satisfy
122
+ this rule. If automated coverage is impractical, explain why and perform the
123
+ strongest targeted verification available.
124
+ - Run the relevant focused tests after changing tested behavior.
113
125
  - Do not change dependencies, global tools, or the environment by default.
114
126
  - Do not run local or remote database inspection, generation, migration, or SQL
115
127
  commands unless the task requires them.
package/bin/codex-kit.js CHANGED
@@ -622,7 +622,10 @@ function syncProject(options) {
622
622
  };
623
623
  saveProjectState(cwd, state);
624
624
  if (!existsSync(agentsFile)) {
625
- const contents = "# Project-Specific Instructions\n\n<!-- Add repository-specific commands, architecture, and exceptions here. -->\n";
625
+ const contents = `# Project-Specific Instructions
626
+
627
+ <!-- Add repository-specific commands, architecture, and exceptions here. -->
628
+ `;
626
629
  write(agentsFile, contents);
627
630
  console.log(`created project instructions file: ${agentsFile}`);
628
631
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamdevlinph/codex-kit",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Portable Codex subagents and project AGENTS.md defaults.",
5
5
  "type": "module",
6
6
  "bin": {