agent-aider 0.1.0: Aider as a magpie agent plugin, the first of the new agent kind (#78)

magpie (cb406c84) lets a plugin add an agent it has no setup of its own
for. This one writes Aider's ~/.aider.conf.yml: the model under litellm's
openai/ prefix, magpie's /v1 and Aider's own key. check.mjs skips agent
packages as it does middleware; README gains an Agents section.

Run: bun test packages/aider (2 pass); bun scripts/check.mjs; the module
loaded through magpie's agentplug.Compile and its connect returned the
three keys. The same module, in a sandbox magpie, wired a real aider
0.86.2 that answered from a real DeepSeek account, and Disconnect put
the file back byte for byte.
This commit is contained in:
yetone
2026-10-10 22:52:47 +08:00
committed by GitHub
parent 98e91cc4a2
commit 6e720301aa
6 changed files with 103 additions and 3 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ for (const name of readdirSync(root)) {
const pj = join(dir, "package.json")
if (!existsSync(pj)) continue
const pkg = JSON.parse(readFileSync(pj, "utf8"))
// gateway middleware has no OpenCode plugin; its own tests check it
if (pkg.magpie?.middleware) continue
// gateway middleware and agents have no OpenCode plugin; their own tests check them
if (pkg.magpie?.middleware || pkg.magpie?.agent) continue
const problems = []
try {
const mod = await import(pathToFileURL(join(dir, pkg.main ?? "index.mjs")).href)