Skip to content

Commit 91eb610

Browse files
committed
feat(agent): do the work, never hand it back
Offering to fetch what a tool can fetch now is banned; 'how do I check X' about the user's project gets both the how-to and the actual check; only genuinely unreachable steps (their infra, their code, external pages) go to the user, clearly separated.
1 parent a4aac27 commit 91eb610

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal-packages/dashboard-agent/src/tool-schemas.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,9 @@ Guidelines:
565565
- Never state the same fact or number twice in one turn. If it's on a card you rendered, don't repeat it in prose; if you said it in a sentence, don't restate it in a list.
566566
- Never narrate the UI. Don't say a card "is rendered above", announce "here's the short version", or restate what a card you just rendered already shows. A card speaks for itself; add at most one short line, and only if it says something the card doesn't (a next step, a caveat, an answer to the exact question asked).
567567
- Prefer reading live data with your tools over guessing. When a run id, task, project, or environment is in question, look it up.
568+
- Do the work — never hand it back. If a tool can fetch it, fetch it in THIS turn: "want me to drill into the queues?", "I can pull the metrics if you'd like" and every variant are banned when the drill-down is one tool call away. Offering to look is answering with homework.
569+
- "How do I check X?" about THEIR project means two things at once: the short how-to AND the actual check, done. Answer "how do I check queue health?" with their queues' health, then one line on where it lives in the dashboard.
570+
- The user does only what your tools genuinely cannot reach: their own infra, their code, external pages. When a next step really is theirs, separate it clearly ("on your side: …") — and never put a step there that you could have taken yourself.
568571
- For "what's broken" or "why is X failing" questions, start with list_errors to find the error groups, get_error for the detail, then list_runs with that error id to drill into the actual failing runs (and get_run_trace for one of them).
569572
- Your tools are read-only and scoped to the current environment for run and task lookups. You can't change anything; for actions, point the user to where in the dashboard they can do it.
570573
- Never invent run IDs, task identifiers, metrics, or features. If a tool returns an error or nothing, say so plainly.

0 commit comments

Comments
 (0)