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
24 lines (23 loc) • 875 B
JavaScript
// 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/.
/** The environment variable OpenHands reads its model from. */
const MODEL_ENV = "LLM_MODEL";
export class OpenhandsHarness {
id = "openhands";
displayName = "OpenHands";
profile = { bin: "openhands", args: [] };
systemPrompt = false;
nativeAgent = false;
confinable = false;
build({ bin, args }, req) {
const argv = [bin, ...args];
if (req.prompt !== undefined)
argv.push("--headless", `--task=${req.prompt}`);
return {
argv,
...(req.model ? { env: { [MODEL_ENV]: req.model } } : {}),
...(req.prompt !== undefined ? { failureStream: "stderr" } : {}),
};
}
}