jnsahaj/agent-plugin-sdk
5 stars · Last commit 2026-06-20
Write an agent plugin once, ship it to every harness — Claude Code, Codex, Pi, and OpenCode. Skills, commands, subagents, hooks, MCP, and shared tools from one TypeScript definition.
README preview
# agent-plugin-sdk
THIS PROJECT IS EXPERIMENTAL AND MIGHT NOT WORK AS EXPECTED
**Write a plugin once. Ship it to every agent harness.**
Each coding agent — Claude Code, Codex, Pi, OpenCode — has its own plugin system,
its own file layout, its own frontmatter rules. Authoring the same skill four times
and keeping them in sync is busywork.
`agent-plugin-sdk` lets you define your plugin **once** in TypeScript and compiles it
to the **native installable artifacts** each harness expects. No runtime, no wrapper —
the output is exactly the files those harnesses load on their own.
```ts
import { definePlugin, defineSkill } from "agent-plugin-sdk";
export default definePlugin({
id: "git-helper",
description: "Helpers for reviewing and committing changes in a git repo.",