multi-session-collab

multi-session-collab is a skill for Claude Code, Codex from ForceInjection/AI-fundamentals. It costs 145 tokens per session (1,296 once invoked), scanned A, original, Apache-2.0.

A workflow guide for coordinating several coding-agent sessions with roles such as reviewer, modifier, tester, and judge. It defines message rules, task cards, reports, and a final decision process.

In plain words
What is it for?
Use it to organise review, code changes, testing, and acceptance across several command-line sessions.
Why use it?
It prevents multi-window work from becoming unstructured handoffs or duplicated effort. It also helps choose between simple messages, an agent team, or a repeatable scripted workflow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Good fit Use it to organise review, code changes, testing, and acceptance across several command-line sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forceinjection/ai-fundamentals/multi-session-collab
About the project

AI Fundamentals is a learning resource about the foundations and infrastructure behind artificial intelligence, including GPU architecture, CUDA programming, large language models, AI systems, and related operations. It is intended for AI engineers, system architects, GPU developers, application developers, and researchers. The catalogue add-ons support learning or working with these AI infrastructure topics.

ForceInjection/AI-fundamentals · 3,083 stars · on GitHub · forceinjection.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ForceInjection/AI-fundamentals --skill multi-session-collab
Clone the repo
git clone --depth 1 https://github.com/ForceInjection/AI-fundamentals

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for multi-session-collab

README.md
[![agentmods](https://agentmods.dev/badge/skills/forceinjection/ai-fundamentals/multi-session-collab/github.svg)](https://agentmods.dev/skills/forceinjection/ai-fundamentals/multi-session-collab)
Your own site
<a href="https://agentmods.dev/skills/forceinjection/ai-fundamentals/multi-session-collab"><img src="https://agentmods.dev/badge/skills/forceinjection/ai-fundamentals/multi-session-collab/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for multi-session-collab

Your own site · 80×15
<a href="https://agentmods.dev/skills/forceinjection/ai-fundamentals/multi-session-collab"><img src="https://agentmods.dev/badge/skills/forceinjection/ai-fundamentals/multi-session-collab.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00145 $0.01296
Opus 5.5 $0.00058 $0.00518
Sonnet 5.5 $0.00029 $0.00259
Haiku 4.5 $0.00015 $0.00130

Measured today against content hash c739099c193d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

multi-session-collab scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/print-setup.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

08_agentic_system/agent_skills/multi-session-collab/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

多会话协作(评审 / 修改 / 测试 / 裁决)

一句话:把「几个人肉传话的 Claude 窗口」组织成有角色、有协议、有裁决的多会话流程。

何时用 / 不用

用:

  • 用户要开多个 CLI 窗口分工(评审、修改、测试),并要一个裁决者
  • 需要跨会话消息协议、judge rubric、质量门禁
  • 要把「评审 → 修改 → 测试 → 裁决」固化成可重复流程

不用:

  • 单会话内的并行子任务 → 用后台 subagent(Agent 工具)
  • 一次性短任务 → 多开会话只会把协调成本翻倍
  • 只是远程盯屏 → Remote Control / Desktop

先问三个问题(选路线)

  1. 要保留多个窗口?→ 跨会话消息(原生,零配置)
  2. 接受合并到一个窗口?→ Agent Teams(实验,需 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1)
  3. 同一流程反复跑?→ Dynamic Workflow(脚本化,对抗式核验)

产品化给别人用,再看 Agent SDK。MCP 不是会话通信方案(工具协议,无 agent-to-agent 能力);除非需要跨重启持久化任务板或非 Claude 客户端接入,不要自建 MCP 总线。

操作流程

A. 跨会话消息(多窗口)

  1. 命名四个会话:claude --name reviewer / modifier / tester / judge(或会话内 /rename);也可以 claude --bg 起后台会话当 worker(见 setup.md)
  2. 定入站策略:按 references/setup.md 的权限矩阵设置 crossSessionInbound;无人值守的 -p worker 必须设 accept,否则消息进不来
  3. 下发任务卡、收回回报:模板与 findings schema 见 references/protocol.md
  4. judge 按 rubric 出三档裁决:通过 / 打回(附整改单)/ 升级人工
  5. 排错查 setup.md 的故障表;启动命令与设置清单:bash scripts/print-setup.sh
  6. 纪律:不轮询(用 notify_when_idle);消息是纯文本,文件要写路径;@ 引用在接收侧只是字面文本

B. Agent Teams(单窗口编队,实验)

  1. 设 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1;副作用:带 name 启动的 subagent 会自动变成 teammate
  2. 按角色卡组队:reviewer 只读 / modifier 可写 / tester 执行 / lead 即 judge(禁止 judge 改代码)
  3. 共享任务列表 + mailbox;teammate 完成自动把最终答案发给 lead
  4. 门禁:TeammateIdle / TaskCompleted hooks(退出码 2 阻断)
  5. 限制:仅交互模式、无 worktree 隔离(按文件/目录分区)、无 resume、官方建议 3–5 人

C. Dynamic Workflow(可重复流水线)

  1. 用 agent() / parallel() / pipeline() 编排,agent() 带 schema 输出 JSON
  2. 评审 → 逐条对抗核验 → judge 合并,只保留经得起反驳的 findings
  3. 限制:运行中无人工介入、脚本无文件系统/shell、默认 16 并发;可保存为 / 命令复用

铁律(安全边界)

  • 跨会话消息不能代批权限、不能改配置或 CLAUDE.md、斜杠命令不执行
  • judge 不改代码(独立性);reviewer 只读;角色按文件分区防覆盖
  • 每个 agent 独立计费;teams / workflows 在 CLI 里没有默认硬性预算上限,人数与阶段数要克制
  • 裁决必须可检查:打回附「文件行 + 验收标准」,否则下一轮修改没有终点

快速参考

Read the full file on GitHub · 71 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed c739099c193d
  2. yesterday First seen · 71 lines · 145 tokens per session scan A f91f7c6923a1

Subscribe to this mod's changes

multi-session-collab is a skill published in the GitHub repository ForceInjection/AI-fundamentals (3,083 stars, last pushed yesterday), licensed Apache-2.0. It adds 145 tokens to every session and 1,296 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.

Related

Other skills, from other repositories