Conversation
Add support for standalone pi-agent sessions stored in ~/.pi/agent/sessions/. This complements the existing 'pi' adapter which handles openclaw-embedded pi. Key differences from openclaw pi: - Per-project directory structure (like Claude Code) - Path encoding: /path/to/project → --path-to-project-- - Project-specific watch scope (not global) Implementation: - Reuses pi package types (same JSONL format) - Full message parsing with tool result linking - Incremental parsing for append-only growth - Session categorization (interactive, cron, system) Identity: pi-agent / Pi Agent / π
- Add AgentPi constant and entries in all agent maps (types.go)
- Add detectPiSessionStatus for session file detection (agent_session.go)
- Pi stores sessions in ~/.pi/agent/sessions/--{path}--/*.jsonl
- Update README.md and website docs with Pi Agent support
- Add AgentPi to TestGetAgentCommand, TestShouldShowSkipPermissions, and TestBuildAgentCommand tables - Add TestDetectPiSessionStatus_* tests for session file detection
boozedog
added a commit
to boozedog/sidecar
that referenced
this pull request
Feb 14, 2026
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.
This adds the plain-old pi-agent as an adapter (conversations) and as an agent (workspaces).
Since pi-agent works differently in its stand-alone release as compared to the openclaw one, it seemed like a separate implementation was in order.
For conversations, this is basically the pi (openclaw) version melded with session handling a la Claude Code.
All the adapter patterns were followed, tests and doc updated.
I've live-exercised it a bit, but would appreciate some input from someone with more sidecar experience.
-G