1.2 KiB
1.2 KiB
Track Specification: Manual Skeleton Context Injection (manual_skeleton_injection_20260306)
Overview
Add UI controls to manually flag files for skeleton injection in discussions. Allow agent to request full file reads or specific def/class definitions on-demand.
Current State Audit
Already Implemented (DO NOT re-implement)
file_cache.ASTParser.get_skeleton(): Returns Python skeletonmcp_client.py_get_skeleton(): MCP tool for skeleton generationaggregate.py: Builds file items context
Gaps to Fill
- No UI to flag files for skeleton vs full
- No preview of skeleton before injection
- No on-demand definition lookup
Functional Requirements
- File picker UI in discussion panel
- Skeleton preview before injection
- Toggle: skeleton vs full file
- Uses existing
py_get_skeleton()tool
Key Integration Points
| File | Purpose |
|---|---|
src/gui_2.py |
File picker, injection UI |
src/mcp_client.py |
py_get_skeleton() |
src/file_cache.py |
ASTParser |
Acceptance Criteria
- File picker UI functional
- Skeleton preview displays
- Manual refresh button works
- Full read option available
- 1-space indentation