feat(ce-compound): add discoverability check for docs/solutions/ in instruction files#456
Conversation
…roject instruction files After writing or refreshing a learning, both ce:compound and ce:compound-refresh now check whether the project's AGENTS.md or CLAUDE.md would lead agents to discover the docs/solutions/ knowledge store. If not, the skill suggests a minimal, style-matched addition — with user consent before editing. The check uses semantic assessment (not string matching), detects shim files, prefers adding to existing sections over creating new ones, and uses informational tone to avoid redundant read directives. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d0f17305bb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ability check (#456) The discoverability check could edit AGENTS.md/CLAUDE.md after Phase 5 already committed, leaving the tree dirty. Add explicit step to stage/commit those edits as part of the commit flow. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 332e1e0c97
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…s with write contract and add push step (#456) - Update one-file write contract to explicitly permit instruction-file edits as maintenance, not a second deliverable - Add push instruction for discoverability follow-up commits when branch is already on remote Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
The
docs/solutions/knowledge store only compounds value when agents can find it. Today, only plugin-mediated workflows (ce:plan via learnings-researcher) know to search there. Agents in fresh sessions, other tools (Cursor, Copilot), or collaborators without the plugin have no reason to discover it.Both ce:compound and ce:compound-refresh now run a discoverability check after their main work completes. If the project's instruction file (AGENTS.md or CLAUDE.md) doesn't surface the knowledge store to agents, the skill suggests a minimal addition — with consent before editing.
What gets added
The addition adapts to the AGENTS.md/CLAUDE.md's existing structure. Two examples from testing:
When AGENTS.md/CLAUDE.md has a directory listing or architecture section — a single line is added:
When AGENTS.md/CLAUDE.md has a documentation section with bullet entries — a bullet is added:
When AGENTS.md/CLAUDE.md is flat with no sections — a line is appended matching the existing style:
The tone is always informational ("relevant when...") rather than imperative ("check before...") to avoid redundant reads when the plugin's own workflows already search
docs/solutions/.Key decisions
docs/solutions/.@-include the other (e.g.,CLAUDE.mdcontaining only@AGENTS.md). The check identifies which file holds substantive content and targets that one.Test plan
🤖 Generated with Claude Opus 4.6 (1M context) via Claude Code