PAI-OpenCode: PAI v3.0 Community Port to OpenCode β π RELEASE v2.0 #286
Replies: 20 comments 25 replies
-
π PAI-OpenCode v0.4: Agent Delegation System Complete
|
| Milestone | Status | Version |
|---|---|---|
| Vanilla Install | β Complete | v0.2 |
| Skills Translation | β Complete | v0.3 |
| Agent Delegation | β Complete | v0.4 |
| History System | π Next | v0.5 |
| Voice Synthesis | π Planned | v0.6 |
Repository: github.com/Steffen025/pai-opencode
Beta Was this translation helpful? Give feedback.
-
|
Really great initiative. I wait eagerly for the release and can then join in testing. Asking from @danielmiessler, what is your vision in how in the future the choice of platform (or parallel multi-platform use) should happen? Would the main PAI have configuration options for Claude, OpenCode, Codex, Gemini... |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v0.5 Complete - v0.6 History System In ProgressVersion: v0.5.0 β
Released v0.5 Plugin Infrastructure - CompleteThe plugin system foundation is now validated and working:
v0.6 History System - In Active DevelopmentCurrently implementing the full history system with 8 plugins for session tracking, learnings capture, and SpecFirst integration. Progress:
π Technical Issues We Hit - Community Input Welcome!We ran into some interesting edge cases. If anyone has experience with these, we'd love input: Issue 1: TUI Corruption from CLI Tools (BLOCKING)Symptom: OpenCode TUI renders garbage characters and corrupts display Root Cause: Our CLI tools in Affected files:
Question: What's the correct way to output from OpenCode tools without corrupting the TUI? File-based logging? A specific OpenCode API? Issue 2: Segmentation Fault with Plugins EnabledSymptom: When: Running OpenCode with our plugins in Status: Hard to debug - happens before any useful error output. Currently have plugins disabled while investigating. Question: Has anyone seen segfaults from plugins? Any common causes? Issue 3: Argument Parsing in ToolsSymptom: session-search shows "Sessions matching undefined" Likely Cause: Our argv parsing isn't handling OpenCode's tool invocation correctly. Minor - will fix once Issue 1 is resolved. Updated Milestone Table
Repository: github.com/Steffen025/pai-opencode |
Beta Was this translation helpful? Give feedback.
-
π Update: Found the answers via DeepWikiDid some code archaeology on the Issue 1: TUI Corruption - SOLVEDRoot cause confirmed: OpenCode tools must return strings, not use // WRONG
async execute(args) {
console.log("output") // β Corrupts TUI
}
// CORRECT
async execute(args) {
return "output" // β
Framework handles display
}For debugging, OpenCode provides Issue 2: Segmentation Fault - Leads identifiedPlugins run in the same process space as OpenCode (no isolation). Potential causes:
Debug strategy: Enable plugins one-by-one, avoid native modules, check Will fix the console.log issue first, then isolate the segfault source. Thanks to anyone who read through the earlier issues - turns out the OpenCode codebase had the answers all along! |
Beta Was this translation helpful? Give feedback.
-
π’ Status Update: PAI 2.3 RealignmentHey everyone, Time for an honest update on what's been happeningβand why things have been quiet. The DiscoveryWhile continuing development, I discovered that the PAI upstream has evolved significantly since we started. The Most notably: What This MeansThe good news: This isn't a "start over" situation. The core workβagent definitions, plugin infrastructure, skill systemβremains valid. What needs to change:
What stays the same:
This is actually the core value proposition of PAI-OpenCode: PAI patterns translated for OpenCode's architecture. Next StepsWorking on v0.6.0 "PAI 2.3 Alignment"βa structural reset that brings us in line with current upstream while respecting OpenCode's conventions. After that, the roadmap includes:
Lesson LearnedAlways The two weeks of quiet were spent understanding the scope of this and planning the fix properly. Now we have a clear path forward. Thanks for your patience. More updates coming soon. Questions or suggestions? Happy to discuss here. |
Beta Was this translation helpful? Give feedback.
-
π v0.7.0 Released - Plugin Adapter Complete!Excited to share that PAI-OpenCode v0.7.0 is now live with a fully working Plugin Adapter system. All 4 core tests are passing:
What's Newπ‘οΈ Security Blocking Works! π Context Injection π TUI-Safe Logging Key Technical DiscoveryWhile debugging, we discovered an important OpenCode API quirk that might help others building plugins: // In tool.execute.before, args are in OUTPUT, not input!
"tool.execute.before": async (input, output) => {
const command = output.args.command; // β Correct!
// NOT: input.args.command β Wrong!
}This is now documented in our Progress Update
Links
Thanks to everyone following along! The port is progressing well - we're 7 milestones into the journey to v1.0. π |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v0.8 - The Automatic Migration ConverterHey PAI community! Big milestone: v0.8 introduces an automatic converter that migrates your entire PAI 2.x installation to OpenCode in seconds. The PAI-to-OpenCode Converter# Convert your PAI setup to OpenCode
bun run tools/pai-to-opencode-converter.ts --source ~/.claude --target .opencode
# Preview changes first (recommended)
bun run tools/pai-to-opencode-converter.ts --dry-run --verbosePerformance: Converts 767+ files in under 5 seconds β‘ What Gets Translated
Key Features
Why This MattersIf you've invested time building out your PAI infrastructure on Claude Code, you can now bring that entire setup to OpenCode with a single command. No manual file renaming, no path hunting, no config editing. Repositoryπ github.com/Steffen025/pai-opencode π Full Converter Documentation Next up: v0.9.1 with critical findings about agent invocation in OpenCode! |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v0.9.1 Released - Approaching v1.0!Hey PAI community! Great news - PAI-OpenCode v0.9 is complete with a critical v0.9.1 hotfix! This release focuses on integration testing, documentation, final validation, and a major discovery about agent invocation. What v0.9 Validates
v0.9.1 Hotfix: Agent Invocation DiscoveryDuring live testing, we discovered our documentation was wrong about agent invocation:
The Key Insight: OpenCode has TWO different invocation contexts:
This finding is critical for anyone building agent delegation in OpenCode! What's Fixed in v0.9.1
Progress to v1.0What's Next: v1.0 Public ReleaseThe final milestone! v1.0 includes:
Links
We're one step away from v1.0. Thanks for following along - the community-ready vanilla PAI 2.3 on OpenCode is almost here! Questions or feedback welcome! π |
Beta Was this translation helpful? Give feedback.
-
|
Amazing work! |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v0.9.3 Status Update: Fresh Install Test FindingsHey PAI community! Quick update on our path to v1.0 - we hit an important checkpoint. Where We Arev0.9.3 is complete with:
π Fresh Install Test ResultsWe thought v1.0 was just a "polish and ship" away. Then we ran a comprehensive self-check on a completely fresh user account... The Algorithm (THOROUGH) with 12 parallel agents found 42 issues. Most stem from one root cause: The
π‘ Key Learnings for Anyone Porting PAI
π Path to v1.0We are fixing all 42 issues before release:
Progress Update
Repository: github.com/Steffen025/pai-opencode The detour is worth it - v1.0 will be properly validated. Thanks for following along! π |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v1.0 Released!After months of development, PAI-OpenCode v1.0 is now available! What is it? Quick Startgit clone https://github.com/Steffen025/pai-opencode.git
cd pai-opencode
bun run .opencode/PAIOpenCodeWizard.ts
opencodeWhat's in v1.0 β
33 Skills fully ported (CORE, Art, Browser, Security, Research, Fabric...) Architecture Translation ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β Claude Code PAI β PAI-OpenCode β
ββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β .claude/ β .opencode/ β
ββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β Hooks β Plugins (TypeScript) β
ββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β CLAUDE.md β OPENCODE.md β
ββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β Native context loading β Plugin-based context injection β
ββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββWhat's Coming in v1.1
Links π Repository: https://github.com/Steffen025/pai-opencode This project directly addresses the question in this thread β you can now Feedback welcome! Open issues or discussions on the repo. |
Beta Was this translation helpful? Give feedback.
-
|
I really appreciate your work on this, thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Can't wait to try this. Amazing work! |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v1.1.0 Released - PAI 2.5 + Voice Notifications!Hey PAI community! Big update: PAI-OpenCode v1.1.0 is now live with two major upgrades: π― PAI 2.5 Algorithm (v0.2.25)We've upgraded from PAI 2.4 to PAI 2.5 with the full Algorithm:
π Voice Notification System (5 New Handlers)The v1.1 release adds 5 new handlers bringing us to 13 total:
π€ Voice Backends (3 Options!)Voice notifications now work with multiple backends - use what you have:
All backends fail gracefully - no errors if services unavailable. Quick Upgradecd pai-opencode
git pull origin main
# Done! New handlers are automatically active.Links
Thanks for following along! The PAI-OpenCode port continues to track upstream PAI releases. π |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v1.2.0: Real-Time Observability DashboardI'm excited to announce PAI-OpenCode v1.2.0 β featuring a brand new Real-Time Observability Dashboard that gives you unprecedented visibility into your AI assistant's operations! What's Newπ Observability Server (Port 8889)At the heart of this release is a lightweight observability infrastructure that captures everything happening in your PAI system:
π Vue 3 Real-Time DashboardA beautiful, responsive dashboard that brings your AI system to life:
π‘ 14 Event Types Captured
Quick Start# Pull the latest release
cd ~/.opencode
git pull origin main
# Start the observability server
cd observability-server
bun run server.ts
# Open the dashboard
open http://localhost:8889Links
Feedback welcome! π β Steffen |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v1.3.0 β Multi-Provider Agent SystemHey PAI community! v1.3.0 is a turning point for PAI-OpenCode. Up until now, we were essentially running a 1:1 port of vanilla PAI β proving the architecture works on OpenCode. That's done. With v1.3.0, we're now leveraging what makes OpenCode unique: the ability to mix providers, mix models, and route different agents to different backends β all within the same session. What's Different HereMost AI coding tools either lock you to one provider (Claude Code β Anthropic, Copilot β GitHub Models) or let you manually switch models (Cursor, Aider). PAI-OpenCode does something none of them do: the orchestrator automatically routes each task to the right model at the right cost β and the same agent scales up or down dynamically.
The orchestrator decides per task. You always pay exactly what the task requires β no more, no less. This is built by the PAI-OpenCode agent system on top of OpenCode's multi-provider support. As far as we can tell, no other AI coding assistant or agent framework currently offers this pattern of dynamic per-task model tier routing across provider boundaries. 15 Specialized Agents with Dynamic Tier Routing
3 Configuration PresetsPick a strategy and go β no manual config editing:
Why This MattersSince v1.0, the most common question was: "Can I use this without Claude Max?" and "What about cheaper models?" v1.3.0 answers both: Yes. But more importantly β your agents dynamically select the model that matches the task complexity. Simple tasks stay cheap. Complex tasks get the power they need. The orchestrator handles the routing. Research Skill with Cost Control
Other Improvements
Stats
Get Startedgit clone https://github.com/Steffen025/pai-opencode.git
cd pai-opencode
bun run .opencode/PAIOpenCodeWizard.ts
opencodeLinksπ Repository: github.com/Steffen025/pai-opencode Feedback, questions, and issues welcome! π |
Beta Was this translation helpful? Give feedback.
-
|
Hey @Steffen025 β sorry for the slow follow-up on your WSL ask. I'm on WSL2 daily and happy to run through the install guide. What should I specifically be looking for? Happy to test end-to-end or focus on whatever's most uncertain. |
Beta Was this translation helpful? Give feedback.
-
π PAI-OpenCode v2.0.0 Released β Algorithm v1.8.0: The Verification ReleaseHey PAI community! The biggest PAI-OpenCode release since inception is here. v2.0.0 ports 14 upstream commits from Daniel's PAI system, upgrading the core Algorithm from v0.2.25 to v1.8.0 and achieving full PAI v3.0 parity. While the Algorithm evolved dramatically, all 39 skills, 16 agents, 3 provider presets, and 20 plugin handlers continue to work unchanged. Upgrade with confidence. Why This Release MattersIf you've ever had an AI assistant claim "all tests passing" without actually running tests, or watched your specific requirements dissolve into vague criteria during implementation β those are the two failure modes v2.0.0 was built to eliminate. Highlightsπ Verify Completion Gate (v1.6.0) π¬ Constraint Extraction System (v1.3.0) π§ Wisdom Frames (v1.8.0) β‘ Zero-Delay Output (v1.6.0) π 8 Effort Levels π 25-Capability Full Scan π‘οΈ Build Drift Prevention π PRD System What's Also New
Breaking Changes
Provider Flexibility (Unchanged β Still Works)PAI on Claude Code = Anthropic only. PAI-OpenCode = 75+ providers. Same agent, different models based on task complexity:
The orchestrator decides per task. You pay exactly what the task requires. Upgrade PathFrom any previous version: cd pai-opencode
git pull origin main
bun installNew users: git clone https://github.com/Steffen025/pai-opencode.git
cd pai-opencode
bun run .opencode/PAIOpenCodeWizard.ts
opencodeStats
Links
This release represents full parity with Daniel's PAI v3.0 β the community port is caught up. All credit for the PAI system architecture goes to @danielmiessler. Feedback, issues, and contributions welcome! π |
Beta Was this translation helpful? Give feedback.
-
|
I've only just barely started to use Claude Code (stock), and thinking ahead of if I want an OpenClaw on my local server (old GTX 1080 GPU for now) and how to have them interact/etc. I've also been thinking if there's a way to have PAI v3.0 actually hit llama.cpp as a router to, for general things, hit the local LLM, save me money/usage, but for more advanced needs, and perhaps interactive sessions, hit Anthropic for the standard Opus/Sonnet/Haiku models as needed. Is this part of what this port to OpenCode is about? Being able to run multiple models and mixing local with remote/cloud to get the best of both worlds kind of thing? EDIT: Actually nevermind! I just looked at your latest comment/updates, looked at OpenCode, and found the Providers that it does do local llamap.cpp/etc as I was looking for. I suppose next question, is, I can still use my Anthropic Max subscription? Or do I need to switch to API credentials/access? |
Beta Was this translation helpful? Give feedback.
-
|
Yes. The long-term strategy here is always to have more freedom and have it be more of your own. The underlying structure underneath PAI is able to change quite a bit over time. Currently, it's built on Claude Code because it's just the best thing out there, but at some point, the quality of building from individual spare and open parts is going to outpace the advantages of a proprietary solution.
So PAI will be its own thing sitting on top of whatever is below it. Currently Claude Code, but eventually it will probably be something more like the Pi project.Β Which is just a whole bunch of tiny little raw components that you can stitch together in various ways. Completely open.
β¦On Tue, Feb 24, 2026 at 3:13 PM, Drizzt321 < ***@***.*** > wrote:
I've only just barely started to use Claude Code (stock), and thinking
ahead of if I want an OpenClaw on my local server (old GTX 1080 GPU for
now) and how to have them interact/etc.
I've also been thinking if there's a way to have PAI v3.0 actually hit
llama.cpp as a router to, for general things, hit the local LLM, save me
money/usage, but for more advanced needs, and perhaps interactive
sessions, hit Anthropic for the standard Opus/Sonnet/Haiku models as
needed.
Is this part of what this port to OpenCode is about? Being able to run
multiple models and mixing local with remote/cloud to get the best of both
worlds kind of thing?
β
Reply to this email directly, view it on GitHub (
#286 (comment)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAAMLXUW2KHFZO3JA5SCOY34NTLI5AVCNFSM6AAAAACQOO3T3WVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOJRGYZTKNY
).
You are receiving this because you were mentioned. Message ID: <danielmiessler/Personal_AI_Infrastructure/repo-discussions/286/comments/15916357
@ github. com>
|
Beta Was this translation helpful? Give feedback.










Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is PAI-OpenCode?
PAI-OpenCode is a community-driven implementation of Daniel's PAI (Personal AI Infrastructure) system on OpenCode β the open-source AI coding assistant that runs in your terminal.
The project started as a vanilla port to validate that PAI's architecture is platform-agnostic. That validation is complete. Since then, PAI-OpenCode has evolved into its own implementation that leverages what makes OpenCode unique: multi-provider support with dynamic model routing.
Current Status: v2.0.0 β Algorithm v1.8.0
The biggest release since inception. 14 upstream commits ported, Algorithm upgraded from v0.2.25 to v1.8.0, full PAI v3.0 parity.
zen-paid(75+ providers),openrouter,local-ollama(fully offline)As far as we can tell, no other AI coding assistant or agent framework currently offers this pattern of dynamic per-task model tier routing across provider boundaries.
Who is This For?
Get Started
git clone https://github.com/Steffen025/pai-opencode.git cd pai-opencode bun run .opencode/PAIOpenCodeWizard.ts opencodeLinks
Attribution
All credit for the PAI system architecture, philosophy, and design goes to Daniel Miessler. PAI-OpenCode is a community implementation that validates and extends the platform-agnostic nature of Daniel's vision.
Release updates are posted as comments below. β¬οΈ
Beta Was this translation helpful? Give feedback.
All reactions