Skip to content

chore: bootstrap agentic team - #184

Merged
EVWorth merged 1 commit into
mainfrom
chore/bootstrap-agent-team
Jul 19, 2026
Merged

EVWorth merged 1 commit into
mainfrom
chore/bootstrap-agent-team

Conversation

@EVWorth

@EVWorth EVWorth commented Jul 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds SQLPilot's agent team: 7 specialists, 3 slash commands, 1 root system prompt, 1 drift-sweep script. All agent work flows through PRs for team-lead review.

Team Roster

Agent Mode Scope Permission
team-lead (GLaDOS) primary dispatch + verify, never implement full
scout subagent codebase mapping, file location read-only
implementer-frontend subagent React/TS, Zustand stores, types edit src/ + scoped bash
implementer-rust subagent Rust/Tauri, crates, IPC edit src-tauri/ + scoped bash
reviewer subagent diff review, terse findings w/ severity emojis read-only
doc-keeper subagent docs/, README, AGENTS.md hygiene edit docs/**, README.md, .opencode/AGENTS.md
release-cutter subagent version bumps + release flow bash + version files
ci-doctor subagent CI failure triage bash + read

Slash Commands

  • /bump [patch|minor|major] — version cut wrapper
  • /doc-keeper — on-demand drift sweep
  • /review-prs — team-lead PR review routine
  • (existing) /findissues, /reviewissues

File Changes

A  .opencode/AGENTS.md                   (root system prompt, ~200 lines)
A  .opencode/agent/                      (7 specialists)
A  .opencode/command/                    (3 slash commands)
A  scripts/doc-keeper-sweep.sh           (drift sweep runner)
M  opencode.json                         (instructions, references, scoped permissions)
D  docs/design/DEVELOPMENT_PLAN.md       (obsolete roadmap, code + git log track in-flight)

Key Behaviors Codified

  1. Terse chat output by default. Code/commits/PRs stay normal English. Don't overdo it.
  2. All agent work flows through PRs. No direct-to-main commits.
  3. Team-lead embodies specialists for self-dispatch (per .opencode/AGENTS.md Self-Dispatch protocol).
  4. File ownership lanes — implementer-frontend owns src/, implementer-rust owns src-tauri/, doc-keeper owns docs/, etc.
  5. Pre-commit gates documented for frontend (lint + type-check + vitest) and Rust (fmt + clippy + test).

Test Plan

  1. Restart opencode to load new config (.opencode/AGENTS.md is auto-loaded via instructions)
  2. Try /doc-keeper — runs scripts/doc-keeper-sweep.sh (will abort on dirty tree, expected)
  3. Try /review-prs — lists PRs by label
  4. Verify team agents are invokable via UI agent switcher (scout, implementer-frontend, etc.)

Known Limitations / Follow-ups

  • Custom agents in .opencode/agent/ are not dispatchable via task tool (fixed subagent_type enum). Team-lead must embody via reading agent file. Documented in AGENTS.md.
  • /doc-keeper requires ANTHROPIC_API_KEY (or other provider key) in shell env. Not bundled with repo.
  • Doc-shrink sprint (shrink ARCHITECTURE.md, TESTING_STRATEGY.md, annotate DESIGN_REQUIREMENTS.md) deferred — bigger effort, separate PR.

Related

🤖 Built with the team. Reviewed by itself. Two pairs of eyes: yours, and the AGENTS.md sacred rules.

@EVWorth
EVWorth force-pushed the chore/bootstrap-agent-team branch from d3835ac to 6935244 Compare July 19, 2026 01:22
Adds SQLPilot's agent team: 7 specialists, 3 slash commands, 1 drift-sweep script.
All agent work flows through PRs for team-lead review.

Team (under .opencode/agent/):
  - team-lead (GLaDOS): orchestrator, dispatches + verifies
  - scout: read-only codebase navigator
  - implementer-frontend: React/TS, owns src/
  - implementer-rust: Rust/Tauri, owns src-tauri/
  - reviewer: read-only diff review, terse findings w/ severity emojis
  - doc-keeper: docs/, README, AGENTS.md, drift detection
  - release-cutter: version bumps + release flow
  - ci-doctor: CI failure triage

Commands (under .opencode/command/):
  - /bump [patch|minor|major]: version cut wrapper
  - /doc-keeper: on-demand drift sweep
  - /review-prs: team-lead PR review routine
  - /findissues, /reviewissues: existing GitHub issue workflows

Opencode config (opencode.json):
  - instructions: AGENTS.md + copilot-instructions.md auto-loaded
  - references: design docs available via @design
  - permissions: deny rules on generated artifacts + dangerous ops
  - scoped bash allows for implementer frontmatters (cargo/npm run/etc.)

Deleted:
  - docs/design/DEVELOPMENT_PLAN.md: obsolete roadmap, code + git log
    track in-flight work. History preserved.

Added:
  - scripts/doc-keeper-sweep.sh: on-demand drift detection runner
    (invoke via /doc-keeper or directly). Opens PR if drift found.
@EVWorth
EVWorth force-pushed the chore/bootstrap-agent-team branch from f9ab794 to 67323b6 Compare July 19, 2026 02:52
@EVWorth
EVWorth merged commit b29c526 into main Jul 19, 2026
7 of 8 checks passed
@EVWorth
EVWorth deleted the chore/bootstrap-agent-team branch July 19, 2026 02:54
EVWorth added a commit that referenced this pull request Jul 19, 2026
Fixes drift between docs/design/TESTING_STRATEGY.md and actual
docker-compose.test.yml + CI service config:

- Test MySQL container ports: 3307/3308/3309 → 13306/13307/13308/13309
- SSH tunnel port: 2222 → 12222
- Seed file paths: tests/fixtures/seed.sql → tests/fixtures/sql/seed.sql
- Added 02-seed-large.sql mount (matches actual docker-compose)
- Healthcheck retries: 10 → 30 (matches docker-compose)
- Container name typo: mysql-5.7 → mysql-5_7 (underscore, matches compose)
- mariadb → mariadb-11 (matches actual service name in compose)

Found by doc-keeper agent on 2026-07-19. The exact same drift was
flagged by an earlier review of PR #184 but never fixed in a
follow-up — this resolves it.
EVWorth added a commit that referenced this pull request Jul 19, 2026
Refreshes README.md against actual code state:

- Test counts: 1465 → 1488+ (matches vitest run output)
- Rust integration tests: 36 → 45 (matches cargo test count)
- Component count: 36 → 46 (matches actual src/components/*.tsx files)
- Added ai/ and querybuilder/ to component tree (real subdirs)
- Removed mas-sqlite/tests/ line (mas-sqlite is for local SQLite
  storage, not MySQL integration tests)
- Removed DEVELOPMENT_PLAN.md from docs/design/ tree (file was
  deleted in #184)

Found by doc-keeper agent on 2026-07-19.

NOTE: A separate PR (#190) bumps React 18 → React 19 in the same
file. If both merge, dprint will keep both edits; no conflict
expected.
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.

1 participant