Version: 1.0.1Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Last Updated: 2026-04-10
Purpose: When and how to update
AGENTS.md files (not the same as root AGENTS.md pattern quick reference)
When to Update AGENTS.md
Immediate Updates (Do Now)
- ✅ Core rules or patterns change
- ✅ Architecture boundaries change
- ✅ Security requirements change
- ✅ Version numbers change (update all references)
Regular Updates
- Monthly: Quick version reference check
- Quarterly: Comprehensive review and optimization
- Weekly: During regular documentation review
How to Update AGENTS.md
Step 1: Check Current State
Step 2: Make Changes
-
Update Content:
- Follow structure guidelines
- Keep size targets in mind
- Use examples (good vs bad patterns)
- Link to detailed docs instead of duplicating
-
Update Version:
- Root AGENTS.md: Update version if significant changes
- Nested files: Update root version reference
-
Update Dates:
- Update “Last Updated” date
- Add to changelog if significant
Step 3: Sync to AGENTS.md
If updating root AGENTS.md:-
Update Core Content:
- Copy essential rule changes
- Adapt tool-specific context
- Update version references
-
Verify Sync:
- Run validation script
- Check sync status in report
- Fix any issues
Step 4: Validate
Step 5: Commit
How to Structure Content
File Size Targets
| File Type | Target | Current | Status |
|---|---|---|---|
| Root AGENTS.md | <500 lines | 1,939 | ⚠️ CRITICAL |
| Platform AGENTS.md | <300 lines | ~655 | ⚠️ LARGE |
| Shared AGENTS.md | <150 lines | ~400 | ⚠️ LARGE |
| Core AGENTS.md | <200 lines | 250-1,000+ | ⚠️ VARIES |
Structure Guidelines
Root AGENTS.md:- Quick Reference (Start Here)
- Quick Start Workflow
- Document Map
- Common Mistakes
- Decision Trees
- Architecture Rules (summary, link to details)
- Code Standards (summary, link to details)
- Patterns (summary, link to Pattern Library)
- Pre-Flight Checklist
- Key References
- Module Overview
- Module-Specific Patterns
- Key References (to root, platform, specs)
Content Guidelines
DO:- ✅ Use examples (good vs bad)
- ✅ Link to detailed docs
- ✅ Keep concise
- ✅ Be actionable
- ✅ Reference root version
- ❌ Duplicate root content
- ❌ Include own version (nested files)
- ❌ Exceed size targets
- ❌ Use vague rules
- ❌ Forget to sync with AGENTS.md
Sync Process Quick Steps
When Updating Root AGENTS.md
- Make Changes to AGENTS.md
- Update Version if significant changes
- Sync to AGENTS.md:
- Update core content
- Fix version references
- Update sync status
- Run Validation:
- Fix Issues reported by validation
- Commit both files together
Version Reference Checklist
- AGENTS.md version matches AI_GUIDE.md reference
- No active guidance refers to deleted
LOVABLE_KNOWLEDGE.md; references should point toAGENTS.md - AI_GUIDE.md version matches in both files
- constitution.md version matches in both files
Validation Commands
Basic Validation
What Validation Checks
- ✅ File size compliance
- ✅ Version references
- ✅ Section structure
- ✅ Sync status (AGENTS.md vs AGENTS.md)
- ✅ Potential conflicts
- ✅ Required sections
Interpreting Results
✅ Pass: No critical issues⚠️ Warning: Size approaching limit, minor issues
❌ Fail: Size exceeds target, version mismatches, sync issues
Common Tasks
Adding a New Pattern
- Check Size: Will addition exceed target?
- Choose Location:
- Root AGENTS.md: Platform-wide patterns
- Platform AGENTS.md: PF-specific patterns
- Core AGENTS.md: Module-specific patterns
- Add Pattern:
- Include good vs bad examples
- Link to detailed docs if needed
- Update quick reference table
- Sync: If in root, update AGENTS.md
- Validate: Run validation script
Fixing Version References
- Identify Mismatches:
- Update References:
- Platform AGENTS.md: Ensure the
**Version:**header matches the current entry forsrc/platform/AGENTS.mdindocs/VERSIONS.md. - Root AGENTS.md: Ensure all cross-references to
AGENTS.md,AI_GUIDE.md, and any core-specificAGENTS.mdfiles use the versions listed indocs/VERSIONS.md. - Archived/Legacy docs: If you must touch archived docs (e.g., under
docs/archive/ai-docs/), keep their internal version references self-consistent, but do not bump versions unless explicitly required.
- Platform AGENTS.md: Ensure the
- Validate: Run validation script again
Optimizing File Size
- Identify Large Sections:
- Pattern Library (~400 lines)
- MCP Usage (~150 lines)
- Detailed standards (~150 lines)
- Move to Separate Files:
- Pattern index →
.cursor/rules/quick-reference.mdcand.cursor/rules/pattern-decision-tree.md - Quick Reference →
.cursor/rules/quick-reference.mdc - MCP Usage →
docs/development/MCP_USAGE.md - Standards → Link to existing docs
- Pattern index →
- Update AGENTS.md:
- Keep summary
- Add links to moved content
- Update quick reference
- Validate: Verify size compliance
Size Optimization Strategies
If Root AGENTS.md >500 Lines
- Split Pattern Library (~400 lines)
- Move MCP Usage (~150 lines)
- Link to Detailed Docs (~150 lines)
- Use
.cursor/rulesfor complex, scoped rules
If Core AGENTS.md >200 Lines
- Link to Spec Docs instead of including full patterns
- Centralize Common Content (e.g., PF adoption status)
- Keep Only Critical Patterns inline
Related Documentation
- Unified Quick Reference:
AGENTS.md(includes Lovable-specific content) - Cursor Best Practices:
docs/development/AGENTS_BEST_PRACTICES_CURSOR.md - Documentation Standards:
docs/DOCUMENTATION_STANDARDS.md
Note:LOVABLE_KNOWLEDGE.mdwas consolidated intoAGENTS.mdas of 2026-01-25. Previous sync/comparison docs are archived indocs/archive/ai-docs/.
Last Updated: 2026-04-10 Next Review: 2026-07-10 (Quarterly)