Skip to content

Implement configurable learning storage path with .config/learning marker #2

@luqs1

Description

@luqs1

Summary

Add configurable storage path for learning research files instead of hardcoded paths like or .

Behavior

First Run Detection

  1. Check if exists
  2. If not exists → Agent prompts user: "Where should learning research be stored? [default: ~/.config/learning]"
  3. If user enters custom path → Write path to
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions