2025 11 03 Optimizing for Agents
Prompt
I want to optimize Roo Code's use in this project by customizing modes and introducing the concept of a task-level memory-bank
Roo Code must use and help maintain both.
Project-level files (all in documentation/, and will be part of published site documentation)
Add to context for every new task
- Project Brief : Foundation document that points to other files and discusses the memory-bank approach
- Product Brief : Why this project exists, Problems it solves; what components/applications are included; how it should work, User experience goals
- Developer General Guidance : developer/agent info
- Memory Bank : ground rules for giving agents and humans a git-based shared memory
- Status : where we're at, project wise; what's currently working; summarizes across
Probably helpful on most tasks, need to be rigorously maintained regardless
- Patterns : helpful the Architecture Mode
- Dependencies : Key dependencies
- Debugging : useful for QA
- Now : what's currentlly going on, big-picture
- Todo : general list of things that need doing; can include links to tasks being groomed but not started, but also that haven't been broken into tasks yet
- Progress : completed tasks, summarized
- Decision Log : important project-level decisions
Everything else
- all the other files (and there are lots) in documentation/ should get pulled into context as needed, and should periodically be groomed for pithiness, consistency, and currency. Maybe we define a "skill" or a "Documentation Grooming" Roo Mode.
Task Working Memory
This will be used to externalize Roo's short-term memory.
For each new task (in Roo Code or Cline or whatever), we'll create a new markdown file "task.YYYY-MM-DD-task-name.md" that will be used to keep track of the active-context, task-specific TODOs, progress, and potential updates to the general project-level memory-bank. If the task file isn't present yet, Orchestrator Roo should suggest creating it, or give the option to proceed without it.
Every task should have these second-level headings:
- Prompt
- TODO
- Decisions
The Agent's TODO list should be mirrored into the "TODO" section and updated as work progresses.
TODO
- Gather context and understand requirements
- Create guide.project-brief.md - Foundation document explaining memory bank approach and pointing to other files
- Create guide.product-brief.md - Product vision, problems solved, components/applications, user experience goals
- Create guide.status.md - Current project status overview (new "every task context" file)
- Update dev.memory-bank.md - Core rules including "read ALL memory bank files at start of EVERY task"
- Update dev.patterns.md - Document patterns as they emerge (minimal initial content)
- Update dev.dependencies.md - List key dependencies (Fastify, TypeScript, pnpm, Dendron, etc.)
- Verify dev.debugging.md has proper structure (already has good content)
- Update now.md - Current work focus (not dated entries)
- Update todo.md - General task list structure
- Update progress.md - Dated entries for completed work
- Update decision-log.md - Dated entries for important decisions
- Update Roo Mode custom instructions to reference memory bank files
- Review all files for inconsistencies and repetitions
Decisions
Documentation Review Findings (2025-11-05)
A review of all 90 documentation files in documentation/ revealed several areas for improvement:
- Critical Repetition: The file
documentation/product-ideas.hateoas-driven-api-recipes.mdcontains its entire content duplicated four times, requiring immediate consolidation. - Inconsistencies: Several core concept files, including
documentation/concept.mesh.mdanddocumentation/mesh-resource.node.md, inconsistently define the full set of node types (omitting "reference nodes"). Provenance documentation also shows conflicting naming conventions for internal identifiers. - Clarity/Pithiness: 18 files are empty or contain minimal content (e.g.,
documentation/concept.hosting.md,documentation/facet.filesystem.md, and six plugin files), suggesting opportunities for consolidation or expansion to improve clarity and reduce unnecessary file clutter. - Broken Links/Currency: Multiple files, including
documentation/concept.summary.mdanddocumentation/concept.immutability.md, contain broken internal links or unaddressedTODOitems, indicating outdated references or incomplete sections.
Backlinks