Skip to content

feat: 1.2.0 multi-agent coordination commands#21

Merged
ryanmcmillan merged 1 commit into
mainfrom
feat/multi-agent-coordination
Apr 14, 2026
Merged

feat: 1.2.0 multi-agent coordination commands#21
ryanmcmillan merged 1 commit into
mainfrom
feat/multi-agent-coordination

Conversation

@ryanmcmillan
Copy link
Copy Markdown
Member

Summary

Brings the CLI in line with @delega-dev/mcp 1.2.0. The 1.1 release focused on agent-friendly polish (--yes, --json, --dry-run flags); this adds the missing command coverage.

New commands (6)

Command Maps to
`delega tasks assign <task_id> <agent_id --unassign>`
`delega tasks chain <task_id>` `GET /tasks/:id/chain` (renders indented tree, normalizes hosted `{root_id}` vs self-hosted `{root: Task}`)
`delega tasks set-context <task_id> --kv key=value...` (or `--context '{...}'`) `PATCH /tasks/:id/context` (deep merge)
`delega tasks dedup --content "..." [--threshold 0.6]` `POST /tasks/dedup`
`delega agents delete ` `DELETE /agents/:id` (--yes, --dry-run, matches the 1.1 pattern)
`delega usage` `GET /usage` (hosted-only, gated client-side)

Version: 1.1.5 → 1.2.0

Minor bump. All additions are backward compatible. Every command follows the existing pattern: Commander subcommand, `apiCall`, human-readable default with `--json` opt-out.

Test plan

  • `npx tsc --noEmit` clean
  • `npm run build` clean
  • `delega --help` renders for all 6 new commands
  • `DELEGA_API_URL=http://127.0.0.1:18890 delega usage` exits with clear hosted-only error without making a network request
  • Live smoke against api.delega.dev after release (no test suite in this repo; rely on live smoke)

Release

Tag `v1.2.0` after merge — `.github/workflows/publish.yml` publishes to npm + creates the GitHub Release.

Out of scope

  • Test suite. The CLI CI runs typecheck + build only; adding a test harness is a separate project.

🤖 Generated with Claude Code

Brings the CLI in line with @delega-dev/mcp 1.2.0. The 1.1 release
focused on agent-friendly polish (--yes, --json, --dry-run flags on
destructive ops); this release adds the missing command coverage.

New commands (6):
- `delega tasks assign <task_id> <agent_id | --unassign>` — assign or
  unassign a task. For multi-agent handoffs use `delegate` instead —
  `assign` does not record a chain.
- `delega tasks chain <task_id>` — show the full parent/child
  delegation chain, indented by depth. Renders the tree-ish view
  (hosted {root_id} vs self-hosted {root: Task} both normalized).
- `delega tasks set-context <task_id> --kv key=value...` — deep-merge
  keys into persistent context. Accepts repeated --kv pairs
  (JSON-parsed values so numbers/bools/arrays work) or a full
  --context '{...}' JSON object.
- `delega tasks dedup --content "..." [--threshold 0.6]` — Jaccard
  similarity check against open tasks. Call before `tasks create` to
  avoid redundant work.
- `delega agents delete <id>` — delete an agent. --yes / --dry-run
  follow the existing 1.1 destructive-action pattern.
- `delega usage` — plan quota + rate-limit info. Hosted API only;
  gated client-side with a clear error on self-hosted, mirroring the
  delega-mcp + delega-python behavior.

All commands follow the existing pattern: Commander subcommand,
apiCall<T>, human-readable default output with --json opt-out.

Version: 1.1.5 → 1.2.0 (minor — 6 new commands, no breaking changes).

Verified: tsc --noEmit clean; build clean; `delega <new> --help`
renders; hosted-only gate on `delega usage` prints a clear error
against a self-hosted URL without making a request.

Out of scope:
- No test suite. The CLI CI runs typecheck + build only (pre-existing).
  A proper test harness is a separate project. Relying on live smoke
  against the hosted API after release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@ryanmcmillan ryanmcmillan merged commit 524316d into main Apr 14, 2026
2 checks passed
@ryanmcmillan ryanmcmillan deleted the feat/multi-agent-coordination branch April 14, 2026 17:42
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