Major Changes: - Simplified OpenAgent execution philosophy (universal agent, delegate sparingly) - Reorganized context into 3-tier structure: standards/, workflows/, system/ - Improved approval gate wording for clarity - Enhanced .gitignore with comprehensive Node.js patterns - Added comprehensive plugin development guide Context Reorganization: - Consolidated scattered files into organized structure with Quick Reference sections - Emphasis on lazy loading for token efficiency (60-80% token savings) - New standards: code.md, docs.md, tests.md, patterns.md, analysis.md - New workflows: delegation.md, sessions.md, task-breakdown.md, review.md - New system: context-guide.md (master reference) Delegation Improvements: - Removed complex XML-style routing rules - Simplified to clear when/how structure with 7 delegation criteria - Added Perspective and Simulation as delegation triggers - Clearer delegation template and process Documentation Enhancements: - Added building-plugins.md (1,274 lines - comprehensive plugin guide) - Updated how-context-works.md with research-backed architecture - Enhanced slash-commands-and-subagents.md with path resolution findings Content Preservation: - context-discovery.md → system/context-guide.md + workflows/sessions.md - context-management.md → workflows/sessions.md - essential-patterns.md → standards/patterns.md - session-management.md → workflows/sessions.md
1.9 KiB
1.9 KiB
Delegation Context Template
Quick Reference
Process: Create context → Populate → Delegate → Cleanup
Location: .tmp/sessions/{timestamp}-{task-slug}/context.md
Template Sections: Request, Requirements, Decisions, Files, Static Context, Constraints, Progress, Instructions
Use this template when creating temporary context files for task delegation.
Template Structure
Location: .tmp/sessions/{timestamp}-{task-slug}/context.md
# Task Context: {Task Name}
Session ID: {id}
Created: {timestamp}
Status: in_progress
## Current Request
{What user asked for}
## Requirements
- {requirement 1}
- {requirement 2}
## Decisions Made
- {decision 1 - approach/constraints}
- {decision 2}
## Files to Modify/Create
- {file 1} - {purpose}
- {file 2} - {purpose}
- {file 3} - {purpose}
- {file 4} - {purpose}
## Static Context Available
- .opencode/context/core/standards/code.md (for code quality)
- .opencode/context/core/standards/tests.md (for test requirements)
- .opencode/context/core/{standards|workflows}/{other-relevant}.md
## Constraints/Notes
{Important context, preferences, compatibility}
## Progress
- [ ] {task 1}
- [ ] {task 2}
---
**Instructions for Subagent:**
{Specific instructions on what to do}
Delegation Process
Step 1: Create temporary context
- Location:
.tmp/sessions/{timestamp}-{task-slug}/context.md - Use template above
Step 2: Populate context file
- Fill in all sections with relevant details
- Reference static context files (don't duplicate content)
Step 3: Delegate with context path
Task: {brief description}
Context: .tmp/sessions/{id}/context.md
Read the context file for full details on requirements, decisions, and instructions.
Reference static context files as needed (lazy load).
Step 4: Cleanup after completion
- Ask user: "Task complete. Clean up session files at .tmp/sessions/{id}/?"
- If approved: Delete session directory