453 ·GitHub
What is this?
pi-optchat is an extension for the Pi coding agent that gives it persistent, endless memory per profile using a summary tree instead of context compaction, plus background subagents and the ability to import history from other agents.
Is this a standalone app or does it need Pi installed first?
It is a plugin that runs inside the existing Pi chat tool, not a separate program; there is no fork or separate launcher.
What do I need before installing it?
You need Pi 1.0.2 or a compatible version, Node.js 22.19 or newer, and Git.
Does it come with web browsing for the agent?
No, web access is not bundled; you need to separately install the pi-web-access extension to give the main agent and subagents web tools.
Does it work on Linux, or only macOS?
It is tested on macOS, and the offline test suite also runs on Linux.
What are profiles used for?
Profiles keep separate memories and instructions for different contexts, for example a 'work' profile versus a 'personal' one, and memory follows the active profile across directories and sessions.
What can subagents do?
Subagents are background agents the main agent can spawn to investigate or work on tasks; you can watch them live in a tree view, send them guidance mid-run, and they report back when finished.
Can I bring in my existing chat history?
Yes, the /optchat import command can pull in conversations and memories from Claude Code, Codex, or ChatGPT.
What is a 'connected window'?
Opening a second Pi window on the same profile turns it into a subagent you can talk to directly, which can hand off or message back to the main agent.
What are similar projects?
ruflo, Raven, brigade, oh-my-openagent, deer-flow, Agent-Skills-for-Context-Engineering, uniichat, MemOS
Which topics is it in?
subagents, long-term-memory, multi-agent-systems, context-engineering, agent-memory, memory, anthropic, multi-agent, plugin, coding-agent, claude, productivity