UNPKG

akm-cli

Version:

akm (Agent Knowledge Manager) — a portable, local-first capability library for AI agents. Discover, load, share, and improve reusable skills, scripts, workflows, and knowledge across any shell-capable coding agent, including Claude Code, OpenCode, and Cur

27 lines (26 loc) • 1.03 kB
// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. /** * GitHub Copilot CLI (`copilot`), the local headless CLI and not the cloud coding * agent. `-p` runs one prompt; `--allow-all-tools` is what lets it run without * asking for approval at each tool. */ import { withoutModelFlag, } from "../harness.js"; export class CopilotHarness { id = "copilot"; displayName = "GitHub Copilot CLI"; profile = { bin: "copilot", args: [] }; systemPrompt = false; nativeAgent = false; confinable = false; build({ bin, args }, req) { const argv = [bin, ...(req.model ? withoutModelFlag(args) : args)]; if (req.model) argv.push("--model", req.model); if (req.prompt === undefined) return { argv }; argv.push("--allow-all-tools", "-p", req.prompt); return { argv, failureStream: "stderr" }; } }