Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/old-rice-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@shellular/protocol": minor
"shellular": minor
---

feat: add Oh My Pi ACP agent support
28 changes: 28 additions & 0 deletions cli/src/agents/agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,34 @@ export const BUILTIN_AGENT_DESCRIPTORS: Record<AgentId, AgentDescriptor> = {
args: ["-y", "pi-acp"],
},
},
omp: {
id: "omp",
name: "Oh My Pi",
title: "Oh My Pi",
agentExecutable: "omp",
installationCommands: {
Shell: {
os: ["macos", "linux"],
command: "curl -fsSL https://omp.sh/install | sh",
},
Homebrew: {
os: ["macos", "linux"],
command: "brew install can1357/tap/omp",
},
bun: {
os: ["all"],
command: "bun install -g @oh-my-pi/pi-coding-agent",
},
PowerShell: {
os: ["windows"],
command: "irm https://omp.sh/install.ps1 | iex",
},
},
spawn: {
command: "omp",
args: ["acp"],
},
},
cursor: {
id: "cursor",
name: "Cursor",
Expand Down
3 changes: 3 additions & 0 deletions cli/src/agents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import { GrokActiveSessionsWatcher } from "./grok-active-sessions-watcher";
import { GrokBuild } from "./grok-build";
import { Hermes } from "./hermes";
import { NotifyBridge, type NotifyEvent } from "./notify-bridge";
import { Omp } from "./omp";
import { OpenCode } from "./opencode";
import { Pi } from "./pi";
import { terminateAgentProcess } from "./process-scanner";
Expand Down Expand Up @@ -3547,6 +3548,8 @@ function createAgentRuntime(
return OpenCode.create();
case "pi":
return Pi.create();
case "omp":
return Omp.create();
case "cursor":
return Cursor.create();
case "fx":
Expand Down
9 changes: 9 additions & 0 deletions cli/src/agents/omp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { BUILTIN_AGENT_DESCRIPTORS } from "./agents";
import { ACP } from "./base";

/** Oh My Pi ACP runtime. */
export class Omp extends ACP {
static create() {
return new Omp(BUILTIN_AGENT_DESCRIPTORS.omp);
}
}
1 change: 1 addition & 0 deletions protocol/src/agents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const AGENT_IDS = [
"copilot",
"cursor",
"pi",
"omp",
"hermes",
"grok-build",
];
Expand Down
1 change: 1 addition & 0 deletions protocol/src/ai-legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const _AiBackendSchema = z.enum([
"copilot",
"cursor",
"pi",
"omp",
"hermes",
"grok-build",
]);
Expand Down
Loading