OpenWriterControle/.opencode/context/index.md
darrenhinde d5f4e9461e feat: implement ultra-compact context index system
- Add central context index at .opencode/context/index.md (120 tokens)
- Add compact metadata to all 9 context files (10 tokens each)
- Update OpenAgent prompt to reference index system (73% token reduction)
- Update context-guide.md with index usage documentation

Benefits:
- Single index file for context discovery
- Human-readable and machine-parseable format
- Clear dependency tracking (tests→code, review→code+patterns, etc.)
- Priority levels (critical/high/medium) for all contexts
- Reduced prompt overhead from ~200 to ~53 tokens

Context files updated:
- standards/code.md, docs.md, tests.md, patterns.md, analysis.md
- workflows/delegation.md, review.md, task-breakdown.md, sessions.md

This implements a scalable, maintainable context system with
efficient token usage and clear navigation structure.
2025-11-21 13:29:20 +00:00

31 lines
1.3 KiB
Markdown

# Context Index
Path: `.opencode/context/core/{category}/{file}`
## Quick Map
```
code → standards/code.md [critical] implement, refactor, architecture
docs → standards/docs.md [critical] write docs, README, documentation
tests → standards/tests.md [critical] write tests, testing, TDD → deps: code
patterns → standards/patterns.md [high] error handling, security, validation
analysis → standards/analysis.md [high] analyze, investigate, debug
delegation → workflows/delegation.md [high] delegate, task tool, subagent
review → workflows/review.md [high] review code, audit → deps: code, patterns
breakdown → workflows/task-breakdown.md [high] break down, 4+ files → deps: delegation
sessions → workflows/sessions.md [medium] session management, cleanup
```
## Loading Instructions
**For common tasks, use quick map above. For keyword matching, scan triggers.**
**Format:** `id → path [priority] triggers → deps: dependencies`
**Dependencies:** Load dependent contexts alongside main context for complete guidelines.
## Categories
**Standards** - Code quality, testing, documentation standards (critical priority)
**Workflows** - Process templates for delegation, review, task breakdown (high priority)
**System** - Documentation and guides (medium priority)