@bastani/atomic-acp 0.0.16 → 0.0.17
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 +14 -22
- package/dist/index.js +80 -316
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
·
|
|
10
10
|
<a href="#what-works">What works</a>
|
|
11
11
|
·
|
|
12
|
-
<a href="#
|
|
12
|
+
<a href="#subagents-and-background-work">Subagents</a>
|
|
13
13
|
·
|
|
14
14
|
<a href="#configuration">Configuration</a>
|
|
15
15
|
·
|
|
@@ -36,7 +36,7 @@ Atomic reads files, edits code and runs commands on your machine, exactly as it
|
|
|
36
36
|
|
|
37
37
|
## Get started
|
|
38
38
|
|
|
39
|
-
You need Node.js 20 or newer and Atomic 0.
|
|
39
|
+
You need Node.js 20 or newer and Atomic 0.10.0 or newer, signed in to at least one model provider:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
npm install -g @bastani/atomic @bastani/atomic-acp
|
|
@@ -71,29 +71,20 @@ Without a global install, use `"command": "npx", "args": ["-y", "@bastani/atomic
|
|
|
71
71
|
- Text and reasoning stream into the thread. Tool calls show their status and files, edits show a diff, and shell commands show their output.
|
|
72
72
|
- Threads are Atomic sessions. They appear in the editor's history and in `atomic --resume`, keep their title and survive an adapter restart. Deleting a thread deletes its session.
|
|
73
73
|
- The model and thinking pickers list what your Atomic setup offers, and the context indicator shows how full the context is.
|
|
74
|
-
- Prompt templates, skills (`/skill:name`) and extension commands
|
|
74
|
+
- Prompt templates, skills (`/skill:name`) and extension commands appear in the slash menu.
|
|
75
75
|
- When Atomic asks you to pick, confirm or type something, the editor shows a form.
|
|
76
76
|
- `ask_user_question` shows all of its questions in one form, multi-select included.
|
|
77
77
|
- MCP servers the editor configures reach the thread's Atomic process, and their tools are callable as `mcp__<server>__<tool>`. Stdio and HTTP servers work, SSE servers are skipped. `atomic-acp` never writes to your Atomic MCP config, and a server you define there under the same name wins.
|
|
78
78
|
- If Atomic exits during a message, the message fails with the reason, and the next message starts Atomic again on the same session.
|
|
79
79
|
|
|
80
|
-
##
|
|
80
|
+
## Subagents and background work
|
|
81
81
|
|
|
82
|
-
Atomic workflows
|
|
82
|
+
Atomic 0.10 has no workflows. The agent splits work across [subagents](https://docs.bastani.ai/orchestration) and background shells instead, and the editor shows them as tool calls.
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
A message that starts a workflow stays open until every run it started ends, so the editor doesn't report the agent as done while work is still going. Each run appears as a tool call with its stages and result.
|
|
91
|
-
|
|
92
|
-
- Cancelling the message quits its runs. Resume one with `/workflow resume <runId>`.
|
|
93
|
-
- A run that waits for your input stops holding the message. Reply in the thread and the agent answers the prompt.
|
|
94
|
-
- Set `ATOMIC_ACP_WAIT_FOR_WORKFLOWS=0` to end the message as soon as a run starts.
|
|
95
|
-
|
|
96
|
-
`/workflow-runs [status]` lists the project's recent runs, and `/workflow-run <runId>` shows one run's saved summary.
|
|
84
|
+
- A message ends when Atomic finishes its turn, even if subagents or shells it started are still running. Atomic doesn't report background work over RPC, so `atomic-acp` can't wait for it. To keep a message open until a result is in, ask the agent to wait for it.
|
|
85
|
+
- When background work finishes, Atomic reads the result in a new turn. That turn streams into the thread without a message of yours. A message you send while it runs joins that turn and ends when it ends.
|
|
86
|
+
- Cancelling a message stops the current turn and drops the messages queued behind it, as Esc does in Atomic. Subagents and shells keep running; ask the agent to stop them.
|
|
87
|
+
- Opening another thread, deleting a thread, or opening it again with different MCP servers stops its Atomic process. A message still running there ends as cancelled, and its subagents stop with the process.
|
|
97
88
|
|
|
98
89
|
## Slash commands
|
|
99
90
|
|
|
@@ -119,7 +110,6 @@ Set these in the `env` of your agent server entry:
|
|
|
119
110
|
| ------------------------------------ | -------- | --------------------------------------------------------------- |
|
|
120
111
|
| `ATOMIC_ACP_ATOMIC_COMMAND` | `atomic` | Path or name of the Atomic executable |
|
|
121
112
|
| `ATOMIC_ACP_ATOMIC_ARGS` | unset | JSON array of extra arguments for every Atomic process |
|
|
122
|
-
| `ATOMIC_ACP_WAIT_FOR_WORKFLOWS` | `1` | `0` ends a message without waiting for the runs it started |
|
|
123
113
|
| `ATOMIC_ACP_HEADLESS` | unset | `1` when no person can answer questions (see below) |
|
|
124
114
|
| `ATOMIC_ACP_ENABLE_EMBEDDED_CONTEXT` | unset | `true` lets the editor attach file contents directly to prompts |
|
|
125
115
|
|
|
@@ -129,11 +119,11 @@ Everything else, including logins, models, skills, extensions and the session st
|
|
|
129
119
|
|
|
130
120
|
### Headless clients
|
|
131
121
|
|
|
132
|
-
With `ATOMIC_ACP_HEADLESS=1`, questions end at once instead of waiting. `ask_user_question` tells the model that no person is available, extension dialogs are cancelled
|
|
122
|
+
With `ATOMIC_ACP_HEADLESS=1`, questions end at once instead of waiting. `ask_user_question` tells the model that no person is available, and extension dialogs are cancelled.
|
|
133
123
|
|
|
134
124
|
## Limitations
|
|
135
125
|
|
|
136
|
-
- `ask_user_question` needs
|
|
126
|
+
- `ask_user_question` needs an editor that supports ACP forms (elicitation). Without them, the question can't be answered.
|
|
137
127
|
- Atomic reads, writes and runs commands itself. The editor's file and terminal APIs aren't used.
|
|
138
128
|
- Messages sent while Atomic is busy are queued and sent one at a time.
|
|
139
129
|
- Zed is the tested client. Other ACP clients should work but may render some updates differently.
|
|
@@ -152,7 +142,9 @@ npm run build
|
|
|
152
142
|
|
|
153
143
|
## Releasing
|
|
154
144
|
|
|
155
|
-
Merge a commit titled `Release X.Y.Z` (or `Release X.Y.Z-alpha.N`)
|
|
145
|
+
Merge a pull request whose commit is titled `Release X.Y.Z` (or `Release X.Y.Z-alpha.N`) and sets that version in `package.json`. Any merge style works: a squash merge's ` (#N)` suffix is accepted. The [tag-release workflow](.github/workflows/tag-release.yml) then tags that commit and starts the [publish workflow](.github/workflows/publish.yml), which checks the tag, runs the tests and publishes to npm with [trusted publishing](https://docs.npmjs.com/trusted-publishers). Stable versions go to `latest` and alphas to `next`.
|
|
146
|
+
|
|
147
|
+
To publish a tag that already exists, for example after a failed run, start the publish workflow from `main` with that tag: `gh workflow run publish.yml --ref main -f tag=X.Y.Z`.
|
|
156
148
|
|
|
157
149
|
## Credits
|
|
158
150
|
|