Repository navigation
Feat: Add OMP Directory Support #1193
Description
Activity
github-actions commented
on May 30, 2026 on May 30, 2026 – with GitHub ActionsContributorMore actionsThis issue was auto-closed. Issues from new contributors are auto-closed by default.
Maintainers review auto-closed issues and reopen worthwhile ones. Issues that do not meet the quality bar in CONTRIBUTING.md may not be reopened or receive a reply.
Keep the issue short, concrete, and written in your own voice.
If a maintainer replies
lgtmi, your future issues will stay open. If a maintainer replieslgtm, your future issues and PRs will stay open.See CONTRIBUTING.md.
@tgrundler please send a pr. i think it shouldn't be big
Since finding PI_AGENT_DIR, I don't have a problem. I wouldn't mind if my PR was rejected.
Reacted by ShawnFumoJust a quick note to anyone else searching for this issue: you can also add this config file instead of setting an env variable
{ "$schema": "https://ccusage.com/config-schema.json", "pi": { "stores": [ { "name": "omp", "path": "~/.omp/agent/sessions" } ] } }Reacted by Luigi and Robert Ende- addedtriage:resolvedResolved by a later change or current implementation.Resolved by a later change or current implementation.
on Aug 31, 2026 Historical audit: this discussion was auto-closed by the legacy contributor gate. That closure did not assess technical importance.
Audit result: resolved. A later merged change or the current
mainimplementation covers this request. This item is kept for history and does not need to be reopened.
What do you want to change?
Auto-detect OMP (oh-my-pi) sessions at
~/.omp/agent/sessionsin the pi adapter.Why?
OMP is one of the most widely used forks of pi (~8.7k stars on GitHub). It writes identical JSONL session files with the same message.usage schema. Currently, if a user of OMP wants to use ccusage, it will error with "No usage data found" despite OMP using pi under the hood. They must use
ccusage piwith--pi-path ~/.omp/agent/sessions.How? (optional)
Add
~/.omp/agent/sessionsas a fallback default path in paths.rs for pi when the standard~/.pi/agent/sessionsdoesn't exist or is empty.