{"data":{"slug":"discovered-828c534c7526bf9a927d6417a20390ce490af82c526dc653","title":"Rjv Agent Relay","summary":"Lead a long job across agent sessions by splitting work into parts, tracking them in PLAN.md, writing each part's brief, checking results, and merging from the lead using rjv-session-link.","url":"https:\/\/skillshunter.net\/skills\/discovered-828c534c7526bf9a927d6417a20390ce490af82c526dc653","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-828c534c7526bf9a927d6417a20390ce490af82c526dc653","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-828c534c7526bf9a927d6417a20390ce490af82c526dc653.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-828c534c7526bf9a927d6417a20390ce490af82c526dc653\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before starting, ensure that `~\/.agents\/sessions.json` is available and that the lead session is properly configured. Each worker must use a separate branch and worktree, and never commit directly to main or shared branches. The lead is responsible for merging and releasing changes.","instructions":"---\nname: rjv-agent-relay\ndescription: \"How-to: lead other agent sessions on a long job\u2014split into parts, track them in PLAN.md, write each part's brief, check what comes back, and merge from the lead. Uses rjv-session-link for the thread and start, rjv-delegate for delegation rules, and rjv-code-review for review rounds. Triggers: give another session a task, split across sessions, pass to another session, worker report.\"\n---\n\n# Leading work across agent sessions\n\nEach session runs on its own account or tool with its own usage limit.\nThe session the user works in leads: it splits the work, writes the\nbriefs, reviews every result and does all merging, releasing and pushing\nto shared branches. A worker does its part, reports, and keeps listening.\n\nGive workers the long, independent parts (sweeps, screen maps, a build\nbatch in its own worktree). Keep judgment, integration and releases with\nthe lead.\n\n**The link is `rjv-session-link`**: one thread per worker, the watcher,\nand foreground (default) or background start. Read it before opening a\nthread. Every hand-out and report below is a thread entry. In a hand-out\nentry, name the part, its brief path and how to report; in a report, the\npart, the branch head and the result.md path.\n\nWorkers are listed in `~\/.agents\/sessions.json` (local, never committed; see\n`rjv-session-link`). Read it for a worker's tool, config folder and launch command.\n\n## Files\n\nOne folder per initiative, every path absolute:\n\n```\n~\/.relay\/<project>\/<initiative>\/\n  THREAD.md          the conversation: lead <-> one worker, append-only\n  PLAN.md            the ledger: | Part | What | Owner | Status | Folder |\n  <part>\/brief.md    what the worker must do (brief-2.md for a follow-up round)\n  <part>\/log.md      the worker's append-only progress log\n  <part>\/result.md   its report; first line `<Part>: DONE | PARTIAL`\n```\n\nA second worker on the same initiative gets its own thread\n(`THREAD-<worker>.md`), so each conversation reads in order. A new topic\ngets a new initiative folder and its own thread. That is how the lead runs\nseveral sessions at once: one thread each, all watched together.\n\nUpdate PLAN.md in the same turn a part is handed out, comes back, or is\nmerged. Never delete these files. Older initiatives may still hold numbered\n`to-<worker>\/NNN.md` and `to-lead\/<worker>-NNN.md` files; read them, but\nopen a thread instead of writing the next number.\n\n## Writing a brief\n\nThe worker knows only the brief and what it reads from disk. Write it the\nway `rjv-delegate` \u00a74 says, plus these lines every time:\n\n1. **Read first:** PLAN.md and any shared rules file of the initiative;\n   the repo's AGENTS.md if it touches one.\n2. **Where it may write:** its part folder and the thread only, unless the\n   brief names a branch. Code work goes in ONE worktree and ONE branch per\n   worker, never one per part (`git worktree add ..\/<repo>-<worker>-work\n   -b <worker>-work origin\/main`). Each part is its own commits with its\n   own changeset on that branch, pushed with\n   `git push origin HEAD:refs\/heads\/<worker>-work`. It never commits to\n   main or a shared branch; the lead merges the branch whole, posts\n   \"merged\", and the worker fast-forwards to origin\/main before the next\n   part. The lead deletes merged worktrees and branches.\n3. **Read-only repos:** name any repo it must not change.\n4. **Standing rules:** never git stash, never `--no-verify`, never\n   force-push; its own dev-server port and agent-browser session name,\n   killed when done; never ports 3456 or 4173. Say in every brief: load\n   `rjv-delegate` (and host mechanism) for model and count.\n5. **Done means:** the exact deliverable and its format, and the checks\n   that must pass.\n6. **Log and result:** append `HH:MM what` to log.md as it goes;\n   result.md first line `<Part>: DONE | PARTIAL`, then what it did,\n   numbers, open items, branch head if any.\n7. **Budget** in minutes, and: \"When done, post in the thread that <Part>\n   is done, with the branch head and the result.md path.\"\n\nOne part per brief. A worker's part must not touch files the lead, the\nlead's agents or another worker are changing at the same time. Hand the\nbrief out with a thread entry that links it.\n\nPLAN.md here is the relay ledger, not a `rjv-work-plan` `.plans\/` file.\n\nDone when the brief carries all seven lines and the hand-out entry is\nposted.\n\n## When a result comes back\n\n1. Read result.md and log.md in full. Treat every claim as unchecked.\n2. Check what carries the decision yourself: read the diff or the files,\n   rerun the checks, open the shots. A worker's own PASS is not the gate\n   (`rjv-delegate` \u00a710).\n3. Fix small things yourself and say so in the thread. For anything larger\n   write `brief-2.md` naming each problem with file:line and what done\n   looks like, and post it in the thread.\n4. Merge, release and sync from the lead. Mark the part merged in PLAN.md\n   and post the outcome in the thread.\n\nDone when PLAN.md shows the part merged or handed back with a brief-2, and\nthe thread says so.\n\n## What stays with the lead\n\nPlans and the split, reviews, merges to main, releases and publishing,\nthe lead account's design-system sync, anything needing the user's\ndecision. A worker does its own account's design-system sync target when\na brief asks for it, since only that account can write that artifact.\n","use_cases":["Splitting a long job into independent parts for multiple agent sessions","Tracking progress and merging results from worker sessions","Writing detailed briefs for each part of a task","Ensuring code changes are made on separate branches and worktrees","Reviewing and verifying results from worker sessions before merging"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/rjvim\/ai-skills\/blob\/9a942086adef21dbd0c061d9d9e8fd5f43328bf6\/skills\/rjv-agent-relay\/SKILL.md","source_commit":"9a942086adef21dbd0c061d9d9e8fd5f43328bf6","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:09:34.000000Z","updated_at":"2026-12-03T16:19:55.000000Z","seo_title":"Rjv Agent Relay - Lead Agent Sessions Across Workflows","seo_description":"Learn how to lead long jobs across agent sessions using Rjv Agent Relay. Split work into parts, track progress in PLAN.md, and merge results from multiple workers.","seo_keywords":["agent relay","lead agent sessions","split job into parts","track agent progress","merge agent results","rjv-session-link","agent workflow management"]}}