Skip to content

Commit f33f0c6

Browse files
committed
style(agent-dispatch): strip redundant commentary from extracted package
1 parent 8520bd0 commit f33f0c6

5 files changed

Lines changed: 13 additions & 24 deletions

File tree

‎agents/dispatch/src/agent.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// Dispatch assembled agent — ready unit + package defineAgent wrapper.
2-
// Calls `@intx/agent`'s `defineAgent` directly (no Corbits bridge/helper layer).
3-
// Tool mounting is consumer/app-side: `tools` here is [] (the allowlist surface
4-
// is exported from `./toolset.js` and wired by the app harness).
1+
// Dispatch assembled agent — ready unit + package defineAgent wrapper. Calls
2+
// `@intx/agent`'s `defineAgent` directly (no Corbits bridge). Tool mounting is
3+
// consumer/app-side: `tools` here is [] (the allowlist surface is exported from
4+
// `./toolset.js` and wired by the app harness).
55

66
import {
77
defineAgent as coreDefineAgent,
@@ -10,7 +10,6 @@ import {
1010

1111
import { systemPrompt } from "./prompt.js";
1212

13-
/** The assembled dispatch agent — ready to hand to `runLocal` / `runWorkflow`. */
1413
export const agent: AgentDefinition = defineAgent();
1514

1615
/** Package convenience wrapper → `AgentDefinition` for `runLocal` authoring. */

‎agents/dispatch/src/director.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
// Dispatch director card — the `DirectorPackage` data, extracted byte-for-byte
2-
// from the in-tree `src/agent/directors/dispatch/package.ts` (now deleted).
3-
// Structurally satisfies the app's `DirectorPackage` (asserted in-tree by
4-
// `src/agent/directors/dispatch/package.test.ts`); it imports @intx/* only.
5-
1+
// Dispatch director card; imports @intx/* only. The app asserts this satisfies
2+
// `DirectorPackage` in-tree (src/agent/directors/dispatch/package.test.ts).
63
import { tools } from "./toolset.js";
74
import { systemPrompt } from "./prompt.js";
85
import { config } from "./config.js";
96

10-
/** The assembled dispatch director card. */
117
export const director = {
128
id: "dispatch",
139
primaryIntent:

‎agents/dispatch/src/index.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// Public surface — re-exports only (no logic). Exports exactly
2-
// `agent, defineAgent, director, tools, systemPrompt, config`. No `workflow`
3-
// export. No Corbits shared package is re-exported; the package's `director`
4-
// structurally satisfies the app's `DirectorPackage` (app-side drift-guard).
1+
// Public surface — re-exports only, so the package imports no Corbits code
2+
// (the app asserts the director contract in-tree via drift-guard). No `workflow`
3+
// export: workflows consume `agent`.
54
export { agent, defineAgent } from "./agent.js";
65
export { director } from "./director.js";
76
export { tools } from "./toolset.js";

‎agents/dispatch/src/prompt.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// Dispatch card — the single prompt authority. Extracted byte-for-byte from the
2-
// in-tree `src/agent/directors/dispatch/package.ts` (now deleted). `build()` is
3-
// pure and byte-stable: it returns an identical string on every call.
1+
// Single prompt authority: `build()` is pure and byte-stable — it returns an
2+
// identical string on every call.
43
const CARD = `# Role
54
You are Dispatch, the coordinator for Corbits Code. Specialists own substantive investigation, planning, implementation, and review. You own routing, briefs, coordination, and synthesis.
65
@@ -42,10 +41,8 @@ You are Dispatch, the coordinator for Corbits Code. Specialists own substantive
4241
- Alive, not sterile: dry wit is fine; do not perform, do not pad.
4342
- No emoji. No essays. Personality is tone, not extra paragraphs.`;
4443

45-
/** Stable identifier of the package's voice. */
4644
export const theme = "dispatch";
4745

48-
/** Byte-stable builder: returns the raw dispatch card, identical every call. */
4946
export const systemPrompt = {
5047
theme,
5148
build: (): string => CARD,

‎agents/dispatch/src/toolset.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Dispatch primary: orchestrator surface plus fleet discovery (Tier-1 only).
2-
// Literal expansion of the `DISPATCH_TOOLS` constant in
3-
// `src/agent/directors/tool-sets.ts` (the single tool authority). Drift is
4-
// enforced by the in-tree `src/agent/directors/dispatch/package.test.ts`.
2+
// Drift against the app's DISPATCH_TOOLS is enforced by the in-tree
3+
// src/agent/directors/dispatch/package.test.ts.
54
const DISPATCH_TOOLS = [
65
"read_file",
76
"grep",
@@ -26,5 +25,4 @@ const DISPATCH_TOOLS = [
2625
"search_agents",
2726
] as const;
2827

29-
/** The dispatch tool allowlist — literal equal to the in-tree `DISPATCH_TOOLS`. */
3028
export const tools: readonly string[] = [...DISPATCH_TOOLS];

0 commit comments

Comments
 (0)