You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .bootstrap/.core/whatsnew.toml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -181,4 +181,12 @@ details = """\
181
181
- **Checklist and methodology normalization** — streamlined `code-checklist.md`, `consistency-checklist.md`, `plan-checklist.md`, `prompt-engineering.md`, `reverse-engineering.md`, and `auto-config.md` into denser formats optimized for agent consumption
182
182
- **Post-compaction TOC fix** — marker-based `validate-toc` now expects the same heading set that `toc` generates, so documents with secondary `H1` sections such as `# MUST HAVE` / `# MUST NOT HAVE` validate correctly with `--max-level 2`
183
183
- **Regression coverage added** — test coverage now includes the marker-based TOC validation case with secondary `H1` sections in a single document\
- **Compact root marker blocks** — removed verbose navigation rules from `AGENTS.md` and `CLAUDE.md` managed blocks; now contains only the `cypilot_path` TOML definition
190
+
- **Unified CLAUDE.md injection** — `_inject_root_claude()` now reuses `_inject_managed_block()` for consistent block generation
191
+
- **Variable description fix** — `{cypilot_path}` documentation updated to clarify it's resolved from root `AGENTS.md`\
Copy file name to clipboardExpand all lines: architecture/DESIGN.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -890,18 +890,19 @@ sequenceDiagram
890
890
891
891
**Description**: User initializes Cypilot in a project. The skill engine asks for install directory and agent selection. It defines a **root system** (name and slug derived from the project directory name), creates core configs (`core.toml` with root system, `artifacts.toml` with default autodetect rules), generates agent entry points, and sets up `{cypilot_path}/config/AGENTS.md` with default WHEN rules. After core setup, the tool prompts `Install SDLC kit? [a]ccept [d]ecline`. If accepted, the kit is downloaded from GitHub. If the kit source contains `manifest.toml`, the Kit Manager validates the manifest, reads declared resources, prompts the user for destination paths on `user_modifiable` resources, copies each resource to its resolved path, resolves template variables in kit files, and registers all resource bindings in `core.toml`. If no `manifest.toml` is present, files are copied to the default kit config directory. If declined, the user can install kits later via `cpt kit install`.
892
892
893
-
**Root AGENTS.md injection**: During initialization (and verified on every CLI invocation), the engine ensures the project root `AGENTS.md`file contains a managed block that points agents to the Cypilot navigation entry:
893
+
**Root AGENTS.md / CLAUDE.md injection**: During initialization (and verified on every CLI invocation), the engine ensures the project root `AGENTS.md`and `CLAUDE.md` files contain the same managed block with only the configured adapter path:
894
894
895
-
```markdown
895
+
````markdown
896
896
<!-- @cpt:root-agents -->
897
-
ALWAYS open and follow `{cypilot_path}/.gen/AGENTS.md` FIRST
898
-
ALWAYS open and follow `{cypilot_path}/config/AGENTS.md` WHEN it exists
899
-
<!-- @/cpt:root-agents -->
897
+
```toml
898
+
cypilot_path = ".bootstrap"
900
899
```
900
+
<!-- @/cpt:root-agents -->
901
+
````
901
902
902
-
The block is inserted at the **beginning** of the file. If the file does not exist, it is created. The path inside the block reflects the actual install directory (e.g., `@/{cypilot_path}/config/AGENTS.md`). Content between the `<!-- @cpt:root-agents -->` and `<!-- @/cpt:root-agents -->` comment markers is fully managed by Cypilot — it is overwritten on every check, so manual edits inside the block are discarded.
903
+
The block is inserted at the **beginning** of each file. If a file does not exist, it is created. The managed content is a TOML fence that declares only `cypilot_path`, and the path reflects the actual install directory. Content between the `<!-- @cpt:root-agents -->` and `<!-- @/cpt:root-agents -->` comment markers is fully managed by Cypilot — it is overwritten on every check, so manual edits inside the block are discarded.
903
904
904
-
**Integrity invariant**: every Cypilot CLI command (not just `init`) verifies the root `AGENTS.md`block exists and is correct before proceeding. If the block is missing or the path is stale (e.g., install directory changed), the engine silently re-injects it. This guarantees that any agent opening the project will be routed to Cypilot regardless of how the IDE session started.
905
+
**Integrity invariant**: every Cypilot CLI command (not just `init`) verifies the root `AGENTS.md`and `CLAUDE.md` blocks exist and are correct before proceeding. If a block is missing or the path is stale (e.g., install directory changed), the engine silently re-injects it. This guarantees that root agent files always expose the current `cypilot_path` without duplicating navigation rules.
Copy file name to clipboardExpand all lines: architecture/specs/sysprompts.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,25 +89,24 @@ All sysprompt files are optional. Only files referenced in `AGENTS.md` are loade
89
89
90
90
## Root AGENTS.md Entry
91
91
92
-
Cypilot injects a managed block into the **project root**`AGENTS.md`that routes agents to `{cypilot_path}/config/AGENTS.md`:
92
+
Cypilot injects the same managed block into the **project root**`AGENTS.md`and `CLAUDE.md`, exposing only the configured adapter path:
93
93
94
-
```markdown
94
+
````markdown
95
95
<!-- @cpt:root-agents -->
96
-
ALWAYS open and follow `{cypilot_path}/.gen/AGENTS.md` FIRST
97
-
ALWAYS open and follow `{cypilot_path}/config/AGENTS.md` WHEN it exists
98
-
<!-- @/cpt:root-agents -->
96
+
```toml
97
+
cypilot_path = ".bootstrap"
99
98
```
99
+
<!-- @/cpt:root-agents -->
100
+
````
100
101
101
102
**Behavior**:
102
-
- Inserted at the **beginning** of the root `AGENTS.md`file
103
-
- If the file does not exist, it is created
104
-
- The path reflects the actual install directory (e.g., `@/{cypilot_path}/config/AGENTS.md`)
103
+
- Inserted at the **beginning** of the root `AGENTS.md`and `CLAUDE.md` files
104
+
- If a file does not exist, it is created
105
+
- The path reflects the actual install directory via `cypilot_path`
105
106
- Content between the `<!-- @cpt:root-agents -->` and `<!-- @/cpt:root-agents -->` markers is **fully managed** by Cypilot — overwritten on every check
106
107
- Manual edits inside the block are discarded
107
108
108
-
**Integrity check**: every Cypilot CLI invocation (not just `init`) verifies the block exists and the path is correct. If the block is missing or stale, it is silently re-injected.
109
-
110
-
This ensures any agent that opens the project is immediately routed to Cypilot's navigation entry point.
109
+
**Integrity check**: every Cypilot CLI invocation (not just `init`) verifies both blocks exist and the path is correct. If a block is missing or stale, it is silently re-injected. This ensures any agent that opens the project is immediately routed to Cypilot's navigation entry point.
0 commit comments