The adapter's binary is claudeacp, not claude-acp #3

Merged
city-root merged 1 commit from worker/claudeacp-w41 into main 2026-11-12 05:57:56 +00:00
Contributor

The adapter's binary is claudeacp, not claude-acp. cmd/claude-acp moves to cmd/claudeacp, and the name follows in usage and error text, -version, the package comment, the tests and their comments, the README (install line, every example, the Zed entry and the title), and .gitignore. The library packages' import paths do not change.

What go install ./cmd/claudeacp puts into the bin directory: one binary, claudeacp (checked: $(go env GOPATH)/bin held only claudeacp afterwards; I removed it again). go install sarak.sh/mikluko/claudeacp/cmd/claudeacp@<version> does the same.

CHANGELOG: a breaking entry under [Unreleased] says that whoever starts the adapter by its old name (client settings, a launcher's acp_command) starts claudeacp instead with the same options, and whoever installs .../cmd/claude-acp installs .../cmd/claudeacp. v0.4.0 and earlier keep cmd/claude-acp, so the README's pin example now reads @vX.Y.Z.

Every claude-acp that remains, and why:

  • README.md:11: "Upstream's claude-acp takes no options..." and the link to afrase/claude-acp-go: about upstream.
  • README.md:16: "where upstream's is claude-acp": about upstream.
  • CHANGELOG.md lines 20, 28, 29 and 58 (the 0.4.0 and 0.1.0-era sections): release history, true for those versions.
  • CHANGELOG.md:12: the new entry names the old binary and path to say what to change.

Changed beyond the obvious: .gitignore's /claude-acp (a built binary) is dropped: /claudeacp would match the library directory claudeacp/, and go build into a directory of that name never yields a file there anyway. claudeagent/modversion_test.go had a fake replace path ../claude-acp-go, now ../claudeacp. The CI workflows (.forgejo, .github) build and test ./... and name no binary path: no change.

Verified: go build ./..., go vet ./..., gofmt -l . (clean), go test ./... all pass.

Not in this bead: the release, rexcity's tool line and the city's acp_command.

Bead: claudeacp-w41

The adapter's binary is `claudeacp`, not `claude-acp`. `cmd/claude-acp` moves to `cmd/claudeacp`, and the name follows in usage and error text, `-version`, the package comment, the tests and their comments, the README (install line, every example, the Zed entry and the title), and `.gitignore`. The library packages' import paths do not change. **What `go install ./cmd/claudeacp` puts into the bin directory:** one binary, `claudeacp` (checked: `$(go env GOPATH)/bin` held only `claudeacp` afterwards; I removed it again). `go install sarak.sh/mikluko/claudeacp/cmd/claudeacp@<version>` does the same. **CHANGELOG:** a breaking entry under `[Unreleased]` says that whoever starts the adapter by its old name (client settings, a launcher's `acp_command`) starts `claudeacp` instead with the same options, and whoever installs `.../cmd/claude-acp` installs `.../cmd/claudeacp`. v0.4.0 and earlier keep `cmd/claude-acp`, so the README's pin example now reads `@vX.Y.Z`. **Every `claude-acp` that remains, and why:** - `README.md:11`: "Upstream's `claude-acp` takes no options..." and the link to `afrase/claude-acp-go`: about upstream. - `README.md:16`: "where upstream's is `claude-acp`": about upstream. - `CHANGELOG.md` lines 20, 28, 29 and 58 (the 0.4.0 and 0.1.0-era sections): release history, true for those versions. - `CHANGELOG.md:12`: the new entry names the old binary and path to say what to change. **Changed beyond the obvious:** `.gitignore`'s `/claude-acp` (a built binary) is dropped: `/claudeacp` would match the library directory `claudeacp/`, and `go build` into a directory of that name never yields a file there anyway. `claudeagent/modversion_test.go` had a fake replace path `../claude-acp-go`, now `../claudeacp`. The CI workflows (`.forgejo`, `.github`) build and test `./...` and name no binary path: no change. **Verified:** `go build ./...`, `go vet ./...`, `gofmt -l .` (clean), `go test ./...` all pass. Not in this bead: the release, rexcity's tool line and the city's `acp_command`. Bead: claudeacp-w41
feat!: name the adapter's binary claudeacp, not claude-acp (claudeacp-w41)
All checks were successful
CI / Changelog (pull_request) Successful in 4s
CI / Lint (pull_request) Successful in 34s
CI / Test (pull_request) Successful in 37s
95c31427fd
The user asked that the binary carry the repository's and the module's
name. The command moves from cmd/claude-acp to cmd/claudeacp, so
go install sarak.sh/mikluko/claudeacp/cmd/claudeacp@<version> puts a
binary named claudeacp into the bin directory. The library packages'
import paths do not change.

The name follows wherever the binary names itself or is named: the usage
and error text, -version, the package comment, the tests and their
comments, the README's install line and examples (its Zed entry too), and
the .gitignore line for a built binary, which is dropped because
/claudeacp would now ignore the library directory. The CI workflows run
./... and name no binary path, so they need no change.

CHANGELOG gets a breaking entry under [Unreleased] that says what to
change. Its earlier sections are release history and keep the old name.
The README keeps claude-acp where it is about upstream.

Validation: go build, go vet and go test ./... pass; go install
./cmd/claudeacp installed a single binary, claudeacp.
Author
Contributor

Reviewed at head 95c31427fd, merged into main 54d3364 (main had not moved).

What I checked:

  • The whole diff against bead claudeacp-w41. cmd/claude-acp moved to cmd/claudeacp. The new name is used in usage and error text, -version, the package and command doc comments, the tests and their helpers, the README (title, install line, pin example, Zed entry, every example) and .gitignore. The library import paths are unchanged. Nothing unrelated is in it.
  • grep -rn 'claude-acp' on the merge result finds exactly the PR's list: README.md:11 and :16 (both about upstream), CHANGELOG.md:12 (the new entry naming the old name, which it has to), and :20, :28, :29, :58 (release history). The list is complete.
  • Build, vet, gofmt -l (clean) and go test -race -shuffle=on ./... all pass on the merge result with the module cache offline. The real-claude e2e test was confirmed skipped (CLAUDEACP_E2E_CLAUDE unset).
  • go install ./cmd/claudeacp puts one binary, claudeacp, into GOBIN. claudeacp -version prints claudeacp 0.4.1-0.20261112055642-3f87430aeeec. A refused flag (-p) exits 2 with claudeacp: ... and usage: claudeacp [-version | claude options...]. An unknown flag such as --bogus is passed through to claude, as before.
  • I built mikluko/changelog v1.6.0 from its tagged source and ran it on the merge result: valid=true, no findings, due=false (the newest version section is 0.4.0, already tagged). So this merge cuts no release. The tool does not derive a next version: the release PR names it, and the breaking entry calls for 0.5.0.
  • CI run for 95c3142: Test, Lint and Changelog all succeeded.

Follow-ups:

  • A release (v0.5.0) that carries the rename, then rexcity's tool line and the city's acp_command (already planned outside this bead).
  • Minor: go build ./cmd/claudeacp from the repository root now fails with "build output "claudeacp" already exists and is a directory", because of the library directory claudeacp/. go install and go build -o bin/ ./cmd/claudeacp work. A README line on building locally may be worth adding.

Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.

Reviewed at head 95c31427fd6349abe69a65e1488abfbeac7699b8, merged into main 54d3364 (main had not moved). What I checked: - The whole diff against bead claudeacp-w41. `cmd/claude-acp` moved to `cmd/claudeacp`. The new name is used in usage and error text, `-version`, the package and command doc comments, the tests and their helpers, the README (title, install line, pin example, Zed entry, every example) and `.gitignore`. The library import paths are unchanged. Nothing unrelated is in it. - `grep -rn 'claude-acp'` on the merge result finds exactly the PR's list: README.md:11 and :16 (both about upstream), CHANGELOG.md:12 (the new entry naming the old name, which it has to), and :20, :28, :29, :58 (release history). The list is complete. - Build, vet, `gofmt -l` (clean) and `go test -race -shuffle=on ./...` all pass on the merge result with the module cache offline. The real-claude e2e test was confirmed skipped (`CLAUDEACP_E2E_CLAUDE` unset). - `go install ./cmd/claudeacp` puts one binary, `claudeacp`, into GOBIN. `claudeacp -version` prints `claudeacp 0.4.1-0.20261112055642-3f87430aeeec`. A refused flag (`-p`) exits 2 with `claudeacp: ...` and `usage: claudeacp [-version | claude options...]`. An unknown flag such as `--bogus` is passed through to claude, as before. - I built mikluko/changelog v1.6.0 from its tagged source and ran it on the merge result: valid=true, no findings, due=false (the newest version section is 0.4.0, already tagged). So this merge cuts no release. The tool does not derive a next version: the release PR names it, and the breaking entry calls for 0.5.0. - CI run for 95c3142: Test, Lint and Changelog all succeeded. Follow-ups: - A release (v0.5.0) that carries the rename, then rexcity's `tool` line and the city's `acp_command` (already planned outside this bead). - Minor: `go build ./cmd/claudeacp` from the repository root now fails with "build output "claudeacp" already exists and is a directory", because of the library directory `claudeacp/`. `go install` and `go build -o bin/ ./cmd/claudeacp` work. A README line on building locally may be worth adding. Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.
city-root referenced this pull request from a commit 2026-11-12 06:00:33 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/claudeacp!3
No description provided.