summaryrefslogtreecommitdiffhomepage
path: root/packages/system-prompt/src/catalog.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-24 01:23:55 +0900
committerAdam Malczewski <[email protected]>2026-06-24 01:23:55 +0900
commit3a688edee373cbbc291a149e50e1d2802e2e29a4 (patch)
tree95ce88628426cf6ba79fdf3a276b040617353034 /packages/system-prompt/src/catalog.ts
parentb9abc1f8d8815f57e7b958b871ad85db205a9257 (diff)
downloaddispatch-3a688edee373cbbc291a149e50e1d2802e2e29a4.tar.gz
dispatch-3a688edee373cbbc291a149e50e1d2802e2e29a4.zip
feat(system-prompt): add prompt:workspace_id variable
Lets the AI know which workspace it's in — especially useful when summoning agents. Wired through the construct context in both the regular turn flow and the compaction flow.
Diffstat (limited to 'packages/system-prompt/src/catalog.ts')
-rw-r--r--packages/system-prompt/src/catalog.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/system-prompt/src/catalog.ts b/packages/system-prompt/src/catalog.ts
index cfa3bb1..1c825ab 100644
--- a/packages/system-prompt/src/catalog.ts
+++ b/packages/system-prompt/src/catalog.ts
@@ -16,6 +16,7 @@ export function getVariableCatalog(): SystemPromptVariable[] {
{ type: "prompt", name: "cwd", description: "Conversation working directory" },
{ type: "prompt", name: "model", description: "Current model name" },
{ type: "prompt", name: "conversation_id", description: "Conversation identifier" },
+ { type: "prompt", name: "workspace_id", description: "Workspace identifier" },
{ type: "git", name: "branch", description: "Current git branch" },
{ type: "git", name: "status", description: "Short git status" },
{