diacode 0.2.3 → 0.3.0-rc.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 CHANGED
@@ -1,5 +1,60 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0-rc.1 (2026-11-16): the release candidate
4
+
5
+ 0.3.0 as it will be, for the hand test: on npm under the `next` tag (`npx diacode@next`; `latest` stays 0.2.3), the VS Code extension as a file to install by hand (its
6
+ Marketplace upload waits for 0.3.0 itself), and the Mac app as an unsigned zip. What changed is the next section. When the hand test passes this line goes and `0.3.0` is dated.
7
+
8
+ ## 0.3.0 (not yet released): one name
9
+
10
+ *In progress; this entry grows as the work lands. Plan: `docs/evolution/0.3.0-plan.md`.*
11
+
12
+ **The old name is gone.** DiaCode was called DcurseD until 0.2.0, and the old name was still in the folder, the agent entries, the
13
+ permission rule, the commands, the headers and the variables. Everything now says `diacode`.
14
+
15
+ **Upgrading from 0.2.x.** In each repository, run `npx diacode init <agent>` again. It moves the plans first (the same thing as
16
+ `npx diacode migrate`, which you can also run on its own): `.dcursed/` becomes `.diacode/`, the plan, architecture and layout files
17
+ now say `diacode.plan/1`, `diacode.arch/0` and `diacode.layout/0` (plan logs are left as they were), and what the old `init` wrote
18
+ under the old name is taken out — the `dcursed` MCP entry, the `mcp__dcursed` allow rule, the old rules files and the old block in
19
+ `AGENTS.md` — before the new entries are written. Nothing of yours is touched, a file that is in both folders is left and said, and it
20
+ can be run again. Then restart your agent's session. `serve` refuses a folder that still has `.dcursed/` (it would show an empty one
21
+ beside it) and says which command to run; `doctor` lists what is still old. Files under the old ids are still read, so a plan copied
22
+ in from a 0.2 repository opens.
23
+
24
+ - **Renamed:** the folder `.dcursed/` → `.diacode/`; the MCP server `dcursed` → `diacode` (so Claude Code's tools are
25
+ `mcp__diacode__…`); the headers `x-dcursed-*` → `x-diacode-*`; the variables `DCURSED_*` → `DIACODE_*` (`DIACODE_WAKE`,
26
+ `DIACODE_DEBUG`, `DIACODE_AGENT`, `DIACODE_URL`, `DIACODE_EDITOR`); the VS Code extension's id, commands, view and settings
27
+ `dcursed.*` → `diacode.*` (a setting you changed, `dcursed.port` for one, is not carried over); the Claude Code plugin `dcursed` →
28
+ `diacode` (`/diacode:setup`, `/diacode:doctor`, `/diacode:plan`); the desktop app's name inside (its list of recent folders starts empty).
29
+ - **Downgrading is not supported**: a plan the new `init` has migrated says `diacode.plan/1`, which a 0.2 DiaCode does not read.
30
+ Keep plans in git if you may go back.
31
+ - **Not renamed:** the site's address and the repository's name on GitHub.
32
+ - **OpenCode reads as "OpenCode".** Its default agent is called `build`, and the editor said so (*"Ask build to review these"*, a step owned by *build*, a status line reading *"build working"*), which means nothing
33
+ to someone who has not met OpenCode's agents. It now reads "OpenCode", and its other agents "OpenCode (name)", in the editor, the compact view and VS Code's status line.
34
+ - **A permission prompt shows the whole command.** The editor's line for a prompt was a summary: whitespace squeezed to single spaces and cut at 300
35
+ characters, so a compound command (start a server, some `curl`s, a `kill`) was cut before the part that matters, and a newline, which separates two
36
+ commands, read as a space. A command that is longer than one line, or has more than one, now has **Show the whole command** under it: the exact text,
37
+ newlines kept, selectable. A command too long to carry (over 20,000 characters) cannot be allowed from the editor, only denied, and says to answer it in
38
+ the agent's own window. This is in the editor, the compact view, VS Code and the desktop app alike.
39
+ - **The desktop app's error boxes no longer hold it up.** They were modal for the whole app, so while one was open it answered nothing, not even a quit
40
+ from outside; they are ordinary message boxes now.
41
+ - **The desktop app moves a DiaCode 0.2 folder's plans for you.** Opening a folder that 0.2 set up (plans in `.dcursed/`) used to end in an error box
42
+ that told you to run `diacode migrate`, a command a Mac-app user does not have. The app now asks, and its button **Move them and open** runs the same
43
+ migration with the command inside the app; afterwards connect your agent again (File ▸ Connect an Agent). A folder watched again from the last run is
44
+ never asked about. The first-open instructions for the unsigned zip are corrected: right-click ▸ Open stopped working in macOS 15 (`docs/desktop.md`).
45
+ - **VS Code and the desktop app: the re-plan buttons ask the agent you connected.** The extension started its plan server with `--reconcile manual`,
46
+ and since 0.2.3 any `--reconcile` makes those buttons run a separate OpenCode session, so a Claude Code user got OpenCode's buttons (and its errors).
47
+ `diacode.reconcile` is now `manual` (the agent you connected answers) or `auto` (a separate OpenCode session also asks by itself); only `auto` passes the flag.
48
+ - **VS Code starts the plan server for a folder you connected, as soon as it opens.** After a restart, with the agent's files in the folder and no plan
49
+ yet, nothing started it until you ran a command, so the agent's first call found nothing on its port. The extension now wakes for the files `init`
50
+ writes (and for a folder DiaCode 0.2 set up), and says in a notification why when the server will not start. The error carries the server's last lines
51
+ instead of "exited (code 1)"; in VS Code it tells you to run **DiaCode: Connect an agent…**, which moves a 0.2 folder's plans and starts the server.
52
+ - **The agent picker's text for Claude Code** said "rules in CLAUDE.md"; it writes `.claude/rules/diacode.md`.
53
+ - **A command prompt with no *don't ask again* says why.** For `node …` and `curl …` Claude Code sends the editor only the exact command, so the
54
+ editor has nothing narrow to offer; a line under the prompt now says so, and that Claude Code's own window may offer a wider rule (which DiaCode
55
+ does not pass on, because it would let the agent run anything of that kind unasked).
56
+ - **A box you add to the architecture is `box-3`, not `step-3`**, so that in an agent's report an id says which side it is on.
57
+
3
58
  ## 0.2.3 (2026-11-11): six fixes from the Paper Shelf hand test
4
59
 
5
60
  Written after a hand test of 0.2.2 with Claude Code on Sonnet 5.5 (the Paper Shelf task, Part 1): the staged flow worked from the
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # dcursed
1
+ # diacode
2
2
 
3
3
  **A plan you and your coding agents share.**
4
4
 
5
- A plan is a file in your repository, `.dcursed/plans/<name>.plan.json`. You and your agents both edit
5
+ A plan is a file in your repository, `.diacode/plans/<name>.plan.json`. You and your agents both edit
6
6
  it: you drag a step or draw an arrow in the editor, an agent adds one through MCP, and both land in the same
7
7
  file under the same rules. Status comes from what the agents actually do: a step goes in progress when an
8
8
  agent's tools touch its files, not only when the agent says so, and each step shows how it is known (seen,
@@ -44,10 +44,10 @@ config with comments is yours: it says what to add instead).
44
44
 
45
45
  | | MCP (the plan tools) | Hooks or plugin (what the agent does, what you changed) | Rules |
46
46
  |---|---|---|---|
47
- | OpenCode | `opencode.json` | `.opencode/plugins/dcursed.js` and `.dcursed/opencode-plugin.js` | an `AGENTS.md` block |
48
- | Claude Code | `.mcp.json` | `.claude/settings.local.json` (yours alone; `--shared` writes `settings.json`) | `.claude/rules/dcursed.md` |
49
- | Cursor | `.cursor/mcp.json` | `.cursor/hooks.json` | `.cursor/rules/dcursed.mdc` |
50
- | Antigravity | `.agents/mcp_config.json` | `.agents/hooks.json` | `.agents/rules/dcursed.md` |
47
+ | OpenCode | `opencode.json` | `.opencode/plugins/diacode.js` and `.diacode/opencode-plugin.js` | an `AGENTS.md` block |
48
+ | Claude Code | `.mcp.json` | `.claude/settings.local.json` (yours alone; `--shared` writes `settings.json`) | `.claude/rules/diacode.md` |
49
+ | Cursor | `.cursor/mcp.json` | `.cursor/hooks.json` | `.cursor/rules/diacode.mdc` |
50
+ | Antigravity | `.agents/mcp_config.json` | `.agents/hooks.json` | `.agents/rules/diacode.md` |
51
51
 
52
52
  Commit the MCP entries and rules if you want your team to have them; the hooks assume a plan server on
53
53
  your machine, so Claude Code's go in your own settings file by default.
@@ -59,7 +59,7 @@ your machine, so Claude Code's go in your own settings file by default.
59
59
  | `diacode init <harness\|all>` | connect this repository to an agent; `--port` if 7300 is taken, `--root` for another folder; `--remove` takes out again only what it wrote |
60
60
  | `diacode serve` | the plan server and the editor; `--reconcile` / `--reconciler-model` make the re-plan buttons run a separate OpenCode session instead of asking your agent (off by default), and `--reconcile auto` lets it propose edits by itself (it spends model calls) |
61
61
  | `diacode doctor` | check that the pieces fit |
62
- | `dcursed import <file>` | bring in a Cursor `.plan.md`, markdown with a Mermaid block, or a `.mmd` file |
62
+ | `diacode import <file>` | bring in a Cursor `.plan.md`, markdown with a Mermaid block, or a `.mmd` file |
63
63
 
64
64
  The editor's re-plan buttons (*Should the plan cover this?*, *Ask your agent to review these*, *Ask your agent to re-plan from this*) wake the
65
65
  agent you connected, which proposes the plan change or says none is needed. A separate, read-only [OpenCode](https://opencode.ai)