AgentWorkshop.BoardWorker (AgentWorkshop v0.3.0)

Copy Markdown View Source

A board-aware agent that polls for work, claims it, executes, and reports.

Combines an agent (from a profile), a scheduler, and the work board into a single first-class concept. The worker:

  1. Polls the board for :ready items matching its work type
  2. Claims the highest priority item
  3. Sends the item's title + spec as a prompt to its agent
  4. Marks the item complete (or failed) based on the result
  5. Repeats

Usage

board_worker(:coder_1, :code, profile: :coder, interval: :timer.minutes(1))
board_worker(:reviewer_1, :review, profile: :reviewer, interval: :timer.minutes(2))

# Post work — workers pick it up automatically
work(:checkout, "Implement git checkout", type: :code, spec: "...")
work(:checkout_review, "Review checkout", type: :review, depends_on: [:checkout])

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.