Skip to content

feat(worker,vscode): expose colony tasks via HTTP and surface in tree#49

Merged
NagyVikt merged 1 commit intomainfrom
agent/claude/wire-colony-task-api-and-vscode-overview-2026-04-24-18-21
Apr 24, 2026
Merged

feat(worker,vscode): expose colony tasks via HTTP and surface in tree#49
NagyVikt merged 1 commit intomainfrom
agent/claude/wire-colony-task-api-and-vscode-overview-2026-04-24-18-21

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

Add two read-only worker endpoints to the colony HTTP API:
  GET /api/colony/tasks[?repo_root=...]
  GET /api/colony/tasks/:id/attention

The first returns active task threads with participant agents and a
pending-handoff count; the second returns the pending handoffs, any
unexpired pending wake_requests, and the last 10 observations on a
task. This lets the VS Code Active Agents tree (and any other local
tool) reach colony state over 127.0.0.1 without opening the SQLite
DB directly.

Wire the agents-hivemind/vscode/guardex-active-agents extension to
the new /api/colony/tasks endpoint so each repo's tree row shows the
colony task count and includes a collapsed COLONY TASKS section when
non-empty. The extension fetches over node:http with an 800ms timeout
and a 5s per-repo cache; when the worker is unreachable the tree
renders exactly as today.

Covered by three new cases in apps/worker/test/server.test.ts
(tasks list, repo_root filter, attention envelope).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit 5eb8623 into main Apr 24, 2026
@NagyVikt NagyVikt deleted the agent/claude/wire-colony-task-api-and-vscode-overview-2026-04-24-18-21 branch April 24, 2026 16:30
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