Tower

v0.12.1
io.github.Rohanxmalik/tower Checked 3 days ago Published 2 months ago

Multiplayer for AI coding agents: collision detection before the edit, messaging, delegation.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

claim_intent

Register intent to edit code BEFORE editing. Returns any collisions with other active agents. Call this first, always. Also pass `reads`: the declarations you consulted to write this — the functions, methods or types you are calling or implementing against. Tower tells you when one of them changes under you, and shows the old and new signature so you can patch your call sites without re-reading the file. If you are changing a symbol's signature, set `declares` on it to the new declaration as it will read in the source, up to the body (e.g. `function verify(token: string, opts: Opts): boolean…

ParameterTypeDescription
agentId *string
branch *string
repo *string
etaMinutesinteger
filesarray
forceboolean
projectIdstring
purposestring
readsarray
repoIdstring
symbolsarray

check_collision

Check for collisions without registering a claim (a dry run).

ParameterTypeDescription
branch *string
repo *string
agentIdstring
filesarray
projectIdstring
readsarray
repoIdstring
symbolsarray

heartbeat

Keep an active claim alive; claims auto-expire without heartbeats. Returns `invalidations`: declarations your work read that have moved, or that another agent has declared it is about to change — with the new signature, so you can adapt before it lands.

ParameterTypeDescription
claimId *string

complete_claim

Release a claim after committing (optionally record the commit sha). Pass `symbols` with their final `sig`/`sigText` and every agent whose work reads a changed declaration is told what it landed as, and whether it matches what you declared.

ParameterTypeDescription
claimId *string
commitShastring
symbolsarray

release_claim

Abandon a claim without committing.

ParameterTypeDescription
claimId *string

list_claims

List claims, optionally filtered by repo/branch/status.

ParameterTypeDescription
branchstring
projectIdstring
repostring
repoIdstring
statusstring

log_decision

Record an architecture decision and WHY it was made, for the team's shared memory.

ParameterTypeDescription
author *string
title *string
bodystring
projectIdstring
relatedFilesarray
repostring
repoIdstring
tagsarray

get_decisions

Recall past architecture decisions before acting.

ParameterTypeDescription
projectIdstring
querystring
relatedFilesarray
repostring
repoIdstring
tagsarray

next_task

Ask the sequencer for a task whose module is safe to start right now.

ParameterTypeDescription
agentId *string
repo *string
candidatesarray
projectIdstring
repoIdstring

send_message

Send an async message or task to another agent (toAgentId, or '*' to broadcast). Delivered on their next Tower contact. kind 'task' delegates work; reply with kind 'task_update' (replyTo=the task id) when done.

ParameterTypeDescription
body *string
fromAgentId *string
repo *string
toAgentId *string
kindstring
projectIdstring
replyTostring
repoIdstring
sizestring

fetch_messages

Read your inbox (marks messages read). Call whenever claim_intent reports unreadMessages > 0.

ParameterTypeDescription
agentId *string
projectIdstring
repostring
repoIdstring
unreadOnlyboolean

pending

Read-only count of unread messages + open tasks waiting for you. Marks nothing read — the interactive nudge; if it returns > 0, call fetch_messages / list_tasks.

ParameterTypeDescription
agentId *string
projectIdstring
repostring
repoIdstring

accept_task

Claim a delegated task before working on it (first accept wins — prevents two agents doing the same work).

ParameterTypeDescription
agentId *string
taskId *string

complete_task

Finish an accepted task: success or failure, with the result and optional commit sha / PR url. Auto-notifies the delegator.

ParameterTypeDescription
agentId *string
taskId *string
commitShastring
filesChangedinteger
prUrlstring
resultstring
successboolean

list_tasks

List delegated tasks by repo/status/recipient/assignee (the worker's poll).

ParameterTypeDescription
assigneeAgentIdstring
forAgentIdstring
projectIdstring
repostring
repoIdstring
statusstring

request_approval

Park a task for human approval before running it (remote-approve worker mode) — a person approves it from the board/phone.

ParameterTypeDescription
agentId *string
taskId *string

resolve_approval

Approve or reject a parked task (used by the board; also callable by tools).

ParameterTypeDescription
approved *boolean
taskId *string

heartbeat_worker

Announce that this worker is online and ready to run tasks (call it every poll so the board shows live presence).

ParameterTypeDescription
agentId *string
repo *string
projectIdstring
repoIdstring
runnerstring
statusstring

propose_intent

BEFORE you research or write anything: say in plain English what you plan to work on. Returns anyone already doing the same work, matched on meaning rather than file paths — so it catches a duplicate even when you would have picked a different filename. One call per task; it is the cheapest check Tower offers and the only one that fires before your tokens are spent.

ParameterTypeDescription
agentId *string
purpose *string
repo *string
projectIdstring
repoIdstring

record_reads

Record declarations you just read, so your next claim_intent knows what your work is built on. Returns `conflicts` straight away when another agent is changing what you read — the cheapest moment to find out, before you plan against it. Normally called by the PostToolUse hook, not by you.

ParameterTypeDescription
agentId *string
repo *string
branchstring
projectIdstring
readsarray
repoIdstring