-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
featureNew feature or enhancementNew feature or enhancementframeworkCore framework changesCore framework changespriority-highHigh priority itemHigh priority item
Description
Overview
Build a runtime context discovery mechanism and skill permission validation system to improve security, clarity, and developer experience when working with context files and agent skills.
Goals
- Build runtime context file discovery mechanism
- Add automatic context loading based on task type
- Implement skill permission validation system
- Create context lifecycle management (discovery → loading → injection)
- Add CLI commands for permission validation
- Document context system architecture
- Build debugging tools for context issues
Key Features
Runtime Discovery
- Automatic context file detection in
.opencode/context/ - Task-type based context loading
- Priority-based context selection
- Context dependency resolution
Permission System
- Skill permission validation in agent frontmatter
opencode.jsonpermission configuration- Tool access restrictions per skill
- Permission inheritance and overrides
Context Lifecycle
- Discovery - Find relevant context files
- Loading - Read and parse context
- Validation - Check permissions and dependencies
- Injection - Add to agent prompt
- Cleanup - Remove when no longer needed
CLI Commands
/validate-permissions- Check agent permissions/discover-context- Show available context files/context-status- View loaded context/reload-context- Refresh context files
Debugging Tools
- Context loading trace logs
- Permission violation warnings
- Missing context detection
- Circular dependency detection
Related Issues
- Clarify .opencode/context/ runtime discovery and per‑agent skill permission handling in /build-context-system #120 (Context runtime discovery and skill permissions)
Success Criteria
- Runtime discovery implemented
- Permission validation working
- Context lifecycle management complete
- CLI commands functional
- Debugging tools available
- Architecture documented
- Examples and guides provided
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or enhancementNew feature or enhancementframeworkCore framework changesCore framework changespriority-highHigh priority itemHigh priority item
Projects
Status
Done