Summary
Add configurable storage path for learning research files instead of hardcoded paths like or .
Behavior
First Run Detection
- Check if exists
- If not exists → Agent prompts user: "Where should learning research be stored? [default: ~/.config/learning]"
- If user enters custom path → Write path to
- If user leaves default (empty) → Leave file empty but existing
Subsequent Runs
- Read to get storage location
- If file is empty → Use as default
- If file has content → Use that path
File Structure
Implementation
Plugin (learning-agent.js)
- Add install logic to create if missing
- Add function to read/write the marker file
Skills
- : Read to determine storage location
- : Same
Agent Prompts
- Update knowledge base path instructions in both opencode and claude agent files
Why This Approach
- is standard on Linux/macOS, maps to on Windows
- Empty file = use default ()
- Custom path = user specifies (e.g., )
- Both opencode and Claude Code can share the same marker file
- User has full control over storage location
Summary
Add configurable storage path for learning research files instead of hardcoded paths like or .
Behavior
First Run Detection
Subsequent Runs
File Structure
Implementation
Plugin (learning-agent.js)
Skills
Agent Prompts
Why This Approach