feat(pi): auto-detect oh-my-pi (omp) sessions#1338
Conversation
oh-my-pi (omp) is a widely used pi fork that writes identical JSONL session files with the same message.usage schema. Auto-detect ~/.omp/agent/sessions alongside ~/.pi/agent/sessions when neither --pi-path nor PI_AGENT_DIR is set, so omp users get usage reports without having to pass --pi-path manually. Both directories are scanned and entries are deduplicated by the loader; setting PI_AGENT_DIR or --pi-path overrides detection and scans only the given paths. Closes ccusage#1193 Signed-off-by: Stefan Giroux <stefan.g@feniex.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds ChangesOMP Auto-Detection for Pi Adapter
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |


oh-my-pi (omp) is a widely used pi fork that writes identical JSONL session files with the same message.usage schema.
Auto-detect ~/.omp/agent/sessions alongside ~/.pi/agent/sessions when neither --pi-path nor PI_AGENT_DIR is set, so omp users get usage reports without having to pass --pi-path manually.
Both directories are scanned and entries are deduplicated by the loader; setting PI_AGENT_DIR or --pi-path overrides detection and scans only the given paths.
Closes #1193
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Auto-detect
~/.omp/agent/sessionsalongside~/.pi/agent/sessionsso oh-my-pi users get usage reports without setting--pi-pathorPI_AGENT_DIR.--pi-pathnorPI_AGENT_DIRis set, scan both default dirs; overrides scan only the provided paths.Written for commit c0241a9. Summary will update on new commits.
Summary by CodeRabbit
New Features
~/.pi/agent/sessionsand~/.omp/agent/sessionswhen custom paths are not specified.Documentation