create-curb 1.25.0-preview.9 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/RELEASE_NOTES.md CHANGED
@@ -1,6 +1,8 @@
1
1
 
2
2
  ### Added
3
3
 
4
+ - Tool events carry results, and curb review checks tool use on hosted calls (#138)
5
+ - Curb review simulates calls on an agent that has none yet (#136)
4
6
  - Curb test says whether a change helped, and curb review drafts from real calls (#135)
5
7
  - Scenarios define their own findings, ask the judge, and check across runs (#133)
6
8
  - Curb/testing is a foundation in three layers, and curb test is built on it (#132)
@@ -11,6 +13,8 @@
11
13
 
12
14
  ### Fixed
13
15
 
16
+ - Keep the model connection open between voice turns (#139)
17
+ - FailOn alone makes the judge read a scripted scenario (#137)
14
18
  - No hang-up in the greeting, timeouts fail fast, --runs repeats scripted scenarios (#134)
15
19
  - A goodbye the model also wrote as text is heard once (#129)
16
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-curb",
3
- "version": "1.25.0-preview.9",
3
+ "version": "1.25.0",
4
4
  "description": "Create a Curb voice agent with one command. Voice agents your coding agent can build and improve.",
5
5
  "keywords": [
6
6
  "curb",
@@ -51,8 +51,8 @@ A new project is created with `npm create curb.js my-agent`, and you then work i
51
51
  The full guide ships in `node_modules/curb/docs/agent-guide/`: read `README.md` first, then
52
52
  `what-the-model-receives.md`, `agents-and-skills.md`, `tools.md`, `state.md` and `testing.md`.
53
53
  There is one page per task, such as `human-handoff.md` and `confirmations.md`;
54
- `api-reference.md` leads to every export, and `improve-from-calls.md` is the way to fix an
55
- agent from a call that went wrong.
54
+ `api-reference.md` leads to every export, and `improve-from-calls.md` is the way to make the
55
+ agent better, from simulated calls or from calls that went wrong.
56
56
  A fault in Curb itself is reported as `reporting-a-bug.md` says, with the person's yes first.
57
57
 
58
58
  ## Verify every change
@@ -79,15 +79,31 @@ A fault in Curb itself is reported as `reporting-a-bug.md` says, with the person
79
79
 
80
80
  4. `npm run dev`: the browser preview with chat and voice on http://127.0.0.1:4000. Open it in the person's own browser yourself (`open http://127.0.0.1:4000` on macOS, `xdg-open` on Linux, `start` on Windows): a browser built into an app, like the Claude app's Browser pane, blocks the microphone, so a call there fails.
81
81
 
82
- **To improve the agent, read its recent conversations first.** `npx curb conversations`
83
- prints the last ones the preview ran, with every tool call, its input and its
84
- result (`--last <n>`, `--id <id>`, `--json`). Calls to the hosted agent are
85
- read with the `kugelaudio` MCP server's `agent_list_calls`, `agent_get_call` and
86
- `agent_get_call_timeline` where it is signed in. Find where the agent went wrong, fix that,
87
- and turn the conversation into a scenario so it stays fixed.
88
- With many calls, `npx curb review` (the preview's last 20) or `npx curb review <calls.jsonl>`
89
- (an export of the dashboard's Calls page) says what to fix first: the patterns that come
90
- back, each with quotes and a scenario to add (`improve-from-calls.md`).
82
+ **To make the agent better, run this loop.** It works on a new agent and after go-live:
83
+
84
+ 1. `npx curb review`. With no recorded conversations yet it plays 20 simulated calls, with
85
+ callers written from the agent's prompt, skills and tools, and reviews them; once the preview
86
+ has conversations it reviews its last 20. For a hosted agent's calls, export them as a file
87
+ (the KugelAudio MCP tool `agent_export_calls` with `as: "file"` and `last: 200` answers a
88
+ one-time download link to `curl`; or the dashboard's Calls page) and run
89
+ `npx curb review <file>`; a call line with `toolCalls` is also checked for claims made without
90
+ a tool call. The file holds callers' phone numbers: never commit it. The review prints the
91
+ problems that come back most, each with quotes and a scenario to add.
92
+ 2. Take the top pattern, and read its quoted turns before you believe its title.
93
+ 3. Add its drafted scenario as `src/agent/<name>.scenario.ts`, inside `scenario({ ... })`.
94
+ 4. `npx curb test <name> --runs 5` and see it fail. A scenario that passes does not reproduce the
95
+ problem: sharpen its caller until it fails.
96
+ 5. Fix the agent (its prompt, a skill, a tool or its state), never the scenario.
97
+ 6. `npx curb test <name> --runs 5` again and read the `Since` lines: `better` means the fix
98
+ helped beyond chance, `no clear change` that it has not yet. Then `npx curb test` for the rest.
99
+ 7. Commit, and start again at 1.
100
+
101
+ A review of 20 simulated calls is some 300 to 400 LLM requests and takes a few minutes; each test
102
+ run of one scenario is five conversations. To fix one call that went wrong, read it with
103
+ `npx curb conversations` (`--last <n>`, `--id <id>`, `--json`: every tool call with its input
104
+ and result), or for the hosted agent with the `kugelaudio` MCP server's `agent_list_calls`,
105
+ `agent_get_call` and `agent_get_call_timeline`, then fix it and keep it as a scenario
106
+ (`improve-from-calls.md`).
91
107
 
92
108
  ## The preview
93
109
 
@@ -107,7 +123,7 @@ src/agent/*.scenario.ts conversations `curb test` plays: a caller, and what
107
123
  context/*.md knowledge a skill reads with <Text src="file.md" />
108
124
  .env other providers' keys, an optional KUGELAUDIO_API_KEY; never commit it
109
125
  .data/conversations.jsonl every preview conversation: tool calls, inputs, results
110
- .curb/test-runs/ every `curb test` run with its conversations, for --rejudge
126
+ .curb/test-runs/ every `curb test` run with its conversations, for --rejudge (format: test-runs.md)
111
127
  .github/workflows/ curb-test.yml runs check and test on each pull request; it needs
112
128
  KUGELAUDIO_API_KEY as a repository secret
113
129
  ```