Repository navigation
feat(agents): add Pi and agents built on it - #22
Merged
Merged
Conversation
Reads Pi sessions from ~/.pi/agent/sessions (JSONL) and from any hidden folder with the same layout, including wrappers that keep the entries in a sessions.db. Pi has no shell hooks, so it shows from its process and recent log activity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds Pi (earendil-works/pi,
piCLI) to AI agents, the notch and the MCP server.~/.pi/agent/sessions/--<cwd>--/*.jsonl(header line hascwd; assistantmessage.usage{input, output, cacheRead, cacheWrite, cacheWrite1h, cost.total},timestampin ms), per the session-manager and ai types in Pi's source.piConfig.configDir) and some keep the same entries in asessions.db(session_entries.payload_json). Menew looks for either layout under every hidden folder in the home directory (~/.<name>/agent), with no tool names in the code. Verified on a Pi-based wrapper on this Mac (SQLite layout); the JSONL layout is covered by a test built from Pi's source.piprocess and recent log activity.🤖 Generated with Claude Code