Skip to content

v1.0.9-preview.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Jul 19:36
0394797

Feature: Agent Factories authoring surface [experimental]

Agent Factories let a trusted extension declare a JavaScript closure that orchestrates a fleet of subagents, then invoke it by name. The runtime invokes the factory closure over a reverse RPC call, passing primitives to spawn subagents, journal results (so a resumed run replays completed work for free), compose work in parallel or as a pipeline, and report progress. (#2114)

import { defineFactory, joinSession } from "`@github/copilot-sdk`/extension";

const myFactory = defineFactory({
  meta: { name: "my-factory", description: "Orchestrates subagents" },
  run: async ({ spawnAgent, journal }) => {
    const result = await spawnAgent({ prompt: "Summarize the repo" });
    return journal("done", result);
  },
});

const session = await joinSession({ factories: [myFactory] });
const run = await session.factory.run({ name: "my-factory", input: {} });

Everything is gated behind the runtime's agent_factories flag and billing gate, and all public types are marked @experimental.

New contributors

  • @nytron88 made their first contribution in #2117
  • @syedkazmi14 made their first contribution in #2101
  • @smz202000 made their first contribution in #2019

Generated by Release Changelog Generator · sonnet46 25.9 AIC · ⌖ 5.11 AIC · ⊞ 8.6K