Multi-platform coordination for provider-agnostic AI development
Cross-engine coordination, Algorithm execution, and research integration
Cross-engine coordination via MCP. Enables PNK (OpenCode) to delegate work to other PAI engines (PNC, PNG, PNX, PNO) and track provenance across the 5-engine architecture.
PAI Algorithm execution in OpenCode. Runs the OBSERVE → PLAN → EXECUTE cycle with ISA (Ideal State Artifact) generation and ISC (Ideal State Criteria) verification.
Unified research integration. Connects OpenCode to YouTube, ArXiv, Fabric patterns, and NotebookLM for comprehensive multi-source research workflows.
Real-world plugin integration patterns
// PNK hands off research to PNG (Gemini)
const handoff = await pai_handoff({
from: "PNK",
to: "PNG",
task: "Research latest OAuth 2.0 vulnerabilities",
context: {
project: "auth-system",
priority: "high"
}
});
// Check status later
const status = await pai_provenance({
handoff_id: handoff.id
});
// Run full Algorithm cycle
const result = await algorithm_run({
task: "Build user authentication system",
effort: "DETERMINED",
context: {
tech_stack: ["TypeScript", "Bun", "SQLite"],
requirements: ["JWT", "refresh tokens", "role-based access"]
}
});
// OBSERVE → generates ISA with ISC
// PLAN → creates execution plan
// EXECUTE → implements with verification
// Research pipeline: YouTube + ArXiv + NotebookLM
const research = await research_pipeline({
topic: "LLM security vulnerabilities",
sources: ["youtube", "arxiv", "notebooklm"],
depth: "extensive",
deliverables: ["summary", "audio_overview", "citations"]
});
// Returns:
// - YouTube video transcripts
// - ArXiv paper summaries
// - NotebookLM audio overview
// - Consolidated findings
Local development setup
# Clone the plugins repository
git clone ~/Projects/PAI-Development/pai-opencode-plugins
cd pai-opencode-plugins
# Install dependencies
bun install
# Link all plugins to OpenCode
bun run link:all
# Verify installation
bun test
# Check OpenCode recognizes plugins
opencode --list-plugins