Expand description
Who else is working on the same thing
(docs/specs/SPEC_AGENT_OVERLAP_AWARENESS_2026_10_10.md §3.2), and saying
what you are working on (ClaimWork, ReleaseWork, §3.4).
Constants§
- PR_
FILES_ 🔒CHECKED - Files of the asked PR whose local facts are fetched, at most.
- RECENT_
POSTS_ 🔒MAX WhoIsWorkingOn’srecent_postsholds at most this many (srv’s cap).
Functions§
- add_
open_ 🔒prs - Add the open PRs that touch the question (
open_prs.rs) to srv’s answer, for the repository srv resolved. Withpr, the agents on this computer are the ones with that PR’s files changed or edited (ask_path, srv’s answer for one file), not everyone in the repository. A failure is reported in the answer (pr_error) and never fails the call. - arg 🔒
- The trimmed, non-empty string argument
key. - call 🔒
- channel_
post_ 🔒body PostToChannel’s request body.- channel_
pr 🔒 - A coordination post’s PR argument: its number, and the repository its URL
names (which must agree with
repowhen both are given). - channel_
read_ 🔒query ReadChannel’s query string.- claim_
body 🔒 - What srv’s
/api/v1/work-claimstakes: the claimed target, note and lifetime, plus who is asking (srv prefers the request’s agent token). - merge_
agents 🔒 - Merge srv answers for several files: one entry per agent and channel, with every distinct match.
- merge_
posts 🔒 - Add posts not already in
into(by id). - normalize_
repo 🔒 owner/repo, lowercased, fromowner/repo, a remote URL (https://github.com/o/r.git) or an ssh remote (git@github.com:o/r).- post_
matches 🔒 - Whether a post fits the question’s
branchandquery, as srv selects them (work_facts::coord::matches): the branch it is about, or none; every word ofqueryin its topic, path or text, case-insensitively. - pr_ref 🔒
- A PR:
12,"12","#12", or its URL (https://github.com/<owner>/<repo>/pull/12, with anything after the number, like/filesor#issuecomment-…), which also names its repository:(Some("owner/repo"), 12). - release_
body 🔒 - What srv’s
/api/v1/work-claims/releasetakes: a claim id, or none for all. - run_
claim_ 🔒work - run_
post_ 🔒bulletin - run_
post_ 🔒to_ channel - run_
quota_ 🔒mode - run_
set_ 🔒status Presence status: the agent says what it is doing now. srv keeps the line (cleaned, with the time) in the agent’s pane meta, where the Swarm row andwork.goalread it.- run_
who_ 🔒is_ working_ on - who_
query 🔒 - The query srv’s
/api/v1/work-facts/whotakes for these arguments, plus who is asking (srv prefers the request’s agent token to both).