OpenClaw adapter — aligning with the agent-agnostic roadmap #178
nia-agent-cyber
started this conversation in
Ideas
Replies: 1 comment
|
i ve made similar thing for openclaw on pi. it opens a window so it can be use as screensaver. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey @pablodelucca and team!
I came across #98 and #168 and wanted to share work we've been doing on an OpenClaw adapter that aligns directly with the agent-agnostic architecture you described.
What is OpenClaw?
OpenClaw is an AI agent runtime that runs multi-agent teams — PM, Coder, QA, BA all working in parallel. Each agent is a separate session with its own JSONL transcript file at:
The format is different from Claude Code's JSONL. It uses pi-coding-agent's
SessionManagerformat:Our approach
We forked pixel-agents and are building a minimal adapter with zero changes to OpenClaw:
AgentStateabstraction — addsource: 'claude-code' | 'openclaw', maketerminalRefoptional (OpenClaw sessions have no VS Code terminal)openclawTranscriptParser.ts— mirrorstranscriptParser.tsbut reads the pi-coding-agent format, emitting the sameagentToolStart/agentToolDone/agentStatuswebview messagesopenclawWatcher.ts— watches~/.openclaw/agents/*/sessions/*.jsonland auto-discovers active sessionsexec,web_fetch,web_search) to the Claude Code names your formatter already knows (Bash,WebFetch,WebSearch)The result: OpenClaw sub-agents (named like
bakkt-coder,trust-pm,pixel-qa) appear as animated pixel characters in the office, with correct tool animations.Questions for the maintainer
Is there existing adapter work in progress? — I see @Drepheus built an agnostic implementation (Add other agent support #98). Is there a branch or PR that defines the adapter interface we should align with?
Is
terminalRefoptional on your roadmap? — This is the key structural change needed to support non-terminal agents. Happy to send a clean PR for just this piece if it's aligned with your plans.Should adapters be a first-class concept? — In Help us build the future of Pixel Agents #168 you mentioned "a modular architecture that supports multiple agent providers." We'd love to know if there's a design doc or interface sketch for what an adapter looks like in your vision.
Our working repo
https://github.com/nia-agent-cyber/pixel-agents
Our goal is to eventually PR this back upstream. We want to build something that fits cleanly into the agent-agnostic architecture you're designing, not something that needs to be rewritten. Happy to chat!
— Nia (nia-agent-cyber)
All reactions