@cursor/july 0.1.90 → 0.1.92
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/AGENTS.md +12 -0
- package/README.md +8 -7
- package/dist/channels/slack/channel-watch.d.ts +1 -1
- package/dist/channels/slack/channel-watch.js +1 -1
- package/dist/channels/slack/slack-channel.js +1 -1
- package/dist/channels/slack/types.d.ts +2 -4
- package/dist/channels/slack/types.d.ts.map +1 -1
- package/dist/docs/404.html +5 -3
- package/dist/docs/ab.html +9 -7
- package/dist/docs/ab.md +338 -0
- package/dist/docs/assets/{ab.md.DYjwREAP.js → ab.md.CVzWxLoB.js} +1 -1
- package/dist/docs/assets/{ab.md.DYjwREAP.lean.js → ab.md.CVzWxLoB.lean.js} +1 -1
- package/dist/docs/assets/{app.wiNkt6G7.js → app.Bci6CM9E.js} +1 -1
- package/dist/docs/assets/{building-with-agents.md.PeZaZA1P.js → building-with-agents.md.DH8A_cHA.js} +1 -1
- package/dist/docs/assets/{building-with-agents.md.PeZaZA1P.lean.js → building-with-agents.md.DH8A_cHA.lean.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.Dv-Q0XtU.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.ByhUGu47.js → VPLocalSearchBox.BCPT6xA-.js} +1 -1
- package/dist/docs/assets/chunks/{framework.CAZyNGu9.js → framework.BCISBCiQ.js} +1 -1
- package/dist/docs/assets/chunks/theme.BEA8BF3c.js +2 -0
- package/dist/docs/assets/{concepts.md.2NfkGjqM.js → concepts.md.CRfU3bVg.js} +1 -1
- package/dist/docs/assets/{concepts.md.2NfkGjqM.lean.js → concepts.md.CRfU3bVg.lean.js} +1 -1
- package/dist/docs/assets/{deployment.md.B8kW-h7P.js → deployment.md.DX_hc3ze.js} +6 -5
- package/dist/docs/assets/{deployment.md.B8kW-h7P.lean.js → deployment.md.DX_hc3ze.lean.js} +1 -1
- package/dist/docs/assets/{evals.md.CVe_O75-.js → evals.md.a0SMN6r9.js} +3 -3
- package/dist/docs/assets/{evals.md.CVe_O75-.lean.js → evals.md.a0SMN6r9.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_approval-buddy.md.CIiZ9coo.js → example-agents_approval-buddy.md.DNL83puR.js} +1 -1
- package/dist/docs/assets/{example-agents_approval-buddy.md.CIiZ9coo.lean.js → example-agents_approval-buddy.md.DNL83puR.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_benny.md.B-LIDGja.js → example-agents_benny.md.C40vHRLc.js} +1 -1
- package/dist/docs/assets/{example-agents_benny.md.B-LIDGja.lean.js → example-agents_benny.md.C40vHRLc.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_bugbot.md.Dp5JqHSQ.js → example-agents_bugbot.md.BRGMi9O2.js} +1 -1
- package/dist/docs/assets/{example-agents_bugbot.md.Dp5JqHSQ.lean.js → example-agents_bugbot.md.BRGMi9O2.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_codebase-wiki.md.D-lteFf0.js → example-agents_codebase-wiki.md.Dftj_tPp.js} +1 -1
- package/dist/docs/assets/{example-agents_codebase-wiki.md.D-lteFf0.lean.js → example-agents_codebase-wiki.md.Dftj_tPp.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_codeowners-review.md.BU2ZXLf-.js → example-agents_codeowners-review.md.Bfta-lBU.js} +1 -1
- package/dist/docs/assets/{example-agents_codeowners-review.md.BU2ZXLf-.lean.js → example-agents_codeowners-review.md.Bfta-lBU.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_concierge.md.DA2al_NK.js → example-agents_concierge.md.MrKpQndp.js} +1 -1
- package/dist/docs/assets/{example-agents_concierge.md.DA2al_NK.lean.js → example-agents_concierge.md.MrKpQndp.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_fsd.md.ZeGEpAw_.js → example-agents_fsd.md.ZWHWWZPE.js} +1 -1
- package/dist/docs/assets/{example-agents_fsd.md.ZeGEpAw_.lean.js → example-agents_fsd.md.ZWHWWZPE.lean.js} +1 -1
- package/dist/docs/assets/example-agents_index.md.QZ8mhr6n.js +2 -0
- package/dist/docs/assets/{example-agents_index.md.xmJ87d_3.lean.js → example-agents_index.md.QZ8mhr6n.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_knowledge-base.md.IneynQSR.js → example-agents_knowledge-base.md.DqKqHQ9u.js} +1 -1
- package/dist/docs/assets/{example-agents_knowledge-base.md.IneynQSR.lean.js → example-agents_knowledge-base.md.DqKqHQ9u.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_oncall.md.CBmyuAKc.js → example-agents_oncall.md.DK4XkYTd.js} +1 -1
- package/dist/docs/assets/{example-agents_oncall.md.CBmyuAKc.lean.js → example-agents_oncall.md.DK4XkYTd.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_security-reviewer.md.DBL1TwtP.js → example-agents_security-reviewer.md.Bai6D0Ee.js} +4 -4
- package/dist/docs/assets/{example-agents_security-reviewer.md.DBL1TwtP.lean.js → example-agents_security-reviewer.md.Bai6D0Ee.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_slack-agent.md.06jQXTAI.js → example-agents_slack-agent.md.D7Kdj5BV.js} +1 -1
- package/dist/docs/assets/{example-agents_slack-agent.md.06jQXTAI.lean.js → example-agents_slack-agent.md.D7Kdj5BV.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_weather-agent.md.DC3lINjo.js → example-agents_weather-agent.md.lVEAbWFf.js} +5 -5
- package/dist/docs/assets/example-agents_weather-agent.md.lVEAbWFf.lean.js +1 -0
- package/dist/docs/assets/{guides_agent-to-agent.md.Bmbxy-FA.js → guides_agent-to-agent.md.BCeVdJRJ.js} +1 -1
- package/dist/docs/assets/{guides_agent-to-agent.md.Bmbxy-FA.lean.js → guides_agent-to-agent.md.BCeVdJRJ.lean.js} +1 -1
- package/dist/docs/assets/{guides_cloud-runtime.md.CbklWfzh.js → guides_cloud-runtime.md.BSMLIBHr.js} +1 -1
- package/dist/docs/assets/{guides_cloud-runtime.md.CbklWfzh.lean.js → guides_cloud-runtime.md.BSMLIBHr.lean.js} +1 -1
- package/dist/docs/assets/{guides_convert-automation.md.BhMzTkE5.js → guides_convert-automation.md.D06eIzea.js} +1 -1
- package/dist/docs/assets/{guides_convert-automation.md.BhMzTkE5.lean.js → guides_convert-automation.md.D06eIzea.lean.js} +1 -1
- package/dist/docs/assets/{guides_github.md.CLLQJKRB.js → guides_github.md.Cdt1s2QC.js} +4 -4
- package/dist/docs/assets/{guides_github.md.CLLQJKRB.lean.js → guides_github.md.Cdt1s2QC.lean.js} +1 -1
- package/dist/docs/assets/{guides_human-in-the-loop.md.Cf8kIIqC.js → guides_human-in-the-loop.md.By1G2T3_.js} +1 -1
- package/dist/docs/assets/{guides_human-in-the-loop.md.Cf8kIIqC.lean.js → guides_human-in-the-loop.md.By1G2T3_.lean.js} +1 -1
- package/dist/docs/assets/{guides_mcp-oauth.md.CzEB6RaG.js → guides_mcp-oauth.md.Du0f7pGU.js} +1 -1
- package/dist/docs/assets/{guides_mcp-oauth.md.CzEB6RaG.lean.js → guides_mcp-oauth.md.Du0f7pGU.lean.js} +1 -1
- package/dist/docs/assets/{guides_opentelemetry.md.Csn7ZI25.js → guides_opentelemetry.md.bmPmkvJu.js} +1 -1
- package/dist/docs/assets/{guides_opentelemetry.md.Csn7ZI25.lean.js → guides_opentelemetry.md.bmPmkvJu.lean.js} +1 -1
- package/dist/docs/assets/{guides_slack.md.DP4H75WP.js → guides_slack.md.DiUmk_Oi.js} +5 -5
- package/dist/docs/assets/{guides_slack.md.DP4H75WP.lean.js → guides_slack.md.DiUmk_Oi.lean.js} +1 -1
- package/dist/docs/assets/{guides_webhooks.md.DB-r_er9.js → guides_webhooks.md.BpnIdO0i.js} +5 -6
- package/dist/docs/assets/{guides_webhooks.md.DB-r_er9.lean.js → guides_webhooks.md.BpnIdO0i.lean.js} +1 -1
- package/dist/docs/assets/{hillclimbing.md.yXqdlv2R.js → hillclimbing.md.ywF3yDAd.js} +1 -1
- package/dist/docs/assets/{hillclimbing.md.yXqdlv2R.lean.js → hillclimbing.md.ywF3yDAd.lean.js} +1 -1
- package/dist/docs/assets/index.md.BAaMXLFd.js +5 -0
- package/dist/docs/assets/{index.md.DhRHS_-L.lean.js → index.md.BAaMXLFd.lean.js} +1 -1
- package/dist/docs/assets/{quickstart.md.DZxBu44y.js → quickstart.md.DsrarzEg.js} +1 -1
- package/dist/docs/assets/{quickstart.md.DZxBu44y.lean.js → quickstart.md.DsrarzEg.lean.js} +1 -1
- package/dist/docs/assets/{reference_agent-config.md.CTWp4DnU.js → reference_agent-config.md.Bqylgw50.js} +1 -1
- package/dist/docs/assets/{reference_agent-config.md.CTWp4DnU.lean.js → reference_agent-config.md.Bqylgw50.lean.js} +1 -1
- package/dist/docs/assets/{reference_artifacts.md.BGG4bZo-.js → reference_artifacts.md.Dior32Qw.js} +1 -1
- package/dist/docs/assets/{reference_artifacts.md.BGG4bZo-.lean.js → reference_artifacts.md.Dior32Qw.lean.js} +1 -1
- package/dist/docs/assets/{reference_channels.md.CboFd5IH.js → reference_channels.md.DQZjCnyh.js} +2 -2
- package/dist/docs/assets/{reference_channels.md.CboFd5IH.lean.js → reference_channels.md.DQZjCnyh.lean.js} +1 -1
- package/dist/docs/assets/{reference_cli.md.TAaYU8br.js → reference_cli.md.B7GkAJRC.js} +8 -7
- package/dist/docs/assets/{reference_cli.md.TAaYU8br.lean.js → reference_cli.md.B7GkAJRC.lean.js} +1 -1
- package/dist/docs/assets/{reference_connections.md.Cu3N-S3Q.js → reference_connections.md.DYidrb-j.js} +5 -5
- package/dist/docs/assets/{reference_connections.md.Cu3N-S3Q.lean.js → reference_connections.md.DYidrb-j.lean.js} +1 -1
- package/dist/docs/assets/{reference_hooks.md.DJE5DXcT.js → reference_hooks.md.B9FSgdDe.js} +1 -1
- package/dist/docs/assets/{reference_hooks.md.DJE5DXcT.lean.js → reference_hooks.md.B9FSgdDe.lean.js} +1 -1
- package/dist/docs/assets/{reference_http-api.md.DMbdFGVQ.js → reference_http-api.md.CSHVobzG.js} +4 -4
- package/dist/docs/assets/{reference_http-api.md.DMbdFGVQ.lean.js → reference_http-api.md.CSHVobzG.lean.js} +1 -1
- package/dist/docs/assets/{reference_instructions.md.CgoV-YEb.js → reference_instructions.md.DhNCOl7r.js} +1 -1
- package/dist/docs/assets/{reference_instructions.md.CgoV-YEb.lean.js → reference_instructions.md.DhNCOl7r.lean.js} +1 -1
- package/dist/docs/assets/{reference_playground.md.CPZhfYaO.js → reference_playground.md.Dfb92yQf.js} +1 -1
- package/dist/docs/assets/{reference_playground.md.CPZhfYaO.lean.js → reference_playground.md.Dfb92yQf.lean.js} +1 -1
- package/dist/docs/assets/{reference_project-layout.md.CueaKpjr.js → reference_project-layout.md.CwkSbEWT.js} +1 -1
- package/dist/docs/assets/{reference_project-layout.md.CueaKpjr.lean.js → reference_project-layout.md.CwkSbEWT.lean.js} +1 -1
- package/dist/docs/assets/{reference_prompt.md.BaiweQxE.js → reference_prompt.md.DZUMtLPD.js} +1 -1
- package/dist/docs/assets/{reference_prompt.md.BaiweQxE.lean.js → reference_prompt.md.DZUMtLPD.lean.js} +1 -1
- package/dist/docs/assets/{reference_schedules.md.gmfYzf_I.js → reference_schedules.md.DNipebiG.js} +1 -1
- package/dist/docs/assets/{reference_schedules.md.gmfYzf_I.lean.js → reference_schedules.md.DNipebiG.lean.js} +1 -1
- package/dist/docs/assets/{reference_sessions.md.B0DdlM-K.js → reference_sessions.md.tUFzz98S.js} +1 -1
- package/dist/docs/assets/{reference_sessions.md.B0DdlM-K.lean.js → reference_sessions.md.tUFzz98S.lean.js} +1 -1
- package/dist/docs/assets/{reference_skills.md.BRF2nDv9.js → reference_skills.md.B5ZEuHfG.js} +1 -1
- package/dist/docs/assets/{reference_skills.md.BRF2nDv9.lean.js → reference_skills.md.B5ZEuHfG.lean.js} +1 -1
- package/dist/docs/assets/{reference_subagents.md.DSrGLIuB.js → reference_subagents.md.Xoav0AII.js} +1 -1
- package/dist/docs/assets/{reference_subagents.md.DSrGLIuB.lean.js → reference_subagents.md.Xoav0AII.lean.js} +1 -1
- package/dist/docs/assets/{reference_tools.md.XmeFP_3d.js → reference_tools.md.wpaJtHn6.js} +2 -3
- package/dist/docs/assets/{reference_tools.md.XmeFP_3d.lean.js → reference_tools.md.wpaJtHn6.lean.js} +1 -1
- package/dist/docs/assets/{scaffolding-agents.md.BpMFXv2J.js → scaffolding-agents.md.CRDDUtYJ.js} +1 -1
- package/dist/docs/assets/{scaffolding-agents.md.BpMFXv2J.lean.js → scaffolding-agents.md.CRDDUtYJ.lean.js} +1 -1
- package/dist/docs/assets/{storage.md.ks1u64_R.js → storage.md.JbjlHWZ6.js} +1 -1
- package/dist/docs/assets/{storage.md.ks1u64_R.lean.js → storage.md.JbjlHWZ6.lean.js} +1 -1
- package/dist/docs/assets/{style.kTsvp4pE.css → style.BRuM8477.css} +1 -1
- package/dist/docs/assets/{templates_agentic-owners.md.BkTLORaU.js → templates_agentic-owners.md.DSJSIpWU.js} +1 -1
- package/dist/docs/assets/{templates_agentic-owners.md.BkTLORaU.lean.js → templates_agentic-owners.md.DSJSIpWU.lean.js} +1 -1
- package/dist/docs/assets/{templates_demo.md.Bgd6MBaZ.js → templates_demo.md.DhFcWN6j.js} +1 -1
- package/dist/docs/assets/{templates_demo.md.Bgd6MBaZ.lean.js → templates_demo.md.DhFcWN6j.lean.js} +1 -1
- package/dist/docs/assets/{templates_pr-autofixer.md.DcmoeUNZ.js → templates_pr-autofixer.md.1HAR3RXE.js} +1 -1
- package/dist/docs/assets/{templates_pr-autofixer.md.DcmoeUNZ.lean.js → templates_pr-autofixer.md.1HAR3RXE.lean.js} +1 -1
- package/dist/docs/assets/{templates_security-reviewer.md.C0yIUaYs.js → templates_security-reviewer.md.ByFyRta2.js} +1 -1
- package/dist/docs/assets/{templates_security-reviewer.md.C0yIUaYs.lean.js → templates_security-reviewer.md.ByFyRta2.lean.js} +1 -1
- package/dist/docs/assets/{templates_triage.md.DWuQ1bZz.js → templates_triage.md.CVlpctKS.js} +2 -2
- package/dist/docs/assets/{templates_triage.md.DWuQ1bZz.lean.js → templates_triage.md.CVlpctKS.lean.js} +1 -1
- package/dist/docs/assets/troubleshooting.md.DYECCZiJ.js +1 -0
- package/dist/docs/assets/{troubleshooting.md.KgmmaCgw.lean.js → troubleshooting.md.DYECCZiJ.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +9 -7
- package/dist/docs/building-with-agents.md +124 -0
- package/dist/docs/concepts.html +9 -7
- package/dist/docs/concepts.md +174 -0
- package/dist/docs/deployment.html +13 -10
- package/dist/docs/deployment.md +464 -0
- package/dist/docs/evals.html +10 -8
- package/dist/docs/evals.md +481 -0
- package/dist/docs/example-agents/approval-buddy.html +9 -7
- package/dist/docs/example-agents/approval-buddy.md +266 -0
- package/dist/docs/example-agents/benny.html +9 -7
- package/dist/docs/example-agents/benny.md +182 -0
- package/dist/docs/example-agents/bugbot.html +9 -7
- package/dist/docs/example-agents/bugbot.md +229 -0
- package/dist/docs/example-agents/codebase-wiki.html +9 -7
- package/dist/docs/example-agents/codebase-wiki.md +170 -0
- package/dist/docs/example-agents/codeowners-review.html +9 -7
- package/dist/docs/example-agents/codeowners-review.md +192 -0
- package/dist/docs/example-agents/concierge.html +9 -7
- package/dist/docs/example-agents/concierge.md +201 -0
- package/dist/docs/example-agents/fsd.html +9 -7
- package/dist/docs/example-agents/fsd.md +329 -0
- package/dist/docs/example-agents/index.html +9 -7
- package/dist/docs/example-agents/index.md +102 -0
- package/dist/docs/example-agents/knowledge-base.html +9 -7
- package/dist/docs/example-agents/knowledge-base.md +168 -0
- package/dist/docs/example-agents/oncall.html +9 -7
- package/dist/docs/example-agents/oncall.md +212 -0
- package/dist/docs/example-agents/security-reviewer.html +12 -10
- package/dist/docs/example-agents/security-reviewer.md +265 -0
- package/dist/docs/example-agents/slack-agent.html +9 -7
- package/dist/docs/example-agents/slack-agent.md +142 -0
- package/dist/docs/example-agents/weather-agent.html +14 -12
- package/dist/docs/example-agents/weather-agent.md +296 -0
- package/dist/docs/guides/agent-to-agent.html +9 -7
- package/dist/docs/guides/agent-to-agent.md +113 -0
- package/dist/docs/guides/cloud-runtime.html +9 -7
- package/dist/docs/guides/cloud-runtime.md +131 -0
- package/dist/docs/guides/convert-automation.html +9 -7
- package/dist/docs/guides/convert-automation.md +171 -0
- package/dist/docs/guides/github.html +11 -9
- package/dist/docs/guides/github.md +287 -0
- package/dist/docs/guides/human-in-the-loop.html +9 -7
- package/dist/docs/guides/human-in-the-loop.md +126 -0
- package/dist/docs/guides/mcp-oauth.html +9 -7
- package/dist/docs/guides/mcp-oauth.md +159 -0
- package/dist/docs/guides/opentelemetry.html +9 -7
- package/dist/docs/guides/opentelemetry.md +209 -0
- package/dist/docs/guides/slack.html +12 -10
- package/dist/docs/guides/slack.md +337 -0
- package/dist/docs/guides/webhooks.html +12 -11
- package/dist/docs/guides/webhooks.md +463 -0
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +9 -7
- package/dist/docs/hillclimbing.md +88 -0
- package/dist/docs/index.html +10 -8
- package/dist/docs/index.md +179 -0
- package/dist/docs/llms-full.txt +11518 -0
- package/dist/docs/llms.txt +75 -0
- package/dist/docs/quickstart.html +9 -7
- package/dist/docs/quickstart.md +364 -0
- package/dist/docs/reference/agent-config.html +9 -7
- package/dist/docs/reference/agent-config.md +256 -0
- package/dist/docs/reference/artifacts.html +9 -7
- package/dist/docs/reference/artifacts.md +112 -0
- package/dist/docs/reference/channels.html +10 -8
- package/dist/docs/reference/channels.md +255 -0
- package/dist/docs/reference/cli.html +15 -12
- package/dist/docs/reference/cli.md +957 -0
- package/dist/docs/reference/connections.html +12 -10
- package/dist/docs/reference/connections.md +268 -0
- package/dist/docs/reference/hooks.html +9 -7
- package/dist/docs/reference/hooks.md +102 -0
- package/dist/docs/reference/http-api.html +12 -10
- package/dist/docs/reference/http-api.md +267 -0
- package/dist/docs/reference/instructions.html +9 -7
- package/dist/docs/reference/instructions.md +74 -0
- package/dist/docs/reference/playground.html +9 -7
- package/dist/docs/reference/playground.md +62 -0
- package/dist/docs/reference/project-layout.html +9 -7
- package/dist/docs/reference/project-layout.md +107 -0
- package/dist/docs/reference/prompt.html +9 -7
- package/dist/docs/reference/prompt.md +42 -0
- package/dist/docs/reference/schedules.html +9 -7
- package/dist/docs/reference/schedules.md +215 -0
- package/dist/docs/reference/sessions.html +9 -7
- package/dist/docs/reference/sessions.md +170 -0
- package/dist/docs/reference/skills.html +9 -7
- package/dist/docs/reference/skills.md +83 -0
- package/dist/docs/reference/subagents.html +9 -7
- package/dist/docs/reference/subagents.md +71 -0
- package/dist/docs/reference/tools.html +10 -9
- package/dist/docs/reference/tools.md +298 -0
- package/dist/docs/scaffolding-agents.html +9 -7
- package/dist/docs/scaffolding-agents.md +130 -0
- package/dist/docs/storage.html +9 -7
- package/dist/docs/storage.md +219 -0
- package/dist/docs/templates/agentic-owners.html +9 -7
- package/dist/docs/templates/agentic-owners.md +92 -0
- package/dist/docs/templates/demo.html +9 -7
- package/dist/docs/templates/demo.md +79 -0
- package/dist/docs/templates/pr-autofixer.html +9 -7
- package/dist/docs/templates/pr-autofixer.md +131 -0
- package/dist/docs/templates/security-reviewer.html +9 -7
- package/dist/docs/templates/security-reviewer.md +84 -0
- package/dist/docs/templates/triage.html +10 -8
- package/dist/docs/templates/triage.md +98 -0
- package/dist/docs/troubleshooting.html +9 -7
- package/dist/docs/troubleshooting.md +111 -0
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +21 -3
- package/dist/internal/cursor-agent-template.d.ts +1 -1
- package/dist/internal/cursor-agent-template.d.ts.map +1 -1
- package/dist/internal/cursor-agent-template.js +1 -0
- package/dist/internal/deploy-client.d.ts +18 -0
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +25 -1
- package/dist/internal/deploy-manifest.d.ts.map +1 -1
- package/dist/internal/deploy-manifest.js +5 -1
- package/dist/internal/discovery.d.ts +5 -1
- package/dist/internal/discovery.d.ts.map +1 -1
- package/dist/internal/discovery.js +16 -0
- package/dist/internal/http-channel.d.ts +2 -2
- package/dist/internal/http-channel.d.ts.map +1 -1
- package/dist/internal/http-channel.js +11 -31
- package/dist/internal/init-project.d.ts.map +1 -1
- package/dist/internal/init-project.js +2 -0
- package/dist/internal/init-scaffold.d.ts.map +1 -1
- package/dist/internal/init-scaffold.js +1 -0
- package/dist/internal/playground/static.d.ts.map +1 -1
- package/dist/internal/playground/static.js +2 -0
- package/dist/internal/session-engine.d.ts +8 -0
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +50 -6
- package/dist/playground/assets/index-D9N7-q97.css +1 -0
- package/dist/playground/assets/{index-DxapiDj_.js → index-DDvyC2z6.js} +49 -49
- package/dist/playground/index.html +2 -2
- package/dist/types.d.ts +8 -5
- package/dist/types.d.ts.map +1 -1
- package/docs/README.md +3 -1
- package/docs/concepts.md +1 -1
- package/docs/deployment.md +9 -6
- package/docs/evals.md +1 -5
- package/docs/example-agents/codebase-wiki.md +2 -3
- package/docs/example-agents/fsd.md +1 -1
- package/docs/example-agents/index.md +2 -2
- package/docs/example-agents/knowledge-base.md +3 -3
- package/docs/example-agents/security-reviewer.md +17 -48
- package/docs/example-agents/weather-agent.md +14 -45
- package/docs/guides/github.md +7 -4
- package/docs/guides/slack.md +7 -2
- package/docs/guides/webhooks.md +12 -15
- package/docs/reference/channels.md +4 -0
- package/docs/reference/cli.md +21 -7
- package/docs/reference/connections.md +13 -32
- package/docs/reference/http-api.md +14 -9
- package/docs/reference/tools.md +1 -3
- package/docs/templates/triage.md +3 -5
- package/docs/troubleshooting.md +1 -1
- package/package.json +2 -2
- package/skills/ab/SKILL.md +3 -0
- package/skills/create-agent/SKILL.md +9 -7
- package/skills/debug/SKILL.md +3 -0
- package/skills/evals/SKILL.md +3 -0
- package/skills/framework-map/SKILL.md +9 -6
- package/skills/github/SKILL.md +3 -0
- package/skills/hillclimb/SKILL.md +3 -0
- package/skills/mcp-auth/SKILL.md +3 -0
- package/skills/otel/SKILL.md +3 -0
- package/skills/setup-slack/SKILL.md +4 -1
- package/src/channels/slack/channel-watch.ts +1 -1
- package/src/channels/slack/slack-channel.ts +1 -1
- package/src/channels/slack/types.ts +2 -4
- package/src/internal/cli-deploy.ts +27 -7
- package/src/internal/cursor-agent-template.ts +1 -0
- package/src/internal/deploy-client.ts +40 -1
- package/src/internal/deploy-manifest.ts +10 -1
- package/src/internal/discovery.ts +20 -0
- package/src/internal/http-channel.ts +14 -41
- package/src/internal/init-project.ts +2 -0
- package/src/internal/init-scaffold.ts +1 -0
- package/src/internal/playground/static.ts +2 -0
- package/src/internal/session-engine.ts +62 -14
- package/src/types.ts +8 -5
- package/templates/security-help/README.md +37 -0
- package/templates/security-help/agent/agent.ts +18 -0
- package/templates/security-help/agent/channels/github.ts +13 -0
- package/templates/security-help/agent/channels/slack.ts +89 -0
- package/templates/security-help/agent/instructions.md +20 -0
- package/templates/security-help/agent/knowledge/faq/approvals.md +5 -0
- package/templates/security-help/agent/knowledge/faq/channels.md +6 -0
- package/templates/security-help/agent/knowledge/faq/phishing.md +10 -0
- package/templates/security-help/agent/lib/pr-first-pass.ts +42 -0
- package/templates/security-help/agent/lib/repos.ts +5 -0
- package/templates/security-help/agent/skills/access-request.md +10 -0
- package/templates/security-help/agent/skills/security-first-pass.md +15 -0
- package/templates/security-help/agent/skills/security-playbooks.md +12 -0
- package/templates/security-help/agent/skills/security-pr-first-pass.md +12 -0
- package/templates/security-help/evals/evals.config.ts +5 -0
- package/templates/security-help/evals/security-help.eval.ts +53 -0
- package/templates/security-help/init.json +31 -0
- package/templates/security-help/package.json +18 -0
- package/templates/security-help/tsconfig.json +12 -0
- package/templates/triage/agent/channels/webhook.ts +2 -2
- package/dist/docs/assets/chunks/@localSearchIndexroot.FV0R6kOb.js +0 -1
- package/dist/docs/assets/chunks/theme.Dx7j_-0n.js +0 -2
- package/dist/docs/assets/example-agents_index.md.xmJ87d_3.js +0 -2
- package/dist/docs/assets/example-agents_weather-agent.md.DC3lINjo.lean.js +0 -1
- package/dist/docs/assets/index.md.DhRHS_-L.js +0 -5
- package/dist/docs/assets/troubleshooting.md.KgmmaCgw.js +0 -1
- package/dist/playground/assets/index-BpVS-paP.css +0 -1
package/dist/docs/ab.md
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
# Live A/B metrics
|
|
2
|
+
|
|
3
|
+
Use `defineAB` to compare variants on live agent sessions. New sessions
|
|
4
|
+
receive a sticky assignment in each enrolled experiment. The Agent SDK folds
|
|
5
|
+
their durable event streams into tool, token, failure, and wall-time
|
|
6
|
+
metrics. You can send cumulative samples to your metrics backend and
|
|
7
|
+
inspect aggregates in the playground.
|
|
8
|
+
|
|
9
|
+
`defineAB` compares live variants through sticky assignment,
|
|
10
|
+
instruction overlays, optional tool branches, and cumulative metrics.
|
|
11
|
+
Metric callbacks observe the result without approving, rejecting, or
|
|
12
|
+
failing a turn. Use [evals](/docs/evals.md) for pass/fail regression checks
|
|
13
|
+
on fixed inputs.
|
|
14
|
+
|
|
15
|
+
> [!NOTE]
|
|
16
|
+
> Import paths here use `@cursor/july/ab`. On projects still
|
|
17
|
+
> using `@anysphere/agent-serve`, swap the import. See
|
|
18
|
+
> [Run the CLI](/docs/index.md#run-the-cli) for the full rename table.
|
|
19
|
+
|
|
20
|
+
## Choose live A/B metrics or evals
|
|
21
|
+
|
|
22
|
+
Both features read the session event stream, but they answer different
|
|
23
|
+
questions.
|
|
24
|
+
|
|
25
|
+
| | Live A/B metrics | Evals |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| Question | How do variants compare on live sessions? | Does the agent still meet a fixed contract? |
|
|
28
|
+
| Location | `agent/ab.ts` or `agent/ab/<name>.ts` | `evals/**/*.eval.ts` |
|
|
29
|
+
| Input | Dev or production traffic | Frozen prompts and fixtures |
|
|
30
|
+
| Output | Cumulative metrics by session and arm | Pass/fail assertions |
|
|
31
|
+
| How it runs | Automatically on new live sessions | `agent-sdk eval` |
|
|
32
|
+
|
|
33
|
+
There is no `agent-sdk ab` command or assertion API.
|
|
34
|
+
|
|
35
|
+
## Define an experiment
|
|
36
|
+
|
|
37
|
+
Author one experiment in `agent/ab.ts`, add more under
|
|
38
|
+
`agent/ab/<name>.ts`, or use both forms. Each file defines one
|
|
39
|
+
experiment. The experiment name comes from `name` when set. Otherwise,
|
|
40
|
+
The Agent SDK uses `ab` for `agent/ab.ts` and the file stem for files under
|
|
41
|
+
`agent/ab/`.
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
// agent/ab/concise-weather.ts
|
|
45
|
+
import {
|
|
46
|
+
defineAB,
|
|
47
|
+
splitBySessionHash,
|
|
48
|
+
} from "@cursor/july/ab";
|
|
49
|
+
|
|
50
|
+
export default defineAB({
|
|
51
|
+
name: "concise-weather",
|
|
52
|
+
variants: {
|
|
53
|
+
control: {
|
|
54
|
+
label: "Baseline",
|
|
55
|
+
},
|
|
56
|
+
treatment: {
|
|
57
|
+
label: "Short replies",
|
|
58
|
+
description: "Adds a one-paragraph response limit.",
|
|
59
|
+
instructions: "Keep weather replies to one short paragraph.",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
split: splitBySessionHash({
|
|
63
|
+
weights: { control: 1, treatment: 1 },
|
|
64
|
+
holdout: 0.1,
|
|
65
|
+
}),
|
|
66
|
+
derive: {
|
|
67
|
+
weatherCalls: (event) =>
|
|
68
|
+
event.type === "action.result" &&
|
|
69
|
+
event.data.toolName === "get_weather"
|
|
70
|
+
? 1
|
|
71
|
+
: null,
|
|
72
|
+
},
|
|
73
|
+
onSample(sample) {
|
|
74
|
+
console.log(
|
|
75
|
+
sample.experiment,
|
|
76
|
+
sample.variant,
|
|
77
|
+
sample.metrics.toolCalls,
|
|
78
|
+
sample.metrics.wallTimeMs
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Every definition needs:
|
|
85
|
+
|
|
86
|
+
- At least two variants. Variant keys cannot be empty or contain `/` or
|
|
87
|
+
`\`.
|
|
88
|
+
- A `split` function that returns a variant key or `null`.
|
|
89
|
+
- An `onSample` callback for completed or failed turns.
|
|
90
|
+
|
|
91
|
+
`label` and `description` appear with the arm in result surfaces.
|
|
92
|
+
`instructions` changes the prompt for sessions in that arm. `derive`
|
|
93
|
+
adds custom counters.
|
|
94
|
+
|
|
95
|
+
Duplicate experiment names are validation errors. Check discovery
|
|
96
|
+
before you serve:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
agent-sdk validate --dir .
|
|
100
|
+
agent-sdk info --dir . --json
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The `abs` field in `info` lists the discovered experiment names.
|
|
104
|
+
|
|
105
|
+
## Assign sticky variants
|
|
106
|
+
|
|
107
|
+
Enrollment happens once, when a live session is created and before its
|
|
108
|
+
first turn:
|
|
109
|
+
|
|
110
|
+
1. The Agent SDK records `session.started`.
|
|
111
|
+
2. Each experiment runs its `split` function.
|
|
112
|
+
3. The Agent SDK records one durable `ab.assigned` event per experiment.
|
|
113
|
+
4. The selected arms become available on `session.abs`.
|
|
114
|
+
5. Variant instruction overlays reach the first model turn.
|
|
115
|
+
|
|
116
|
+
A split can return a variant key or `null`. A null assignment is a
|
|
117
|
+
sticky skip for that experiment. It increments the experiment's
|
|
118
|
+
`skipped` total, still appears in the snapshot's `sessions` list with
|
|
119
|
+
`variant: null`, and does not collect arm metrics or call `onSample`.
|
|
120
|
+
|
|
121
|
+
Use the split helper that matches your rollout:
|
|
122
|
+
|
|
123
|
+
| Helper | Behavior |
|
|
124
|
+
| --- | --- |
|
|
125
|
+
| `splitBySessionHash({ weights?, holdout?, salt? })` | Hashes the session id into a reproducible arm; the recommended default |
|
|
126
|
+
| `splitByRandom({ weights?, holdout? })` | Draws once when the session starts, then persists the result |
|
|
127
|
+
| `splitAlways("control")` | Pins every new session to one arm |
|
|
128
|
+
| `splitNone()` | Skips every new session without deleting the experiment |
|
|
129
|
+
| `splitIf(predicate, inner)` | Runs `inner` only when the predicate passes |
|
|
130
|
+
| Custom `split(ctx)` | Returns a declared variant key or `null` |
|
|
131
|
+
|
|
132
|
+
The split context includes the agent name, channel id, session info,
|
|
133
|
+
experiment name, and declared variant keys. For example, enroll only
|
|
134
|
+
Slack sessions:
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
split: splitIf(
|
|
138
|
+
(ctx) => ctx.channel.id === "slack",
|
|
139
|
+
splitBySessionHash()
|
|
140
|
+
),
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Weights default to equal. Non-positive weights leave an arm out of the
|
|
144
|
+
draw, and at least one arm must have a positive weight. `holdout` is the
|
|
145
|
+
fraction of sessions assigned `null`, from `0` through `1`. Change
|
|
146
|
+
`salt` to reshuffle future hash assignments without renaming the
|
|
147
|
+
experiment.
|
|
148
|
+
|
|
149
|
+
If a custom split throws or returns an unknown variant, the Agent SDK logs
|
|
150
|
+
the error and records `variant: null`. The failed decision becomes a
|
|
151
|
+
sticky skip instead of breaking the session.
|
|
152
|
+
|
|
153
|
+
Enrollment only applies to new sessions. Adding an experiment does not
|
|
154
|
+
assign existing conversations. Follow-ups keep the session's original
|
|
155
|
+
arms. Keep experiment names and variant keys stable while you collect
|
|
156
|
+
and compare results.
|
|
157
|
+
|
|
158
|
+
## Change behavior by variant
|
|
159
|
+
|
|
160
|
+
Variant instructions are appended to the agent's base instructions.
|
|
161
|
+
Local sessions receive the merged instructions in `AGENTS.md` before
|
|
162
|
+
every turn. Cloud sessions receive them in the first-turn preamble
|
|
163
|
+
only. For cloud follow-ups, branch through `session.abs` when the arm
|
|
164
|
+
must remain visible to deterministic behavior.
|
|
165
|
+
|
|
166
|
+
Tools can branch on the assignment through `ctx.session.abs`. Hooks can
|
|
167
|
+
read the same field for logging or export:
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
const treatment =
|
|
171
|
+
ctx.session.abs?.["concise-weather"] === "treatment";
|
|
172
|
+
|
|
173
|
+
if (treatment) {
|
|
174
|
+
return conciseWeatherResult;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return baselineWeatherResult;
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
This makes the assignment available to deterministic code as well as
|
|
181
|
+
the model prompt. Use both patterns together when one experiment must
|
|
182
|
+
steer the prompt and host code at once.
|
|
183
|
+
|
|
184
|
+
`defineAB` does not select a different model or runtime for each arm.
|
|
185
|
+
Keep those settings in `agent/agent.ts`, or write explicit host logic
|
|
186
|
+
when your experiment needs another behavior lever.
|
|
187
|
+
|
|
188
|
+
The split and selected arm can affect agent behavior. `derive` and
|
|
189
|
+
`onSample` only observe the resulting event stream. Errors in either
|
|
190
|
+
callback are logged and never fail the turn.
|
|
191
|
+
|
|
192
|
+
## Collect built-in and custom metrics
|
|
193
|
+
|
|
194
|
+
Metrics accumulate for each session and experiment. When one session
|
|
195
|
+
joins several experiments, every enrolled experiment folds the same
|
|
196
|
+
turn and tool events into its own counters.
|
|
197
|
+
|
|
198
|
+
| Metric | How the Agent SDK calculates it |
|
|
199
|
+
| --- | --- |
|
|
200
|
+
| `turns` | Adds one on `turn.completed` or `turn.failed` |
|
|
201
|
+
| `turnFailures` | Adds one on `turn.failed` |
|
|
202
|
+
| `toolCalls` | Adds one for each `action.result` |
|
|
203
|
+
| `toolErrors` | Adds one when `action.result.data.isError` is true |
|
|
204
|
+
| `inputTokens`, `outputTokens` | Adds usage from completed turns |
|
|
205
|
+
| `cacheReadTokens`, `cacheWriteTokens` | Adds cache usage from completed turns |
|
|
206
|
+
| `costUsd` | Sums the estimated turn cost recorded on `turn.completed` (turns whose model has no known rates contribute 0) |
|
|
207
|
+
| `wallTimeMs` | Sums the time from `turn.started` to its completed or failed event |
|
|
208
|
+
| `custom` | Sums finite numeric deltas returned by `derive` |
|
|
209
|
+
|
|
210
|
+
`onSample` fires after every `turn.completed` and `turn.failed` event
|
|
211
|
+
for an enrolled arm. The sample contains:
|
|
212
|
+
|
|
213
|
+
| Field | Value |
|
|
214
|
+
| --- | --- |
|
|
215
|
+
| `experiment` | Experiment name |
|
|
216
|
+
| `variant`, `variantLabel?` | Sticky arm and optional display label |
|
|
217
|
+
| `sessionId`, `channelId` | Source session |
|
|
218
|
+
| `metrics` | Cumulative metrics through this turn |
|
|
219
|
+
| `reason` | `turn.completed` or `turn.failed` |
|
|
220
|
+
| `at` | Terminal event timestamp |
|
|
221
|
+
|
|
222
|
+
The metrics are cumulative, not per-turn deltas. A second sample from
|
|
223
|
+
the same session includes the first turn's counts.
|
|
224
|
+
|
|
225
|
+
Each `derive` extractor runs on every session event for its enrolled
|
|
226
|
+
experiment, including streamed `message.appended` events. Keep it
|
|
227
|
+
synchronous and cheap. Return a finite number to add a delta, or
|
|
228
|
+
`null` to skip the event. Send samples to your metrics service from
|
|
229
|
+
`onSample`; do not perform network or disk work in `derive`.
|
|
230
|
+
|
|
231
|
+
Skipped sessions never call `onSample`. Errors from `derive` or
|
|
232
|
+
`onSample` are logged, then metric collection continues.
|
|
233
|
+
|
|
234
|
+
## Inspect assignments and results
|
|
235
|
+
|
|
236
|
+
Open the playground's **A/Bs** tab to see aggregate arm totals and
|
|
237
|
+
per-session assignments. The tab reads `GET /v1/abs`.
|
|
238
|
+
|
|
239
|
+
The response has two views of the same durable data:
|
|
240
|
+
|
|
241
|
+
| Field | Contents |
|
|
242
|
+
| --- | --- |
|
|
243
|
+
| `experiments` | Declared variants, skipped-session count, arm session counts, and aggregate metrics |
|
|
244
|
+
| `sessions` | Visible sessions with their assignments and cumulative metrics |
|
|
245
|
+
|
|
246
|
+
`GET /v1/abs` returns sessions visible to the current principal by
|
|
247
|
+
default. In `--dev`, loopback requests include every session. Add
|
|
248
|
+
`--allow-anonymous` to include every session from non-loopback callers
|
|
249
|
+
too. This include-all behavior can still apply to `GET /v1/abs` in dev
|
|
250
|
+
when bearer or custom auth keeps `GET /v1/sessions` owner-scoped.
|
|
251
|
+
|
|
252
|
+
Session `events.ndjson` is the source of truth for assignment + fold.
|
|
253
|
+
`GET /v1/abs` recomputes aggregates from those logs. Any
|
|
254
|
+
`agent/storage.ts` exports samples and snapshots durably: an authored
|
|
255
|
+
`abs` table when the backend has a native shape for it, or the table
|
|
256
|
+
derived over the KV core otherwise. See
|
|
257
|
+
[Storage](/docs/storage.md#eval-and-a-b-tables).
|
|
258
|
+
|
|
259
|
+
## Configure the playground fold window
|
|
260
|
+
|
|
261
|
+
Assignments and foldable metrics already persist in each session's
|
|
262
|
+
`events.ndjson` under `--state-root`. The optional `agent/ab.config.ts`
|
|
263
|
+
only caps how many sessions the playground and `GET /v1/abs` fold:
|
|
264
|
+
|
|
265
|
+
```ts
|
|
266
|
+
import { defineABConfig } from "@cursor/july/ab";
|
|
267
|
+
|
|
268
|
+
export default defineABConfig({
|
|
269
|
+
// Optional — defaults to 200. Only affects GET /v1/abs / A/Bs tab.
|
|
270
|
+
maxPlaygroundSessions: 500,
|
|
271
|
+
});
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
`maxPlaygroundSessions` keeps the newest sessions in the fold. It does
|
|
275
|
+
not prune session logs or change assignment. For export to S3, a DB, or
|
|
276
|
+
your metrics vendor, send samples from `onSample` or declare a storage
|
|
277
|
+
`abs` table.
|
|
278
|
+
|
|
279
|
+
## Keep assignments durable
|
|
280
|
+
|
|
281
|
+
The append-only `events.ndjson` stream is the source of truth. Each
|
|
282
|
+
`ab.assigned` event persists a variant key or null skip. Built-in
|
|
283
|
+
metrics come from the turn and tool events that follow it.
|
|
284
|
+
|
|
285
|
+
After a server restart or a parked session resumes, the live collector
|
|
286
|
+
replays the stream to rebuild cumulative counters. Replay does not call
|
|
287
|
+
`onSample` (or write to the storage `abs` table) for historical turns.
|
|
288
|
+
Only a new completed or failed turn emits another sample.
|
|
289
|
+
|
|
290
|
+
The snapshot API also replays `derive` across the full stream, so
|
|
291
|
+
custom totals match the current extractor. Changing a derive function
|
|
292
|
+
can change historical snapshot totals. Treat metric definitions as
|
|
293
|
+
versioned experiment code.
|
|
294
|
+
|
|
295
|
+
## Keep eval traffic separate
|
|
296
|
+
|
|
297
|
+
Sessions created by `agent-sdk eval` and the playground Evals runner use
|
|
298
|
+
`purpose: "eval"`. They skip A/B enrollment entirely:
|
|
299
|
+
|
|
300
|
+
- No split function runs.
|
|
301
|
+
- No `ab.assigned` event is recorded.
|
|
302
|
+
- No `onSample` callback fires.
|
|
303
|
+
- The session is omitted from `GET /v1/abs`.
|
|
304
|
+
|
|
305
|
+
Ordinary chat, `agent-sdk run`, Slack, GitHub, and other channel sessions
|
|
306
|
+
use the live purpose. You do not need `splitIf` to exclude eval traffic.
|
|
307
|
+
|
|
308
|
+
## Know the boundaries
|
|
309
|
+
|
|
310
|
+
`defineAB` provides sticky assignment, variant instructions,
|
|
311
|
+
`session.abs` for tools, cumulative metrics, and local inspection. It
|
|
312
|
+
does not provide:
|
|
313
|
+
|
|
314
|
+
- A test command, assertion API, or pass/fail result
|
|
315
|
+
- Statistical significance calculations
|
|
316
|
+
- An experiment rollout or lifecycle service
|
|
317
|
+
- Per-variant model or runtime configuration
|
|
318
|
+
- A built-in analytics warehouse (bring your own via `onSample` or the
|
|
319
|
+
storage `abs` table)
|
|
320
|
+
|
|
321
|
+
Use [evals](/docs/evals.md) to protect known behavior. Use `onSample` or a
|
|
322
|
+
storage `abs` table when you need sample/snapshot exports beyond the
|
|
323
|
+
session event log.
|
|
324
|
+
|
|
325
|
+
## What's next
|
|
326
|
+
|
|
327
|
+
Continue with these pages:
|
|
328
|
+
|
|
329
|
+
- [Evals](/docs/evals.md): pass/fail regression checks on fixed inputs
|
|
330
|
+
- [Hillclimbing](/docs/hillclimbing.md): improve an agent against fixed
|
|
331
|
+
fixtures
|
|
332
|
+
- [Hooks](/docs/reference/hooks.md): other event-stream consumers
|
|
333
|
+
- [Sessions and streaming](/docs/reference/sessions.md): the
|
|
334
|
+
`ab.assigned` event and durable log
|
|
335
|
+
- [Playground](/docs/reference/playground.md): the A/Bs tab
|
|
336
|
+
- [HTTP API](/docs/reference/http-api.md): `GET /v1/abs`
|
|
337
|
+
- [Live A/B metrics skill](https://github.com/cursor/cursor/blob/main/packages/agent-serve/skills/ab/SKILL.md): have a coding agent
|
|
338
|
+
wire an experiment
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as s,c as t,o as a,ag as i}from"./chunks/framework.
|
|
1
|
+
import{_ as s,c as t,o as a,ag as i}from"./chunks/framework.BCISBCiQ.js";const k=JSON.parse('{"title":"Live A/B metrics","description":"Assign sticky variants with defineAB, collect live performance metrics, and inspect per-arm results.","frontmatter":{"title":"Live A/B metrics","description":"Assign sticky variants with defineAB, collect live performance metrics, and inspect per-arm results."},"headers":[],"relativePath":"ab.md","filePath":"ab.md"}'),n={name:"ab.md"};function o(l,e,r,d,h,p){return a(),t("div",null,[...e[0]||(e[0]=[i(`<h1 id="live-a-b-metrics" tabindex="-1">Live A/B metrics <a class="header-anchor" href="#live-a-b-metrics" aria-label="Permalink to "Live A/B metrics""></a></h1><p>Use <code>defineAB</code> to compare variants on live agent sessions. New sessions receive a sticky assignment in each enrolled experiment. The Agent SDK folds their durable event streams into tool, token, failure, and wall-time metrics. You can send cumulative samples to your metrics backend and inspect aggregates in the playground.</p><p><code>defineAB</code> compares live variants through sticky assignment, instruction overlays, optional tool branches, and cumulative metrics. Metric callbacks observe the result without approving, rejecting, or failing a turn. Use <a href="./evals.html">evals</a> for pass/fail regression checks on fixed inputs.</p><div class="note custom-block github-alert"><p class="custom-block-title">NOTE</p><p>Import paths here use <code>@cursor/july/ab</code>. On projects still using <code>@anysphere/agent-serve</code>, swap the import. See <a href="/docs/#run-the-cli">Run the CLI</a> for the full rename table.</p></div><h2 id="choose-live-a-b-metrics-or-evals" tabindex="-1">Choose live A/B metrics or evals <a class="header-anchor" href="#choose-live-a-b-metrics-or-evals" aria-label="Permalink to "Choose live A/B metrics or evals""></a></h2><p>Both features read the session event stream, but they answer different questions.</p><table tabindex="0"><thead><tr><th></th><th>Live A/B metrics</th><th>Evals</th></tr></thead><tbody><tr><td>Question</td><td>How do variants compare on live sessions?</td><td>Does the agent still meet a fixed contract?</td></tr><tr><td>Location</td><td><code>agent/ab.ts</code> or <code>agent/ab/<name>.ts</code></td><td><code>evals/**/*.eval.ts</code></td></tr><tr><td>Input</td><td>Dev or production traffic</td><td>Frozen prompts and fixtures</td></tr><tr><td>Output</td><td>Cumulative metrics by session and arm</td><td>Pass/fail assertions</td></tr><tr><td>How it runs</td><td>Automatically on new live sessions</td><td><code>agent-sdk eval</code></td></tr></tbody></table><p>There is no <code>agent-sdk ab</code> command or assertion API.</p><h2 id="define-an-experiment" tabindex="-1">Define an experiment <a class="header-anchor" href="#define-an-experiment" aria-label="Permalink to "Define an experiment""></a></h2><p>Author one experiment in <code>agent/ab.ts</code>, add more under <code>agent/ab/<name>.ts</code>, or use both forms. Each file defines one experiment. The experiment name comes from <code>name</code> when set. Otherwise, The Agent SDK uses <code>ab</code> for <code>agent/ab.ts</code> and the file stem for files under <code>agent/ab/</code>.</p><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// agent/ab/concise-weather.ts</span></span>
|
|
2
2
|
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
3
3
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> defineAB,</span></span>
|
|
4
4
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> splitBySessionHash,</span></span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,c as t,o as a,ag as i}from"./chunks/framework.
|
|
1
|
+
import{_ as s,c as t,o as a,ag as i}from"./chunks/framework.BCISBCiQ.js";const k=JSON.parse('{"title":"Live A/B metrics","description":"Assign sticky variants with defineAB, collect live performance metrics, and inspect per-arm results.","frontmatter":{"title":"Live A/B metrics","description":"Assign sticky variants with defineAB, collect live performance metrics, and inspect per-arm results."},"headers":[],"relativePath":"ab.md","filePath":"ab.md"}'),n={name:"ab.md"};function o(l,e,r,d,h,p){return a(),t("div",null,[...e[0]||(e[0]=[i("",68)])])}const u=s(n,[["render",o]]);export{k as __pageData,u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{R as p}from"./chunks/theme.BEA8BF3c.js";import{R as s,a3 as i,a4 as u,a5 as c,a6 as l,a7 as f,a8 as d,a9 as m,aa as h,ab as g,ac as A,d as v,u as R,v as w,s as y,ad as C,ae as P,af as b,a2 as E}from"./chunks/framework.BCISBCiQ.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(p),S=v({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=R();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),P(),b(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return A(S)}function _(){let e=s;return h(a=>{let t=g(a),o=null;return t&&(e&&(t=t.replace(/\.js$/,".lean.js")),o=import(t)),s&&(e=!1),o},n.NotFound)}s&&T().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{T as createApp};
|
package/dist/docs/assets/{building-with-agents.md.PeZaZA1P.js → building-with-agents.md.DH8A_cHA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as a,c as t,o as s,ag as i}from"./chunks/framework.
|
|
1
|
+
import{_ as a,c as t,o as s,ag as i}from"./chunks/framework.BCISBCiQ.js";const k=JSON.parse('{"title":"Building agents with agents","description":"Use the built-in skills to have a coding agent create, verify, and improve your agent.","frontmatter":{"title":"Building agents with agents","description":"Use the built-in skills to have a coding agent create, verify, and improve your agent."},"headers":[],"relativePath":"building-with-agents.md","filePath":"building-with-agents.md"}'),n={name:"building-with-agents.md"};function l(h,e,r,o,d,c){return s(),t("div",null,[...e[0]||(e[0]=[i(`<h1 id="building-agents-with-agents" tabindex="-1">Building agents with agents <a class="header-anchor" href="#building-agents-with-agents" aria-label="Permalink to "Building agents with agents""></a></h1><p>Give a coding agent the goal. The built-in skills guide it through scaffolding, channels, verification, evals, and measured improvement.</p><h2 id="what-can-a-coding-agent-build-for-me" tabindex="-1">What can a coding agent build for me? <a class="header-anchor" href="#what-can-a-coding-agent-build-for-me" aria-label="Permalink to "What can a coding agent build for me?""></a></h2><p>A coding agent can take an Agent SDK project from an idea to a verified first version. It can:</p><ul><li>Create the project and choose the smallest useful surface</li><li>Add tools, skills, channels, MCP connections, and approval gates</li><li>Run a real turn and inspect its trace</li><li>Add evals for the behavior you want to keep</li><li>Improve the agent against fixed inputs</li></ul><p>This works because the project surface lives in files. The CLI also returns structured JSON and records each run as an NDJSON trace. Your coding agent can inspect what the framework discovered, run the agent, and verify the result without reading terminal prose.</p><h2 id="how-do-i-create-an-agent-with-the-built-in-skill" tabindex="-1">How do I create an agent with the built-in skill? <a class="header-anchor" href="#how-do-i-create-an-agent-with-the-built-in-skill" aria-label="Permalink to "How do I create an agent with the built-in skill?""></a></h2><p>Have the coding agent read <a href="./../skills/create-agent/SKILL.html"><code>skills/create-agent/SKILL.md</code></a> (in the monorepo: <code>packages/agent-serve/skills/create-agent/SKILL.md</code>) and follow it.</p><p>The skill asks about your agent's purpose, runtime, model, channels, MCP connections, and capabilities. It then shows you a plan, writes the project, and verifies the result.</p><p>For example:</p><blockquote><p>Use the Agent SDK create-agent skill to build a PR triage agent reachable through GitHub. It should summarize failed checks, require approval before posting a review, and include one smoke eval.</p></blockquote><p>The skill starts with a small surface: short instructions, one or two tools, the channels you chose, and a smoke eval. You can add more after the first end-to-end turn works.</p><h2 id="which-built-in-skill-should-i-use" tabindex="-1">Which built-in skill should I use? <a class="header-anchor" href="#which-built-in-skill-should-i-use" aria-label="Permalink to "Which built-in skill should I use?""></a></h2><p>The package ships task-specific guides under <a href="./../skills/"><code>skills/</code></a>:</p><table tabindex="0"><thead><tr><th>What you want to do</th><th>Skill</th></tr></thead><tbody><tr><td>Understand the project layout and runtimes</td><td><a href="./../skills/framework-map/SKILL.html"><code>framework-map</code></a></td></tr><tr><td>Create and verify a new agent</td><td><a href="./../skills/create-agent/SKILL.html"><code>create-agent</code></a></td></tr><tr><td>Write fixtures and regression checks</td><td><a href="./../skills/evals/SKILL.html"><code>evals</code></a></td></tr><tr><td>Live A/B metrics on traffic (<code>defineAB</code>)</td><td><a href="./../skills/ab/SKILL.html"><code>ab</code></a></td></tr><tr><td>Improve an agent against fixed inputs</td><td><a href="./../skills/hillclimb/SKILL.html"><code>hillclimb</code></a></td></tr><tr><td>Add GitHub webhooks and replay events</td><td><a href="./../skills/github/SKILL.html"><code>github</code></a></td></tr><tr><td>Connect an agent to Slack</td><td><a href="./../skills/setup-slack/SKILL.html"><code>setup-slack</code></a></td></tr><tr><td>Diagnose a local run</td><td><a href="./../skills/debug/SKILL.html"><code>debug</code></a></td></tr></tbody></table><p>Point your coding agent at the matching <code>SKILL.md</code>. The guide contains the workflow, commands, and common mistakes for that task.</p><div class="note custom-block github-alert"><p class="custom-block-title">NOTE</p><p>The skill bodies use the current <code>agent-serve</code> CLI names. This guide uses the upcoming <code>agent-sdk</code> names. See <a href="/docs/#run-the-cli">Run the CLI</a> for the full rename table.</p></div><h2 id="how-does-a-coding-agent-verify-its-work" tabindex="-1">How does a coding agent verify its work? <a class="header-anchor" href="#how-does-a-coding-agent-verify-its-work" aria-label="Permalink to "How does a coding agent verify its work?""></a></h2><p>The coding agent should discover the project, test each server tool, run a real turn, and finish with evals:</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent-sdk</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> validate</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --dir</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> .</span></span>
|
|
2
2
|
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent-sdk</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> info</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --dir</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> .</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --json</span></span>
|
|
3
3
|
<span class="line"></span>
|
|
4
4
|
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent-sdk</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> call</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> inspect_pr</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --dir</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> .</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \\</span></span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,c as t,o as s,ag as i}from"./chunks/framework.
|
|
1
|
+
import{_ as a,c as t,o as s,ag as i}from"./chunks/framework.BCISBCiQ.js";const k=JSON.parse('{"title":"Building agents with agents","description":"Use the built-in skills to have a coding agent create, verify, and improve your agent.","frontmatter":{"title":"Building agents with agents","description":"Use the built-in skills to have a coding agent create, verify, and improve your agent."},"headers":[],"relativePath":"building-with-agents.md","filePath":"building-with-agents.md"}'),n={name:"building-with-agents.md"};function l(h,e,r,o,d,c){return s(),t("div",null,[...e[0]||(e[0]=[i("",29)])])}const g=a(n,[["render",l]]);export{k as __pageData,g as default};
|