About Moe S Tavern
Moe S Tavern is an MCP server published by yaront1111 in the Agents category: aI agent task board for Claude Code, Codex, Gemini CLI and Grok Build: plan, approve, build and review inside JetBrains or VS Code, with state in .moe/ in your repo. Conduid read 48 tools from its source: moe.acquire_resource, moe.add_comment, moe.amend_plan_step, moe.archive_epic, moe.archive_task, moe.chat_channels and 42 more. No package is published for it, so it installs from a source checkout.
The repository has 32 stars and 3 forks, and its last commit was on 2 Dec 2026. The latest release is v0.8.0 (7 Sep 2026). It follows v0.7.0 (3 Jun 2026), and the 5 most recent releases go back to v.0.1.1 (4 Mar 2026). Its topics include agent-orchestration, devtools, jetbrains-plugin, kanban, task-board and vscode-extension.
Install
git clone https://github.com/yaront1111/Moe-s-TavernTools (48)
moe.acquire_resourceAcquire (or queue for) a lease on a shared resource, e.g. an exclusive-use benchmark box. Granted immediately if capacity is free; otherwise you are queued FIFO-by-priority. Idempotent per task: re-calling renews an existing lease. If queued, call moe.report_blocked with the resourceId to park the task — the daemon auto-unblocks it when the lease is granted.| Parameter | Type | Description |
|---|---|---|
| etaMs | number | Your own wall-clock estimate in ms (informational). |
| note | string | What you will run — shown to queued agents and list_resources. |
| resourceId * | string | Resource name, e.g. "benchmark-box". Undeclared ids are auto-created (capacity 1, 24h max lease). |
| taskId * | string | Task the lease belongs to. Leases are task-keyed so they survive CLI restarts. |
| workerId * | string | Caller worker ID (auto-injected by proxy) |
moe.add_commentAdd a comment to a task (for questions or responses). A comment that @mentions a seat, posted with your registered workerId, is also relayed once to chat (the task channel, else #general) so that seat wakes; the result reports routing or routingError.| Parameter | Type | Description |
|---|---|---|
| content * | string | The comment text |
| taskId * | string | The task ID to comment on |
| workerId | string | The worker ID (used as author) |
moe.amend_plan_stepArchitect/governor: amend ONE plan step in place without a full re-plan. `description` REPLACES the step's instructions (full text, not a delta); the original is kept for audit and complete_step echoes the effective (amended) text so the worker does not look like it drifted from the plan. Rejects COMPLETED steps and finished tasks — use moe.request_replan when the work already shipped or the whole plan is wrong.| Parameter | Type | Description |
|---|---|---|
| description * | string | Full replacement instructions for the step (not a delta) |
| reason * | string | Why the step is being amended; surfaced to the assigned worker |
| stepId * | string | The existing plan step to amend |
| taskId * | string | The task whose plan is amended |
| workerId | string | Caller worker ID (auto-injected by proxy) |
moe.archive_epicArchive an epic and all its tickets in one shot — every task goes to ARCHIVED and the epic to ARCHIVED, dropping the whole epic out of agent context and the board. Refuses if any task is in-flight (PLANNING/AWAITING_APPROVAL/WORKING) — release or move those first — or, for a caller with a workerId, if a BLOCKED task is held by another worker (archive_task's holder-only rule). Idempotent.| Parameter | Type | Description |
|---|---|---|
| epicId * | string | The ID of the epic to archive |
| workerId | string | Caller worker ID (auto-injected by proxy); recorded as the actor of each TASK_ARCHIVED and of the epic's EPIC_UPDATED, and a BLOCKED row held by another worker may only be archived by its holder |
moe.archive_taskArchive a ticket so it drops out of agent context — list_tasks/search_tasks hide ARCHIVED by default. Allowed from BACKLOG, REVIEW, DONE, and from PLANNING or BLOCKED when nothing is left to do (a held PLANNING/BLOCKED row only by its holder). Not from AWAITING_APPROVAL/WORKING. Idempotent. Un-archive with set_task_status ARCHIVED→BACKLOG.| Parameter | Type | Description |
|---|---|---|
| taskId * | string | The ID of the task to archive |
| workerId | string | Caller worker ID (auto-injected by proxy); a held PLANNING/BLOCKED row may only be archived by its holder |
moe.chat_channelsList all chat channels in the project.moe.chat_create_channelCreate a custom chat channel for ad-hoc agent coordination.| Parameter | Type | Description |
|---|---|---|
| name * | string | Channel name (required) |
moe.chat_decisionPropose a decision for human approval. Optionally post to a chat channel.| Parameter | Type | Description |
|---|---|---|
| channel | string | Optional channel to post the decision to: id, or name in either "general" or "#general" form |
| content * | string | Decision content (what is being proposed) |
| workerId | string | Worker proposing the decision (a registered worker or "human") |
moe.chat_joinJoin a chat channel. Posts a system message and returns online workers.| Parameter | Type | Description |
|---|---|---|
| channel * | string | Channel id, or name in either "general" or "#general" form |
| workerId * | string | Your worker ID |
moe.chat_pinPin a chat message to a channel. Pinned messages serve as todos or important references.| Parameter | Type | Description |
|---|---|---|
| channel * | string | Channel id, or name in either "general" or "#general" form |
| messageId * | string | Message ID to pin |
| workerId * | string | Worker pinning the message (a registered worker or "human") |
moe.chat_readRead chat messages from a channel with cursor-based pagination. Auto-tracks read position per worker. Skips the daemon's status lines in #general (system posts that mention nobody) unless includeSystem is true. A read with sinceId is a peek that moves no stored cursor or unread count; in all-channel mode the id applies only to the channel that holds it, and the other channels read from the caller's stored cursor. Omit sinceId to read from and advance your cursor. A channel read from sinceId or your cursor returns the oldest messages after it; hasMore: true means more follow (the limit or the response size cap ended the page): pass nextSinceId as sinceId to read on, or repeat a cursor read. Both are omitted once you are caught up. An all-channel read sets hasMore, with no nextSinceId, when it left messages out: read the channels by name to page through them.| Parameter | Type | Description |
|---|---|---|
| channel | string | Channel id, or name in either "general" or "#general" form (omit to read from all channels) |
| includeSystem | boolean | Also return the daemon's status lines in #general (task moved, claimed, step completed...). Default false. |
| limit | number | Max messages to return (default 10, max 200) |
| maxContentChars | number | Max chars per message content in the response (default 1000, 0 = full content) |
| sinceId | string | Return messages after this message ID (a page's nextSinceId continues it). A peek: moves no stored cursor and clears no unread count |
| workerId | string | Worker ID for auto-cursor tracking |
moe.chat_resyncClear chat cursors and return a bounded, token-budgeted message window for resync.| Parameter | Type | Description |
|---|---|---|
| channel | string | Specific channel to resync (omit for all). Channel id, or name in either "general" or "#general" form |
| limit | number | Max messages per channel (default 20, max 200) |
| maxContentChars | number | Max chars per message content in the response (default 1000, 0 = full content) |
| workerId * | string | Worker whose cursors to reset |
moe.chat_sendSend a chat message to a channel. Parses @mentions and returns routing info. routingPaused: true (with a hint) means the channel's loop guard stored the message but woke nobody.| Parameter | Type | Description |
|---|---|---|
| channel * | string | Channel id, or name in either "general" or "#general" form |
| content * | string | Message text (max 10KB) |
| replyTo | string | Message ID to reply to (threading) |
| workerId | string | Sender worker ID (defaults to "human") |
moe.chat_unpinRemove a pinned message from a channel.| Parameter | Type | Description |
|---|---|---|
| channel * | string | Channel id, or name in either "general" or "#general" form |
| messageId * | string | Message ID to unpin |
| workerId | string | Worker removing the pin (a registered worker or "human"; omitted means "human") |
moe.chat_whoList online workers. Optionally filter by channel participation.| Parameter | Type | Description |
|---|---|---|
| channel | string | Optional channel to filter by participation. Channel id, or name in either "general" or "#general" form |
moe.check_approvalCheck if a task plan has been approved| Parameter | Type | Description |
|---|---|---|
| taskId * | string | The task whose plan approval state to read |
| workerId | string | Caller worker ID (auto-injected by proxy); used to populate nextAction hints. |
moe.complete_stepMark a step as COMPLETED. Report EVERY path you created or modified in modifiedFiles — the agent wrapper commits the task from a completed step's modifiedFiles (falling back to the step's planned affectedFiles only when the list is omitted), so an omitted list degrades attribution to planned/measured paths and returns a warning. Pass modifiedFiles: [] when the step changed no project path (a verify-only step, or work done outside the project): it asserts none of the step's affectedFiles and draws no warning. Under verified-local, completion needs workerId, attemptId, generation and the sessionId that read moe.get_context, with the current plan revision approved, and records step evidence on the attempt; refusals: STEP_ENTRY_IDENTITY_REQUIRED, ATTEMPT_SUPERSEDED, ATTEMPT_NOT_RUNNING, PLAN_REVISION_NOT_APPROVED, CONTEXT_RECEIPT_STALE.| Parameter | Type | Description |
|---|---|---|
| attemptId | string | The attemptId moe.claim_next_task returned. Optional under legacy/observe (a presented one is fenced); required under verified-local. |
| generation | integer | The generation moe.claim_next_task returned. Optional under legacy/observe (a presented one is fenced); required under verified-local. |
| modifiedFiles | array | Every project-relative path this step created or modified (ASSERTED attribution tier for the auto-commit). Omit nothing. [] asserts the step changed no project path; omitting the field falls back to the step's affectedFiles. At most ${MAX_STEP_FILES}: more is refused; pass the rest to moe.declare_files. |
| note | string | |
| sessionId | string | The sessionId this session passed to moe.get_context. Optional under legacy/observe; required under verified-local. |
| stepId * | string | |
| taskId * | string | |
| workerId | string |
moe.create_epicCreate a new epic| Parameter | Type | Description |
|---|---|---|
| architectureNotes | string | Design notes shared with every task in the epic |
| description | string | What the epic delivers |
| epicRails | array | Constraints every task in the epic must follow |
| order | number | Sort position among epics |
| status | string | PLANNED, ACTIVE, COMPLETED or ARCHIVED |
| title * | string | Epic title |
| workerId | string | Caller worker ID (auto-injected by proxy); recorded as the actor of EPIC_CREATED |
moe.create_taskCreate a new task in an epic. Guardrails (column WIP limits, per-epic task ceiling, meta-title consolidation, DoD shape) are ALL ADVISORY — creation never hard-fails; read `warnings` in the response. Pass workerId so the row is attributed to your role (createdBy).| Parameter | Type | Description |
|---|---|---|
| createdBy | string | Overridden by the workerId team-role resolution when a workerId is supplied. |
| definitionOfDone | array | Checkable acceptance criteria QA reviews against |
| dependsOn | array | Task ids this task depends on. Gates WORKING-status claims only (planning may proceed); unknown ids are dropped with a warning; capped at 20. Editable later via moe.set_task_dependencies. |
| description | string | What the task must achieve |
| epicId * | string | The epic the task belongs to |
| order | number | Sort position within its column |
| parentTaskId | string | Optional parent task id |
| priority | string | |
| status | string | |
| taskRails | array | Constraints specific to this task |
| title * | string | Task title |
| workerId | string | Caller worker ID (auto-injected by proxy) — resolves your team role into createdBy for attribution. |
moe.create_teamCreate a team or return existing team with same name+role (idempotent)| Parameter | Type | Description |
|---|---|---|
| maxSize | number | Maximum number of members (default 10) |
| name * | string | Team display name (e.g. "Coders") |
| role | string | Team role: architect, worker, qa, or governor (optional) |
moe.declare_filesDeclare project-relative paths as this task's own work (ASSERTED attribution tier): the agent wrapper commits them under the task id on its next exit regardless of the pre-task baseline. Declaring does not override a contested hold: a declared path that another nonterminal task also declares is still held at landing (MOE_ATTR_CONTESTED_UNTOUCHED(<peer>) / MOE_ATTR_CONTESTED), and moe.record_commit's MOE_CONTESTED_HELD line names the remedy. Use it for paths a step forgot to report in complete_step.modifiedFiles, for get_context.unattributedPaths that are yours, or — as a governor — to attribute stranded dirty sources to the live task that edited them instead of hand-landing a chore commit. Unions into task.declaredFiles; no ownership guard; allowed in every status.| Parameter | Type | Description |
|---|---|---|
| note | string | Why these paths belong to the task (kept in the activity log and task channel). |
| paths * | array | Project-relative paths (forward slashes; no absolute paths or ..). |
| taskId * | string | The task the declared files belong to |
| workerId | string | Caller worker ID (auto-injected by proxy) |
moe.delete_epicDelete an epic and optionally its tasks| Parameter | Type | Description |
|---|---|---|
| cascadeDelete | boolean | If true, delete all tasks in the epic. If false (default), fail if epic has tasks. |
| epicId * | string | The ID of the epic to delete |
| workerId | string | Caller worker ID (auto-injected by proxy); recorded as the actor of EPIC_DELETED and each cascaded TASK_DELETED. A supplied id must resolve to the architect or governor role; omit it for the human path. |
moe.delete_taskDelete a task by ID| Parameter | Type | Description |
|---|---|---|
| taskId * | string | The ID of the task to delete |
| workerId | string | Caller worker ID (auto-injected by proxy); recorded as the actor of TASK_DELETED. A supplied id must resolve to the architect or governor role; omit it for the human path. |
moe.deregister_workerDeregister a worker: FIRST close every attempt of this worker still in the finalizing phase (keyed on the attempt, so it works even after the worker record was pruned, and an exiting runner cannot wedge its row), then release every task it held (dropping their leases and queue entries on resources declared releaseOnDeregister), mark the record DEAD (kept, not deleted) and post chat-leave messages. Called by the agent wrapper shell trap on terminal close (try/finally in moe-agent.ps1, trap EXIT in moe-agent.sh). Idempotent — a repeat call on a DEAD worker that holds no task is a quiet close-only retry: it retries a failed finalizing close and posts nothing. A non-DEAD seat holding an active task with reason wrapper_restart instead keeps its tasks for settings.reloadHoldMs (default 2 minutes, 0 disables), until its next claim or the reload-hold expiry sweep.| Parameter | Type | Description |
|---|---|---|
| reason | string | Short reason ("terminal_closed", "crashed", etc.). Default: "deregistered". |
| workerId * | string | Worker ID to deregister |
moe.enter_governanceGovernor enters governance mode. Sets status to GOVERNING, broadcasts presence to #governors, returns chat_wait nextAction.| Parameter | Type | Description |
|---|---|---|
| workerId * | string | Governor worker ID |
moe.finalize_attemptClose a task's execution attempt after the runner has reported its landing outcome, moving the attempt from `finalizing` to `closed`. This is what lifts the finalizing holds on the worker's next claim, on every other seat's claim of the task and on qa_approve — the runner declares the bytes final, not the CLI's exit, so an interactive seat that stays open can still finalize. Fenced by attempt id + generation, and idempotent: repeating a call after a lost response writes nothing. An unlanded worktree outcome, or a rescued shared-checkout completion whose REVIEW row has no completion recorded for its round, routes the task back for a landing retry.| Parameter | Type | Description |
|---|---|---|
| attemptId * | string | Attempt to close, as returned by moe.claim_next_task. |
| conflictPaths | array | Read only when outcome is "unlanded": project-relative conflict paths. |
| generation | number | Fencing token from the same claim. A superseded value is refused. |
| landedRevision | string | The 40-hex commit the bytes landed as. Required when outcome is "landed"; must be omitted or null for "unlanded". |
| outcome * | string | What the runner's landing actually did. Reported, never verified by the daemon. |
| rescueRef | string | Read only when outcome is "unlanded": task-scoped refs/moe/rescue/<taskId>/<segment>. |
| runnerId | string | Wrapper/runner session reporting the landing. |
| targetTip | string | Read only when outcome is "unlanded": attempted 40-hex target tip, if known. |
| taskId * | string | Task the attempt belongs to. |
| unlandedReason | string | Read only when outcome is "unlanded": why nothing reached the target. |
| workerId | string | Worker seat that held the attempt (auto-injected by proxy). |
moe.get_activity_logQuery the activity log for task history, decisions, and events| Parameter | Type | Description |
|---|---|---|
| epicId | string | Filter by epic ID |
| eventTypes | array | Filter by event types (e.g. STEP_COMPLETED, TASK_UPDATED, TASK_BLOCKED). A value that is not an activity event type matches nothing and is echoed back in unknownEventTypes. |
| limit | number | Max events to return (default ${ACTIVITY_LOG_DEFAULT_LIMIT}, max ${ACTIVITY_LOG_MAX_LIMIT}). Narrow with taskId/epicId/eventTypes for cheaper queries. |
| maxPayloadChars | number | Max chars per event payload value (default ${ACTIVITY_LOG_DEFAULT_MAX_PAYLOAD_CHARS}, max ${ACTIVITY_LOG_MAX_PAYLOAD_CHARS}, 0 = no truncation) |
| offset | number | Skip first N matching events (default 0, max ${ACTIVITY_LOG_MAX_OFFSET}) |
| taskId | string | Filter by task ID |
| workerId | string | Filter by worker ID |
moe.get_commit_scopeAttribution scope the agent wrapper stages a task's commit from: the task's ASSERTED paths (completed steps' modifiedFiles/affectedFiles, filesModified, declare_files, tool-written, previously committed), the DECLARED part of them (moe.declare_files: committed regardless of the pre-task baseline; the rest of ASSERTED only when this task produced the dirty bytes), its PLANNED paths (plan-declared only, committed when changed since the pre-task baseline), every other open task's declared paths (PEER map; while this task is not DONE/ARCHIVED, a peer that waits on it (dependsOn or blockedOnTaskIds, transitively) and has no active assignee and no open attempt contributes only its asserted paths, since it cannot have run yet; once this task is DONE/ARCHIVED, or while that peer has an active assignee or an open attempt, it counts like any other peer; each entry's peerActive is false only when, since `since`, no contributing task had an active assignee, an open attempt or an attempt phase change — always true without `since`; taskIds lists every contributing task in id order, taskId being the first; activeTaskIds lists the contributors that are active by the peerActive rule, in id order — every contributor without `since` — so peerActive is true exactly when it is non-empty; editingTaskIds lists the contributors with an IN_PROGRESS plan step naming the path that are active by the same rule, a subset of activeTaskIds — every such contributor without `since`), which workers are active (peersActive drives the attribution.undeclared policy), the board-state paths it may commit, and the project's commit policy. Read-only apart from a liveness touch; no ownership guard — an orphan-mode caller (workerId neither the assignee nor the holder of the task's finalizing attempt) is counted in activePeerIds — but assigneeProtected tells a caller that is not the assignee whether it must leave the task's source paths alone. finalizingAttempt names the task's finalizing attempt exactly as claim_next_task's finalizing hold selects it ({attemptId, workerId, generation}, whoever holds it, the caller included) or is null; a daemon older than the field omits it.| Parameter | Type | Description |
|---|---|---|
| phase | string | preflight (baseline merge) or postflight (landing). |
| sessionId | string | <workerId>@<preflight-iso> of the calling wrapper session (informational). |
| since | string | ISO instant (usually the session pre-flight time). Peers active at/after since−120s or registered after it count as active; omitted → the standard 120s presence window. |
| taskId * | string | The task whose commit scope to compute |
| workerId | string | Caller worker id (auto-injected by proxy). Excluded from livePeerIds; counted in activePeerIds when it is neither the assignee nor the holder of the task's finalizing attempt (the seat landing its own completion after complete_task cleared the assignee). |
moe.get_contextRead the working context for one task: project settings and global/epic/task rails, the epic, the task (plan and steps, definitionOfDone, executionContract when set, recent comments, verification, commits), its assigned worker, recent chat, planningNotes and a nextAction hint. Read-only. Fetch it after claiming and before planning, implementing or reviewing. Includes `routing` (the model catalog, efforts and tier defaults the architect picks from at submit_plan). Trimmed per role by default (a QA caller does not get task.epicSiblings, planningNotes or routing; a worker does not get routing; the response lists what was left out in `omitted`). That default is the complete read for the role: pass view:"full" only if you need a left-out section (any role may). view:"status" is a lighter delivery poll that does not count as having read the context. With a task, the default and view:"full" reads end with `servedContext`: the task's planRevision and approvedPlanRevision, its open attempt's attemptId and generation, and receiptStatus. Pass `sessionId` and such a read by the worker owning the task's running attempt records a durable served-context receipt (receiptId, and packetId: the sha256 of the payload without servedContext). A receipt records what was served to whom, never approval. Present basePacketId and contextEpoch and such a recorded read may answer with `delta` (changed JSON pointers and explicit removals) against that acknowledged base instead of the packet; a wrong or missing base, a restart, a reattach, a new attempt, another session or an epoch change gets the full packet, and servedContext.contextDelta says which and why. Those reads also carry `packetManifest`: the mandatory sections (rails, description, definitionOfDone, plan, executionContract), never role-trimmed or truncated and listed as missing when unset, each explicit omission with its reason and count, limitations, provenance, and a budget measured against packetBudgetChars that answers an overflow with an expand or restructure requirement; it never grants approval.| Parameter | Type | Description |
|---|---|---|
| basePacketId | string | The servedContext.packetId of the packet this session holds. With contextEpoch, a recorded read answers with `delta` instead of the packet only when the daemon still holds that exact base for this session, attempt, generation, runner and phase; otherwise the full packet. |
| commentsLimit | number | Maximum recent task comments to include (default: 3, max: 50; 0 omits comments). |
| commentsMaxChars | number | Maximum chars per task comment (default: 1000, max: 10000; 0 returns full comment content). |
| contextEpoch | integer | The receiving session's compaction counter; the seat must advance it on every compaction. A read without it never gets a delta; one presenting basePacketId also clears the stored base. |
| packetBudgetChars | integer | Character budget packetManifest measures the mandatory sections against (default 100000, ${MIN_PACKET_BUDGET_CHARS} to ${MAX_PACKET_BUDGET_CHARS}; anything else is refused). Never truncates: an overflow is reported with requirement expand or restructure. |
| sessionId | string | The receiving session's incarnation exactly as its runner names it, e.g. the agent wrapper's MOE_SESSION_ID `<workerId>@<preflight-iso>`; the daemon never derives it. With it, a default or view:"full" read by the worker that owns the task's running attempt records a durable served-context receipt on that attempt; view:"status" never does. Non-blank, at most 255 chars, no NUL or line breaks; anything else is refused. |
| taskId | string | The task to read |
| view | string | Omit for the normal read: the role-trimmed default, which counts as having read the context. "full" also returns the sections left out for your role; pass it only if you need one of them. "status" is a read-only delivery poll, excludes instructions and never counts as having read the context. |
| workerId | string | Caller worker ID (auto-injected by proxy) |
moe.get_execution_readinessRead-only. Reports whether the verified-local execution profile is ready and which capabilities are missing: { profile, ready, missingCapabilities, evaluatedAt }. profile is the project's live executionProfile setting, or "unreadable" when that setting is malformed. It grants nothing and changes nothing. refresh: true re-runs the daemon's own evaluator, awaited, at most once per 30 s.| Parameter | Type | Description |
|---|---|---|
| refresh | boolean | Re-run the daemon evaluator first (rate-limited to once per 30 s) |
| workerId | string | Caller worker id (injected by the proxy; never read) |
moe.get_handoff_historyReturn prior handoff notes + priorAttempt for a task. Call this when claiming a released task so you don't redo finished work.| Parameter | Type | Description |
|---|---|---|
| taskId * | string | Task to inspect |
moe.get_next_taskGet the next backlog task for an epic| Parameter | Type | Description |
|---|---|---|
| detail | string | Response detail level. summary returns compact task summary; full returns description and DoD. |
| epicId | string | |
| maxDescriptionChars | number | Maximum description preview length in summary mode (default: 240, max: 2000) |
moe.get_pending_questionsGet all tasks that have unanswered human questions. Returns the pending questions so agents can answer them.| Parameter | Type | Description |
|---|---|---|
| epicId | string | Optional epic ID filter |
| includeArchived | boolean | Include ARCHIVED tasks (default false). Shelved tickets stay out of pending-question results unless explicitly requested. |
| limit | number | Maximum number of task entries to return (default: 10, max: 50) |
| maxContentChars | number | Maximum question content length (default: 1000, max: 10000; 0 returns full content) |
| maxQuestionsPerTask | number | Maximum unanswered human comments per task (default: 3, max: 20) |
moe.get_seat_livenessWrapper-only, read-only. Reports whether a worker seat is gone: no worker record (or a DEAD one) and no open execution attempt carrying its workerId. Returns { workerId, registered, status, openAttempts }. A match never proves a process is alive.| Parameter | Type | Description |
|---|---|---|
| workerId * | string | The worker seat to inspect |
moe.heartbeatPresence ping: refreshes the calling worker's lastActivityAt and records an optional presence kind on its open execution attempt. Answers reattach-required (a returned value, never an error) when the worker record is gone, when the seat holds a task but owns no open attempt on it, or when its attempt is parked in `reconciling` by a daemon restart — in which case the runner must call moe.reattach_attempt. A seat holding no task is just acknowledged. Used by the agent wrapper sidecar during long silent steps; not intended to be called by agents directly. A presence kind is what the sidecar CLAIMS about itself, never verified liveness.| Parameter | Type | Description |
|---|---|---|
| presenceKind | string | Optional self-report recorded on the open attempt: `process` (the CLI subprocess is still there), `provider` (it is in a provider call), `waiting` (parked on input), `progress` (the execution was observed to move). Omit it and the ping behaves exactly as before, writing nothing to the attempt. |
| workerId * | string | Worker to refresh. |
moe.init_projectInitialize a Moe project by creating .moe folder structure. If project is already initialized, returns current status.| Parameter | Type | Description |
|---|---|---|
| enableClaudeHook | boolean | Opt in to emitting Claude Code PreToolUse hook files (default: false) |
| force | boolean | Force re-initialization if already exists |
| name | string | Project name (defaults to folder name) |
| projectPath | string | Path to project root (defaults to current project) |
moe.join_teamAdd a worker to a team. Auto-registers worker if not exists; a successful join revives a DEAD worker to IDLE and records the optional reported workerType.| Parameter | Type | Description |
|---|---|---|
| teamId * | string | The team ID to join |
| workerId * | string | The worker ID |
| workerType | any |
moe.lease_accountWrapper-only. Picks the Claude subscription account for the calling seat's next claude launch from the machine's account list (Moe tool window > Accounts). Launches stay on the active account until a live usage window reaches the list's switchAtPercent (default 90), a launch on it is refused, or it is signed out; then they move to the next signed-in account. Returns rotation:false (with a reason when accounts exist but none can be used) to launch as before, accountId plus configDir to launch with CLAUDE_CONFIG_DIR=configDir, or accountId null plus retryAt/retryInSec when every signed-in account is spent. Not intended to be called by agents.| Parameter | Type | Description |
|---|---|---|
| workerId * | string | The launching seat (MOE_WORKER_ID). |
moe.leave_teamRemove a worker from a team| Parameter | Type | Description |
|---|---|---|
| teamId * | string | The team ID to leave |
| workerId * | string | The worker ID |
moe.list_metricsReturn per-task metrics + aggregate (avg wall-clock, first-pass approval %, avg reopens). Aggregate is defined even when no tasks match.| Parameter | Type | Description |
|---|---|---|
| epicId | string | Restrict to a single epic |
| limit | number | Cap on per-task entries (default ${DEFAULT_LIMIT}, max ${MAX_LIMIT}). Aggregate is always over the full filtered set. |
| sinceIso | string | ISO 8601 cutoff; only tasks last touched at/after this time are included |
moe.list_resourcesList every shared resource: declared config, current lease holders (with notes/ETAs/expiry) and the wait queue in grant order. Governors use this to spot convoys, stale leases and merge opportunities.| Parameter | Type | Description |
|---|---|---|
| workerId | string |
moe.list_tasksList tasks, optionally scoped to one epic (epicId; omit it to list across all epics) and filtered by status. ARCHIVED tasks are hidden by default — pass includeArchived:true or name ARCHIVED in status to see them. counts.archived always reflects the true total.| Parameter | Type | Description |
|---|---|---|
| epicId | string | |
| includeArchived | boolean | Include ARCHIVED tasks in the returned list (default false). ARCHIVED tasks are shelved out of context unless explicitly requested. |
| limit | number | Maximum number of task summaries to return (default: 100, max: 500) |
| offset | number | Number of matching tasks to skip for pagination (default: 0) |
| status | array |
moe.list_teamsList all teams, optionally filtered by role| Parameter | Type | Description |
|---|---|---|
| role | string | Filter by role: architect, worker, or qa |
moe.list_workersList all registered workers with presence (alive/stale) based on lastActivityAt. Display-only signal: a stale worker may be mid-build with its CLI blocked on a long local step — staleness alone is NEVER grounds to release its task.| Parameter | Type | Description |
|---|---|---|
| livenessTimeoutMs | number | Workers with lastActivityAt older than this are reported as not alive (default 120000) |
| onlyStale | boolean | If true, only include workers where isAlive=false. Default false. |
moe.propose_railPropose a change to rails| Parameter | Type | Description |
|---|---|---|
| currentValue | string | The existing rail text (for MODIFY_RAIL / REMOVE_RAIL). For GLOBAL it may be a customRules, forbiddenPatterns or requiredPatterns entry; exactly one of those lists must hold it |
| proposalType * | string | Add a new rail, modify an existing one, or remove one |
| proposedValue * | string | The new rail text. For EPIC ADD_RAIL/MODIFY_RAIL it must be a single line of at most ${MAX_EPIC_RAIL_CHARS} characters; longer text is refused, never truncated |
| reason * | string | Why the rail should change |
| targetScope * | string | Which rail list the change applies to |
| taskId * | string | The task the proposal came up in |
| workerId | string | Caller worker ID (auto-injected by proxy) |
moe.qa_approveQA approves a task in REVIEW status, moving it to DONE. Requires a summary of what was verified. HARD candidate gate: pass candidateId (from get_context.currentCandidate) — if it is not the task's current candidate the approval is refused with CANDIDATE_MISMATCH so an approval can never bless bytes nobody read. Soft commit gate: when settings.autoCommit is on and no completion commit is recorded in task.commits for the current work round (anchored on the later of the latest rejection and the latest reopen, else the first step start, else reviewStartedAt), the approval still lands but the response carries a NO-COMPLETION-COMMIT warning (also posted to #governors) — audit task.commits with `git show <sha>` before approving. Under the default settings.deliveryPolicy (legacy) that warning is the whole commit gate. Under a strict deliveryPolicy (local-branch, remote-push, merged-pull-request, manual-artifact) approval is HARD-refused with DELIVERY_EVIDENCE_MISSING (-32003) naming each missing evidence token (completion-commit, pushed-completion-commit, merged-pull-request, manual-artifact, required-check:<qualityGate>); manual-artifact and merged-pull-request are satisfied only by the matching manualArtifact / mergedPullRequest attestation, recorded on the task as task.deliveryEvidence with verifiedDelivery false. Under verified-local, approval needs QA's own attemptId, generation and the sessionId that read moe.get_context, plus candidateId of the current candidate produced under the approved plan revision; refusals: STEP_ENTRY_IDENTITY_REQUIRED, ATTEMPT_SUPERSEDED, ATTEMPT_NOT_RUNNING, PLAN_REVISION_NOT_APPROVED, CONTEXT_RECEIPT_STALE, REVIEWED_CANDIDATE_REQUIRED, CANDIDATE_MISMATCH, CANDIDATE_REVISION_STALE. A row the qa_reject hard cap parked for human review (needsHumanReview) refuses any supplied workerId with NOT_ALLOWED; only the workerId-less human path approves it. A verdict frees the QA seat: the reply carries sessionHandoff END_SESSION for it and no nextAction, so end the session; do not claim or wait inside it.| Parameter | Type | Description |
|---|---|---|
| attemptId | string | The attemptId moe.claim_next_task returned. Optional under legacy/observe (a presented one is fenced); required under verified-local. |
| candidateId | string | The candidate you actually reviewed (get_context.currentCandidate.id). Refused with CANDIDATE_MISMATCH if the task has moved on to a different candidate. Optional only for projects that record no candidates; omitting it on a task that has one approves with a warning. |
| generation | integer | The generation moe.claim_next_task returned. Optional under legacy/observe (a presented one is fenced); required under verified-local. |
| manualArtifact | string | deliveryPolicy manual-artifact ONLY: the deliverable you checked by hand, as a path, URL or description (max 500 chars). Recorded on the task as task.deliveryEvidence with verifiedDelivery false: an attestation, never verified delivery. Refused under any other policy. |
| mergedPullRequest | string | deliveryPolicy merged-pull-request ONLY: the pull request you confirmed merged, as a URL or reference (max 500 chars). Recorded on the task as task.deliveryEvidence with verifiedDelivery false. Refused under any other policy. |
| sessionId | string | The sessionId this session passed to moe.get_context. Optional under legacy/observe; required under verified-local. |
| summary * | string | What was verified: commands re-run, DoD items checked, diff size. Required — an approval without evidence is a rubber stamp. |
| taskId * | string | The task ID to approve |
| workerId | string | Caller worker ID (auto-injected by proxy) |
moe.qa_rejectQA rejects a task in REVIEW status. Normally moves it back to WORKING for the worker to fix. Escalates automatically: when this rejection reaches the reopen cap (3) or a failedDodItems entry has now failed twice, the task goes to PLANNING for one re-plan; past the cap it stays in REVIEW, unassigned and flagged for a human (needsHumanReview), and a row so parked refuses any supplied workerId with NOT_ALLOWED. Name the exact DoD items in failedDodItems so repeat failures are detected, and pass candidateId for the bytes you reviewed. Under verified-local, rejection needs QA's own attemptId, generation and the sessionId that read moe.get_context, plus candidateId of the current candidate; refusals: STEP_ENTRY_IDENTITY_REQUIRED, ATTEMPT_SUPERSEDED, ATTEMPT_NOT_RUNNING, PLAN_REVISION_NOT_APPROVED, CONTEXT_RECEIPT_STALE, REVIEWED_CANDIDATE_REQUIRED, CANDIDATE_MISMATCH. A verdict frees the QA seat: the reply carries sessionHandoff END_SESSION for it and no nextAction, so end the session; do not claim or wait inside it.| Parameter | Type | Description |
|---|---|---|
| attemptId | string | The attemptId moe.claim_next_task returned. Optional under legacy/observe (a presented one is fenced); required under verified-local. |
| candidateId | string | The candidate you actually reviewed (get_context.currentCandidate.id). Refused with CANDIDATE_MISMATCH if the task has moved on to a different candidate, so a rejection names the bytes it judged. Optional only for projects that record no candidates. |
| failedDodItems | array | Which Definition of Done items failed verification |
| generation | integer | The generation moe.claim_next_task returned. Optional under legacy/observe (a presented one is fenced); required under verified-local. |
| issues | array | Structured list of issues found during review |
| reason * | string | Detailed reason for rejection - should reference specific DoD items that failed |
| sessionId | string | The sessionId this session passed to moe.get_context. Optional under legacy/observe; required under verified-local. |
| taskId * | string | The task ID to reject |
| workerId | string | Caller worker ID (auto-injected by proxy) |
moe.reattach_attemptReattach a runner to its own execution attempt after a daemon restart, moving the attempt from `reconciling` back to `running` and ending the hold on its task. The runner must present the attempt id, generation, recorded process start time and host, and ALL of them must match. Idempotent: reattaching an already-running attempt is a no-op that succeeds, so a retry after a lost response is safe. A match narrows WHICH process the runner means; it is not evidence that the process is alive.| Parameter | Type | Description |
|---|---|---|
| attemptId * | string | Attempt to reattach, as returned by moe.claim_next_task. |
| generation * | number | Fencing token from the same claim. A superseded value is refused. |
| host * | string | The host exactly as it was recorded on the attempt. |
| processStartedAt * | string | The process start time exactly as it was recorded on the attempt. Compared as a string, not as a date. |
| runnerId * | string | Wrapper/runner session driving the process. |
| taskId * | string | Task the attempt belongs to. |
| workerId * | string | Worker seat that owns the attempt. |
Security checks
6 checks have not been run yet.