@nathapp/nax 0.83.4 → 0.83.6
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/README.md +15 -13
- package/dist/nax.js +23361 -14085
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -122,7 +122,10 @@ For full flag details, see the [CLI Reference](docs/guides/cli-reference.md).
|
|
|
122
122
|
{
|
|
123
123
|
"agent": {
|
|
124
124
|
"protocol": "hybrid", // "acp" | "native" | "hybrid" — which transports are permitted
|
|
125
|
-
"default": "native"
|
|
125
|
+
"default": "native", // In-process nax-ai agent; or an ACP agent such as "claude"
|
|
126
|
+
"native": {
|
|
127
|
+
"instructionFileName": "AGENTS.md" // Repository instruction basename; e.g. "TEAM.md"
|
|
128
|
+
}
|
|
126
129
|
},
|
|
127
130
|
"execution": {
|
|
128
131
|
"maxIterations": 20, // Note: `nax run -m <n>` overrides this only when the flag is passed
|
|
@@ -169,7 +172,7 @@ For full flag details, see the [CLI Reference](docs/guides/cli-reference.md).
|
|
|
169
172
|
|
|
170
173
|
`execution.commandInterceptor` rewrites the `Git` tool's argv through `rtk` so `log` and `diff` output reaches the model compressed. It is confined to the Git site: user-authored `quality.commands` and `acceptance.command` are never wrapped. It fails open — if the `rtk` binary is missing the call runs as plain git.
|
|
171
174
|
|
|
172
|
-
**Both features are native-agent only.** An ACP agent (`claude`, `codex`, `opencode`, `gemini`) brings its own tools, so nax's `Git` tool is never invoked and no MCP tool is advertised. A project on `"protocol": "acp"` can hold a complete, valid config for both and get zero effect, with no error. The built-in defaults (`agent.protocol: "hybrid"`, `agent.default: "native"`) let both take effect once configured (the interceptor itself is off by default); a config that switches to an
|
|
175
|
+
**Both features are native-agent only.** An ACP agent (`claude`, `codex`, `opencode`, `gemini`) brings its own tools, so nax's `Git` tool is never invoked and no MCP tool is advertised. A project on `"protocol": "acp"` can hold a complete, valid config for both and get zero effect, with no error. The built-in defaults (`agent.protocol: "hybrid"`, `agent.default: "native"`) let both take effect once configured (the interceptor itself is off by default); a config that switches to an ACP agent does not.
|
|
173
176
|
|
|
174
177
|
See [MCP & Command Interception](docs/guides/mcp-and-interception.md) for setup, verification and troubleshooting, and the [Configuration Guide](docs/guides/configuration.md) for the full schema.
|
|
175
178
|
|
|
@@ -255,18 +258,17 @@ See [Plugin System](docs/architecture/subsystems.md#23-plugin-system).
|
|
|
255
258
|
|
|
256
259
|
## Agents
|
|
257
260
|
|
|
258
|
-
The default agent is `native`: nax drives the model in-process over `@nathapp/nax-ai` (no CLI binary), using the built-in `models.native` Anthropic tier map, so it needs Anthropic credentials (`nax auth` or the provider's environment variable) unless you override the map. Every other agent is reached
|
|
261
|
+
The default agent is `native`: nax drives the model in-process over `@nathapp/nax-ai` (no CLI binary), using the built-in `models.native` Anthropic tier map, so it needs Anthropic credentials (`nax auth` or the provider's environment variable) unless you override the map. Every other agent is reached over ACP (Agent Client Protocol) through `@nathapp/nax-agent-acp`, which launches the agent's own ACP launcher and talks JSON-RPC over stdio: persistent sessions, reported token/cost usage, and multi-turn session continuity. Install the launcher for each ACP agent you use; where an `npx` fallback exists, the first run downloads it and `nax precheck` warns.
|
|
259
262
|
|
|
260
|
-
| Agent |
|
|
261
|
-
|
|
263
|
+
| Agent | ACP launcher | Notes |
|
|
264
|
+
|:------|:-------------|:------|
|
|
262
265
|
| Native (nax-ai) | — (in-process) | Default. `agent.default: "native"` |
|
|
263
|
-
| Claude Code | `claude` | Set `agent.default: "claude"` |
|
|
264
|
-
| OpenCode | `opencode` | Set `agent.default: "opencode"` |
|
|
265
|
-
| Codex | `codex` | Set `agent.default: "codex"` |
|
|
266
|
-
| Gemini CLI | `gemini` | Set `agent.default: "gemini"` |
|
|
267
|
-
| Pi Coding Agent | `pi` | Set `agent.default: "pi"`
|
|
268
|
-
| Aider |
|
|
269
|
-
| Any ACP-compatible | — | See [acpx agent docs](https://github.com/openclaw/acpx#agents) |
|
|
266
|
+
| Claude Code | `claude-agent-acp` (or `npx @agentclientprotocol/claude-agent-acp`) | Set `agent.default: "claude"` |
|
|
267
|
+
| OpenCode | `opencode acp` | Set `agent.default: "opencode"` |
|
|
268
|
+
| Codex | `codex-acp` (or `npx @agentclientprotocol/codex-acp`) | Set `agent.default: "codex"` |
|
|
269
|
+
| Gemini CLI | `gemini --acp` | Set `agent.default: "gemini"` |
|
|
270
|
+
| Pi Coding Agent | `pi-acp` (or `npx pi-acp`) | Set `agent.default: "pi"` |
|
|
271
|
+
| Aider | — | Known name with no ACP launcher; it fails at session open |
|
|
270
272
|
|
|
271
273
|
See [Agents Guide](docs/guides/agents.md) and the [Context Engine Guide](docs/guides/context-engine.md) for agent-portable context configuration.
|
|
272
274
|
|
|
@@ -291,7 +293,7 @@ See the [Troubleshooting Guide](docs/guides/troubleshooting.md) for more.
|
|
|
291
293
|
|
|
292
294
|
nax is inspired by [Relentless](https://github.com/ArvorCo/Relentless) — the same "keep trying until done" philosophy, applied to AI agent orchestration.
|
|
293
295
|
|
|
294
|
-
ACP support is powered by
|
|
296
|
+
ACP support is powered by `@nathapp/nax-agent-acp` over the Agent Client Protocol (`@agentclientprotocol/sdk`).
|
|
295
297
|
|
|
296
298
|
## License
|
|
297
299
|
|