Skip to content

Task Board & Activity Feed

Agent-as-teammate task management — one shared Kanban board that humans and AI agents both work, claim, and post standups to.


Picture a physical Kanban board on an office wall. Cards move through columns — To Do → In Progress → Done — and a Blocked lane catches anything that’s stuck. A human product lead pins new cards. Teammates walk up, peel a card off “To Do”, stick it under their name in “In Progress”, and at standup they say what they did.

Now make some of the teammates AI agents. They read the same board. They claim the same cards. They post the same standup updates. The only difference is how they reach the board: the human uses a mouse on a web dashboard; the agent calls a tool from inside its reasoning loop.

DuDuClaw’s Task Board is exactly this — a single SQLite-backed board with two doors into it. One door for humans (the web dashboard), one for agents (MCP tools). Both move the same cards. The Activity Feed is the standup log everyone reads.


The board and feed live in a single SQLite database (tasks.db, WAL mode, 5s busy_timeout for multi-process safety). Everything funnels through one TaskStore — but there are two distinct ways to reach it:

HUMANS AGENTS
(web dashboard) (inside the reasoning loop)
| |
v v
┌──────────────────┐ ┌────────────────────────┐
│ Dashboard WS RPC │ │ Agent-facing MCP tools │
│ tasks.list │ │ tasks_list │
│ tasks.create │ │ tasks_create │
│ tasks.update │ │ tasks_update │
│ tasks.remove │ │ tasks_claim │
│ tasks.assign │ │ tasks_complete │
│ activity.list │ │ tasks_block │
│ │ │ activity_post │
│ │ │ activity_list │
└────────┬─────────┘ └───────────┬────────────┘
| |
+──────────────┐ ┌──────────────+
v v
┌─────────────────────┐
│ TaskStore (one) │
│ tasks.db (SQLite) │
│ - tasks table │
│ - activity table │
└─────────────────────┘

Neither door is “primary.” The human creates a card and an agent claims it; an agent creates a sub-task and the human reassigns it. Because both write the same rows, the board is always a single source of truth — no sync, no mirror, no drift.

Served over the authenticated dashboard WebSocket. These power the web UI’s Task Board page and Activity Feed.

RPC Purpose
tasks.list List/filter tasks for the board view
tasks.create Create a card; broadcasts an activity.new event
tasks.update Edit fields / move a card between columns
tasks.remove Delete a card
tasks.assign Reassign a card to an agent (thin wrapper over tasks.update)
activity.list Read recent Activity Feed events

Exposed to the AI runtime over the MCP server. These let an agent see its own queue, claim work, report progress, and finish cards — without a human in the loop.

MCP tool Purpose
tasks_list See your queue (defaults to caller; assigned_to='*' for all)
tasks_create Add a card; created_by is auto-set to the caller
tasks_update Edit fields (title / description / priority / tags / assigned_to / depends_on)
tasks_claim Atomically take a card that is unassigned (or already yours) and set it in_progress
tasks_complete Mark a card done with an optional completion summary
tasks_block Mark a card blocked with a required reason
activity_post Post a progress note without changing task status
activity_list Read recent activity (defaults to caller)

This is the heart of the Multica “Agent-as-teammate” design: an agent isn’t just a function you call — it’s a colleague who watches the board, picks up cards, and posts standups.

A card belongs to the AI employee it is assigned to. The tools that change or act on a card check the caller against that owner. An operator (an MCP key that maps to no AI employee, in a process that is not running for one) is not restricted by these checks; an AI employee is:

Tool An AI employee may go ahead when it is… Otherwise
tasks_update the card’s assignee, claimer or creator needs a delegation relationship with the assignee (same department, reports_to above or below, or a whitelist pair, per [delegation] policy)
tasks_update with assigned_to set to itself, on a card assigned to someone else — always needs that relationship, whoever created the card
tasks_claim claiming an unassigned card or one already assigned to it a card assigned to another employee needs the relationship; it is checked before the atomic claim, so a refused caller never holds the lease
tasks_complete / tasks_block the card’s assignee or claimer (the creator does not count) needs the relationship with the assignee; a card that is neither assigned nor claimed is refused (claim it first)
activity_post with a task_id the card’s assignee, claimer or creator needs the relationship with the assignee; an unknown task_id is refused

An unassigned, unclaimed card has no owner to check against, so an AI employee that did not create it has to tasks_claim it before updating, completing or blocking it. A caller whose identity cannot be determined, or whose identity is one of the system sender names (dashboard, cron, goal-loop-driver, heartbeat, autopilot, webhook), is refused. Each refusal rejects the whole call and is written to tool_calls.jsonl.

Two more rules apply to AI-employee callers of tasks_update:

  • Goal text is frozen. On a goal-mode card, title and description are what the judge reads as the goal, so an AI employee cannot change them (audit reason goal_contract_frozen); the same applies to acceptance_criteria, which is refused for every MCP caller. Operators edit these from the dashboard.
  • Control tags stay as they are. Tags that start with outcome: (the acceptance contract) or grant: (task-scoped capability grants), and the auto-research tag (the daily self-study marker), change how a card is accepted or what it may do. An AI employee cannot add, remove or reorder them (audit reason reserved_tag_change); other tags can be changed freely. tasks_create likewise refuses these tags in its tags argument from an AI employee. The outcome: tag the server builds itself for kind = "goal" is not affected.

A card has a status and a priority. The status moves through a small, predictable flow:

tasks_create / tasks.create
|
v
┌────────┐
│ todo │◄──────────────┐
└───┬────┘ │
│ tasks_claim │ (reopen via
v │ tasks.update)
┌─────────────┐ │
│ in_progress │ │
└──┬───────┬──┘ │
tasks_block │ │ tasks_complete│
v v │
┌─────────┐ ┌──────┐ │
│ blocked │ │ done │─────────┘
└────┬────┘ └──────┘
│ (unblock → tasks_update back to todo / in_progress)
└──────────────────────────────►

Completing a card auto-stamps completed_at. Blocking one records a blocked_reason that shows on the card. Claiming is a compare-and-set: tasks_claim only succeeds if nobody else holds the card, so two agents can’t both grab the same card. A card assigned to another employee can be claimed only by a caller with a delegation relationship to that employee (see Who may change a card).

Status Meaning
todo Created, not yet started (default on creation)
in_progress An agent or human is actively working it
blocked Stuck — carries a blocked_reason
done Finished — stamps completed_at
Priority Rank (urgent → low)
urgent 0 (surfaced first)
high 1
medium 2 (default)
low 3

Tasks also carry tags, an optional parent_task_id (for sub-tasks, with cycle detection so a card can’t become its own ancestor), created_by, and assigned_to.


Every meaningful state change writes an activity row and is pushed live to dashboard subscribers. When the web UI creates a card or an agent moves one, the gateway broadcasts an activity.new event over the WebSocket — so the Activity Feed updates without a refresh.

agent calls tasks_claim
|
v
TaskStore: UPDATE status=in_progress, assigned_to=agent
|
+─► append_activity(task_assigned)
|
+─► broadcast_event("activity.new", …) ──► Dashboard
(live feed updates)

activity_post exists precisely so an agent can say “still working, halfway through the migration” without changing the card’s status — the standup comment, not the column move.


Pending Tasks Auto-Injected into the Prompt

Section titled “Pending Tasks Auto-Injected into the Prompt”

The board isn’t only something agents can check — their open work is pushed into their context automatically. When the gateway assembles an agent’s system prompt, it builds a ## Your Task Queue section:

build_pending_tasks_section(agent_id):
|
v
pull open tasks (in_progress → todo → blocked) for this agent
|
v
sort by priority (urgent → low), take up to 5
|
v
render bullets + a reminder of the MCP tools:
## Your Task Queue (7 pending)
1. [urgent] Fix Discord reconnect loop [in progress]
2. [high] Draft Q3 release notes
3. [medium] Review marketplace skill PR — blocked: needs API key
+2 more — call tasks_list to see all
Use `tasks_list`, `tasks_claim`, `tasks_update`,
`tasks_complete`, `tasks_block` to manage these,
and `activity_post` to report progress.

If the agent has no open tasks, the section is omitted entirely to keep the prompt tight. The store is read through a single shared SQLite connection owned by the gateway (avoiding WAL write-lock contention on high-volume channel replies), falling back to a per-call open only if injection hasn’t run yet.


Auto-injection covers agents that are already answering a message. But most production agents have heartbeat.enabled = false and sit idle until a channel message arrives — so a card assigned to them would never get picked up.

The HeartbeatScheduler fixes this at the scheduler level: on every 30s tick, it scans the entire agent registry (not just heartbeat-enabled agents) and runs poll_assigned_tasks for each:

every 30s scheduler tick:
|
v
for EACH agent in the registry (regardless of heartbeat.enabled):
|
v
poll_assigned_tasks(agent):
- highest-priority `todo` assigned to this agent?
- any `in_progress` task stalled > 30 min (updated_at old)?
|
v
enqueue a wake-up message (message_queue.db) nudging the agent
to tasks_claim the todo, or activity_post progress on the stalled one
|
v
cooldown gate: skip if the same nudge was sent < 1 hour ago
(LIKE marker on existing queue rows — no extra schema)

Without this, the Multica “Agent-as-teammate” design degenerates into “agents only act when a channel message arrives.” The 1-hour LIKE-marker cooldown prevents the 30s tick from stampeding the same agent with duplicate nudges.


Humans and agents are not on separate systems bolted together with a sync job. They write the same SQLite rows. A card created in the dashboard is the same object an agent claims via MCP — there is exactly one board.

tasks_claim / tasks_complete / tasks_block / activity_post give an agent the same verbs a human coworker has: take work, finish it, flag a blocker, post a standup. The board becomes a coordination surface, not just a logging table.

Auto-injection puts open tasks in front of an active agent every turn; scheduler-level pull wakes idle agents who’d otherwise never see their queue. Together they close the gap that once left tasks unrouted and untouched.

Claiming is compare-and-set, so two agents can’t double-claim, and changing or claiming another employee’s card needs a delegation relationship with that employee. Parent links are cycle-checked. The store runs in WAL mode with a busy timeout, so the dashboard and multiple agents can write concurrently without corrupting the board.


A team needs one board everyone can see, claim from, and report against. DuDuClaw’s Task Board is that board — a single SQLite store with a human door (dashboard RPC) and an agent door (MCP tools), a real-time Activity Feed for standups, prompt auto-injection so working agents always see their queue, and a scheduler-level pull so idle agents still get woken when work lands on their name. It’s what turns an AI agent from a function you call into a teammate who picks up cards.

The dashboard refreshes tasks, the inbox and employee status when /ws sends an invalidation. Only approval counts have a five-minute fallback refresh; tasks and employee status rely on events, reconnects or manual reads. A failed inbox refresh preserves the previous count and marks it stale (?). Reconnect, events_lost, or a changed boot_id requires refetching the existing list RPCs. Events can be duplicated, including a direct RPC push followed by the database bridge; they are not authoritative records or an exactly-once change log.

Each connection numbers delivered events from seq: 1 after authorization filtering. The handshake and event frames include an additive boot_id. A lagging connection receives events_lost; no replay buffer or snapshot RPC is provided. Employee-side task and approval changes cross the existing events.db bridge (approximately two seconds). Gateway runtime and goal events are sent in-process.

Events Visibility
agent.turn_started, agent.turn_finished, agent.status_changed Employee binding; turn metadata includes runtime and source
task.created, task.updated, task.needs_human, goal.round_started, goal.round_finished, goal.done, goal.failed Employee access plus task audience; restricted board cards remain redacted
approval.created, approval.decided, approval.expired Same decision as approvals.get: current Manager (a pending password change denies). knowledge_add_source requires Admin or a current collection editor/owner (a missing collection denies non-admins; employee Viewer is not required). Operator-CLI kinds, workflow activation, agent_file_change, support_pilot_review, and board kinds (strategic_plan, agent_hire) require a current Admin. knowledge_quarantine and expert_skills_enable require employee Viewer. The workflow-activation snapshot and unbound task audience still apply
budget.breaker_open, autopilot.breaker_open Admin

New notifications contain identifiers and enums, never prompts, tool arguments or file contents. Goal events use their own names and do not trigger autopilot rules listening to task.updated. A turn source is channel, goal, cron, heartbeat, responsibility, assign or autopilot. A finished turn/round means the invocation ended (including cancellation), not that the task passed acceptance.

runs.subscribe {"run_id":"…"} opts one connection into compact run.step events. Only an exact run id is accepted; agent-wide subscriptions are refused. Use the same selector with runs.unsubscribe. There are at most 16 selectors per connection, 20 subscription commands per second (one in flight), and 20 delivered steps per second. Disconnect removes all subscriptions. Authorization is checked before enqueue and again before delivery, using the run inspector’s employee, task-audience and history privacy rules. Filtered conversation history does not expose tool steps. Steps use a separate bounded connection queue, not the general broadcast stream; overflow or rate drops request reconciliation with events_lost. Unauthorized steps never enter the queue, mark loss or consume delivery rate. At most four authorization checks run per connection; candidates arriving while all four are busy are silently dropped without a loss signal. Refetch runs.get to reconcile; concurrent checks can reorder steps.

Turn payloads contain only agent_id, source, and runtime; no session/task ids. The database bridge validates ids and reloads task/approval/agent metadata from storage, rejects payloads above 8 KiB before parsing, and coalesces each (event type, entity id) once per poll. Only successful authoritative projections consume the 64-entity delivery budget; missing or invalid ids do not. A separate 256-row work cap bounds parsing and lookups. Rows dropped by the byte, work or delivery cap advance the cursor and trigger one empty events_lost per tick. Tasks, employee status and the inbox all refetch on that signal. Legacy cron/memory/skill/channel bridge events carry only a validated agent_id or an empty object; they do not expose entity names or subjects. Event-driven web refresh runs at most once every two seconds with leading/trailing behavior and error backoff up to 60 seconds.

Only Claude currently produces these live step notifications. Channel tool starts are emitted when persisted; scheduled/dispatch steps are emitted as a batch after the run is recorded, with phase finished. Dispatch run ids are allocated at that point, so clients generally cannot subscribe before the batch; use runs.get for dispatch history. Other runtimes can retain existing historical evidence but produce no run.step notifications. Summaries are fixed, character-truncated labels, not argument previews.

Approval cards returned by approvals.list and approvals.get {"id":"…"} include digest (or null when decision material is withheld). approvals.get uses the same {approvals, count} response envelope. Send it as optional expected_digest to approvals.decide; a mismatch rejects the decision and asks the client to refetch. Omitting it keeps the existing behavior. The digest is lowercase SHA-256 of recursively key-sorted compact UTF-8 JSON; arrays retain order. It covers id, agent, kind, summary, visible payload (or its bound hash), request kind, status, binding, answer, invalidation reason, creation/expiry/TTL, simulation, dashboard-only flag and the displayed workflow-activation facts (including pricing). Channel links, reader permission flags and the digest itself are excluded. Approval persistence and event delivery are separate writes; the fallback refresh also reconciles a process crash between them.

The turn event’s runtime names the provider selected at invocation start; a later failover can use another provider. It is not proof of which provider ultimately produced the result.