22
33## What this is
44
5- A ready-to-go Corbits agent for the ** designer** role (` @corbits/code-agent-designer ` )
6- plus its named component parts so a consumer can recreate or remix it. Designer is
7- the UI/UX design engineering specialist: it owns DESIGN.md creation and updates,
8- impeccable.style design laws, design tokens, typography, spatial layout, and
9- micro-interaction polish.
5+ Ready ` @corbits/code-agent-designer ` agent + independently importable components:
6+ ` agent ` , ` defineAgent ` , ` director ` , ` tools ` , ` systemPrompt ` , ` config ` .
107
118## Consume (runLocal)
129
@@ -17,32 +14,22 @@ const run = runLocal(defining(agent), env);
1714
1815## Consume (deploy runWorkflow / hub / sidecar)
1916
20- Hand the same ` AgentDefinition ` ( ` agent ` ) to a workflow, hub, or sidecar. The
21- package never exports a workflow itself — a workflow _ consumes _ ` agent ` .
17+ Hand the same ` AgentDefinition ` to a workflow — the package never exports a
18+ workflow itself.
2219
2320## Remix components
2421
2522``` ts
26- import {
27- director ,
28- tools ,
29- systemPrompt ,
30- config ,
31- defineAgent ,
32- } from " @corbits/code-agent-designer" ;
33-
34- // Swap components at the consumer side.
35- defineAgent ({ director , tools , systemPrompt , config }); // or spread overrides
23+ import { director , tools , systemPrompt , config } from " @corbits/code-agent-designer" ;
24+ defineAgent ({ director , ... }); // or swap tools / systemPrompt / config
3625```
3726
38- Each of ` agent ` , ` defineAgent ` , ` director ` , ` tools ` , ` systemPrompt ` , ` config ` is a
39- named, independently importable part.
27+ Each of ` director ` , ` tools ` , ` systemPrompt ` , and ` config ` is a named,
28+ independently importable part.
4029
41- ## Byte-stability & single authority
30+ ## Single authority
4231
43- - ` systemPrompt.build() ` is pure and byte-stable — identical string every call.
44- - ` tools ` is content-equal to the app's ` REVIEW_TOOLS ` surface constant
45- (` src/agent/directors/tool-sets.ts ` ); the in-tree drift-guard
46- (` src/agent/directors/designer/package.test.ts ` ) enforces they match.
47- - This package is the single prompt authority for designer; the in-tree
48- ` src/agent/directors/designer/package.ts ` is deleted.
32+ ` prompt.ts ` ` systemPrompt.build() ` is byte-stable (the raw card, no formatting).
33+ ` toolset.ts ` ` tools ` literal equals the ` REVIEW_TOOLS ` surface constant in
34+ ` src/agent/directors/tool-sets.ts ` ; drift is enforced by the in-tree drift-guard
35+ ` src/agent/directors/designer/package.test.ts ` .
0 commit comments