From bc20104a44c7b070867a7b2b84a6324d40b00d2a Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 5 Apr 2026 10:11:15 -0500 Subject: [PATCH] perf(gsd): trim promptGuidelines to 1 line to reduce per-turn token cost promptGuidelines from every registered tool are injected into the system prompt on every API call. The return shape details were redundant (the JSON response is self-describing). Keep only the sqlite3 prohibition. --- src/resources/extensions/gsd/bootstrap/query-tools.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/resources/extensions/gsd/bootstrap/query-tools.ts b/src/resources/extensions/gsd/bootstrap/query-tools.ts index 617a65ee7..1dd53749c 100644 --- a/src/resources/extensions/gsd/bootstrap/query-tools.ts +++ b/src/resources/extensions/gsd/bootstrap/query-tools.ts @@ -15,10 +15,7 @@ export function registerQueryTools(pi: ExtensionAPI): void { "Use this instead of querying .gsd/gsd.db directly via sqlite3 or better-sqlite3.", promptSnippet: "Get milestone status, slice statuses, and task counts for a given milestoneId", promptGuidelines: [ - "Use this tool — not sqlite3 or better-sqlite3 — whenever you need to inspect milestone or slice state.", - "Returns milestone metadata (title, status, created_at, completed_at) and a slices array.", - "Each slice entry includes id, status, and task counts (total, done, pending).", - "Returns an error message if the milestone does not exist or the database is unavailable.", + "Use this tool — not sqlite3 or better-sqlite3 — to inspect milestone or slice state from the DB.", ], parameters: Type.Object({ milestoneId: Type.String({ description: "Milestone ID to query (e.g. M001)" }),