@cursor/july 0.1.113 → 0.1.114
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/dist/docs/404.html +2 -2
- package/dist/docs/assets/{app.CAeK13eM.js → app.BqkJwOZ-.js} +4 -4
- package/dist/docs/assets/chunks/@localSearchIndexroot.BnSgidYE.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.C9LbPHod.js → VPLocalSearchBox.BJAi2KiV.js} +1 -1
- package/dist/docs/assets/chunks/{arc.CmMq2zmS.js → arc.BZpXTgvV.js} +1 -1
- package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.CCXB8Uj5.js → architectureDiagram-Q4EWVU46.WYI-7F-Y.js} +1 -1
- package/dist/docs/assets/chunks/{baseUniq.CyQo6eLe.js → baseUniq.CZaUPpg0.js} +1 -1
- package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.JYq6w91N.js → blockDiagram-DXYQGD6D.D6UES2pD.js} +1 -1
- package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.BRV8GPJJ.js → c4Diagram-AHTNJAMY.cwebIe4i.js} +1 -1
- package/dist/docs/assets/chunks/channel.DdM5EfNW.js +1 -0
- package/dist/docs/assets/chunks/{chunk-4BX2VUAB.Bv4ooYQR.js → chunk-4BX2VUAB.fVyFnjxg.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-4TB4RGXK.t4JtKPcj.js → chunk-4TB4RGXK.BanufG1c.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-55IACEB6.34lCHj9Y.js → chunk-55IACEB6.VaSMz5-2.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-EDXVE4YY.BSwrPNrt.js → chunk-EDXVE4YY.CN2diZOM.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-FMBD7UC4.Beeun-R-.js → chunk-FMBD7UC4.g4ivypu3.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-OYMX7WX6.BUUFUcJc.js → chunk-OYMX7WX6.GZXKn9JJ.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-QZHKN3VN.B2XjHzN_.js → chunk-QZHKN3VN.itXxJZCd.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-YZCP3GAM.CLYG8znk.js → chunk-YZCP3GAM.-rw2GfvX.js} +1 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.CjfGHeg2.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.CjfGHeg2.js +1 -0
- package/dist/docs/assets/chunks/clone.wSOICb_f.js +1 -0
- package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.DVEa6fZp.js → cose-bilkent-S5V4N54A.CmaI5br0.js} +1 -1
- package/dist/docs/assets/chunks/{dagre-KV5264BT.C9PZQK-S.js → dagre-KV5264BT.4wY9S4Kt.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-5BDNPKRD.DoN0uv3Y.js → diagram-5BDNPKRD.Pc3c0u9W.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.Czv3duqx.js → diagram-G4DWMVQ6.CYrWz-nj.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-MMDJMWI5.BinJ5kWb.js → diagram-MMDJMWI5.Bgj5hukb.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-TYMM5635.DW326M4K.js → diagram-TYMM5635.DGMEXalS.js} +1 -1
- package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.U2pR_OA7.js → erDiagram-SMLLAGMA.GepTV9Im.js} +1 -1
- package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.ByWJXeYK.js → flowDiagram-DWJPFMVM.DVKywg3j.js} +1 -1
- package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.OquF0Rtg.js → ganttDiagram-T4ZO3ILL.C7qt9Mlo.js} +1 -1
- package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.Bpn01P7X.js → gitGraphDiagram-UUTBAWPF.U30_r82P.js} +1 -1
- package/dist/docs/assets/chunks/{graph.CNRB6ETL.js → graph.CyyMyAWv.js} +1 -1
- package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.CqhknMWi.js → infoDiagram-42DDH7IO.Dn9ACW3y.js} +1 -1
- package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.C6xpR2af.js → ishikawaDiagram-UXIWVN3A.DlIdIGOA.js} +1 -1
- package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.Cg5f7oB3.js → journeyDiagram-VCZTEJTY.DZj4vy4E.js} +1 -1
- package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.Cx9YTwlU.js → kanban-definition-6JOO6SKY.Dl63eMUV.js} +1 -1
- package/dist/docs/assets/chunks/{layout.ljS-wFtK.js → layout.BLHZLWPH.js} +1 -1
- package/dist/docs/assets/chunks/{linear.jSxNrsFC.js → linear.aXKGKaNw.js} +1 -1
- package/dist/docs/assets/chunks/{min.Cum8AlQw.js → min.zWnFcpcc.js} +1 -1
- package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.BLiysLpe.js → mindmap-definition-QFDTVHPH.Qs4MQBea.js} +1 -1
- package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.BoIDyuKF.js → pieDiagram-DEJITSTG.BmPHgsk7.js} +1 -1
- package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.DLkpDytR.js → quadrantDiagram-34T5L4WZ.D5MQ3gwA.js} +1 -1
- package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.DqTVqSu2.js → requirementDiagram-MS252O5E.CkdUFrO7.js} +1 -1
- package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.CG_6FF7j.js → sankeyDiagram-XADWPNL6.KZrljrAV.js} +1 -1
- package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.BIp9602K.js → sequenceDiagram-FGHM5R23.XMoEW-Lx.js} +1 -1
- package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.COSXsD9I.js → stateDiagram-FHFEXIEX.BmTzePLj.js} +1 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.Cu5X28zZ.js +1 -0
- package/dist/docs/assets/chunks/{theme.CXJ7PNwy.js → theme.BfQzpxsg.js} +2 -2
- package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.CXdVqkLq.js → timeline-definition-GMOUNBTQ.Dug0oamp.js} +1 -1
- package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.CZxGuc4r.js → vennDiagram-DHZGUBPP.BOTHrEFu.js} +1 -1
- package/dist/docs/assets/chunks/{wardley-RL74JXVD.3oVgfqQk.js → wardley-RL74JXVD.DXy2i1LS.js} +1 -1
- package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.6_irCgGJ.js → wardleyDiagram-NUSXRM2D.CoXKdfi6.js} +1 -1
- package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.TRPe92m3.js → xychartDiagram-5P7HB3ND.DXoSCjAW.js} +1 -1
- package/dist/docs/assets/{deployment.md.D2jQZuFx.js → deployment.md.D2YX7u_I.js} +1 -1
- package/dist/docs/assets/{guides_agent-to-agent.md.CD4T5FIl.js → guides_agent-to-agent.md.C6kPY8nu.js} +2 -2
- package/dist/docs/assets/{guides_cloud-agents.md.Cp1O3u-X.js → guides_cloud-agents.md.BPJqTZjT.js} +1 -1
- package/dist/docs/assets/{guides_grokbot-agents.md.CMhZNdEU.js → guides_grokbot-agents.md.CzV715v8.js} +1 -1
- package/dist/docs/assets/guides_hooks.md.BT9GLwEp.js +50 -0
- package/dist/docs/assets/guides_hooks.md.BT9GLwEp.lean.js +1 -0
- package/dist/docs/assets/{guides_jev.md.F5fAkkfN.js → guides_jev.md.DeSCqMaO.js} +6 -44
- package/dist/docs/assets/guides_jev.md.DeSCqMaO.lean.js +1 -0
- package/dist/docs/assets/reference_agent-config.md.BRxAlnRy.js +36 -0
- package/dist/docs/assets/{reference_agent-config.md.DGPyw7ms.lean.js → reference_agent-config.md.BRxAlnRy.lean.js} +1 -1
- package/dist/docs/assets/reference_artifacts.md.KRX0sAdt.js +18 -0
- package/dist/docs/assets/reference_artifacts.md.KRX0sAdt.lean.js +1 -0
- package/dist/docs/assets/reference_channels.md.DZr14vm7.js +23 -0
- package/dist/docs/assets/reference_channels.md.DZr14vm7.lean.js +1 -0
- package/dist/docs/assets/{reference_connections.md.Je9dMsdd.js → reference_connections.md.DJGUCxrr.js} +18 -30
- package/dist/docs/assets/{reference_connections.md.Je9dMsdd.lean.js → reference_connections.md.DJGUCxrr.lean.js} +1 -1
- package/dist/docs/assets/{reference_evals.md.DNJzM_yf.js → reference_evals.md.C6umwNC6.js} +6 -7
- package/dist/docs/assets/reference_evals.md.C6umwNC6.lean.js +1 -0
- package/dist/docs/assets/{reference_extensions.md.Cv5aLCz_.js → reference_extensions.md.DbNYu-DP.js} +3 -3
- package/dist/docs/assets/{reference_extensions.md.Cv5aLCz_.lean.js → reference_extensions.md.DbNYu-DP.lean.js} +1 -1
- package/dist/docs/assets/reference_hooks.md.BfOkhTU0.js +45 -0
- package/dist/docs/assets/{reference_hooks.md.B7uzNENk.lean.js → reference_hooks.md.BfOkhTU0.lean.js} +1 -1
- package/dist/docs/assets/reference_http-api.md.DdwtBeCj.js +11 -0
- package/dist/docs/assets/{reference_http-api.md.CduHavZ2.lean.js → reference_http-api.md.DdwtBeCj.lean.js} +1 -1
- package/dist/docs/assets/reference_instructions.md.B2mcIzT6.js +14 -0
- package/dist/docs/assets/reference_instructions.md.B2mcIzT6.lean.js +1 -0
- package/dist/docs/assets/reference_playground.md.CyrQD_n3.js +1 -0
- package/dist/docs/assets/reference_playground.md.CyrQD_n3.lean.js +1 -0
- package/dist/docs/assets/reference_project-layout.md.BEMzxAkq.js +19 -0
- package/dist/docs/assets/{reference_project-layout.md.BGhgpy9V.lean.js → reference_project-layout.md.BEMzxAkq.lean.js} +1 -1
- package/dist/docs/assets/reference_prompt.md.BFrqjHFL.js +9 -0
- package/dist/docs/assets/reference_prompt.md.BFrqjHFL.lean.js +1 -0
- package/dist/docs/assets/reference_schedules.md.BB9N3tRR.js +47 -0
- package/dist/docs/assets/reference_schedules.md.BB9N3tRR.lean.js +1 -0
- package/dist/docs/assets/reference_sessions.md.BBp-GIt-.js +1 -0
- package/dist/docs/assets/{reference_sessions.md.1_6Vyv7x.lean.js → reference_sessions.md.BBp-GIt-.lean.js} +1 -1
- package/dist/docs/assets/reference_skills.md.BVmi3UJ_.js +15 -0
- package/dist/docs/assets/{reference_skills.md.DjQkRefx.lean.js → reference_skills.md.BVmi3UJ_.lean.js} +1 -1
- package/dist/docs/assets/reference_subagents.md.DRoRy2Uj.js +10 -0
- package/dist/docs/assets/{reference_subagents.md.Dl16gcBj.lean.js → reference_subagents.md.DRoRy2Uj.lean.js} +1 -1
- package/dist/docs/assets/{reference_tools.md.B1dH1lpa.js → reference_tools.md.CgocLDX1.js} +9 -6
- package/dist/docs/assets/{reference_tools.md.B1dH1lpa.lean.js → reference_tools.md.CgocLDX1.lean.js} +1 -1
- package/dist/docs/assets/troubleshooting.md.HY95rCCz.js +1 -0
- package/dist/docs/building-with-agents.html +35 -35
- package/dist/docs/deployment.html +37 -37
- package/dist/docs/deployment.md +1 -1
- package/dist/docs/evals.html +35 -35
- package/dist/docs/guides/agent-to-agent.html +38 -38
- package/dist/docs/guides/agent-to-agent.md +11 -12
- package/dist/docs/guides/bitbucket.html +35 -35
- package/dist/docs/guides/cloud-agents.html +36 -36
- package/dist/docs/guides/cloud-agents.md +1 -1
- package/dist/docs/guides/convert-automation.html +35 -35
- package/dist/docs/guides/github.html +35 -35
- package/dist/docs/guides/gitlab.html +35 -35
- package/dist/docs/guides/grokbot-agents.html +37 -37
- package/dist/docs/guides/grokbot-agents.md +1 -1
- package/dist/docs/guides/hooks.html +109 -0
- package/dist/docs/guides/hooks.md +111 -0
- package/dist/docs/guides/improve.html +35 -35
- package/dist/docs/guides/jev.html +42 -80
- package/dist/docs/guides/jev.md +22 -79
- package/dist/docs/guides/mcp-oauth.html +36 -36
- package/dist/docs/guides/opentelemetry.html +35 -35
- package/dist/docs/guides/slack.html +35 -35
- package/dist/docs/guides/webhooks.html +35 -35
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +35 -35
- package/dist/docs/index.html +35 -35
- package/dist/docs/llms-full.txt +993 -1303
- package/dist/docs/llms.txt +8 -7
- package/dist/docs/quickstart.html +35 -35
- package/dist/docs/reference/agent-config.html +42 -46
- package/dist/docs/reference/agent-config.md +48 -81
- package/dist/docs/reference/artifacts.html +39 -40
- package/dist/docs/reference/artifacts.md +71 -70
- package/dist/docs/reference/channels.html +41 -61
- package/dist/docs/reference/channels.md +134 -201
- package/dist/docs/reference/cli.html +35 -35
- package/dist/docs/reference/connections.html +54 -66
- package/dist/docs/reference/connections.md +92 -128
- package/dist/docs/reference/evals.html +42 -43
- package/dist/docs/reference/evals.md +42 -50
- package/dist/docs/reference/extensions.html +38 -38
- package/dist/docs/reference/extensions.md +9 -13
- package/dist/docs/reference/hooks.html +39 -67
- package/dist/docs/reference/hooks.md +72 -146
- package/dist/docs/reference/http-api.html +39 -39
- package/dist/docs/reference/http-api.md +137 -161
- package/dist/docs/reference/instructions.html +39 -39
- package/dist/docs/reference/instructions.md +21 -36
- package/dist/docs/reference/playground.html +36 -36
- package/dist/docs/reference/playground.md +26 -43
- package/dist/docs/reference/project-layout.html +38 -38
- package/dist/docs/reference/project-layout.md +12 -17
- package/dist/docs/reference/prompt.html +42 -42
- package/dist/docs/reference/prompt.md +18 -13
- package/dist/docs/reference/schedules.html +56 -91
- package/dist/docs/reference/schedules.md +52 -99
- package/dist/docs/reference/sessions.html +36 -36
- package/dist/docs/reference/sessions.md +36 -40
- package/dist/docs/reference/skills.html +38 -38
- package/dist/docs/reference/skills.md +15 -26
- package/dist/docs/reference/subagents.html +38 -38
- package/dist/docs/reference/subagents.md +20 -30
- package/dist/docs/reference/tools.html +44 -41
- package/dist/docs/reference/tools.md +45 -64
- package/dist/docs/templates/agentic-owners.html +35 -35
- package/dist/docs/templates/pr-autofixer.html +35 -35
- package/dist/docs/templates/security-reviewer.html +35 -35
- package/dist/docs/templates/thermo-quality-review.html +35 -35
- package/dist/docs/templates/thermo-review.html +35 -35
- package/dist/docs/templates/triage.html +35 -35
- package/dist/docs/troubleshooting.html +36 -36
- package/dist/docs/troubleshooting.md +1 -1
- package/dist/playground/assets/{index-DSMAewbx.css → index-C61EWMBK.css} +1 -1
- package/dist/playground/index.html +2 -2
- package/docs/deployment.md +1 -1
- package/docs/guides/agent-to-agent.md +11 -12
- package/docs/guides/cloud-agents.md +1 -1
- package/docs/guides/grokbot-agents.md +1 -1
- package/docs/guides/hooks.md +116 -0
- package/docs/guides/jev.md +23 -80
- package/docs/reference/agent-config.md +48 -81
- package/docs/reference/artifacts.md +72 -71
- package/docs/reference/channels.md +135 -202
- package/docs/reference/connections.md +93 -129
- package/docs/reference/evals.md +43 -51
- package/docs/reference/extensions.md +9 -13
- package/docs/reference/hooks.md +72 -146
- package/docs/reference/http-api.md +137 -161
- package/docs/reference/instructions.md +22 -37
- package/docs/reference/playground.md +26 -43
- package/docs/reference/project-layout.md +12 -17
- package/docs/reference/prompt.md +20 -15
- package/docs/reference/schedules.md +52 -99
- package/docs/reference/sessions.md +36 -40
- package/docs/reference/skills.md +15 -26
- package/docs/reference/subagents.md +20 -30
- package/docs/reference/tools.md +45 -64
- package/docs/troubleshooting.md +1 -1
- package/package.json +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.Ck9E52Ls.js +0 -1
- package/dist/docs/assets/chunks/channel.BHiYmnZ4.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.Degh8l90.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.Degh8l90.js +0 -1
- package/dist/docs/assets/chunks/clone.BIywbczV.js +0 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.qrxrbFsX.js +0 -1
- package/dist/docs/assets/guides_jev.md.F5fAkkfN.lean.js +0 -1
- package/dist/docs/assets/reference_agent-config.md.DGPyw7ms.js +0 -40
- package/dist/docs/assets/reference_artifacts.md.Bu_4HmsD.js +0 -19
- package/dist/docs/assets/reference_artifacts.md.Bu_4HmsD.lean.js +0 -1
- package/dist/docs/assets/reference_channels.md.nFWbzAic.js +0 -43
- package/dist/docs/assets/reference_channels.md.nFWbzAic.lean.js +0 -1
- package/dist/docs/assets/reference_evals.md.DNJzM_yf.lean.js +0 -1
- package/dist/docs/assets/reference_hooks.md.B7uzNENk.js +0 -73
- package/dist/docs/assets/reference_http-api.md.CduHavZ2.js +0 -11
- package/dist/docs/assets/reference_instructions.md.CU1My5My.js +0 -14
- package/dist/docs/assets/reference_instructions.md.CU1My5My.lean.js +0 -1
- package/dist/docs/assets/reference_playground.md.Ch2d0Iqi.js +0 -1
- package/dist/docs/assets/reference_playground.md.Ch2d0Iqi.lean.js +0 -1
- package/dist/docs/assets/reference_project-layout.md.BGhgpy9V.js +0 -19
- package/dist/docs/assets/reference_prompt.md.Ccp0R53H.js +0 -1
- package/dist/docs/assets/reference_prompt.md.Ccp0R53H.lean.js +0 -1
- package/dist/docs/assets/reference_schedules.md.B2Nm6FaD.js +0 -82
- package/dist/docs/assets/reference_schedules.md.B2Nm6FaD.lean.js +0 -1
- package/dist/docs/assets/reference_sessions.md.1_6Vyv7x.js +0 -1
- package/dist/docs/assets/reference_skills.md.DjQkRefx.js +0 -15
- package/dist/docs/assets/reference_subagents.md.Dl16gcBj.js +0 -10
- package/dist/docs/assets/troubleshooting.md.mnfFG2Em.js +0 -1
- /package/dist/docs/assets/{deployment.md.D2jQZuFx.lean.js → deployment.md.D2YX7u_I.lean.js} +0 -0
- /package/dist/docs/assets/{guides_agent-to-agent.md.CD4T5FIl.lean.js → guides_agent-to-agent.md.C6kPY8nu.lean.js} +0 -0
- /package/dist/docs/assets/{guides_cloud-agents.md.Cp1O3u-X.lean.js → guides_cloud-agents.md.BPJqTZjT.lean.js} +0 -0
- /package/dist/docs/assets/{guides_grokbot-agents.md.CMhZNdEU.lean.js → guides_grokbot-agents.md.CzV715v8.lean.js} +0 -0
- /package/dist/docs/assets/{troubleshooting.md.mnfFG2Em.lean.js → troubleshooting.md.HY95rCCz.lean.js} +0 -0
- /package/dist/playground/assets/{index-De_lpFxE.js → index-CrMWlgUU.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Agent config
|
|
1
|
+
# Agent config
|
|
2
2
|
|
|
3
|
-
`agent/agent.ts` default-exports `defineAgent(config)
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
`agent/agent.ts` default-exports `defineAgent(config)`, which sets the
|
|
4
|
+
model, execution runtime, and runtime-specific defaults. Every root
|
|
5
|
+
config field is optional.
|
|
6
6
|
|
|
7
7
|
```ts
|
|
8
8
|
import { defineAgent } from "@cursor/july";
|
|
@@ -22,9 +22,7 @@ export default defineAgent({
|
|
|
22
22
|
});
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
##
|
|
26
|
-
|
|
27
|
-
`defineAgent` accepts these fields.
|
|
25
|
+
## Agent fields
|
|
28
26
|
|
|
29
27
|
| Field | Type | Meaning |
|
|
30
28
|
| --- | --- | --- |
|
|
@@ -33,14 +31,14 @@ export default defineAgent({
|
|
|
33
31
|
| `description` | string | What the agent is for. Required on subagents; the parent model reads it to decide when to delegate. Documentation-only on the root. |
|
|
34
32
|
| `instructions` | string | Inline instructions. Prefer `instructions.md`; this exists for subagents and generated configs. |
|
|
35
33
|
| `runtime` | `"local"` or `"cloud"` | Where turns execute. Default `"local"`. |
|
|
36
|
-
| `cloud` | object | Cloud agent defaults: repos, env, envVars
|
|
34
|
+
| `cloud` | object | Cloud agent defaults: repos, env, envVars. Used when `runtime` is `"cloud"`, and as the base merged under per-session `cloud` send options. |
|
|
37
35
|
| `local` | `{ cwd?, workspaceDir?, sandbox? }` | Local harness defaults; ignored for cloud turns. See [Local options](#local-options). |
|
|
38
|
-
| `hosting` | `{ egressDomains?, secretNames? }` |
|
|
39
|
-
| `concurrency` | `{ maxRunningTurns? }` |
|
|
36
|
+
| `hosting` | `{ egressDomains?, secretNames? }` | `agent-sdk deploy` declarations for allowed egress domains and expected secret names. Ignored by local serving. |
|
|
37
|
+
| `concurrency` | `{ maxRunningTurns? }` | Agent-wide turn admission limit. See [Concurrency](#concurrency). |
|
|
40
38
|
| `builtinTools` | `{ reminders? }` | Framework-provided model-facing tools, opted in per capability. See [Built-in tools](#built-in-tools). |
|
|
41
|
-
| `tools` | `ToolName[]` | Allowlist of built-in harness tools offered to the model. Unset = the model's full standard toolset. See [
|
|
39
|
+
| `tools` | `ToolName[]` | Allowlist of built-in harness tools offered to the model. Unset = the model's full standard toolset. See [Harness tools](#harness-tools). |
|
|
42
40
|
|
|
43
|
-
##
|
|
41
|
+
## Model
|
|
44
42
|
|
|
45
43
|
`model` is a Cursor model id string, or `{ id, params }`. Effort and
|
|
46
44
|
speed are params, not id suffixes. The SDK rejects suffix-style ids
|
|
@@ -62,24 +60,17 @@ A plain string works when you don't need params:
|
|
|
62
60
|
model: "composer-2.5",
|
|
63
61
|
```
|
|
64
62
|
|
|
65
|
-
##
|
|
63
|
+
## Runtime
|
|
66
64
|
|
|
67
|
-
`runtime: "local"` (the default) runs turns on
|
|
68
|
-
|
|
69
|
-
all apply.
|
|
65
|
+
`runtime: "local"` (the default) runs turns on this machine. Server
|
|
66
|
+
tools, skills, sandbox seeds, and tool approvals all apply.
|
|
70
67
|
|
|
71
|
-
`runtime: "cloud"` runs turns on Cursor cloud agents
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
`--public-url` or `--cloud-tools-url` is set (omitted with a warning
|
|
75
|
-
otherwise), and instructions and agent-tool catalogs are prepended to
|
|
76
|
-
the first prompt, because the local session workspace is not the cloud
|
|
77
|
-
VM.
|
|
68
|
+
`runtime: "cloud"` runs turns on Cursor cloud agents. Pass a `cloud`
|
|
69
|
+
block with the repositories the VM needs. See [Tools](/docs/reference/tools.md) for
|
|
70
|
+
server- and agent-tool behavior on cloud turns.
|
|
78
71
|
|
|
79
|
-
`validate` warns when `runtime: "cloud"` is combined with agent tools
|
|
80
|
-
|
|
81
|
-
when skills or sandbox seeds are present (they sync onto an Agent Store
|
|
82
|
-
rather than the session workspace), and when the `cloud` block is
|
|
72
|
+
`validate` warns when `runtime: "cloud"` is combined with agent tools,
|
|
73
|
+
when skills or sandbox seeds are present, and when the `cloud` block is
|
|
83
74
|
missing.
|
|
84
75
|
|
|
85
76
|
## Local options
|
|
@@ -88,18 +79,15 @@ missing.
|
|
|
88
79
|
|
|
89
80
|
`local.workspaceDir` points every session at one shared harness cwd,
|
|
90
81
|
for agents that work inside an existing checkout. It takes precedence
|
|
91
|
-
over `cwd`, and a per-send `workspaceDir` still wins over both.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
serve process instead of once per session. The trade: sessions share a
|
|
95
|
-
working tree, so a file one turn writes is visible to the next.
|
|
82
|
+
over `cwd`, and a per-send `workspaceDir` still wins over both.
|
|
83
|
+
Sessions share a working tree, so a file one turn writes is visible to
|
|
84
|
+
the next.
|
|
96
85
|
|
|
97
86
|
`local.sandbox` runs the harness inside Cursor's local sandbox. It's
|
|
98
|
-
off by default
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
than a prompt-level one.
|
|
87
|
+
off by default: shell then auto-approves and inherits the serve process
|
|
88
|
+
environment, including any credentials the host holds. Turn it on for
|
|
89
|
+
agents whose turns read untrusted input (webhook payloads, PR diffs,
|
|
90
|
+
inbound chat); it's a tool boundary, not a prompt-level one.
|
|
103
91
|
|
|
104
92
|
### Local cwd
|
|
105
93
|
|
|
@@ -115,13 +103,12 @@ does not leak rules, skills, or MCP servers into the turn. A standalone git
|
|
|
115
103
|
root keeps the in-project session workspace. Point `cwd` at a checkout only
|
|
116
104
|
when the agent should inherit that tree.
|
|
117
105
|
|
|
118
|
-
##
|
|
106
|
+
## Harness tools
|
|
119
107
|
|
|
120
108
|
Use `tools` to limit which built-in Cursor harness tools the model can
|
|
121
109
|
call. Omit it to keep the standard toolset. When you set it, the model
|
|
122
110
|
gets only the tools you list. An empty list disables all native
|
|
123
|
-
built-in tools.
|
|
124
|
-
stay disabled until you add them.
|
|
111
|
+
built-in tools. New platform tools stay disabled until you add them.
|
|
125
112
|
|
|
126
113
|
```ts
|
|
127
114
|
export default defineAgent({
|
|
@@ -132,12 +119,13 @@ export default defineAgent({
|
|
|
132
119
|
});
|
|
133
120
|
```
|
|
134
121
|
|
|
135
|
-
The Agent SDK always adds `"mcp"` to a configured allowlist
|
|
136
|
-
server tools in `agent/tools/`
|
|
137
|
-
expose declared connections and servers from the harness
|
|
138
|
-
ambient `.cursor` config. To exclude a checkout's MCP
|
|
139
|
-
`local.cwd` outside the checkout. See
|
|
140
|
-
`local.sandbox` makes MCP tool calls fail
|
|
122
|
+
The Agent SDK always adds `"mcp"` to a configured allowlist, because
|
|
123
|
+
authored server tools in `agent/tools/` reach the model over MCP. MCP
|
|
124
|
+
can also expose declared connections and servers from the harness
|
|
125
|
+
directory's ambient `.cursor` config. To exclude a checkout's MCP
|
|
126
|
+
servers, point `local.cwd` outside the checkout. See
|
|
127
|
+
[Local cwd](#local-cwd). `local.sandbox` makes MCP tool calls fail
|
|
128
|
+
closed.
|
|
141
129
|
|
|
142
130
|
Use the SDK's public tool names, including `"shell"`, `"read"`,
|
|
143
131
|
`"edit"`, `"grep"`, `"glob"`, `"ls"`, and `"task"`. Unknown names
|
|
@@ -154,8 +142,7 @@ Two names have broader effects:
|
|
|
154
142
|
Tool allowlists work only with the local runtime. A
|
|
155
143
|
`runtime: "cloud"` agent that sets `tools` fails at serve startup.
|
|
156
144
|
The Agent SDK also refuses per-send cloud sessions from a hybrid agent
|
|
157
|
-
with an allowlist.
|
|
158
|
-
access.
|
|
145
|
+
with an allowlist.
|
|
159
146
|
|
|
160
147
|
The allowlist controls which tools the model can call. It does not
|
|
161
148
|
isolate the serve host. For agents that process untrusted input, also
|
|
@@ -163,10 +150,10 @@ set `local: { sandbox: true }`.
|
|
|
163
150
|
|
|
164
151
|
## Cloud options
|
|
165
152
|
|
|
166
|
-
|
|
167
|
-
`{ url, startingRef? }`), environment selection, `envVars
|
|
168
|
-
|
|
169
|
-
|
|
153
|
+
The `cloud` block sets default repositories (each
|
|
154
|
+
`{ url, startingRef? }`), environment selection, and `envVars`. A local
|
|
155
|
+
agent uses the same block as the base config when a channel opens a
|
|
156
|
+
cloud-attached session per send (the `cloud` option on
|
|
170
157
|
[`send`](/docs/reference/channels.md#handler-arguments)).
|
|
171
158
|
|
|
172
159
|
## Concurrency
|
|
@@ -189,9 +176,8 @@ export default defineAgent({
|
|
|
189
176
|
## Built-in tools
|
|
190
177
|
|
|
191
178
|
`builtinTools` opts into framework-provided model-facing tools. Each
|
|
192
|
-
enabled capability
|
|
193
|
-
|
|
194
|
-
like authored tools. Authored tools with the same name win, with a
|
|
179
|
+
enabled capability shows up as ordinary server tools, so turns, direct
|
|
180
|
+
calls, `info`, and the playground treat them like authored tools. Authored tools with the same name win, with a
|
|
195
181
|
warning, and like all server tools they run on the local runtime.
|
|
196
182
|
|
|
197
183
|
`builtinTools: { reminders: true }` adds three tools bound to the
|
|
@@ -200,22 +186,6 @@ current conversation over `host.reminders`: `reminders_create`,
|
|
|
200
186
|
continuation key can't arm reminders. See
|
|
201
187
|
[Schedules and reminders](/docs/reference/schedules.md#reminders).
|
|
202
188
|
|
|
203
|
-
## Generate instructions
|
|
204
|
-
|
|
205
|
-
When the system prompt must be computed, author `agent/instructions.ts`
|
|
206
|
-
instead of markdown:
|
|
207
|
-
|
|
208
|
-
```ts
|
|
209
|
-
import { defineInstructions } from "@cursor/july";
|
|
210
|
-
|
|
211
|
-
export default defineInstructions({
|
|
212
|
-
markdown: `You are the on-call assistant for ${process.env.TEAM_NAME}.`,
|
|
213
|
-
});
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
The directory form and the runtime mapping are in
|
|
217
|
-
[Instructions](/docs/reference/instructions.md).
|
|
218
|
-
|
|
219
189
|
## Serve programmatically
|
|
220
190
|
|
|
221
191
|
`serve(dirOrProject, options)` embeds the server in your own process:
|
|
@@ -225,7 +195,7 @@ import { serve } from "@cursor/july";
|
|
|
225
195
|
|
|
226
196
|
const handle = await serve("./my-agent", {
|
|
227
197
|
port: 3000,
|
|
228
|
-
apiKey: process.env.CURSOR_API_KEY,
|
|
198
|
+
apiKey: process.env.CURSOR_API_KEY,
|
|
229
199
|
});
|
|
230
200
|
console.log(`listening on ${handle.url}`);
|
|
231
201
|
// handle.callTool(...), handle.dispatchSchedule("heartbeat"),
|
|
@@ -234,17 +204,14 @@ console.log(`listening on ${handle.url}`);
|
|
|
234
204
|
|
|
235
205
|
Host settings match the documented [CLI](/docs/reference/cli.md) `serve` flags.
|
|
236
206
|
`serve()` also accepts `discovery` (project-loading options) and
|
|
237
|
-
`mode: "single" | "multi"`.
|
|
238
|
-
|
|
239
|
-
`
|
|
240
|
-
when unset), then `CURSOR_SERVICE_ACCOUNT_KEY`, then the key stored by
|
|
241
|
-
`agent-sdk login`. On a host that has both the service-account key and a
|
|
242
|
-
bind file, the file principal wins.
|
|
243
|
-
|
|
244
|
-
## What's next
|
|
207
|
+
`mode: "single" | "multi"`. Pass `apiKey` or use the same Cursor
|
|
208
|
+
credential as the CLI: `CURSOR_API_KEY`, `CURSOR_API_KEY_FILE`,
|
|
209
|
+
`CURSOR_SERVICE_ACCOUNT_KEY`, or `agent-sdk login`.
|
|
245
210
|
|
|
246
|
-
|
|
211
|
+
## Related
|
|
247
212
|
|
|
248
213
|
- [Instructions](/docs/reference/instructions.md): the required half of a minimal
|
|
249
214
|
agent
|
|
250
215
|
- [CLI](/docs/reference/cli.md): the `serve` flags `serve()` accepts
|
|
216
|
+
- [Sessions](/docs/reference/sessions.md): workspaces, identifiers, and turn admission
|
|
217
|
+
- [Schedules](/docs/reference/schedules.md): reminder tools opted in here
|