Skip to content

chore: move agent setup from .opencode to Claude Code - #775

Merged
EVWorth merged 2 commits into
mainfrom
claude/hopeful-bardeen-1k4d1h
Oct 21, 2026
Merged

EVWorth merged 2 commits into
mainfrom
claude/hopeful-bardeen-1k4d1h

Conversation

@EVWorth

@EVWorth EVWorth commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Replaces the opencode agent setup with Claude Code's, and records the maintainer's working agreements.

What moves where

Was Now
.opencode/AGENTS.md CLAUDE.md, brought up to date
.opencode/agent/*.md (8 agents) .claude/agents/*.md
.opencode/command/*.md, .opencode/commands/findissues.md .claude/commands/*.md
opencode.json permissions .claude/settings.json
.opencode/cache/ .claude/cache/ (gitignored, with settings.local.json)

Git records the agents and commands as renames, so git log --follow keeps their history.

Changes along the way

  • No "self-dispatch". The old manual worked around opencode not being able to call custom agents by having the lead "embody" them. Claude Code runs subagents directly, so commands now delegate to the reviewer and issue-reviewer subagents by name.
  • Permissions. Claude Code agents restrict tools, not paths:
    • read-only agents (scout, reviewer, ci-doctor, issue-reviewer) get no Edit or Write;
    • each editing agent's path scope stays in its prompt and in CLAUDE.md's ownership table;
    • repo-wide denies (lockfile edits, target/, force-push, pushing to main) are in .claude/settings.json.
  • Stale content updated:
    • the project overview (it said v0.3.4, with four crates);
    • the crate table, which was missing mas-mcp and mas-agent;
    • test ports, now listing MariaDB's 13308;
    • "Makefile" references, now justfile;
    • the bump step, which claimed lockfile updates just bump doesn't do (just bump leaves the lockfiles' own version entries behind #777).
  • Dropped:
  • Scripts:
  • CI: the docs filter watches CLAUDE.md and .claude/**, so changes there get dprint-checked.

Working agreements (new in CLAUDE.md)

  • "Release" means end to end.
  • Anything found wrong gets an issue.
  • No personal information in the repo.
  • Lasting instructions get written into CLAUDE.md.
  • Cloud-session notes: tag pushes get HTTP 403, the disk fills up, and Docker needs restarting.

Checks

  • Frontmatter: all 13 agent and command files parse as YAML with the required fields.
  • Format and scripts: dprint is clean, .claude/settings.json is valid JSON, and both scripts pass bash -n.
  • Workflow: ci.yml parses and check-action-pins.sh passes.
  • Leftovers: git grep -i opencode finds nothing, and the diff adds no personal names, emails or home paths.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

What "release" means (end to end, no asking), filing an issue for
anything found wrong, and recording lasting instructions here. Also the
checks to run before pushing, and what trips up cloud sessions: tag
pushes are refused, the disk fills with test binaries, Docker needs
restarting, and two known local-only test failures (#773).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The opencode team config moves to Claude Code's layout:

- .opencode/AGENTS.md merges into CLAUDE.md, brought up to date (crate
  list, test ports, release flow) and without the "self-dispatch"
  workaround: Claude Code runs custom subagents directly.
- The 8 agents move to .claude/agents/. opencode's per-path edit
  permissions become tool lists (read-only agents get no Edit/Write);
  the path scopes stay in each prompt and CLAUDE.md's ownership table.
- The commands move to .claude/commands/. The older duplicate of
  reviewissues is dropped, and so is the unfinished #204 plan in ops/.
- opencode.json's permissions move to .claude/settings.json.
- doc-keeper-sweep.sh runs `claude -p --agent doc-keeper`, and both
  scripts default to the repo they live in rather than a personal path.
- CI's docs filter watches CLAUDE.md and .claude/**.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
@EVWorth EVWorth changed the title docs: add CLAUDE.md with the maintainer's working agreements chore: move agent setup from .opencode to Claude Code Oct 21, 2026
@EVWorth
EVWorth merged commit bb4d500 into main Oct 21, 2026
12 checks passed
@EVWorth
EVWorth deleted the claude/hopeful-bardeen-1k4d1h branch October 21, 2026 00:07
EVWorth added a commit that referenced this pull request Oct 21, 2026
…778)

* ci: lint every workspace crate with clippy

CI ran clippy without --workspace in src-tauri, whose Cargo.toml is
both the workspace root and the app package, so the six mas-* crates
were never linted. mas-agent already failed: claude.rs had its session
type after the tests module (items_after_test_module). The tests now
come last, and CI, just lint and the docs all lint the workspace.

Fixes #772.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

* fix(deps): hold mas-mcp's reqwest at 0.12

The cargo group bump (#756) moved mas-mcp's dev-dependency back to 0.13,
undoing #717: built with the app crate, its test client shares the
reqwest that tauri-plugin-updater builds with rustls-no-provider, and
all 8 HTTP tests in endpoint.rs panic for want of a crypto provider.

Back on 0.12, Dependabot told not to offer 0.13, and a CI step runs the
endpoint tests built with the app crate, which is the only build that
shows the failure. CI ran mas-mcp's tests on their own, so it stayed
green both times this broke.

Fixes #773.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

* fix(scripts): keep the caller's PATH in dev.sh

dev.sh replaced PATH with one person's home directories, which named
them in a public repo and left everyone else without cargo. It now adds
$HOME/.cargo/bin, and Linuxbrew where installed, to the caller's PATH.
The other three files #776 listed were fixed when the agent docs moved
(#775).

Fixes #776.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

* fix(just): set the lockfiles' own version in just bump

just bump set package.json, tauri.conf.json and Cargo.toml, but not the
app's own entries in package-lock.json and Cargo.lock, so every release
PR (#751, #761, #771) patched those up by hand. The recipe now sets the
two package-lock.json fields directly, since an npm install would
re-resolve and an npm older than the one that wrote the lockfile drops
fields, and runs `cargo update -p sqlpilot` for Cargo.lock.

Its closing hint, the /bump command and the release-cutter agent all
said to commit on main and `git push origin main --follow-tags`, which
the PRs-only rule and .claude/settings.json forbid. They now describe
the release PR, then a tag on its merge commit.

Fixes #777.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

---------

Co-authored-by: Claude <[email protected]>
@EVWorth EVWorth mentioned this pull request Oct 23, 2026
EVWorth added a commit that referenced this pull request Oct 23, 2026
* release: 1.4.0

Version bump across the three manifests and the two lockfile entries
that record the app's own version. Minor: features landed.

From the UX review (#783), 34 issues fixed:

Data safety
- A sorted or filtered grid deleted or copied the wrong row (#839)
- Grid edits saved against the editor's current text, not the result's
  table and connection (#840)
- Switching result sets kept pending edits for the wrong rows (#869)
- Restore into production now always asks (#789); Apply in the designer
  previews DROP COLUMN (#791) and is disabled when the table failed to
  load (#796); Delete Profile asks first (#795)
- Non-default themes crashed the app on every launch (#781)

Editor and results
- Results and run state are kept per editor tab; cancelling one tab no
  longer stops another tab's query on the same connection (#842)
- Run, Explain and Explain Analyze use the statement at the cursor (#846)
- Unsaved tabs ask before closing (#843, partial); a user's own cancel
  reads as information, not an error (#850)
- Double-click edits a cell again (#841); row 1 no longer hides under the
  header (#847); the LIMIT box can be cleared and retyped (#848)

Connections
- Run goes to the server the editor tab shows (#788)
- Progress while connecting, with cancel (#799); full connect failures
  with Retry (#804); saved profiles in the sidebar, menu and palette
  (#817); Test Connection gives the same diagnosis as Connect and names
  MariaDB (#809)
- Save failures keep the dialog open (#792); Port and timeouts can be
  retyped (#813)

Schema browser, backup and agents
- View Structure opens the structure panel (#787); DDL opens in a
  read-only editor tab (#800); the filter finds events (#806); FK
  reference columns survive a load error (#810)
- Cancelled or partial restores warn (#793); run dialogs keep focus, ask
  before closing mid-run and keep Cancel on screen (#798, #803, #807);
  the backup bar counts rows (#811)
- Agent approvals queue instead of replacing each other (#790), show the
  full SQL (#786), and the redaction field follows its patterns (#794)

Also: a mock backend for reviewing the UI in a browser (#780), the
agent setup moved from .opencode to Claude (#775), and dependency
updates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

* fix(deps): bump tokio and ctutils for advisories

RUSTSEC-2026-0384: tokio 1.54.0 -> 1.54.1 (race in time::Interval).
RUSTSEC-2026-0385: ctutils 0.4.2 -> 0.4.5 (non-constant-time
comparisons). Lockfile-only; security fixes are exempt from the dep age
gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants