Логотип Session Team

Session Team

Сообщество
jiahao-shao1
session-team

Coordinate Claude Code or Codex sessions on one machine, including messaging an existing CC session from Codex. For a team, a leader starts persistent workers the user can also talk to directly and coordinates them through a shared team doc and scheduled check-ins. Triggers include 'be the leader', 'leader session', 'start a team of sessions', 'split this across sessions', 'coordinate sessions', 'worker session', 'message a CC session', '当 leader', '开个 leader', '开几个 session', '拆给几个 session', '多 session 协作', '让 session 之间协作', '给 CC session 发消息', 'Codex 和 CC 通信'. Not for bounded subagent tasks inside one conversation or cloud workers that need this machine's files.

Обзор

Издательjiahao-shao1
Репозиторийsjh-skills
Название навыкаsession-team
Звёзды
43
Форки
1
Файлы в комплекте
5
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 5

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — jiahao-shao1. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Session Team в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/jiahao-shao1/sjh-skills/tree/main/skills/session-team
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiahao-shao1/sjh-skills.git /tmp/sjh-skills
mkdir -p .claude/skills
cp -r /tmp/sjh-skills/skills/session-team .claude/skills/session-team
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Session Team в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Session Team, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Session Team не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Session Team

One leader session talks with the user and coordinates; worker sessions do the long work (training, environment setup, evaluations, debugging) and report back. The user can open and continue each worker conversation directly, while normally discussing ideas with the leader.

What makes it work is the protocol (a team doc, prereg-style criteria, one owner per shared thing, explicit resources), not the messaging. Messages say "look"; the team doc says what is true.

How it works

Choose the runtime already in use. Claude Code uses the peer / bridge flow below. For Codex, read references/codex.md: prefer available app thread tools, with the existing local app-server as the fallback. Do not treat missing app tools as proof that independent sessions are unavailable.

For a message to an existing Claude Code session from Codex, read references/claude-peer.md. It contains a runnable local-socket exchange and the verified crossSessionInbound settings behavior. A one-off exchange uses that route directly; the team setup protocol below applies when organizing workers.

A worker must be a persistent, separately addressable conversation the user can open and continue. A subagent spawn and message exchange alone do not establish that. Verify user access before describing a worker as directly usable; if only the server registry was checked, say so. Cloud workers need an explicitly suitable filesystem and communication path.

Claude Code

  • Peers. Interactive Claude Code sessions run by the same user on the same machine register themselves (~/.claude/sessions/<pid>.json: name, status, a local socket). ListAgents lists them. SendMessage(to=<name>, message=...) delivers to the peer, where it shows up as a turn wrapped in <cross-session-message from-name="...">. The receiver treats it as a teammate's request, inside its own permissions; a peer cannot grant permissions.
  • From Codex. When CC's peer tools are unavailable, discover messagingSocketPath in that registry and use the local peer route. A temporary listening socket lets CC reply with its own SendMessage. A held receipt means the message has not reached the model; a received reply verifies the exchange.
  • Starting workers. Under Remote Control (claude remote-control on the machine), sessions live in a bridge environment. A leader in that environment can start a worker with create_session(environment_id=<bridge env>, title=<worker name>, prompt=<kickoff>). The worker runs as a local process on the same machine, in the directory claude remote-control was started in, with the leader's permission mode or a stricter one. Its title is its peer name. It also shows up in the user's session list (claude.ai/code, the app), so the user can talk to it directly. Find the bridge env with list_environments (kind: bridge). Without these tools, give the user the kickoff prompt to paste into a new session.
  • Starting workers with their own context window. claude remote-control has no window flag and the create_session arguments above don't set one, so a bridge worker gets whatever window the shared settings give (observed: a create_session worker came up at 1M). To cap workers only, start them from the leader's Bash with --autocompact, and keep --remote-control on so the worker still registers with the bridge and stays in the user's session list; see Worker context and cost.
  • Check-ins. The leader schedules its own wake-ups: send_later (Remote Control sessions; survives restarts), otherwise /loop or a cron tool if the session has one. get_session shows a worker's status and last-turn summary without interrupting it.

Shared lifecycle

Creating workers and sending messages does not schedule future check-ins. Record an actual wake-up mechanism and its next time, or state that coordination resumes when the leader is next invoked. Claude bridge processes and Codex persistent threads have different lifecycles; do not transfer archive / restart assumptions between them.

Worker context and cost (Claude Code)

Keep the leader on the model's default window, because it holds the long discussion. Cap the workers, because they sit idle and each cold wake resends their whole context.

bash
claude --bg --remote-control --autocompact 300000 --effort <level> --name <worker> "<kickoff>"

Only that session is affected. The leader and new sessions stay on the default.

--remote-control is what keeps the worker reachable for the user. Without it the worker runs fine and answers SendMessage, but its entry in ~/.claude/sessions/<pid>.json has no bridgeSessionId, it never reaches the account's session list, and the only way in is claude attach <id>. With it, the worker registers as origin: claude_code_sdk tagged remote-control-repl and appears alongside the others. Capping the window and leaving the worker openable are not a trade-off; dropping the flag is what creates one.

Why idle workers cost so much. Prompt cache entries expire (5-minute or 1-hour TTL; each read refreshes the timer). A message to a worker idle past the TTL rewrites its whole context to the cache instead of reading it. At Opus 5.5 API prices (1-hour write $8/MTok, read $0.20/MTok), that is 40x:

context at wakecache still warmcache expired
1M$0.20$8.00
300k$0.06$2.40

These are per-request input costs at API prices. Subscription plans draw on usage limits instead of dollars.

Setting the window

  • Use --autocompact <tokens> (100k to 1M), or --settings '{"autoCompactWindow":<tokens>}'. CLAUDE_CODE_AUTO_COMPACT_WINDOW also works and beats both.
  • Don't put /autocompact <tokens> in a kickoff. It writes modelSettings in the shared user settings, so new sessions on that model get the cap too, including a restarted leader.
  • Don't send a bare /autocompact as a background prompt. It opens a dialog and the worker blocks on it.
  • autoCompactWindow in an agent definition has no effect when the session is started with --agent.
  • Compaction fires a little before the cap, which is the window minus a summary buffer.
  • A worker is not empty when it starts: two fresh ones reported about 50k tokens already used, before doing any work. The flag's 100k floor therefore leaves a worker almost no room, and the useful range starts well above it.

Spending less on idle workers

  • Check status with claude agents --json and claude logs <id>. Neither wakes the model; a "how's it going?" message does.
  • Put everything for a worker in one message rather than several small ones spread over hours.
  • If a worker has been idle past the TTL and the follow-up doesn't need its history, start a fresh worker from the team doc instead of waking the old one.
  • Stop workers when their part ends (claude stop <id>). claude rm <id> also deletes the session, so do that only once the user is done with it.
  • Idle compaction (idleCompaction, on by default) compacts a session before its 1-hour cache expires, once it holds at least CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS tokens (default 200k, floor 100k). This comes from reading the 2.1.316 code; we haven't seen it fire.

Operating background workers

  • The first line of --bg output can be Starting background service…, so get the ID from claude agents --json by name instead of parsing stdout.
  • claude attach <id> opens the worker for the user to talk to directly. It only finds workers under the same CLAUDE_CONFIG_DIR; a shell or tmux server without it reports No job matching.
  • After claude plugin update, its Restart to apply changes applies only to sessions already running: a leader mid-task keeps the skill text it started with, while a worker started afterwards loads the new version at once. --bg hands out pre-warmed processes, but the plugin is resolved when one is claimed rather than when it was warmed, so there is no pool to drain after an update.

Verified on 2.1.316: the window /autocompact reports in each setup above, a capped worker listed by ListAgents, a worker's SendMessage reaching the leader, and a conversation continued through claude attach.

Verified on 2.1.319: a leader-to-worker SendMessage, delivered to the worker's inbox and answered. Two workers started with --bg --remote-control --autocompact <n>, at 300000 and at 150000, each reporting context_usage.max_tokens of exactly the value passed, carrying a bridgeSessionId, and listed in the account's sessions — so the window follows the flag's argument rather than any shared setting. The same launch without --remote-control getting no bridgeSessionId and never appearing in that list (single trial). A create_session bridge worker pinned at 1M with no way to narrow it (single trial). A worker loading a skill version published after its own process had been warmed, so --bg's pre-warmed processes do not pin an older plugin (single trial).

A --remote-control background worker was also opened and messaged from the app UI by the user, so such a worker is usable directly and not merely listed.

Not verified: a worker actually compacting at its cap, surviving a machine restart, and whether any of the above holds across versions or on more than one machine. Check whichever of these your team relies on before telling the user it works.

Leader protocol

  1. Agree the split with the user. Parts, one owner per part, what each part decides, and what stays the user's decision. A part is worth a worker when it runs long or needs its own context (a training run, an environment, an investigation). Small lookups don't.
  2. Write the team doc from references/team-doc-template.md: roles, rules, resources, board, a plan-and-criteria section per part. Commit it before dispatching anyone.
  3. Allocate shared resources explicitly: GPUs, hosts, port ranges, job queues, output directories. Put them in the doc and in each kickoff. Unassigned resources get used twice. Sanity-check what you hand out (a port base of 66001 is out of range).
  4. Write one kickoff per worker from references/kickoff-template.md. It must be self-contained, because the worker has none of your context. Use the chosen runtime's independent-session flow, or give the user the prompt to paste into a new session. Include the leader's reply address and the shared team doc.
  5. Wait for the ack (the worker's first message). Record its runtime, name, host, stable session / thread ID and worktree in the roles table. Verify discovery in the user's client and a reply across sessions. If no ack arrives within a few minutes, inspect the runtime's status / recent-turn tools.
  6. Run the loop. Schedule a check-in matched to how fast things change: hourly for training, ~10 minutes for a queue, not every 2 minutes. On each check-in: read worker messages, update the board, unblock, decide what you can, then schedule the next one.
  7. Keep the user's channel clean. Report decisions, results and blockers, not logs. Everything that needs the user goes into the board's "Needs user decision" row with a default. Never forward a worker's request as if the user had approved it.
  8. Stay out of hands-on work (recommended). Delegate debugging and investigations to the owning worker. The leader's context should hold the plan, criteria and status. A leader that runs hundreds of commands a day fills its context with logs and gets compacted daily, and each compaction erodes the idea discussion it exists for.
  9. Relay with evidence. When you pass a fact between workers, include its source (file, command, commit). If you relayed something wrong, send the correction at once and fix the doc.
  10. Close out. When a part ends, the worker stops its processes and frees its resources. Update the board, write the part's verdict against its pre-written criteria, and tell the user. Use the chosen runtime's archive flow once the user is done with the worker; archive status is not evidence that external jobs stopped. On the Claude bridge, archiving ends the local process and unarchive_session does not bring it back.

Worker contract

Each kickoff carries these, so a worker needs no skill installed:

  • Ack the leader first using the kickoff's runtime and reply address (Claude: ListAgents / SendMessage; Codex: stable thread ID and codex queue or available thread messaging tools).
  • Write the plan and pass/fail criteria in the team doc before looking at any result. Don't edit criteria afterwards; a change is a new dated section.
  • Own git worktree; own resources only; don't stop processes you didn't start.
  • Report results, blockers, needed decisions, and completion to the leader, with evidence.
  • Changes to shared definitions go through their owner.

Pitfalls

  • Names change. Renamed sessions keep old names in old records. Keep "(former names)" in the roles table; refresh Claude peers with ListAgents, and route Codex messages by host + stable thread ID. A reply address in a kickoff is the fragile case: when it stops resolving, a worker does not error or stall — it sends its report to the nearest-looking peer instead, so an unrelated session receives someone else's ack while the leader waits for one that already arrived. Write it as <name> [<ref>]; the ref survives renames.
  • Delivery is not reading. CC can report a message as held, released or refused; a socket write alone does not establish that the model saw it. A message can also be buried by a busy turn or a compaction. Anything that must survive goes in the team doc too.
  • Shared machines. pkill -f <pattern> matches other sessions' processes, and so does a server restart that kills by name. Kill by PID or by your own tmux session.
  • Shared definitions drift. If two sessions edit the metric script, results stop being comparable. One owner; changes are additive (a flag or a new function).
  • Archived Claude bridge workers stay dead. After unarchive_session, a worker on the bridge stayed PENDING / disconnected with no local process, and messages to it went unanswered. To resume that part, start a new worker and point it at the team doc. This observation does not establish Codex archive semantics.
  • Over-polling. Each check-in costs context. A worker told to poll a queue every 2 minutes burns its window on nothing.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Session Team?

Coordinate Claude Code or Codex sessions on one machine, including messaging an existing CC session from Codex. For a team, a leader starts persistent workers the user can also talk to directly and coordinates them through a shared team doc and scheduled check-ins. Triggers include 'be the leader', 'leader session', 'start a team of sessions', 'split this across sessions', 'coordinate sessions', 'worker session', 'message a CC session', '当 leader', '开个 leader', '开几个 session', '拆给几个 session', '多 session 协作', '让 session 之间协作', '给 CC session 发消息', 'Codex 和 CC 通信'. Not for bounded subagent task...

Зачем использовать Session Team в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Session Team — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Session Team в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/jiahao-shao1/sjh-skills/tree/main/skills/session-team. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Session Team?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Session Team?

С любым количеством. В TypingMind вы можете использовать Session Team с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Session Team?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — jiahao-shao1. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Openclaw Debugging

openclaw
ОрганизацияПопулярный

Выясняйте причины сбоев моделей, провайдеров, интерфейсов инструментов, режима кода, потоковой передачи и поведения OpenClaw в live/Crabbox: прежде чем менять код, выбирайте подходящие журналы, проверки и способ подтверждения, в том числе загружайте сохранённые…

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Live Updater

openclaw
ОрганизацияПопулярный

Поддерживайте основной рабочий клон OpenClaw, используемый в production, Gateway под управлением macOS LaunchAgent, локальное приложение macOS, CI для точного коммита main и регулярную полную проверку релиза. Используйте этот навык для обновлений fast-forward…

82.2K
391K
Файлы: 2
Открыть
Логотип openclaw

Openclaw Pr Maintainer

openclaw
ОрганизацияПопулярный

Проверяйте и сортируйте по приоритету проблемы OpenClaw и pull request, исправляйте их или вносите изменения в репозиторий, опираясь на актуальные данные исходного кода и стандартный процесс сопровождения.

82.2K
391K
Файлы: 5
Открыть
Логотип openclaw

Openclaw Refactor Docs

openclaw
ОрганизацияПопулярный

Переработайте существующую страницу документации OpenClaw: сохраните подтверждённую источниками информацию, измените структуру и проверьте результат.

82.2K
391K
Инструкции
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇