Skip to content

feat(agents): port eval-tuned muster prompt into sre-agent systemMessage#182

Merged
teemow merged 1 commit into
mainfrom
kagent-sre-agent-muster-prompt
Jun 23, 2026
Merged

feat(agents): port eval-tuned muster prompt into sre-agent systemMessage#182
teemow merged 1 commit into
mainfrom
kagent-sre-agent-muster-prompt

Conversation

@teemow

@teemow teemow commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Ports the muster meta-tool contract that was eval-tuned for the Backstage devportal AI chat (giantswarm/backstage#1775) into the bundled sre-agent's default systemMessage.
  • The agent reaches the same muster meta-tool interface (filter_tools / describe_tool / call_tool wrapping x_kubernetes_* / x_prometheus_*) as the devportal chat, so the same guidance applies: prefer a single-call workflow_<name> (discovered via filter_tools(query=…)), the exact x_kubernetes_* argument contract (management_cluster: <mc>-mcp-kubernetes, resourceType, podName, tailLines), and the cheap-listing recipe (summary, fieldSelector: status.phase!=Running, reason=BackOff for CrashLoopBackOff).
  • Clusters that enable the agent without overriding systemMessage (e.g. glean) inherit the improved default.

Why

The devportal eval showed this contract eliminates wrong-argument retries (missing/bare management_cluster, namepodName, tailtailLines, kindresourceType) and the mid-task schema-discovery tax, and steers single-call workflow resolution where a workflow exists. The sre-agent talks to the same muster aggregator, so it benefits from the identical steer.

Test plan

  • helm template renders the sre-agent Agent CR with the new systemMessage (correct YAML block scalar / nindent).
  • values.yaml is valid YAML.
  • Confirm on glean once the chart floats forward that the agent resolves k8s/prometheus questions without wrong-arg retries.

Made with Cursor

Give the bundled sre-agent the same muster meta-tool contract that was
eval-tuned for the Backstage devportal AI chat (giantswarm/backstage#1775):
prefer a single-call workflow_<name> discovered via filter_tools(query=…),
the exact x_kubernetes_* argument contract (management_cluster:
<mc>-mcp-kubernetes, resourceType, podName, tailLines), and the cheap-listing
recipe. The agent shares muster's meta-tool interface with the devportal chat,
so the same guidance cuts wrong-arg retries and avoidable tool round trips.

Clusters that enable the agent without overriding systemMessage (e.g. glean)
inherit the improved default.

Co-authored-by: Cursor <cursoragent@cursor.com>
@teemow teemow requested a review from a team as a code owner June 23, 2026 13:32
@teemow teemow merged commit cca6b8c into main Jun 23, 2026
8 checks passed
@teemow teemow deleted the kagent-sre-agent-muster-prompt branch June 23, 2026 13:35
teemow added a commit that referenced this pull request Jun 23, 2026
#183)

PR #182 updated only the connectivity sub-chart's default systemMessage,
but the umbrella agentic-platform chart forwards its OWN values to the
connectivity HelmRelease via forwardAllValues — so in meta-package installs
(every deployed cluster, e.g. glean) the umbrella copy shadows the sub-chart
default and the prompt change never reached the agent.

Apply the identical prompt to helm/agentic-platform/values.yaml and add a
reciprocal keep-in-sync note to both files.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant