Repository navigation
Description
Generate and Consume AGENTS.md for Cross-Tool Compatibility
Epic: Multi-agent backend support
Depends on: None (independent of #368)
Priority: P2 — low effort, broad compatibility signal
Context
AGENTS.md is an emerging standard for telling AI coding agents how to work on a repository. It's supported by Codex CLI, Cursor, Gemini CLI, Jules, Zed, Aider, and others — stewarded by the Agentic AI Foundation under the Linux Foundation.
Sequant already generates CLAUDE.md during sequant init. Adding AGENTS.md generation provides instant compatibility with every tool that reads it, and signals that Sequant is agent-agnostic even before full multi-backend support ships.
Goal
Make Sequant a good citizen in the AGENTS.md ecosystem: generate it, consume it, and keep it in sync with CLAUDE.md.
Acceptance Criteria
Generation
-
sequant initgeneratesAGENTS.mdalongsideCLAUDE.md - Content includes:
- Project description and tech stack
- Build/test/lint commands
- Code style conventions
- Directory structure overview
- Sequant workflow instructions (how to use
/spec,/exec,/qaor equivalent)
-
AGENTS.mduses the standard format:# AGENTS.md ## Project Overview ... ## Development Commands ... ## Code Conventions ... ## Workflow This project uses Sequant for structured AI-assisted development. ...
- If
CLAUDE.mdalready exists, deriveAGENTS.mdcontent from it (avoid duplication) -
sequant syncupdatesAGENTS.mdwhenCLAUDE.mdchanges
Consumption
- When running with non-Claude agents (Aider, Codex), include
AGENTS.mdcontent in the phase prompt context -
sequant doctorchecks forAGENTS.mdpresence and consistency withCLAUDE.md
CLI
-
sequant conventions(existing command) gains--format agents-mdoption to output in AGENTS.md format -
sequant init --no-agents-mdskips AGENTS.md generation
Design
Relationship Between CLAUDE.md and AGENTS.md
CLAUDE.md (Claude Code specific) AGENTS.md (Universal)
┌────────────────────────────────┐ ┌────────────────────────────────┐
│ # Sequant │ │ # AGENTS.md │
│ │ │ │
│ ## Commit Rules │ ──► │ ## Code Conventions │
│ - Do NOT add Co-Authored-By │ │ - Do not add Co-Authored-By │
│ │ │ lines to commits │
│ ## Slash Commands │ │ │
│ - /spec, /exec, /qa │ │ ## Workflow │
│ (Claude Code specific) │ │ - Use `npx sequant run <N>` │
│ │ │ for structured workflows │
│ ## Hook Configuration │ │ │
│ (Claude Code specific) │ │ ## Development Commands │
│ │ │ - npm test, npm run build │
└────────────────────────────────┘ └────────────────────────────────┘
CLAUDE.md is a superset (includes Claude Code-specific features). AGENTS.md contains the portable subset that any agent can use.
Template Location
templates/
├── CLAUDE.md.hbs # Existing
└── AGENTS.md.hbs # New — Handlebars template
Sync Logic
// In sync command
if (claudeMdChanged && agentsMdExists) {
const portable = extractPortableInstructions(claudeMd);
updateAgentsMd(portable);
}Non-Goals
- Not replacing CLAUDE.md — both coexist
- Not parsing AGENTS.md from other tools — we generate, we don't import
- No
.cursorrulesgeneration (deprecated format, Cursor reads AGENTS.md now)
Testing
- Unit: AGENTS.md template renders correctly for each stack (nextjs, rust, python, go)
- Unit: portable instruction extraction from CLAUDE.md
- Integration:
sequant init -yproduces both CLAUDE.md and AGENTS.md - Integration:
sequant doctorreports missing AGENTS.md - Snapshot: AGENTS.md content matches expected output for test fixtures
Activity
admarble commentedon Mar 21, 2026
Solve Analysis
Recommended Phases: spec → testgen → exec → qa
Skip Spec: No (new feature needs spec review)
Browser Testing: No (no UI component)
Quality Loop: Yes (multi-file enhancement)
Reasoning
Flags
📝 Generated by
/solveadmarble commentedon Mar 21, 2026
Spec: Generate and Consume AGENTS.md for Cross-Tool Compatibility
AC Quality Check
Manual review (9 AC items across 3 categories):
✅ AC-1 (Generation: init generates AGENTS.md): Clear and testable
⚠️ AC-6 (Non-Claude agent prompt context): Incomplete — no non-Claude agent backends exist yet. Sequant currently only supports Claude Agent SDK. This AC should be deferred or scoped to "read AGENTS.md when present and include in prompt context" generically.
✅ AC-2 (Content includes standard sections): Clear — sections enumerated
✅ AC-3 (Standard format): Clear — format specified with example
✅ AC-4 (Derive from CLAUDE.md): Clear and testable
✅ AC-5 (Sync updates AGENTS.md): Clear and testable
✅ AC-7 (Doctor checks): Clear and testable
✅ AC-8 (conventions --format agents-md): Clear and testable
✅ AC-9 (init --no-agents-md): Clear and testable
Summary: 8/9 AC items clear and testable. 1 flagged (AC-6 depends on multi-agent backend support not yet implemented).
Scope Assessment
Non-Goals (from issue ✅)
.cursorrulesgeneration (deprecated format, Cursor reads AGENTS.md now)Scope Metrics
templates/,src/commands/,src/lib/,bin/,.claude/)Scope Verdict
Quality Loop: enabled (auto-enabled due to scope concerns)
Acceptance Criteria with Verification
AC-1:
sequant initgeneratesAGENTS.mdalongsideCLAUDE.mdVerification Method: Integration Test
Test Scenario:
sequant init -y --stack genericAGENTS.mdfile exists in project root with non-empty contentAC-2: Content includes standard sections
Verification Method: Unit Test
Test Scenario:
## Project Overview,## Development Commands,## Code Conventions,## WorkflowsectionsAC-3: AGENTS.md uses the standard format
Verification Method: Unit Test
Test Scenario:
# AGENTS.md, contains required sections, uses markdown formattingAC-4: If CLAUDE.md exists, derive AGENTS.md content from it
Verification Method: Unit Test
Test Scenario:
extractPortableInstructions(claudeMd)is calledAC-5:
sequant syncupdates AGENTS.md when CLAUDE.md changesVerification Method: Integration Test
Test Scenario:
sequant sync --forcerunsAC-6: Non-Claude agents include AGENTS.md in prompt context
Verification Method:⚠️ DEFERRED — No non-Claude agent backends exist yet
Suggested Refinement: Defer to multi-agent backend epic. OR scope down to: "When AGENTS.md exists and
phase-executor.tsassembles prompt context, include AGENTS.md content as supplementary context."AC-7:
sequant doctorchecks AGENTS.md presence and consistencyVerification Method: Integration Test
Test Scenario:
sequant doctorrunsAC-8:
sequant conventions --format agents-mdVerification Method: Integration Test
Test Scenario:
sequant conventions --format agents-mdAC-9:
sequant init --no-agents-mdskips generationVerification Method: Integration Test
Test Scenario:
sequant init -y --stack generic --no-agents-mdImplementation Plan
Phase 1: Template & Core Library
Create
templates/AGENTS.md.hbs— Handlebars-style template using{{PROJECT_NAME}},{{STACK}},{{STACK_NOTES}}tokens (same pattern asconstitution.md). Sections: Project Overview, Development Commands, Code Conventions, Directory Structure, Workflow.Create
src/lib/agents-md.ts— Core library with:generateAgentsMd(config)— Renders template with project configextractPortableInstructions(claudeMd: string)— Parses CLAUDE.md, extracts non-Claude-specific content (conventions, commit rules, commands)checkAgentsMdConsistency(agentsMd, claudeMd)— Compares for stalenessformatConventionsAsAgentsMd(conventions)— Formats conventions for AGENTS.md outputPhase 2: Init & CLI Integration
Modify
src/commands/init.ts— AftercopyTemplates(), generate AGENTS.md in project root. Respect--no-agents-mdflag. If CLAUDE.md exists, useextractPortableInstructions().Modify
bin/cli.ts— Add--no-agents-mdoption to init command. Add--format <format>option to conventions command.Modify
src/commands/conventions.ts— AddhandleFormat(format)branch that callsformatConventionsAsAgentsMd()when format isagents-md.Phase 3: Sync & Doctor Integration
Modify
src/commands/sync.ts— After template sync, regenerate AGENTS.md if it exists (or if CLAUDE.md changed). Use the same generation logic fromagents-md.ts.Modify
src/commands/doctor.ts— Add check ~Document MCP dependencies and make them optional #15.5: "AGENTS.md" presence check (warn if missing after init), consistency check with CLAUDE.md (warn if stale).Phase 4: Tests
src/lib/agents-md.ts— Template rendering, portable instruction extraction, consistency check, conventions formatting.sequant initproduces AGENTS.md,--no-agents-mdskips it,sequant doctorreports status,sequant conventions --format agents-mdoutputs correctly.Parallel Groups
Feature Quality Planning
Completeness Check
Error Handling
Code Quality
AgentsMdConfig,PortableInstructions,ConsistencyResultinterfacesprocessTemplate()with{{TOKEN}}substitution)Test Coverage Plan
--forceBest Practices
Derived ACs
Open Questions
AC-6 deferral
AGENTS.md location
./AGENTS.md) or.claude/AGENTS.md?Template engine
processTemplate()(simple{{TOKEN}}replacement) or introduce Handlebars?processTemplate()— the issue mentions.hbsbut the codebase doesn't use Handlebars. Keep consistent.Conflict Risk Analysis
In-flight work detected: Issue #254 (
feature/254-feat-qa-smoke-test-template)Overlapping files: None — #254 touches QA/test templates, not init/sync/doctor.
Risk: Low — no conflict expected.
Recommended Workflow
Phases: spec → testgen → exec → qa
Quality Loop: enabled (auto-enabled due to scope concerns)
Reasoning: Solve recommended
spec → testgen → exec → qawith quality loop. Confirmed: multi-file enhancement across 5+ directories with unit+integration test ACs warrants testgen phase and quality loop. No browser testing needed (no UI components).Label Review
Current:
enhancement,multi-agentRecommended:
enhancement,multi-agent,plannedReason: Issue has been specced. No additional labels needed —
multi-agentalready captures the domain.Quality Loop: Will auto-enable via workflow flag (scope-based).
→
gh issue edit 371 --add-label plannedfeat: generate and consume AGENTS.md for cross-tool compatibility (#371)
admarble commentedon Mar 21, 2026
Exec Phase: Implementation Complete
AC Coverage
sequant initgenerates AGENTS.mdsrc/commands/init.ts:509-527src/lib/agents-md.ts# AGENTS.md,## Project Overview, etc.extractPortableInstructions()sequant syncupdates AGENTS.mdsrc/commands/sync.ts:124-148sequant doctorcheckssrc/commands/doctor.ts:236-280conventions --format agents-mdsrc/commands/conventions.tsinit --no-agents-mdbin/cli.ts+init.tsguardKey Files Changed
src/lib/agents-md.ts— Core library (generation, extraction, consistency, formatting)src/lib/agents-md.test.ts— 14 unit testssrc/commands/init.ts— AGENTS.md generation stepsrc/commands/sync.ts— AGENTS.md regenerationsrc/commands/doctor.ts— AGENTS.md presence/consistency checksrc/commands/conventions.ts—--format agents-mdsupportbin/cli.ts—--no-agents-mdand--formatCLI optionsCHANGELOG.md— Unreleased entryQuality Gates
npm run buildnpm run lintnpm testQuality Plan Alignment
PR
✅ Created: #374
admarble commentedon Mar 21, 2026
QA Review for Issue #371
AC Coverage
sequant initgenerates AGENTS.mdinit.ts:509-527— generates viagenerateAgentsMd()with try/catch# AGENTS.md, standard sections, markdown tablesextractPortableInstructions()strips Claude-specific sections (Slash Commands, Hooks, MCP, Skills)sequant syncupdates AGENTS.mdsync.ts:132-155regenerates when AGENTS.md existssequant doctorchecksdoctor.ts:236-280checks presence + consistency with CLAUDE.mdconventions --format agents-mdconventions.ts:77-90outputs viaformatConventionsAsAgentsMd()--no-agents-mdskips generationcli.ts:108, guarded atinit.ts:510getPortableInstructions()returns "" when CLAUDE.md absentinit.ts:526-527callsagentsSpinner.warn()Coverage: 10/12 AC items fully met (includes derived ACs)
Original ACs: 8/8 met (AC-6 deferred = N/A)
Derived ACs: 2/3 met
Quality Plan Verification
Quality Plan found: Yes (in spec comment)
Derived ACs: 2/3 addressed
Quality Plan Status: Partial
CI Status
build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginCI Summary: 5 passed, 0 pending, 0 failed
Quality Metrics
any)Cache Status
N/A - Fresh QA run
Build Verification
N/A - Build passed
Test Coverage Analysis
src/lib/agents-md.tssrc/lib/agents-md.test.ts(14 tests)src/commands/init.tssrc/commands/sync.tssrc/commands/doctor.tssrc/commands/doctor.test.ts(mocks added)src/commands/conventions.tsbin/cli.tsCHANGELOG.mdCoverage: 2/6 changed source files have corresponding tests
Critical paths without tests: None — core library is well-tested; command files are integration-level
Code Review
Strengths:
agents-md.ts) handles all logic, commands just consumeprocessTemplate(), same spinner UX, samefileExists()guards--no-agents-mdand--formatboth registered with matching handlersIssues:
catchblocks are empty (catch {}). While non-blocking behavior is correct, there's no debug-level logging for troubleshootingSuggestions:
writeAgentsMd/readAgentsMdtests (currently only tested indirectly through doctor test mocks)checkAgentsMdConsistency()function only checks commit rule patterns — could be broadened to detect more stalenessTest Quality Review
Anti-Pattern Detection
Dependency Audit
N/A - No dependency changes
Code Patterns
catch {}blocks (6 instances)catch { /* non-blocking */ }comments for clarityCritical Issues: 0
Warnings: 1 (empty catches — cosmetic)
Call-Site Review
New exported functions detected: 7
generateAgentsMd()init.ts:517,sync.ts:137agentsMd !== false, sync:fileExists(AGENTS_MD_PATH)writeAgentsMd()init.ts:524,sync.ts:144readAgentsMd()doctor.ts:237checkAgentsMdConsistency()doctor.ts:243if (agentsMdContent) + if fileExists("CLAUDE.md")extractPortableInstructions()agents-md.ts:251(internal), testsgetPortableInstructions()formatConventionsAsAgentsMd()conventions.ts:89format === "agents-md"guardAGENTS_MD_PATHsync.ts:133,doctor.ts:278Findings: All call sites properly guarded. No mismatches.
Execution Evidence
N/A - No scripts/ changes. CLI changes verified through build + test pass.
Skill Command Verification
N/A - No skill files changed
CLI Registration Verification
Option files modified: Yes (
bin/cli.ts,src/commands/init.ts,src/commands/conventions.ts)agentsMdoptions.agentsMd !== false(init.ts:510)--no-agents-md(cli.ts:108)formatoptions.format === "agents-md"(conventions.ts:34)--format <format>(cli.ts:239)Verification Status: Passed
CHANGELOG Verification
Result: CHANGELOG requirements met
Self-Evaluation
extractPortableInstructions()regex might miss new Claude-specific section types added in the future (e.g.,## Memory,## Permissions)Verdict: AC_MET_BUT_NOT_A_PLUS
All 8 original ACs are MET (AC-6 properly deferred). Derived AC-12 (snapshot tests per stack) is NOT_MET — the spec explicitly called for snapshot tests for each stack fixture (nextjs, rust, python, go, generic). Quality plan test coverage dimension is partial.
Documentation
Next Steps
generateAgentsMd()with each stack type (nextjs, rust, python, go, generic) to satisfy AC-12checkAgentsMdConsistency()currently only checks commit rule patterns; could detect more types of staleness/docs 371to generate documentation before mergingadmarble commentedon Mar 21, 2026
Exec Phase: QA Improvements Applied
Addressed the two QA findings from the
AC_MET_BUT_NOT_A_PLUSverdict:Changes
catch {}blocksagents-md.tsnow have clarifying commentsQuality Gates
npm run buildnpm run lintnpm testFiles Changed
src/lib/agents-md.test.ts— Added 5 snapshot tests (describe("snapshot per stack"))src/lib/agents-md.ts— Added comments to 3 empty catch blockssrc/lib/__snapshots__/agents-md.test.ts.snap— New snapshot file with expected output per stackAC Coverage (Updated)
All 12 AC items now met (AC-6 deferred per spec):
Self-Evaluation
admarble commentedon Mar 21, 2026
QA Review for Issue #371
AC Coverage
sequant initgenerates AGENTS.mdinit.ts:509-527— generates viagenerateAgentsMd()with try/catch# AGENTS.md, uses standard sections, markdown tablesextractPortableInstructions()strips Claude-specific sections (Slash Commands, Hooks, MCP, Skills, Claude Code)sequant syncupdates AGENTS.mdsync.ts:132-155regenerates when AGENTS.md existssequant doctorchecksdoctor.ts:236-280checks presence + consistency with CLAUDE.mdconventions --format agents-mdconventions.ts:77-90outputs viaformatConventionsAsAgentsMd()--no-agents-mdskips generationcli.ts:108, guarded atinit.ts:510getPortableInstructions()returns""when CLAUDE.md absentinit.ts:526-527callsagentsSpinner.warn()Coverage: 11/12 AC items fully met (AC-6 deferred = N/A)
Original ACs: 8/8 met (AC-6 N/A)
Derived ACs: 3/3 met
Quality Plan Verification
Quality Plan found: Yes (in spec comment)
Derived ACs: 3/3 addressed
Quality Plan Status: Complete
CI Status
build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginCI Summary: 5 passed, 0 pending, 0 failed
Quality Metrics
any)Cache Status
N/A - Fresh QA run
Build Verification
N/A - Build passed
Test Coverage Analysis
src/lib/agents-md.tssrc/lib/agents-md.test.ts(19 tests)src/commands/init.tssrc/commands/sync.tssrc/commands/doctor.tssrc/commands/doctor.test.tssrc/commands/conventions.tsbin/cli.tsCoverage: 2/6 changed source files have corresponding tests
Critical paths without tests: None — core library is well-tested; command files are integration-level
Code Review
Strengths:
agents-md.ts) handles all logic, commands just consumeprocessTemplate(), same spinner UX, samefileExists()guards--no-agents-mdand--formatboth properly registered with matching handlersIssues:
Suggestions:
checkAgentsMdConsistency()only checks commit rule patterns — could be broadened to detect more types of staleness (future enhancement)Test Quality Review
Anti-Pattern Detection
Dependency Audit
N/A - No dependency changes
Code Patterns
No critical anti-patterns detected. Catch blocks in
agents-md.tsall have clarifying comments. Command-level catch blocks provide user-facing warn messages.Critical Issues: 0
Warnings: 0
Call-Site Review
New exported functions detected: 7
generateAgentsMd()init.ts:517,sync.ts:137agentsMd !== false, sync:fileExists(AGENTS_MD_PATH)writeAgentsMd()init.ts:524,sync.ts:144readAgentsMd()doctor.ts:237checkAgentsMdConsistency()doctor.ts:243if (agentsMdContent)+if fileExists("CLAUDE.md")extractPortableInstructions()getPortableInstructions()formatConventionsAsAgentsMd()conventions.ts:89format === "agents-md"guardAGENTS_MD_PATHsync.ts:133,doctor.ts:278Findings: All call sites properly guarded. No mismatches.
Execution Evidence
N/A - No
scripts/changes. CLI changes verified through build + test pass.Skill Command Verification
N/A - No skill files changed
CLI Registration Verification
Option files modified: Yes
agentsMdoptions.agentsMd !== false(init.ts:510)--no-agents-md(cli.ts:108)formatoptions.format === "agents-md"(conventions.ts:34)--format <format>(cli.ts:239)Verification Status: Passed
Stale Branch Check
CHANGELOG Verification
Result: CHANGELOG requirements met
Self-Evaluation
extractPortableInstructions()regex could miss future Claude-specific section types (e.g.,## Memory,## Permissions) — addressed by the regex-based pattern list which is easy to extendVerdict: READY_FOR_MERGE
All 8 original ACs are MET (AC-6 properly deferred per spec). All 3 derived ACs (AC-10, AC-11, AC-12) are MET. CI passes on all checks. Code quality is clean with good separation of concerns, proper error handling, and comprehensive test coverage including per-stack snapshot tests.
Documentation
Next Steps
/docs 371to generate feature documentation before mergingadmarble commentedon Mar 22, 2026
QA Review for Issue #371
AC Coverage
sequant initgeneratesAGENTS.mdalongsideCLAUDE.mdgenerateAgentsMd()with spinner, error handlingextractPortableInstructions()filters Claude-specific sections, embeds portable subsetsequant syncupdates AGENTS.md when CLAUDE.md changessequant doctorchecks presence and consistency with CLAUDE.mdsequant conventions --format agents-mdhandleFormatAgentsMd()outputs formatted conventionssequant init --no-agents-mdskips generationoptions.agentsMd !== falseguard, CLI registered inbin/cli.tsCoverage: 8/9 AC items met
CI Status
build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginCI Summary: 5 passed, 0 pending, 0 failed
Quality Metrics
any)Test Coverage Analysis
src/lib/agents-md.tssrc/lib/agents-md.test.tssrc/commands/doctor.tssrc/commands/doctor.test.tssrc/commands/init.tssrc/commands/init.test.tssrc/commands/sync.tssrc/commands/sync.test.tssrc/commands/conventions.tsbin/cli.tsCoverage: 4/6 changed source files have tests
Critical paths without tests: None (conventions is low-risk)
Code Review
Strengths:
agents-md.tsmodule with focused responsibilitybin/cli.ts(both--no-agents-mdand--format)Issues:
Suggestions:
Anti-Pattern Detection
Code Patterns
No anti-patterns detected. No hardcoded secrets, no N+1 queries, no empty catch blocks.
Call-Site Review
New exported functions detected: 6
generateAgentsMd()init.ts:517,sync.ts:137agentsMd !== false(init),fileExists(AGENTS_MD_PATH)(sync)extractPortableInstructions()agents-md.ts:159,253)checkAgentsMdConsistency()doctor.ts:243fileExists("CLAUDE.md")guardformatConventionsAsAgentsMd()conventions.ts:89options.format === "agents-md"writeAgentsMd()init.ts:524,sync.ts:144readAgentsMd()doctor.ts:237CLI Registration Verification
agentsMdoptions.agentsMd !== false(init.ts:510)--no-agents-mdin bin/cli.tsformatoptions.format === "agents-md"(conventions.ts:34)--format <format>in bin/cli.tsVerification Status: Passed
CHANGELOG Verification
Result: CHANGELOG requirements met
Self-Evaluation
Verdict: AC_NOT_MET
AC-6 (non-Claude agent consumption) has no implementation. All other 8 ACs are fully met with high quality code, comprehensive tests, and clean CI.
Next Steps
/qa 371after AC-6 is addressed.QA completed: 8/9 AC met, 1 blocking
admarble commentedon Mar 22, 2026
QA Review for Issue #371 (Re-run after AC-6 fix)
AC Coverage
sequant initgeneratesAGENTS.mdalongsideCLAUDE.mdgenerateAgentsMd()with spinner + error handlingextractPortableInstructions()filters Claude-specific sectionssequant syncupdates AGENTS.md when CLAUDE.md changesAGENTS_MD_PATHexistsgetPhasePrompt()reads AGENTS.md viareadAgentsMd()and prepends to promptsequant doctorchecks presence and consistency with CLAUDE.mdcheckAgentsMdConsistency()sequant conventions --format agents-mdhandleFormatAgentsMd()outputs formatted conventionssequant init --no-agents-mdskips generationagentsMd !== falseguard,--no-agents-mdregistered inbin/cli.tsCoverage: 9/9 AC items met
CI Status
build (20.x)build (22.x)validate-skillstypecheckvalidate-pluginCI Summary: 5 passed, 0 pending, 0 failed
Quality Metrics
any)Test Coverage Analysis
src/lib/agents-md.tssrc/lib/agents-md.test.ts(227 lines)src/commands/doctor.tssrc/commands/doctor.test.tssrc/commands/init.tssrc/commands/init.test.tssrc/commands/sync.tssrc/commands/sync.test.tssrc/commands/conventions.tssrc/lib/workflow/phase-executor.tsphase-executor.test.ts(existing)bin/cli.tsCoverage: 5/7 changed source files have tests
Critical paths without tests: None
Code Review
Strengths:
agents-md.tsencapsulates all AGENTS.md logicextractPortableInstructions()correctly filters 6 Claude-specific section patternsbin/cli.tsIssues:
Suggestions:
Anti-Pattern Detection
No anti-patterns detected. No hardcoded secrets, no N+1 queries, no empty catch blocks.
Call-Site Review
New exported functions detected: 6
generateAgentsMd()init.ts:517,sync.ts:137readAgentsMd()doctor.ts:237,phase-executor.ts:93extractPortableInstructions()agents-md.ts)checkAgentsMdConsistency()doctor.ts:243fileExistsguardformatConventionsAsAgentsMd()conventions.ts:89writeAgentsMd()init.ts:524,sync.ts:144CLI Registration Verification
agentsMdoptions.agentsMd !== false--no-agents-mdformatoptions.format === "agents-md"--format <format>Verification Status: Passed
CHANGELOG Verification
Result: CHANGELOG requirements met
Self-Evaluation
Verdict: READY_FOR_MERGE
All 9 acceptance criteria are fully met. Code quality is high with comprehensive tests, clean CI, proper error handling, and correct CLI registration.
Documentation
Next Steps
/docs 371to generate feature documentation (optional)QA completed: 9/9 AC met — A+ implementation
feat(#371): generate and consume AGENTS.md for cross-tool compatibili…