@cursor/july 0.1.2 → 0.1.3

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.
Files changed (174) hide show
  1. package/AGENTS.md +16 -5
  2. package/README.md +8 -9
  3. package/dist/bin/agent-serve.d.ts +3 -1
  4. package/dist/bin/agent-serve.d.ts.map +1 -1
  5. package/dist/bin/agent-serve.js +389 -152
  6. package/dist/docs/404.html +2 -2
  7. package/dist/docs/ab.html +3 -3
  8. package/dist/docs/assets/{app.Oje4vhlk.js → app.BR0RbIdx.js} +1 -1
  9. package/dist/docs/assets/chunks/@localSearchIndexroot.DtIOQzGj.js +1 -0
  10. package/dist/docs/assets/chunks/{VPLocalSearchBox.H5XZ2zCB.js → VPLocalSearchBox.qjsVTneI.js} +1 -1
  11. package/dist/docs/assets/chunks/{theme.CTR_TuaE.js → theme.2Kg8jIp_.js} +2 -2
  12. package/dist/docs/assets/{quickstart.md.CfU8_uTC.js → quickstart.md.BU6Iwi_9.js} +18 -6
  13. package/dist/docs/assets/{reference_cli.md.DA730zCu.js → reference_cli.md.Bv6pOxcF.js} +11 -6
  14. package/dist/docs/assets/{reference_cli.md.DA730zCu.lean.js → reference_cli.md.Bv6pOxcF.lean.js} +1 -1
  15. package/dist/docs/building-with-agents.html +3 -3
  16. package/dist/docs/concepts.html +3 -3
  17. package/dist/docs/deployment.html +3 -3
  18. package/dist/docs/evals.html +3 -3
  19. package/dist/docs/guides/agent-to-agent.html +3 -3
  20. package/dist/docs/guides/cloud-runtime.html +3 -3
  21. package/dist/docs/guides/github.html +3 -3
  22. package/dist/docs/guides/human-in-the-loop.html +3 -3
  23. package/dist/docs/guides/slack.html +3 -3
  24. package/dist/docs/guides/webhooks.html +3 -3
  25. package/dist/docs/hashmap.json +1 -1
  26. package/dist/docs/hillclimbing.html +3 -3
  27. package/dist/docs/index.html +3 -3
  28. package/dist/docs/quickstart.html +22 -10
  29. package/dist/docs/reference/agent-config.html +3 -3
  30. package/dist/docs/reference/channels.html +3 -3
  31. package/dist/docs/reference/cli.html +14 -9
  32. package/dist/docs/reference/connections.html +3 -3
  33. package/dist/docs/reference/hooks.html +3 -3
  34. package/dist/docs/reference/http-api.html +3 -3
  35. package/dist/docs/reference/instructions.html +3 -3
  36. package/dist/docs/reference/playground.html +3 -3
  37. package/dist/docs/reference/project-layout.html +3 -3
  38. package/dist/docs/reference/schedules.html +3 -3
  39. package/dist/docs/reference/sessions.html +3 -3
  40. package/dist/docs/reference/skills.html +3 -3
  41. package/dist/docs/reference/subagents.html +3 -3
  42. package/dist/docs/reference/tools.html +3 -3
  43. package/dist/docs/scaffolding-agents.html +3 -3
  44. package/dist/docs/storage.html +3 -3
  45. package/dist/docs/troubleshooting.html +3 -3
  46. package/dist/internal/chat-client.d.ts +29 -3
  47. package/dist/internal/chat-client.d.ts.map +1 -1
  48. package/dist/internal/chat-client.js +180 -27
  49. package/dist/internal/cli-ax.d.ts +75 -2
  50. package/dist/internal/cli-ax.d.ts.map +1 -1
  51. package/dist/internal/cli-ax.js +600 -52
  52. package/dist/internal/cli-cursor.d.ts.map +1 -1
  53. package/dist/internal/cli-cursor.js +8 -36
  54. package/dist/internal/cli-deploy.d.ts +59 -3
  55. package/dist/internal/cli-deploy.d.ts.map +1 -1
  56. package/dist/internal/cli-deploy.js +316 -38
  57. package/dist/internal/cursor/credentials.d.ts +9 -0
  58. package/dist/internal/cursor/credentials.d.ts.map +1 -1
  59. package/dist/internal/cursor/credentials.js +12 -0
  60. package/dist/internal/deploy-client.d.ts +9 -1
  61. package/dist/internal/deploy-client.d.ts.map +1 -1
  62. package/dist/internal/deploy-client.js +23 -3
  63. package/dist/internal/deploy-source.d.ts +35 -0
  64. package/dist/internal/deploy-source.d.ts.map +1 -0
  65. package/dist/internal/deploy-source.js +118 -0
  66. package/dist/internal/discovery.d.ts +11 -0
  67. package/dist/internal/discovery.d.ts.map +1 -1
  68. package/dist/internal/discovery.js +43 -14
  69. package/dist/internal/eval-run-store.d.ts.map +1 -1
  70. package/dist/internal/eval-run-store.js +2 -1
  71. package/dist/internal/eval-runner.d.ts +2 -0
  72. package/dist/internal/eval-runner.d.ts.map +1 -1
  73. package/dist/internal/eval-runner.js +2 -0
  74. package/dist/internal/event-mapper.d.ts +54 -1
  75. package/dist/internal/event-mapper.d.ts.map +1 -1
  76. package/dist/internal/event-mapper.js +151 -41
  77. package/dist/internal/init-project.d.ts +88 -1
  78. package/dist/internal/init-project.d.ts.map +1 -1
  79. package/dist/internal/init-project.js +221 -31
  80. package/dist/internal/install-cursor-skills.d.ts +64 -0
  81. package/dist/internal/install-cursor-skills.d.ts.map +1 -0
  82. package/dist/internal/install-cursor-skills.js +274 -0
  83. package/dist/internal/logs-client.d.ts +60 -0
  84. package/dist/internal/logs-client.d.ts.map +1 -0
  85. package/dist/internal/logs-client.js +311 -0
  86. package/dist/internal/open-browser.d.ts +5 -0
  87. package/dist/internal/open-browser.d.ts.map +1 -0
  88. package/dist/internal/open-browser.js +34 -0
  89. package/dist/internal/playground/toolchain.d.ts.map +1 -1
  90. package/dist/internal/playground/toolchain.js +16 -11
  91. package/dist/internal/playground-proxy.d.ts +69 -0
  92. package/dist/internal/playground-proxy.d.ts.map +1 -0
  93. package/dist/internal/playground-proxy.js +468 -0
  94. package/dist/internal/prompt-context.d.ts +35 -0
  95. package/dist/internal/prompt-context.d.ts.map +1 -0
  96. package/dist/internal/prompt-context.js +71 -0
  97. package/dist/internal/request-headers.d.ts +11 -0
  98. package/dist/internal/request-headers.d.ts.map +1 -0
  99. package/dist/internal/request-headers.js +14 -0
  100. package/dist/internal/resolve-prod-target.d.ts +42 -0
  101. package/dist/internal/resolve-prod-target.d.ts.map +1 -0
  102. package/dist/internal/resolve-prod-target.js +111 -0
  103. package/dist/internal/run-client.d.ts +2 -2
  104. package/dist/internal/run-client.d.ts.map +1 -1
  105. package/dist/internal/run-client.js +38 -23
  106. package/dist/internal/server.d.ts.map +1 -1
  107. package/dist/internal/server.js +10 -4
  108. package/dist/internal/session-engine.d.ts +1 -1
  109. package/dist/internal/session-engine.d.ts.map +1 -1
  110. package/dist/internal/session-engine.js +21 -6
  111. package/dist/internal/sessions-client.d.ts +21 -0
  112. package/dist/internal/sessions-client.d.ts.map +1 -0
  113. package/dist/internal/sessions-client.js +168 -0
  114. package/dist/internal/stream-progress.d.ts.map +1 -1
  115. package/dist/internal/stream-progress.js +31 -3
  116. package/dist/internal/terminal-style.d.ts +22 -0
  117. package/dist/internal/terminal-style.d.ts.map +1 -0
  118. package/dist/internal/terminal-style.js +49 -0
  119. package/dist/internal/trajectory.d.ts +10 -5
  120. package/dist/internal/trajectory.d.ts.map +1 -1
  121. package/dist/internal/trajectory.js +82 -10
  122. package/dist/internal/workspace.d.ts +11 -0
  123. package/dist/internal/workspace.d.ts.map +1 -1
  124. package/dist/internal/workspace.js +38 -4
  125. package/dist/playground/assets/index-D-vo2lV_.css +1 -0
  126. package/dist/playground/assets/index-x60b9q2j.js +312 -0
  127. package/dist/playground/index.html +2 -2
  128. package/dist/types.d.ts +26 -1
  129. package/dist/types.d.ts.map +1 -1
  130. package/docs/quickstart.md +22 -7
  131. package/docs/reference/cli.md +51 -3
  132. package/package.json +3 -1
  133. package/skills/ab/SKILL.md +8 -8
  134. package/skills/create-agent/SKILL.md +28 -22
  135. package/skills/debug/SKILL.md +11 -11
  136. package/skills/evals/SKILL.md +16 -16
  137. package/skills/framework-map/SKILL.md +6 -6
  138. package/skills/github/SKILL.md +13 -13
  139. package/skills/hillclimb/SKILL.md +10 -10
  140. package/skills/setup-slack/SKILL.md +13 -13
  141. package/src/bin/agent-serve.ts +422 -188
  142. package/src/internal/chat-client.ts +252 -37
  143. package/src/internal/cli-ax.ts +722 -72
  144. package/src/internal/cli-cursor.ts +14 -42
  145. package/src/internal/cli-deploy.ts +428 -49
  146. package/src/internal/cursor/credentials.ts +14 -0
  147. package/src/internal/deploy-client.ts +45 -4
  148. package/src/internal/deploy-source.ts +133 -0
  149. package/src/internal/discovery.ts +53 -16
  150. package/src/internal/eval-run-store.ts +2 -1
  151. package/src/internal/eval-runner.ts +5 -0
  152. package/src/internal/event-mapper.ts +222 -42
  153. package/src/internal/init-project.ts +333 -51
  154. package/src/internal/install-cursor-skills.ts +327 -0
  155. package/src/internal/logs-client.ts +442 -0
  156. package/src/internal/open-browser.ts +41 -0
  157. package/src/internal/playground/toolchain.ts +15 -13
  158. package/src/internal/playground-proxy.ts +576 -0
  159. package/src/internal/prompt-context.ts +95 -0
  160. package/src/internal/request-headers.ts +23 -0
  161. package/src/internal/resolve-prod-target.ts +150 -0
  162. package/src/internal/run-client.ts +39 -36
  163. package/src/internal/server.ts +12 -3
  164. package/src/internal/session-engine.ts +22 -3
  165. package/src/internal/sessions-client.ts +182 -0
  166. package/src/internal/stream-progress.ts +36 -2
  167. package/src/internal/terminal-style.ts +74 -0
  168. package/src/internal/trajectory.ts +91 -13
  169. package/src/internal/workspace.ts +42 -4
  170. package/src/types.ts +42 -6
  171. package/dist/docs/assets/chunks/@localSearchIndexroot.zwQ9RCQ7.js +0 -1
  172. package/dist/playground/assets/index-B1Qc9h2u.css +0 -1
  173. package/dist/playground/assets/index-CpDYCj8W.js +0 -79
  174. /package/dist/docs/assets/{quickstart.md.CfU8_uTC.lean.js → quickstart.md.BU6Iwi_9.lean.js} +0 -0
@@ -1,14 +1,14 @@
1
1
  ---
2
- name: agent-serve-debug
2
+ name: agentkit-debug
3
3
  description: >-
4
- Diagnose a misbehaving agent-serve agent, server, or playground — blank
4
+ Diagnose a misbehaving agentkit agent, server, or playground — blank
5
5
  playground, sessions missing, HMR not reloading, failing reads/retry
6
6
  loops, webhook 401s, 403/409 responses, approvals or reminders lost,
7
- orphaned processes. Use when an agent-serve project runs but behaves
7
+ orphaned processes. Use when an agentkit project runs but behaves
8
8
  wrong locally.
9
9
  ---
10
10
 
11
- # Debugging agent-serve locally
11
+ # Debugging agentkit locally
12
12
 
13
13
  Read `framework-map/SKILL.md` (sibling skill) first if you don't know the
14
14
  project structure or session model. Everything below assumes Node/tsx (`pnpm exec tsx
@@ -18,7 +18,7 @@ src/bin/agent-serve.ts ...` in the everysphere monorepo).
18
18
 
19
19
  ```bash
20
20
  # 1. Is discovery clean? serve refuses to start on error diagnostics.
21
- agent-serve validate --dir <project>
21
+ agentkit validate --dir <project>
22
22
 
23
23
  # 2. What is actually running, and where?
24
24
  lsof -iTCP:3000 -sTCP:LISTEN; lsof -iTCP:5273 -sTCP:LISTEN
@@ -37,11 +37,11 @@ curl -sN 'localhost:3000/<slug>/v1/session/<id>/stream?startIndex=0' | head -50
37
37
 
38
38
  | Symptom | Cause / fix |
39
39
  | --- | --- |
40
- | Playground blank or "no agents" even though Vite assets are built | The SPA is static; it needs the agent-serve backend on `:3000`. Start `serve` — building `dist/playground/` alone serves nothing. |
41
- | Edits under `playground/src` don't show up in the browser | You're on the **static** `dist/playground` bundle, not HMR. Only `serve --dev` starts Vite HMR (`:5273`) and prints `playground (HMR): ...` — open that URL, not `:3000`. In the monorepo, `mise //packages/agent-serve:start` = all examples + multi-agent HMR; pin one slug with `AGENT_SERVE_BASE=/<slug>`. |
40
+ | Playground blank or "no agents" even though Vite assets are built | The SPA is static; it needs the agentkit backend on `:3000`. Start `serve` — building `dist/playground/` alone serves nothing. |
41
+ | Edits under `playground/src` don't show up in the browser | You're on the **static** `dist/playground` bundle, not HMR. Only `serve --dev` / `dev` starts Vite HMR (`:5273`) and prints that as `playground` — open that URL, not `:3000`. In the monorepo, `mise //packages/agent-serve:start` = all examples + multi-agent HMR; pin one slug with `AGENT_SERVE_BASE=/<slug>`. |
42
42
  | Webhook / schedule sessions exist on disk but the playground session list is empty | The list shows the calling principal's sessions. `--dev` (loopback) or `--allow-anonymous` (trusted shared host) switches it to `includeAll`. Otherwise deep-link `/<slug>/playground?sessionId=ses_...` or read `sessions/` on disk. |
43
43
  | Every built-in read/grep the model makes fails; turns crawl through retry loops | You ran the CLI under **Bun**. Kill it, rerun under Node/tsx. (`NGHTTP2_FRAME_SIZE_ERROR` in SDK logs is the tell.) |
44
- | `gh webhook forward` / `agent-serve github forward` deliveries all 401 — but hook creation succeeded | `GITHUB_TOKEN`/`GH_TOKEN` in the env. The relay authenticates with the gh CLI login and rejects env tokens. `GITHUB_TOKEN= GH_TOKEN= agent-serve github forward ...` |
44
+ | `gh webhook forward` / `agentkit github forward` deliveries all 401 — but hook creation succeeded | `GITHUB_TOKEN`/`GH_TOKEN` in the env. The relay authenticates with the gh CLI login and rejects env tokens. `GITHUB_TOKEN= GH_TOKEN= agentkit github forward ...` |
45
45
  | `Hook already exists` starting a forwarder | GitHub allows one forwarder per repo. Use one `github forward --dir <parent>` (it fans out to every matching channel) instead of N processes; kill stale forwarders. |
46
46
  | Agent's answers reference monorepo rules / AGENTS.md it shouldn't know | Session workspace sits inside the monorepo, so the harness loaded ancestor config. `defineAgent({ local: { cwd } })` outside the repo, or `--state-root` under `/tmp`. |
47
47
  | Port 3000/5273 in use; stray processes after crashes | `lsof -iTCP:3000 -sTCP:LISTEN`, kill the pids; also check companion processes (e.g. vite). |
@@ -49,11 +49,11 @@ curl -sN 'localhost:3000/<slug>/v1/session/<id>/stream?startIndex=0' | head -50
49
49
  | Schedule / reminder never fires under `--dev` | Dev never auto-fires. `POST /<slug>/v1/dev/schedules/<id>` or `POST /<slug>/v1/dev/reminders/<id>` (list at `GET /v1/dev/reminders`). |
50
50
  | Reminder disarmed after restart with `handler_lost_on_restart` | `run`-handler reminders are in-memory; re-arm them from the code path that created them (enroll hook / policy), or use prompt-based reminders. |
51
51
  | `409` on a follow-up | Stale `continuationToken` (each accepted follow-up rotates it), busy session, or a task/schedule session (not followable). |
52
- | `409 session_busy` on `agent-serve call --session` | Session-bound deterministic calls serialize with model turns; wait or use an ephemeral call (drop `--session`). |
52
+ | `409 session_busy` on `agentkit call --session` | Session-bound deterministic calls serialize with model turns; wait or use an ephemeral call (drop `--session`). |
53
53
  | `403` on stream/follow-up | Caller principal ≠ session owner. In dev, create and inspect with the same auth; beyond loopback pass `--bearer-token` and send it. |
54
54
  | Works on localhost, 401/blocked through a tunnel or LAN | Default `localDevStrict()` auth only admits direct loopback, **rejects proxy-forwarding headers** (`X-Forwarded-For`, ...), and requires a loopback `Host`. Use `--bearer-token <secret>` (or authored `bearerAuth`) — `--allow-anonymous` only for trusted-network demos (and never with Cursor account MCP connections). |
55
55
  | Channel route won't compile: body/query schema type error | `GET` requires a Zod `querySchema`, `POST`/`PUT`/`PATCH` a Zod `bodySchema` — plain JSON Schema objects don't type-check. Use `z.object({})` / `z.unknown()` for open surfaces. Empty POST bodies are coerced to `{}` before validation. |
56
- | Slack channel prints `channel idle ... missing credentials` | Expected: tokens absent. Multi-agent needs `<PREFIX>_SLACK_BOT_TOKEN` + `<PREFIX>_SLACK_APP_TOKEN` per agent. `agent-serve slack doctor --prefix <PREFIX>`. |
56
+ | Slack channel prints `channel idle ... missing credentials` | Expected: tokens absent. Multi-agent needs `<PREFIX>_SLACK_BOT_TOKEN` + `<PREFIX>_SLACK_APP_TOKEN` per agent. `agentkit slack doctor --prefix <PREFIX>`. |
57
57
  | Turn fails immediately with an API-key error | Model turns need `CURSOR_API_KEY`; everything structural (validate/info/call/serve bring-up) doesn't. |
58
58
  | Server tools / skills / sandbox silently absent | Runtime is `cloud` — those are local-only. `validate` prints exactly this warning; read it. |
59
59
  | `validate` clean, `run` works, CI typecheck fails | tsx never typechecked it. See invariant 3 in `framework-map/SKILL.md` (JSON-shaped tool returns; `type` not `interface`). |
@@ -67,5 +67,5 @@ curl -sN 'localhost:3000/<slug>/v1/session/<id>/stream?startIndex=0' | head -50
67
67
  preempted it — that's the designed behavior, not a crash.
68
68
  - Escapes outside the session workspace in read/grep paths mean the
69
69
  harness is fighting your evidence layout, not that the model is broken.
70
- - `agent-serve trajectory --events <file>` renders any saved NDJSON; the
70
+ - `agentkit trajectory --events <file>` renders any saved NDJSON; the
71
71
  playground "Open trace" does the same visually.
@@ -1,13 +1,13 @@
1
1
  ---
2
- name: agent-serve-evals
2
+ name: agentkit-evals
3
3
  description: >-
4
- Author and run agent-serve defineEval cases (single- or multi-datapoint).
4
+ Author and run agentkit defineEval cases (single- or multi-datapoint).
5
5
  Use when writing, fixing, seeding, or hillclimbing evals; AskQuestion
6
6
  whether to generate samples or upload data. Materialize API-backed
7
7
  fixtures first. Live A/B metrics: defineAB (skills/ab), not defineEval.
8
8
  ---
9
9
 
10
- # agent-serve evals
10
+ # agentkit evals
11
11
 
12
12
  Evals are the ratchet that makes iteration trustworthy: a fixed input, a
13
13
  model turn, and gates over the recorded trajectory. They live at the
@@ -29,13 +29,13 @@ and does not replace `defineEval` gates.
29
29
  (`evals/weather.eval.ts` + `{ id: "nyc" }` → `weather/nyc`).
30
30
 
31
31
  ```bash
32
- agent-serve eval --dir . --list # all datapoints
33
- agent-serve eval --dir . --json # run all
34
- agent-serve eval --dir . weather/nyc # one datapoint
35
- agent-serve eval --dir . weather # every datapoint in that file
36
- agent-serve eval --dir . weather forecast # several files
37
- agent-serve eval --dir . --tag smoke
38
- agent-serve eval --dir . --verbose
32
+ agentkit eval --dir . --list # all datapoints
33
+ agentkit eval --dir . --json # run all
34
+ agentkit eval --dir . weather/nyc # one datapoint
35
+ agentkit eval --dir . weather # every datapoint in that file
36
+ agentkit eval --dir . weather forecast # several files
37
+ agentkit eval --dir . --tag smoke
38
+ agentkit eval --dir . --verbose
39
39
  ```
40
40
 
41
41
  `eval` (like `run`) boots an ephemeral server on port 0 with a temp state
@@ -65,7 +65,7 @@ If `AskQuestion` is unavailable, ask the same fork in plain chat and wait.
65
65
 
66
66
  Tell the user the **shape** of the data (see “The API” below) and **how to
67
67
  upload it**. Do not invent cases until they provide files (or paste content
68
- to write). After they add data, run `agent-serve eval --dir <project>
68
+ to write). After they add data, run `agentkit eval --dir <project>
69
69
  --list` to confirm discovery, then wire any missing gates.
70
70
 
71
71
  If the uploaded data is **API-backed** (PR URLs, pinned SHAs, gold labels,
@@ -79,7 +79,7 @@ fixtures first** — see “When eval data needs API calls to render” below.
79
79
  3. Optional fixtures beside the case or under `fixtures/`.
80
80
  4. Tell the agent once the files are in place — or paste case bodies in chat
81
81
  and ask the agent to write the file.
82
- 5. Verify: `agent-serve eval --dir <project> --list` shows the new ids.
82
+ 5. Verify: `agentkit eval --dir <project> --list` shows the new ids.
83
83
 
84
84
  ### Step 2b — user chose agent-generated samples
85
85
 
@@ -95,7 +95,7 @@ fixtures first** — see “When eval data needs API calls to render” below.
95
95
  3. **Append** — prefer adding entries to an existing file’s `cases` array
96
96
  when the suite fits; otherwise create a new `evals/<suite>.eval.ts` with
97
97
  `cases`. Never overwrite or weaken an existing datapoint. Case ids must
98
- not collide with `agent-serve eval --dir <project> --list`.
98
+ not collide with `agentkit eval --dir <project> --list`.
99
99
  4. Create `evals/evals.config.ts` if missing (`maxConcurrency: 20` is fine
100
100
  for now; hard limit 200 for model provider request limits).
101
101
  5. Re-list to confirm, then optionally run `--tag smoke` if you tagged any.
@@ -103,7 +103,7 @@ fixtures first** — see “When eval data needs API calls to render” below.
103
103
  ## The API
104
104
 
105
105
  ```ts
106
- import { defineEval, includes, equals, satisfies } from "@anysphere/agent-serve/evals";
106
+ import { defineEval, includes, equals, satisfies } from "@cursor/july/evals";
107
107
 
108
108
  // Single datapoint (case id = file path under evals/)
109
109
  export default defineEval({
@@ -152,7 +152,7 @@ Project-wide defaults in `evals/evals.config.ts` (required once):
152
152
  import {
153
153
  defineEvalConfig,
154
154
  persistEvalRunsToDir,
155
- } from "@anysphere/agent-serve/evals";
155
+ } from "@cursor/july/evals";
156
156
 
157
157
  export default defineEvalConfig({
158
158
  maxConcurrency: 20, // required; hard-capped at 200 (model provider limits)
@@ -193,7 +193,7 @@ input instead — see fixtures).
193
193
  | Agent surface | Fixture source |
194
194
  | --- | --- |
195
195
  | Chat / domain assistant | A canonical prompt string, chosen once and frozen |
196
- | Tool-heavy | `agent-serve call <tool> --dir . --input '{...}'` first, then the prompt that should trigger it |
196
+ | Tool-heavy | `agentkit call <tool> --dir . --input '{...}'` first, then the prompt that should trigger it |
197
197
  | GitHub webhook | `github replay … --dry-run --out fixtures/github` (see `packages/agent-serve/skills/github/SKILL.md`) |
198
198
  | PR reviewer with host prep | A small fixed PR the team controls; assert on findings shape, not counts |
199
199
  | Workspace-dependent | `workspaceFiles` in `t.send` — never machine-local paths |
@@ -1,22 +1,22 @@
1
1
  ---
2
- name: agent-serve-framework-map
2
+ name: agentkit-framework-map
3
3
  description: >-
4
- Orientation for @anysphere/agent-serve — folder structure, local vs cloud
4
+ Orientation for @cursor/july — folder structure, local vs cloud
5
5
  runtimes, sessions, state layout, and invariants (Node not Bun, root
6
6
  evals/, typecheck after tsx). Use when creating, editing, or running
7
- agent-serve projects with agent/agent.ts and agent/instructions.md.
7
+ agentkit projects with agent/agent.ts and agent/instructions.md.
8
8
  ---
9
9
 
10
- # agent-serve framework map
10
+ # agentkit framework map
11
11
 
12
- `@anysphere/agent-serve` serves agents defined as ordinary files: markdown
12
+ `@cursor/july` serves agents defined as ordinary files: markdown
13
13
  for prose, TypeScript for typed behavior, under an `agent/` directory. The
14
14
  framework discovers the files, compiles a manifest, and serves the agent
15
15
  over HTTP/Slack/GitHub channels, with the Cursor SDK + harness as the
16
16
  execution engine. Ground truth is the package `README.md` (full reference)
17
17
  and `AGENTS.md` (coding-agent loop) — this skill is the map, not the spec.
18
18
 
19
- Run the CLI as `agent-serve <cmd>`. In the everysphere monorepo there is no
19
+ Run the CLI as `agentkit <cmd>`. In the everysphere monorepo there is no
20
20
  installed bin — use:
21
21
 
22
22
  ```bash
@@ -1,22 +1,22 @@
1
1
  ---
2
- name: agent-serve-github
2
+ name: agentkit-github
3
3
  description: >-
4
- Build and test GitHub-webhook-driven agent-serve agents: githubChannel
4
+ Build and test GitHub-webhook-driven agentkit agents: githubChannel
5
5
  hooks (auth turn vs host task), signature modes, and testing tiers
6
6
  (fixtures, github replay, github forward, serve --cursor-events). Use
7
7
  when wiring GitHub events, replaying PR webhooks, or debugging delivery.
8
8
  ---
9
9
 
10
- # GitHub channels in agent-serve
10
+ # GitHub channels in agentkit
11
11
 
12
12
  Author `agent/channels/github.ts` with `githubChannel()` from
13
- `@anysphere/agent-serve/channels/github`. It mounts
13
+ `@cursor/july/channels/github`. It mounts
14
14
  `POST /<slug>/v1/channels/github` and publishes the events it dispatches on
15
15
  (derived from declared hooks, or pinned via `webhookEvents`) so the CLI can
16
16
  auto-derive forwarding.
17
17
 
18
18
  ```ts
19
- import { defaultGitHubAuth, githubChannel } from "@anysphere/agent-serve/channels/github";
19
+ import { defaultGitHubAuth, githubChannel } from "@cursor/july/channels/github";
20
20
 
21
21
  export default githubChannel({
22
22
  botName: "my-agent", // or GITHUB_APP_SLUG; used to ignore self-comments
@@ -81,9 +81,9 @@ is fine here), synthesizes GitHub-shaped payloads, signs them when a secret
81
81
  is configured, and POSTs them at the channel. Fully deterministic.
82
82
 
83
83
  ```bash
84
- agent-serve github replay https://github.com/owner/repo/pull/123 --dir <project>
85
- agent-serve github replay owner/repo#123 --dir <project> --events '*' --conclusion failure
86
- agent-serve github replay owner/repo#123 --dir <project> --events '*' --dry-run --out fixtures/github
84
+ agentkit github replay https://github.com/owner/repo/pull/123 --dir <project>
85
+ agentkit github replay owner/repo#123 --dir <project> --events '*' --conclusion failure
86
+ agentkit github replay owner/repo#123 --dir <project> --events '*' --dry-run --out fixtures/github
87
87
  ```
88
88
 
89
89
  `--events` defaults to `pull_request` (`'*'` = the channel's declared
@@ -96,9 +96,9 @@ Wraps `gh webhook forward`: registers a real webhook and relays deliveries
96
96
  to loopback. URL + events auto-derived; repo inferred from the git remote.
97
97
 
98
98
  ```bash
99
- agent-serve github doctor --install # one-time: gh + cli/gh-webhook
100
- agent-serve github events --dir <parent> --json # what would be forwarded
101
- GITHUB_TOKEN= GH_TOKEN= agent-serve github forward --dir <project>
99
+ agentkit github doctor --install # one-time: gh + cli/gh-webhook
100
+ agentkit github events --dir <parent> --json # what would be forwarded
101
+ GITHUB_TOKEN= GH_TOKEN= agentkit github forward --dir <project>
102
102
  ```
103
103
 
104
104
  Traps, in order of hours lost:
@@ -121,11 +121,11 @@ Traps, in order of hours lost:
121
121
  ### 4. `serve --cursor-events` — pull from Cursor (`/v0/scm-events`)
122
122
 
123
123
  ```bash
124
- agent-serve serve --dir <project> --cursor-events --repo owner/repo
124
+ agentkit serve --dir <project> --cursor-events --repo owner/repo
125
125
  ```
126
126
 
127
127
  Reads the stream as the host's Cursor user, so it **requires sign-in**
128
- (`agent-serve login` / `CURSOR_API_KEY`) — `serve` refuses to start signed
128
+ (`agentkit login` / `CURSOR_API_KEY`) — `serve` refuses to start signed
129
129
  out instead of running a relay that can never receive events. No public URL
130
130
  or repo admin. Registers before consuming; offset + consumer id under
131
131
  `<state-root>/cursor-events/`. `CURSOR_API_BASE_URL` for a non-default
@@ -1,7 +1,7 @@
1
1
  ---
2
- name: agent-serve-hillclimb
2
+ name: agentkit-hillclimb
3
3
  description: >-
4
- Iterate on a specific agent-serve agent by running the local server,
4
+ Iterate on a specific agentkit agent by running the local server,
5
5
  sending real requests, measuring correctness/efficiency, and proposing
6
6
  the next harness or prompt change. Read this skill when improving an
7
7
  existing agent.
@@ -9,9 +9,9 @@ paths:
9
9
  - packages/agent-serve/**/*
10
10
  ---
11
11
 
12
- # Agent-serve hillclimb
12
+ # Agentkit hillclimb
13
13
 
14
- Optimize one agent-serve agent project
14
+ Optimize one agentkit agent project
15
15
  with a tight measure → change → remeasure loop. Do not redesign the
16
16
  whole framework; climb one concrete failure mode at a time. Sibling skills:
17
17
  `framework-map` (orientation), `evals` (the ratchet), `ab` (live variant
@@ -36,15 +36,15 @@ If those are missing, ask before editing.
36
36
  A climb over a moving input is noise. Before round 1:
37
37
 
38
38
  - **GitHub agents** — replay, don't wait for live events:
39
- `agent-serve github replay <pr> --dir <project>` synthesizes signed,
39
+ `agentkit github replay <pr> --dir <project>` synthesizes signed,
40
40
  GitHub-shaped payloads from read access only, identically every run;
41
41
  `--dry-run --out fixtures/github` snapshots them for offline replay.
42
42
  - **Tool behavior** — isolate host tools from the model with
43
- `agent-serve call <tool> --dir <project> --input '{...}'` (schema-validated,
43
+ `agentkit call <tool> --dir <project> --input '{...}'` (schema-validated,
44
44
  in-process, no turn). If the tool output is wrong, no prompt change fixes it.
45
- - **Chat agents** — `agent-serve run --dir <project> --message "<fixture>"`
45
+ - **Chat agents** — `agentkit run --dir <project> --message "<fixture>"`
46
46
  gives a JSON trajectory plus an NDJSON trace under
47
- `<project>/.agent-serve/traces/`; `agent-serve trajectory --events <file>`
47
+ `<project>/.agent-serve/traces/`; `agentkit trajectory --events <file>`
48
48
  re-summarizes any saved trace.
49
49
  - **Manual probes** — the playground Try modal on any channel route
50
50
  remembers your last body per endpoint and has Copy curl; a successful Try
@@ -59,7 +59,7 @@ Repeat until the user stops or fixtures meet the criteria.
59
59
  - Serve with Node (never Bun):
60
60
 
61
61
  ```bash
62
- agent-serve serve --dir <project> --dev
62
+ agentkit serve --dir <project> --dev
63
63
  ```
64
64
 
65
65
  - Hit the agent the way a user would (channel HTTP, playground, Slack in
@@ -119,7 +119,7 @@ State the hypothesis in one sentence: *“If we X, metric Y should move because
119
119
  - **Ratchet every kept change**: land an eval that would have failed before
120
120
  it (tool-choice gate, `action.result` count bound, output-shape regex —
121
121
  see `evals/SKILL.md`), and never weaken an existing gate to make a round
122
- pass. `agent-serve eval --dir <project> --json` is the regression check
122
+ pass. `agentkit eval --dir <project> --json` is the regression check
123
123
  between rounds.
124
124
 
125
125
  Present a short round report to the user before starting the next climb.
@@ -1,14 +1,14 @@
1
1
  ---
2
- name: agent-serve-setup-slack
2
+ name: agentkit-setup-slack
3
3
  description: >-
4
- Set up a Slack channel for an agent-serve project — Socket Mode,
4
+ Set up a Slack channel for an agentkit project — Socket Mode,
5
5
  manifests, doctor, smoke test, and opt-in Slack tool approvals (HITL).
6
- Read this skill when wiring Slack for an agent-serve project.
6
+ Read this skill when wiring Slack for an agentkit project.
7
7
  ---
8
8
 
9
- # Setup Slack for agent-serve
9
+ # Setup Slack for agentkit
10
10
 
11
- Use this skill when a human asks to wire Slack to an agent-serve agent.
11
+ Use this skill when a human asks to wire Slack to an agentkit agent.
12
12
 
13
13
  ## Goal
14
14
 
@@ -63,7 +63,7 @@ MY_AGENT_SLACK_APP_TOKEN=xapp-…
63
63
  ```
64
64
 
65
65
  ```bash
66
- agent-serve slack doctor --prefix MY_AGENT
66
+ agentkit slack doctor --prefix MY_AGENT
67
67
  ```
68
68
 
69
69
  Stop when `app_token`, `connections_open`, `bot_token`, and `auth_test` are green.
@@ -71,7 +71,7 @@ Stop when `app_token`, `connections_open`, `bot_token`, and `auth_test` are gree
71
71
  ### Phase 4 — Serve + smoke (agent + human)
72
72
 
73
73
  ```bash
74
- agent-serve serve --dir . --dev
74
+ agentkit dev .
75
75
  ```
76
76
 
77
77
  Confirm log: `[agent-serve/slack] Socket Mode connected`.
@@ -171,10 +171,10 @@ Requirements and caveats:
171
171
  ## CLI reference
172
172
 
173
173
  ```bash
174
- agent-serve slack setup
175
- agent-serve slack init --dir . --name "My Agent"
176
- agent-serve slack init --dir . --no-prefix
177
- agent-serve slack init --dir . --channel-posts # + message.channels/groups events
178
- agent-serve slack manifest --env both
179
- agent-serve slack doctor --prefix MY_AGENT
174
+ agentkit slack setup
175
+ agentkit slack init --dir . --name "My Agent"
176
+ agentkit slack init --dir . --no-prefix
177
+ agentkit slack init --dir . --channel-posts # + message.channels/groups events
178
+ agentkit slack manifest --env both
179
+ agentkit slack doctor --prefix MY_AGENT
180
180
  ```