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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    GetStreamがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Parallel Agents」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

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

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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を有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にParallel Agentsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Parallel Agentsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

よくある質問

AIスキル「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.

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を読み込み、チャットごとに有効にできるスキルとしてインストールします。

Parallel Agentsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Parallel Agentsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもParallel Agentsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Parallel Agents」は無料ですか?

はい。GetStreamがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇