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

29 lines (28 loc) • 1.23 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/. /** * Aider (`aider`). `--message` is its one-shot mode, `--yes-always` confirms every * prompt so an unattended run does not stop, and `--no-pretty` keeps ANSI * rendering out of the captured reply. The message is a flag value, with no * positional prompt and no `--` to hide behind, so it is glued on with `=`: a * prompt that starts with `-` then binds to the flag and is never read as an option. */ import { withoutModelFlag, } from "../harness.js"; export class AiderHarness { id = "aider"; displayName = "Aider"; profile = { bin: "aider", 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("--yes-always", "--no-pretty", `--message=${req.prompt}`); return { argv, failureStream: "stderr" }; } }