PAI-OpenCode: PAI v4.0 Community Port to OpenCode β π RELEASE v3.0 #1074
Replies: 5 comments 2 replies
-
|
Given the increasing challenges with Claude token limits, as well as PAI's original intent to be model-agnostic, I'd love to see the community adopt OpenCode as the path forward for 5.0 (or whenever). I've been using the OpenCode port, and it's nice to have a mix of local or cheaper cloud models for light & medium tasks, along with powerful ones for the complex ones in order to reduce subscription usage and dependence upon one platform. |
Beta Was this translation helpful? Give feedback.
-
|
I'm absolutely looking forward to taking some time and setting this up instead of in CC. Please do keep this in step and hopefully that process can get easier! |
Beta Was this translation helpful? Give feedback.
-
|
Guys, thank you for doing this incredible project! |
Beta Was this translation helpful? Give feedback.
-
|
I think it would be difficult to try to run both side-by-side, at least if you're new to the projects. Once you are really familiar with the "engine" files, vs. the "info" files, you could probably set up some symlinks for a lot of the core data in the To get started, I would pick one and really learn how it works. It took me about a month with lots of fiddling to get to a point where I'm pretty comfortable about the purpose and effect of most of the directories. |
Beta Was this translation helpful? Give feedback.
-
|
Given the Mr. Miessler declaration of intent about v5+, is this implementation building also on that way or is "just a port" of v4.0.3? |
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.
-
We're back β and it took longer than expected
First, an honest acknowledgment: it's been a while since our last update. Client work pulled us deep for months, and what started as incremental improvements turned into something much bigger. The scope of truly integrating PAI into OpenCode β rather than just mirroring it β was larger than we anticipated. Worth every week of it.
The v3.0 Philosophy: PAI for OpenCode, not PAI on OpenCode
Previous versions took a translation approach: bring PAI's patterns to OpenCode, keep them compatible, ship it. That worked. But v3.0 is the first release where PAI-OpenCode genuinely leans into what OpenCode is instead of working around it.
tier: alwaysskill handles everything, context loads on demandSteffen025/opencodefork (feature/model-tiersbranch)opencode.aiβ no fork, no custom buildopencode/big-pickle) β start immediately, no key neededWhat's in v3.0
Core Architecture
PAI/SKILL.mdwithtier: always; bootstrap file gone, 233KB static context eliminatedopencode/big-pickleas default for all agents; no API key required to get startedOpenCode-Native Improvements
OpenCodeSystem/SKILL.mddocuments OpenCode's own architecture, tool reference, configuration, and troubleshooting patterns; PAI now knows how its own environment worksINSTALL.md; community plugin path availablePlugins & Security
session.compacted,session.error,permission.asked,command.executed,session.updated,session.created,installation.update.availabledb-utils.tswith session archiving, size monitoring, vacuum supportDeveloper Experience
bash PAI-Install/install.shwith headless modeswitch-provider.tsβ switch all agent models with one command (zen, zen-free, zen-paid, anthropic, openai, local)migrate-legacy-config.tsauto-converts v2.x configsCommunity Contributions
Special thanks to contributors in this release:
--fix-symlinkflagQuick Start
git clone https://github.com/Steffen025/pai-opencode.git cd pai-opencode bash PAI-Install/install.sh opencodeComing from v2.x? See UPGRADE.md β the main breaking change is
model_tiersreplaced by per-agent model config. Runmigrate-legacy-config.tsto auto-convert.Links
All credit for PAI's architecture, Algorithm, and philosophy goes to Daniel Miessler. PAI-OpenCode is a community port β our goal is to make PAI accessible on any provider.
Questions, feedback, and issues always welcome. β¬οΈ
Beta Was this translation helpful? Give feedback.
All reactions