ai-agentmanager 1.55.0 → 1.55.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +3 -3
- package/bin/acp-client.js +4 -1
- package/bin/local-run.js +5 -1
- package/package.json +1 -1
- package/src/engines/index.js +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.55.1 (2026-11-16)
|
|
4
|
+
|
|
5
|
+
From running a real task on `gpt-oss:20b` (Ollama) through each harness.
|
|
6
|
+
|
|
7
|
+
- **Local models: OpenCode is now the default harness.** `--engine local` picks OpenCode when it is installed, then Codex, then Claude Code. This changes what you get if you have OpenCode installed and relied on the default: it was Codex in 1.55.0. To keep Codex, run `agentmgr models --harness codex`. The reason: the model finished the same task on OpenCode in 5 of 6 runs and on Codex in about 5 of 14.
|
|
8
|
+
- **Local · Codex no longer asks before every command.** Open models asked to leave the sandbox even for `ls` and `cat`, nine prompts for a four-line fix. The model is now told its commands need no approval.
|
|
9
|
+
- **Known, not fixed:** with `gpt-oss:20b` on Ollama, Codex's file edits often fail (the model writes a tool call Ollama can't read, and the turn stops). Use OpenCode or Claude Code for that model.
|
|
10
|
+
- **ACP agents (OpenCode and others):** a permission menu that named only a folder ("Permission needed: /etc") now names the tool first ("read /etc").
|
|
11
|
+
|
|
3
12
|
## 1.55.0 (2026-11-16)
|
|
4
13
|
|
|
5
14
|
- **Local models.** Agents can run on a model served from this computer: Ollama, LM Studio, llama.cpp or MLX. The app finds the servers on their usual ports and lists their models in **OS** and with `agentmgr models`, with a note on which an agent can use; a model that can't call tools is not offered. An agent's model names the server, say `ollama/qwen3-coder:30b`.
|
package/README.md
CHANGED
|
@@ -860,11 +860,11 @@ An agent can run on a model served on this computer instead of a provider's: no
|
|
|
860
860
|
|
|
861
861
|
| Harness | Engine | Notes |
|
|
862
862
|
|---|---|---|
|
|
863
|
-
| **Codex CLI** (open source; `npm i -g @openai/codex`, no sign-in needed for this) | `local-codex` |
|
|
864
|
-
| **OpenCode** (open source; `npm i -g opencode-ai`) | `local-opencode` | Made for many providers. Runs over ACP, so the app reads less from it (no token counts). |
|
|
863
|
+
| **Codex CLI** (open source; `npm i -g @openai/codex`, no sign-in needed for this) | `local-codex` | A small first message, so it suits small contexts. It is told that its commands need no approval, since open models otherwise ask at every step. With `gpt-oss:20b` on Ollama its file edits often fail (the model writes a tool call Ollama can't read, and the turn stops): use OpenCode or Claude Code for that model. |
|
|
864
|
+
| **OpenCode** (open source; `npm i -g opencode-ai`) | `local-opencode` | The default: in our trials an open model finished a task on it more often than on Codex. Made for many providers. Runs over ACP, so the app reads less from it (no token counts). |
|
|
865
865
|
| **Claude Code** | `local-claude` | Everything the app does for Claude Code agents, but Anthropic doesn't support Claude Code on other models: expect rough edges. The server has to speak Anthropic's API, which Ollama does. |
|
|
866
866
|
|
|
867
|
-
`--engine local` is the harness set with `agentmgr models --harness codex|opencode|claude`, or else the first of
|
|
867
|
+
`--engine local` is the harness set with `agentmgr models --harness codex|opencode|claude`, or else the first installed of OpenCode, Codex and Claude Code.
|
|
868
868
|
|
|
869
869
|
- **What is found.** Ollama (port 11434), LM Studio (1234), and llama.cpp's `llama-server` or MLX's `mlx_lm.server` (8080), plus any server that speaks the OpenAI API at an address you add: `agentmgr models --add mlx=http://127.0.0.1:8081`. **OS** lists each server's models with their size and whether an agent can use them, as does `agentmgr models`. A model that can't call tools is listed but can't be chosen: an agent needs tools to read and change files. Embedding models are left out.
|
|
870
870
|
- **Starting an agent on one.** Choose **Local · Codex**, **Local · OpenCode** or **Local · Claude Code** as the engine in New agent or Ask Agent (each offered while its harness is installed and a server with a usable model is running) and pick the model, or `agentmgr add --engine local --model ollama/qwen3-coder:30b "…"`. A model is written `<server>/<model>`. `agentmgr models --default <model>` sets the one used when none is given.
|
package/bin/acp-client.js
CHANGED
|
@@ -208,7 +208,10 @@ async function handle(method, p) {
|
|
|
208
208
|
let answer = null; // resolves with the next line typed while a permission menu is open
|
|
209
209
|
async function permission(p) {
|
|
210
210
|
const options = p.options ?? [];
|
|
211
|
-
|
|
211
|
+
// Some agents name only what the tool wants (a folder outside the project, say): put the tool's own name first.
|
|
212
|
+
const tool = tools.get(p.toolCall?.toolCallId)?.title;
|
|
213
|
+
const what = p.toolCall?.title ?? tool ?? 'a tool';
|
|
214
|
+
const title = tool && tool !== 'tool' && !what.toLowerCase().includes(tool.toLowerCase()) ? `${tool} ${what}` : what;
|
|
212
215
|
const pick = (kinds) => options.find((o) => kinds.includes(o.kind));
|
|
213
216
|
if (yes || deny || once) {
|
|
214
217
|
const o = deny || once ? pick(['reject_once', 'reject_always']) : pick(['allow_once', 'allow_always']);
|
package/bin/local-run.js
CHANGED
|
@@ -77,7 +77,11 @@ if (opt.harness === 'claude') {
|
|
|
77
77
|
env.OPENCODE_CONFIG_CONTENT = JSON.stringify({ $schema: 'https://opencode.ai/config.json', provider: { agentmgr: { npm: '@ai-sdk/openai-compatible', name: 'Local', options: { baseURL: `${url}/v1` }, models: { [model]: { name: opt.model, ...limit } } } }, model: `agentmgr/${model}`, small_model: `agentmgr/${model}` });
|
|
78
78
|
} else {
|
|
79
79
|
// Codex, with the server as its model provider. It takes options after `resume`.
|
|
80
|
-
|
|
80
|
+
// Open models tend to give every command a `justification`, Codex answers that one needs
|
|
81
|
+
// `sandbox_permissions`, and the model then asks to leave the sandbox for `ls` and `cat`: a
|
|
82
|
+
// prompt for you at every step. Told this, they mostly stop.
|
|
83
|
+
const quiet = 'Shell commands already run in a sandbox that can read every file and write in the project, so they need no approval. When you call exec_command, give `cmd` and leave out `justification` and `sandbox_permissions`. Only if a command has failed because the sandbox blocked it (network access, or writing outside the project), repeat it with `sandbox_permissions` set to "require_escalated" and a `justification`.';
|
|
84
|
+
const flags = ['-c', `model_providers.agentmgr={name="Local",base_url="${url}/v1"}`, '-c', 'model_provider="agentmgr"', ...(window ? ['-c', `model_context_window=${window}`] : []), '-c', `developer_instructions=${JSON.stringify(quiet)}`, '--model', model];
|
|
81
85
|
args = rest[0] === 'resume' ? ['resume', ...flags, ...rest.slice(1)] : [...flags, ...rest];
|
|
82
86
|
}
|
|
83
87
|
const child = spawn(bin, args, { stdio: 'inherit', env });
|
package/package.json
CHANGED
package/src/engines/index.js
CHANGED
|
@@ -44,11 +44,14 @@ export function notInstalled(engine, config) {
|
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* The engine "local" stands for: the harness config.json names ("localModels": { "harness": … })
|
|
47
|
-
* when it is installed, else the first installed of
|
|
47
|
+
* when it is installed, else the first installed of OpenCode, Codex and Claude Code. OpenCode
|
|
48
|
+
* first: open models finish a task on it more often than on Codex, whose edit command they get wrong.
|
|
48
49
|
*/
|
|
50
|
+
const LOCAL_ORDER = ['opencode', 'codex', 'claude'];
|
|
49
51
|
export function localEngineId(config = {}) {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
+
const all = LOCAL_ORDER.map((h) => LOCAL_ENGINES.find((e) => e.harness === h));
|
|
53
|
+
const have = all.filter((e) => installed(e, config));
|
|
54
|
+
return (have.find((e) => e.harness === localSettings(config).harness) ?? have[0] ?? all[0]).id;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
/** Every engine, with whether it can run here, for pickers and the hub. */
|