Repository navigation
fix: stop downloading stale AGENTS.md, generate neutral template locally - #3
mostafamm44 wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughThe change removes the bulk instructions from ChangesAGENTS.md Management
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant RemoteManifest
participant codewiser.ps1
participant AGENTS.md
RemoteManifest->>codewiser.ps1: Provide manifest entries
codewiser.ps1->>AGENTS.md: Skip remote AGENTS.md update
codewiser.ps1->>AGENTS.md: Create shared header if missing
codewiser.ps1->>AGENTS.md: Append mode protocol if absent
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
codewiser.ps1 (1)
435-452: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winAvoid accumulating conflicting mode protocols.
A later run selecting a different mode leaves the old
## <Mode> Execution Protocolheader intact and appends another one. Bootstrap then has multiple valid mode markers to resolve, so the effective workflow becomes ambiguous. Replace the existing mode marker (or prompt before changing it) rather than appending a second one.Based on learnings,
AGENTS.mdis the shared source of global instructions and behavioral constraints.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@codewiser.ps1` around lines 435 - 452, Update the AGENTS.md handling in the selectedMode block to detect an existing “## <Mode> Execution Protocol” section and replace or explicitly confirm changing it before writing the new protocol. Ensure only one mode protocol marker remains, while preserving the existing append behavior when no protocol is present.Source: Learnings
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@codewiser.ps1`:
- Around line 435-452: Update the AGENTS.md handling in the selectedMode block
to detect an existing “## <Mode> Execution Protocol” section and replace or
explicitly confirm changing it before writing the new protocol. Ensure only one
mode protocol marker remains, while preserving the existing append behavior when
no protocol is present.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 7f1dacad-6854-4f63-97c7-2f5b531e7f35
📒 Files selected for processing (2)
AGENTS.mdcodewiser.ps1
💤 Files with no reviewable changes (1)
- AGENTS.md
Summary by CodeRabbit
Bug Fixes
Chores