feat: add Oh My Pi support#78
Open
thekidnamedkd wants to merge 1 commit into
Open
Conversation
thekidnamedkd
force-pushed
the
feat/omp-support
branch
from
July 16, 2026 21:44
a07c860 to
80db52a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Oh My Pi sessions were invisible to
continues. OMP stores session transcripts as JSONL under$PI_CODING_AGENT_DIR/sessions/(default~/.omp/agent/sessions/), but there was no parser, registry entry, fixture, or cross-tool handoff path for it.That meant starting work in OMP and handing it off to Codex, Claude, Gemini, OpenCode, etc. lost the entire session.
Before
$ continues list --source omp # omp was not a supported sourceAfter
$ continues list --source omp --json -n 1 [ { "source": "omp", "cwd": "/Users/kd-m2air/Local", "summary": "Add OMP support", "model": "openai-codex/gpt-5.5", "originalPath": "/Users/kd-m2air/.omp/agent/sessions/...jsonl" } ]And OMP sessions can now generate normal handoff markdown:
What changed
Added OMP as the 17th supported tool.
New parser support:
.jsonlsessions from$PI_CODING_AGENT_DIR/sessions/*/*.jsonl~/.omp/agent/sessions/updatedAtupdatedAtNew handoff data extracted:
toolCallIdSummaryCollectorCLI integration:
omptoTOOL_NAMESsrc/parsers/registry.tsparseOmpSessions/extractOmpContextomp --resume <id>Docs and metadata:
$PI_CODING_AGENT_DIR/sessions/Technical approach
parseOmpSessions()andextractOmpContext().scanJsonlHeadfor cheap metadata discovery andreadJsonlFileonly during full context extraction.SummaryCollectorand existing summarizer helpers instead of OMP-specific markdown formatting.continues list/pick/quick-resumecan use source indexes built without full transcript scans.Files changed
src/parsers/omp.tssrc/parsers/registry.tssrc/types/tool-names.tsompto supported tool names and source union.src/parsers/index.tssrc/__tests__/omp-parser.test.tssrc/__tests__/fixtures/index.tssrc/__tests__/unit-conversions.test.tssrc/__tests__/schemas.test.tsREADME.md,CHANGELOG.md,package.jsonTesting
Automated checks:
corepack pnpm@10 run buildcorepack pnpm@10 testnpx -y node@22 node_modules/vitest/vitest.mjs runE2E smoke against real local OMP data:
npm run dev -- scan --rebuildnpm run dev -- list --source omp --json -n 1~/.omp/agent/sessions/...jsonlnpm run dev -- resume 019f6a82 -i codex --debug-prompt --no-tuiReview pass:
updatedAtmonotonic.Risks / reviewer focus
tool_execution_startand latertoolResultmessages sharingtoolCallId; missing results still produce conservative summaries.omp --resume <id>is the right CLI shape.Follow-ups
Summary by cubic
Adds Oh My Pi (OMP) as a first-class source: we discover, parse, and extract handoffs from OMP JSONL sessions and support native resume. This brings supported tools to 17 and updates docs accordingly.
New Features
$PI_CODING_AGENT_DIR/sessions/(default~/.omp/agent/sessions/), with lightweight recency ordering.ompsource with list/inspect/dump; native resume viaomp --resume <id>and cross-tool handoff.ompfixtures and parser tests; e2e/unit paths updated across sources.README.md,CHANGELOG.md,package.json); minor lint and import path cleanups.Migration
PI_CODING_AGENT_DIR; otherwise the default~/.omp/agent/sessions/is used.continues list --source omp -n 1andcontinues resume <id> -i codexWritten for commit 80db52a. Summary will update on new commits.