feat: added skip-agents-md cli flag#517
Conversation
|
@gjcampbell is attempting to deploy a commit to the NexusCore Team on Vercel. A member of the Team first needs to authorize it. |
|
5b960bc to
5c1a02c
Compare
Done. |
|
@claude review it |
|
Claude finished @magyargergo's task in 2m 24s —— View job PR Review: feat: added skip-agents-md cli flagTasks:
Overall this is a well-motivated, low-risk feature. The core concept and CLI wiring are clean. However, I found a test/implementation mismatch that will cause test failures, a missing error handling regression, and a scope creep issue that's the biggest concern. 🔴 Critical: Test/Implementation Mismatch
expect(result.files).toContain('AGENTS.md (skipped via --skip-agents-md)');
expect(result.files).toContain('CLAUDE.md (skipped via --skip-agents-md)');But if (!options?.skipAgentsMd) {
// pushes 'AGENTS.md (result)' and 'CLAUDE.md (result)'
}
// nothing pushed for the skip case
🔴 Critical: Error Handling Removed in
|
…tNexus into feat/skip-agent-md
|
Resolved issues. |
|
@claude review? |
|
It's only enabled for some contributors. |
|
@claude is this pr ready for release? |
|
Claude finished @magyargergo's task in 1m 0s —— View job PR Release Readiness AssessmentTasks:
Yes — this PR is ready to merge. All issues from the previous review have been resolved. Previous Issues: Status
Code Looks Clean
No Remaining ConcernsThe implementation is minimal, correct, and well-tested. Default behavior is unchanged. The flag is purely opt-in and low risk. |
CI Report✅ All checks passed Pipeline Status
Test Results
✅ All 4671 tests passed 46 test(s) skipped — expand for details
Code CoverageTests
📋 View full run · Generated by CI |
* main: (114 commits) feat(csharp): C# MethodExtractor config (abhigyanpatwari#582) docs: add gitnexus-shared build step before gitnexus-web (abhigyanpatwari#585) chore: add enterprise offering section to README, ignore local_docs/ (abhigyanpatwari#579) fix(eval): exclude litellm 1.82.7 and 1.82.8 due to compatibility issues (abhigyanpatwari#580) feat(java,kotlin): MethodExtractor abstraction with per-language configs (abhigyanpatwari#576) feat: added skip-agents-md cli flag (abhigyanpatwari#517) feat(wiki): Azure OpenAI support for wiki command (abhigyanpatwari#562) refactor: reduce explicit any types (abhigyanpatwari#566) feat(java): method references, worker overload disambiguation, interface dispatch (abhigyanpatwari#540) feat: configure eslint with unused import removal (abhigyanpatwari#564) feat: configure prettier with pre-commit hook (abhigyanpatwari#563) feat: unify web and cli ingestion pipeline (abhigyanpatwari#536) fix/opencode mcp gitnexus timeout (abhigyanpatwari#363) chore: bump version to 1.4.10, update CHANGELOG fix: resolve tree-sitter peer dependency conflicts (abhigyanpatwari#538) chore: bump version to 1.4.9, add CHANGELOG.md refactor: Phase 8 & 9 — Field Types and Return-Type Binding (abhigyanpatwari#494) feat: add COBOL language support with regex extraction pipeline (abhigyanpatwari#498) fix: close remaining Dart language support gaps (abhigyanpatwari#524) refactor: split global BUILT_IN_NAMES into per-language provider fields (abhigyanpatwari#523) ... # Conflicts: # gitnexus/src/core/wiki/llm-client.ts
* feat: added skip-agents-md cli flag * fix: apply prettier formatting * feat: added skip-agents-md cli flag * fix: apply prettier formatting * feat: add skipAgentsMd option to skip AGENTS.md and CLAUDE.md updates * fixed bad merge
Summary
Adds a new gitnexus analyze --skip-agents-md flag to skip updating the GitNexus-managed sections in AGENTS.md and CLAUDE.md, allowing users to preserve manual/custom instructions in the gitnexus sections of those files.
Motivation / context
Some users maintain custom guidance in AGENTS.md / CLAUDE.md and don’t want gitnexus analyze to rewrite those files' GitNexus blocks on each run. This flag provides an explicit opt-out while keeping the default behavior unchanged. This addresses #510
Areas touched
gitnexus/(CLI / core / MCP server)gitnexus-web/(Vite / React UI).github/(workflows, actions)eval/or other toolingAGENTS.md,CLAUDE.md,.cursor/,llms.txt, etc.)Scope & constraints
In scope
Explicitly out of scope / not done here
Implementation notes
AIContextOptionsargument togenerateAIContextFiles(...)(skipAgentsMd?: boolean).AGENTS.mdandCLAUDE.mdbehindif (!options?.skipAgentsMd).AnalyzeOptions.skipAgentsMd.Testing & verification
cd gitnexus && npm testcd gitnexus && npm run test:integration(if core/indexing/MCP paths changed)cd gitnexus && npx tsc --noEmitcd gitnexus-web && npm test(if web changed)cd gitnexus-web && npx tsc -b --noEmit(if web changed)gitnexus-web/e2e/)If you didn’t actually run npm test / tsc yet, flip those [x] back to [ ] before opening.
Risk & rollout
gitnexus analyze --skip-agents-mdChecklist
AGENTS.md/ overlays changed: headers, scope block, and changelog updated per project conventions