|
3 | 3 | ## What this is |
4 | 4 |
|
5 | 5 | Ready `@corbits/code-agent-coder` agent + independently importable components: |
6 | | -`agent`, `defineAgent`, `director`, `tools`, `systemPrompt`, `config`. Coder is |
| 6 | +`director`, `tools`, `systemPrompt`, `config`. Coder is |
7 | 7 | the implementation specialist: minimal safe diffs, root-cause fixes at the proper |
8 | 8 | layer, zero unnecessary abstractions, tests landed with changes, repo check gate. |
9 | 9 |
|
10 | | -## Consume (runLocal) |
11 | | - |
12 | | -```ts |
13 | | -import { agent } from "@corbits/code-agent-coder"; |
14 | | -const run = runLocal(defining(agent), env); |
15 | | -``` |
16 | | - |
17 | | -## Consume (deploy runWorkflow / hub / sidecar) |
18 | | - |
19 | | -Hand the same `AgentDefinition` to a workflow — the package never exports a |
20 | | -workflow itself. |
21 | | - |
22 | 10 | ## Remix components |
23 | 11 |
|
24 | 12 | ```ts |
25 | | -import { director, tools, systemPrompt, config } from "@corbits/code-agent-coder"; |
26 | | -defineAgent({ director, ... }); // or swap tools / systemPrompt / config |
| 13 | +import { |
| 14 | + director, |
| 15 | + tools, |
| 16 | + systemPrompt, |
| 17 | + config, |
| 18 | +} from "@corbits/code-agent-coder"; |
| 19 | +// or swap tools / systemPrompt / config |
27 | 20 | ``` |
28 | 21 |
|
29 | | -Each of `agent`, `defineAgent`, `director`, `tools`, `systemPrompt`, `config` is a |
| 22 | +Each of `director`, `tools`, `systemPrompt`, `config` is a |
30 | 23 | named, independently importable part. |
31 | 24 |
|
32 | 25 | ## Single authority |
33 | 26 |
|
34 | 27 | `prompt.ts` `systemPrompt.build()` is byte-stable (the raw card, no formatting). |
35 | | -`toolset.ts` `tools` literal equals the `BUILD_TOOLS` surface constant in |
| 28 | +`toolset.ts` `tools` re-exports the `BUILD_TOOLS` surface constant in |
36 | 29 | `src/agent/directors/tool-sets.ts`; drift is enforced by the in-tree drift-guard |
37 | 30 | `src/agent/directors/coder/package.test.ts`. |
0 commit comments