Repository navigation
feat: ship the General Purpose Agent (default-agent) with the chart #1300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| helm/agent-platform/agents |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -263,6 +263,19 @@ The OAuth issuer, client, secret and base URL come from the block, else from `gl | |
|
|
||
| `make verify-managers` covers the wiring and the guards. | ||
|
|
||
| ### General Purpose Agent and skills | ||
|
|
||
| The General Purpose Agent is the agent the platform ships, `default-agent` in the kagent namespace. A session starts with it unless the person picks another agent. Its prompt is in [`agents/default-agent/values.yaml`](../agents/default-agent/values.yaml) and its skills are in [`skills/`](../skills). | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link to A reader clicking the prompt link on GitHub gets the symlink's one-line target text or a 404, not the values file. Link
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 2cf1089: the link now points at |
||
|
|
||
| | Value | Default | Effect | | ||
| |---|---|---| | ||
| | `components.default-agent.enabled` | `true` | Deploys the agent while kagent and muster are on. klaus-gateway's `a2a.defaultAgent` and the portal's agent roles default to it. | | ||
| | `defaultAgent.displayName` | `General Purpose Agent` | The name people see. | | ||
| | `defaultAgent.modelConfig` | `""` | The `ModelConfig` it runs on. Empty uses `default-model-config`. | | ||
| | `backstage.metaAgents.<role>` | `{}` | The agent of one portal role, as `<installation>/<namespace>/<agent>`. A role left out uses `default-agent`. | | ||
|
|
||
| Its toolset is `preset:full`: every connector the person is signed in to. A release pins the skills to the tag's commit. A branch build deploys the agent without skills. | ||
|
|
||
| ### Cluster manager | ||
|
|
||
| **[cluster-manager](https://github.com/giantswarm/cluster-manager)** is the cluster write surface. It lists clusters and node pools, creates and deletes GPU node pools, and switches model serving on a cluster. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/usr/bin/env bash | ||
| # Stamp a release's commit into the chart: every `[[ .SHA ]]` placeholder of the | ||
| # agents' values files (helm/agent-platform/agents/) becomes the full commit id | ||
| # the agent chart pins the platform's skills to (it refuses a tag). Run by the | ||
| # tag pipeline (.circleci/custom.yml, stamp-release-commit) before the chart is | ||
| # packaged; make verify-default-agent runs it on a copy. | ||
| # | ||
| # usage: hack/stamp-release-commit.sh [<commit>] [<chart dir>] | ||
| # commit 40-hex commit id; default: git rev-parse HEAD | ||
| # chart dir default: helm/agent-platform | ||
| set -euo pipefail | ||
|
|
||
| commit=${1:-$(git rev-parse HEAD)} | ||
| chart=${2:-helm/agent-platform} | ||
| placeholder='[[ .SHA ]]' | ||
|
|
||
| if ! [[ $commit =~ ^[0-9a-f]{40}$ ]]; then | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Convention: it re-implements the agent chart's pin rule (a 40-hex commit), and that copy is narrower than the chart's own, which accepts 40- or 64-hex. /Users/marian/tasks/2026-11-default-agent/wt-default-agent/CLAUDE.md: "Do not copy kagent, Substrate or chart rules into this repository." A SHA-256 repository commit would be refused here although the agent chart takes it, and the rule must be kept in sync by hand.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leaving this as is. The check isn't a copy of the agent chart's rule: it guards the script's own input, a commit from |
||
| echo "stamp-release-commit: '$commit' is not a full 40-hex commit id" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| files=$(grep -rlF "$placeholder" "$chart/agents" || true) | ||
| if [ -z "$files" ]; then | ||
| echo "stamp-release-commit: no '$placeholder' under $chart/agents: nothing to stamp" >&2 | ||
| exit 1 | ||
| fi | ||
| for f in $files; do | ||
| # The placeholder holds no regex metacharacter sed would read once escaped. | ||
| sed -i.bak "s/\[\[ \.SHA \]\]/$commit/g" "$f" && rm -f "$f.bak" | ||
| echo "stamped $commit into $f" | ||
| done | ||
| if grep -rqF "$placeholder" "$chart/agents"; then | ||
| echo "stamp-release-commit: a placeholder is left under $chart/agents" >&2 | ||
| exit 1 | ||
| fi | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The upgrade note says an existing Agent named default-agent makes the install fail, but an agent-manager agent of that name is a Flux HelmRelease in the kagent namespace whose Helm release is
default-agentstored inkagent. That is the same release name and storage namespace as the new component (releaseName default-agent, storageNamespace kagent).An installation where someone created an agent
default-agentthrough agent-manager: helm-controller finds an existing Helm releasedefault-agentin kagent that the platform HelmRelease has not observed, and treats it as unmanaged, so it upgrades it rather than refusing. The two HelmReleases then take turns upgrading the same release with different values, and the person's agent is overwritten. The note's remedy is not triggered, because nothing fails.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 2cf1089: the note now asks to rename or delete such an agent before upgrading (or to turn the component off), and says why: both releases share the Helm release name and storage namespace and would take over each other's release.