Parallel Agents 标志

Parallel Agents

组织热门
GetStream
parallel-agents

Rules for running several coding agents on this repo at once (PR authors, reviewers, fixers, rebases), so they do not break each other's runs and do not burn tokens on repeated work. Read before you start more than one agent that writes code, runs integration tests or opens PRs.

概览

发布者GetStream
代码仓库Agents
技能名称parallel-agents
星标数
8.2K
复刻数
709
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 GetStream 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Parallel Agents AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/GetStream/Agents/tree/main/.claude/skills/parallel-agents
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/parallel-agents .claude/skills/parallel-agents
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Parallel Agents,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Parallel Agents。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Parallel Agents 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Parallel agents

These rules come from running seven connector PRs with agents on accelerate. Each one names a mistake that actually happened.

Keep agents out of each other's way

  • Test database. acceleration/internal/config/testing.yaml wins over ROUTER_POSTGRES_DSN (TestTheTestingFileWinsOverTheEnvironment). Setting the env alone does not isolate a run.
    • Each agent points testing.yaml at a database of its own, such as model_router_test_<slug>_test. Do it through a go test -overlay copy or in the agent's own worktree.
    • It also sets ROUTER_POSTGRES_DSN to the DSN of its testing.yaml copy (database model_router_test_<slug>_test) and ROUTER_REDIS_ADDR to its own Redis. It sets the Redis address in its testing.yaml copy as well (see below).
    • internal/testenv replaces both variables with the testing.yaml values in every package that imports it. With -tags integration, internal/imagerouter and internal/testenv/redisready do not import it, so they read the shell's values. Without the tag, cmd/router (sandboxproxy_test.go:65, main_test.go:58) and internal/session (timeout_test.go:108) also read ROUTER_REDIS_ADDR from the shell: set your own Redis there.
    • imagerouter does not create its database. On a fresh slug it fails with database "model_router_test_<slug>_test" does not exist. Run a package that imports internal/testenv first, on the same testing.yaml: it creates the database.
    • It restores testing.yaml before it commits. Never commit it.
    • Two agents on model_router_test drop each other's schema in the middle of a run.
  • One Postgres server for all agents. Agents share one test Postgres and each uses its own database on it. Do not start a Postgres container per agent. Eight of them, with fsync on, put the Docker VM into swap. Run the shared server with fsync=off, synchronous_commit=off and full_page_writes=off: the suites truncate their tables before every test, and each TRUNCATE waits on fsync. testing.yaml points at localhost:55432, which is the compose router's Postgres (fsync on). Start the shared server on its own port once, and put that port in each agent's testing.yaml copy:
    bash
    docker run -d --name va-test-pg --restart unless-stopped --shm-size=2g -p 127.0.0.1:55433:5432 \
      -e POSTGRES_PASSWORD=postgres -v va-test-pg19data:/var/lib/postgresql postgres:19-alpine \
      -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c max_connections=1000
    • Keep its data on disk, not on tmpfs. One server held 765 MB over 59 test databases.
    • Give it --shm-size=2g. Postgres keeps every table's statistics in shared memory, which never shrinks: with Docker's default 64 MB, 450 test databases made every query fail with "could not resize shared memory segment".
    • Give each agent its own Redis. The router's Redis config has no database number or key prefix, so two agents on one Redis share counters, health and session keys.
    • Set the agent's Redis address as redis: addr: in its testing.yaml copy, next to its dsn. ROUTER_REDIS_ADDR alone is not enough: the embedded testing.yaml wins over the environment (config.go:691-697), so the suites would still use localhost:56379.
    • The suites that wipe tables use their own database, named model_router_<suite>_test_<slug>_test. Find an agent's databases with datname LIKE '%\_<slug>\_test'.
    • When the agent is done, drop its databases (DROP DATABASE … WITH (FORCE)) and remove its Redis.
  • One package at a time. Run integration tests with -p 1. Packages that run in parallel try to create the same new database and fail with a duplicate key.
  • Migration versions. goose is strict. A migration older than the newest version a database has applied stops the router at start ("found N missing migrations before current version").
    • The two sets, acceleration/migrations/global and acceleration/migrations/shard, keep their versions apart (goose_global_version, goose_shard_version), so slots are per set.
    • Give each PR its own version slot before the agents start, spaced apart. Never let two agents pick "the current time".
    • Merge in version order. Before each merge, check the newest file under both sets on origin/main.
    • Two PRs that change the store both edit internal/store/repos.go, where the repositories are wired. Keep both sides.
    • A database that ran an earlier build of a PR can hold a version that a later merge lands below. Recreate that database.
  • No shared append files. An SDK note is a file of its own in .claude/skills/sdk/notes/, and the root CHANGELOG.md is written only at a release, except one breaking-change line under # Unreleased. A branch from before that rule that still adds to the end of .claude/skills/sdk/SKILL.md or other lines to the root CHANGELOG.md moves its note to a file and drops those changelog lines.
  • Conflict markers. Before every git rebase --continue, run git diff --check and grep for <<<<<<<, ======= and >>>>>>>. Markers were committed twice by agents that skipped this.
  • Generated files. Do not hand-merge acceleration/api/openapi.yaml or the generated clients. Take either side, regenerate them (see acceleration/README.md), and check the result with .agents/skills/pr-review/scripts/generated.sh <repo root> origin/main.
  • CI runs the integration suites. Integration (router) (.github/workflows/integration.yml) runs each package in its matrix in its own job, on a PR that changes acceleration/** (not only .md), go.work, go.work.sum or the workflow, once the PR is ready: a draft runs no CI workflow, and gh pr ready starts it. Do not repeat those packages locally: run the suites you touched, and read CI for the rest after the PR is marked ready.
    • CI leaves out the vendor suites that need API keys (tts, stt, llm, sts, search, imagegen, detection). CI also leaves out imagerouter and dlc (AI-2040), and the Postgres packages internal/campaign, internal/phone/outcome, internal/searchrouter and internal/simulation. Run those by hand when you touch them, and list the runs in the PR.
    • The check is not required on main. When it ran, wait for it to pass before you merge. A check that did not run leaves nothing to wait for. A check skipping on a draft is not a pass: it did not run.
    • Push, wait until the push's runs are listed, then gh pr ready. Both events share one concurrency group, so a draft run created after the ready run would cancel it.

Review and merge one PR at a time

Authors may write in parallel. Reviews and merges run one PR at a time.

  • Why. Each merge makes the other open PRs conflict. When four PRs were reviewed at once, each review had to be redone on the merged tree, and some three or four times.
  • Order. Merge one PR, then rebase the next one once onto the new base, then review it.
  • Review against the current base. Build and test the PR merged onto origin/main, not the PR head alone. Two PRs built cleanly on their own and failed to compile together.
  • Findings live in agent messages, not on GitHub. Put the full list of earlier findings into every re-review prompt.
  • Re-review the delta. The same reviewer reads git range-diff <old base>..<old head> origin/main..<new head> and checks its own findings. A new finding in code the delta did not touch blocks the merge only if it is a Blocker.
  • A rebase after GO needs no new review when the range-diff shows only = commits plus commits that change docs or tests. When Go code changed, the same reviewer checks the delta.
  • Nits go to a ticket, never into the same PR. Each fix is new code, and new code brings new findings and another round.

Spend fewer tokens

  • Fix with a fresh agent. Give it the branch, the worktree and the list of findings. Do not resume the author: its context grew to 500k–700k tokens, and every tool call resends all of it.
  • Use a smaller model for mechanical work: a rebase whose conflicts are only in docs, watching CI, editing a PR body.
  • Test only what changed while iterating. Run the touched suites and the mutation checks. Before the final review, mark the PR ready, read CI's Integration (router) check and run by hand the suites it leaves out. The reviewer does not repeat either.
  • Ask the first reviewer to find everything. Later rounds look only at the delta.
  • Wait for an agent's report. Do not read its raw transcript file.

常见问题

Parallel Agents AI 技能有什么作用?

Rules for running several coding agents on this repo at once (PR authors, reviewers, fixers, rebases), so they do not break each other's runs and do not burn tokens on repeated work. Read before you start more than one agent that writes code, runs integration tests or opens PRs.

为什么在 TypingMind 中使用 Parallel Agents?

因为您只需安装一次,就能搭配任何模型使用。Parallel Agents 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Parallel Agents?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/GetStream/Agents/tree/main/.claude/skills/parallel-agents。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Parallel Agents?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Parallel Agents 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Parallel Agents 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Parallel Agents AI 技能免费吗?

是的。GetStream 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇