Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2f5becb
feat(helm): ship a default Harness and a k8s Agent with the kagent-to…
danielle-mustillo Nov 6, 2026
dc9b084
feat(helm): pass the built-in skills catalog to the UI
danielle-mustillo Nov 6, 2026
c9bbde0
feat(ui): read the built-in skills catalog from the runtime config
danielle-mustillo Nov 6, 2026
4c6b9fc
feat(ui): add skills to the agent template form
danielle-mustillo Nov 6, 2026
5f1ec2e
test(ui): cover skills in the agent template form against a live cont…
danielle-mustillo Nov 6, 2026
b69281c
fix(ui): show whole skill sources on the read-only agent template page
danielle-mustillo Nov 6, 2026
f7c228a
feat(helm): add platform-agent and more built-in skills
danielle-mustillo Nov 10, 2026
a7499f1
fix: tidy the skills editor and rename the built-in Harness
danielle-mustillo Nov 10, 2026
84477dd
refactor(helm): run the built-in Agents on the kagent-default Harness
danielle-mustillo Nov 11, 2026
13cc6d7
refactor(helm): simplify builtins and run platform-agent on specialis…
danielle-mustillo Nov 12, 2026
28f847f
fix(ui): show each skill as a labeled card with a red remove button
danielle-mustillo Nov 12, 2026
3b2019a
docs(helm): note that the built-in Agents need the kagent Harness and…
danielle-mustillo Nov 12, 2026
7b5ac67
fix(cli): turn off the built-in Agents in the minimal install profile
danielle-mustillo Nov 12, 2026
a686c01
fix(ui): escape control characters in env-config.js values
danielle-mustillo Nov 12, 2026
0e1b8fd
refactor(helm): ship platform-agent as the only built-in Agent
danielle-mustillo Nov 12, 2026
2cf93f9
fix(helm): turn the built-ins off in the chart and on in kagent install
danielle-mustillo Nov 12, 2026
decc80f
ci: turn the built-ins off in e2e, which runs without kagent-tools
danielle-mustillo Nov 12, 2026
56e1c32
refactor(helm): rename the builtins value to examples
danielle-mustillo Nov 16, 2026
85a2462
fix(helm): keep the example skills in step with kagent-tools
danielle-mustillo Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ jobs:
replicas: 0
kagent-tools:
enabled: false
# The example Agent needs kagent-tools, and the e2e suites do not use it.
examples:
enabled: false
substrateWorkerPool:
create: true
replicas: 4
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ helm-version: helm-cleanup
helm package -d "$(HELM_DIST_FOLDER)" "$(HELM_SOURCE_DIR)/kagent-crds"
helm package -d "$(HELM_DIST_FOLDER)" "$(HELM_SOURCE_DIR)/kagent"

.PHONY: builtin-skills-catalog
builtin-skills-catalog: ## Regenerate the built-in skills catalog from the kagent-tools image
bash scripts/builtin-skills-catalog.sh > "$(HELM_SOURCE_DIR)/kagent/files/builtin-skills.json.tmp"
mv "$(HELM_SOURCE_DIR)/kagent/files/builtin-skills.json.tmp" "$(HELM_SOURCE_DIR)/kagent/files/builtin-skills.json"

.PHONY: helm-dev
helm-dev: ## Prepare development charts with the images published by local builds
@test -d "$(RUNTIME_BUILD_METADATA_DIR)" || { echo "Missing runtime image metadata. Run make build before preparing development charts." >&2; exit 1; }
Expand Down
2 changes: 1 addition & 1 deletion go/core/cli/install_dry_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestInstallDryRunWithoutClusterOrAPIKey(t *testing.T) {
require.Contains(t, string(values), "${OPENAI_API_KEY}")
require.Contains(t, string(values), "userProvidedValue: retained")
require.Contains(t, string(values), "replicas: 2")
require.Contains(t, string(values), "k8s-agent:\n enabled: false")
require.Contains(t, string(values), "examples:\n enabled: false")
require.NotContains(t, string(values), "secret-that-must-not-be-exported")
atelet, err := os.ReadFile(filepath.Join(destination, "values", "substrate-atelet.yaml"))
require.NoError(t, err)
Expand Down
20 changes: 1 addition & 19 deletions go/core/cli/internal/profiles/minimal.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
# The minimal profile does not install any agents, and is meant as a bare minimum installation for kagent.
# This is useful for users who only want to set up kagent without any extra agents.
k8s-agent:
enabled: false
kgateway-agent:
enabled: false
istio-agent:
enabled: false
promql-agent:
enabled: false
observability-agent:
enabled: false
argo-rollouts-agent:
enabled: false
helm-agent:
enabled: false
cilium-policy-agent:
enabled: false
cilium-manager-agent:
enabled: false
cilium-debug-agent:
examples:
enabled: false
3 changes: 3 additions & 0 deletions go/core/pkg/install/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ config:
# Ready-to-reference Harnesses on the WorkerPool created below.
harnesses:
enabled: true
# The example Agent and skills, which run on those Harnesses.
examples:
enabled: true
` + fmt.Sprintf("\nsubstrateWorkerPool:\n create: true\n workerImage: %s\n", strconv.Quote(cfg.WorkerImage))
if !cfg.SkipDatabaseSetup {
kagent.Values = append(kagent.Values, "database.postgres.clientCertificate.enabled=true")
Expand Down
24 changes: 14 additions & 10 deletions go/core/pkg/install/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,26 +428,29 @@ func TestPlanEnablesGRPCReflection(t *testing.T) {

func TestPlanEnablesDefaultHarnesses(t *testing.T) {
scenarios := []struct {
name string
operator string
wantHarness string
name string
operator string
wantHarness string
wantExamples string
}{
{
name: "Given chart defaults that disable default Harnesses, when planning an install, assert that the WorkerPool and default Harnesses are enabled",
wantHarness: "true",
name: "Given chart defaults that disable default Harnesses and examples, when planning an install, assert that the WorkerPool, default Harnesses and examples are enabled",
wantHarness: "true",
wantExamples: "true",
},
{
name: "Given an operator values file that disables default Harnesses, when planning an install, assert that the operator choice wins",
operator: "harnesses: {enabled: false}\n",
wantHarness: "false",
name: "Given an operator values file that disables default Harnesses and examples, when planning an install, assert that the operator choice wins",
operator: "harnesses: {enabled: false}\nexamples: {enabled: false}\n",
wantHarness: "false",
wantExamples: "false",
},
}
for _, scenario := range scenarios {
t.Run(scenario.name, func(t *testing.T) {
cfg := localInstallConfig(t)
chart := filepath.Join(cfg.Kagent.Repository, cfg.Kagent.Name)
require.NoError(t, os.WriteFile(filepath.Join(chart, "values.yaml"), []byte("harnesses: {enabled: false}\nsubstrateWorkerPool: {create: false}\n"), 0o600))
require.NoError(t, os.WriteFile(filepath.Join(chart, "templates", "harnesses.yaml"), []byte("apiVersion: v1\nkind: ConfigMap\nmetadata: {name: harnesses}\ndata:\n harnesses: {{ .Values.harnesses.enabled | quote }}\n pool: {{ .Values.substrateWorkerPool.create | quote }}\n"), 0o600))
require.NoError(t, os.WriteFile(filepath.Join(chart, "values.yaml"), []byte("harnesses: {enabled: false}\nexamples: {enabled: false}\nsubstrateWorkerPool: {create: false}\n"), 0o600))
require.NoError(t, os.WriteFile(filepath.Join(chart, "templates", "harnesses.yaml"), []byte("apiVersion: v1\nkind: ConfigMap\nmetadata: {name: harnesses}\ndata:\n harnesses: {{ .Values.harnesses.enabled | quote }}\n pool: {{ .Values.substrateWorkerPool.create | quote }}\n examples: {{ .Values.examples.enabled | quote }}\n"), 0o600))
if scenario.operator != "" {
operator := filepath.Join(t.TempDir(), "operator.yaml")
require.NoError(t, os.WriteFile(operator, []byte(scenario.operator), 0o600))
Expand All @@ -467,6 +470,7 @@ func TestPlanEnablesDefaultHarnesses(t *testing.T) {
var rendered struct{ Data map[string]string }
require.NoError(t, yaml.Unmarshal([]byte(out), &rendered))
require.Equal(t, scenario.wantHarness, rendered.Data["harnesses"])
require.Equal(t, scenario.wantExamples, rendered.Data["examples"])
require.Equal(t, "true", rendered.Data["pool"])
})
}
Expand Down
2 changes: 1 addition & 1 deletion helm/kagent/Chart-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ annotations:
"org.opencontainers.image.source": "https://github.com/kagent-dev/kagent"
dependencies:
- name: kagent-tools
version: 0.3.0
version: 0.3.1
Comment thread
danielle-mustillo marked this conversation as resolved.
Resolved
repository: oci://ghcr.io/kagent-dev/tools/helm
condition: kagent-tools.enabled
- name: oauth2-proxy
Expand Down
36 changes: 36 additions & 0 deletions helm/kagent/files/builtin-skills.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.3.1",
"image": "ghcr.io/kagent-dev/kagent/tools@sha256:607cb0ac95c9905529ad1cfebeff3aa2fbf68aa81861ed3bbba9d71a7477d640",
"skills": [
{
"name": "argo-rollouts-progressive-delivery",
"description": "Operate Argo Rollouts canary and blue-green releases (status, promote, pause, change image) with the kagent-tools argo_* MCP tools. Use when a Rollout is progressing, paused, degraded, or needs a new image.",
"path": "opt/kagent-tools-skills/skills/argo-rollouts-progressive-delivery"
},
{
"name": "helm-release-management",
"description": "Inspect, upgrade, roll forward and uninstall Helm releases with the kagent-tools helm_* MCP tools. Use for questions about installed charts, release status, values, failed upgrades, or adding chart repositories.",
"path": "opt/kagent-tools-skills/skills/helm-release-management"
},
{
"name": "istio-traffic-debugging",
"description": "Debug Istio service-mesh traffic (503s, mTLS failures, routing not applied, sidecar or ambient/waypoint issues) using the kagent-tools istio_* MCP tools. Use when requests between mesh services fail or routing rules do not take effect.",
"path": "opt/kagent-tools-skills/skills/istio-traffic-debugging"
},
{
"name": "k8s-troubleshooting",
"description": "Diagnose unhealthy Kubernetes workloads (CrashLoopBackOff, Pending, ImagePullBackOff, OOMKilled, failing readiness, unreachable Services) using the kagent-tools k8s_* MCP tools. Use when a pod, deployment or service is not working as expected.",
"path": "opt/kagent-tools-skills/skills/k8s-troubleshooting"
},
{
"name": "kubescape-security-posture",
"description": "Review cluster security posture with Kubescape results (configuration scans, image vulnerabilities, application profiles, network neighborhoods) using the kagent-tools kubescape_* MCP tools. Use for security reviews, CVE questions, or hardening recommendations.",
"path": "opt/kagent-tools-skills/skills/kubescape-security-posture"
},
{
"name": "prometheus-observability",
"description": "Answer questions about cluster and application metrics (error rates, latency, saturation, scrape health) with the kagent-tools prometheus_* MCP tools. Use when investigating performance, alerts, or whether a target is scraped. Requires PROMETHEUS_URL to be configured.",
"path": "opt/kagent-tools-skills/skills/prometheus-observability"
}
]
}
27 changes: 27 additions & 0 deletions helm/kagent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@
{{- $images | mustToJson -}}
{{- end -}}

{{/*
The built-in skills catalog from the kagent-tools image, as JSON. Empty unless
examples.enabled and kagent-tools.enabled are both true.
*/}}
{{- define "kagent.builtinSkillsCatalog" -}}
{{- if and (dig "examples" "enabled" false .Values.AsMap) (dig "kagent-tools" "enabled" false .Values.AsMap) -}}
{{- $catalog := .Files.Get "files/builtin-skills.json" | mustFromJson -}}
{{- range .Chart.Dependencies -}}
{{- if and (eq .Name "kagent-tools") (ne .Version $catalog.version) -}}
{{- fail (printf "files/builtin-skills.json is for kagent-tools %s, but the chart depends on %s: run make builtin-skills-catalog" $catalog.version .Version) -}}
{{- end -}}
{{- end -}}
{{- $_ := unset $catalog "version" -}}
{{/* The Prometheus skill needs a tool server URL it accepts (http:// or https://). */}}
{{- $prometheusURL := dig "kagent-tools" "tools" "prometheus" "url" "" .Values.AsMap -}}
{{- if not (regexMatch "^https?://" $prometheusURL) -}}
{{- $skills := list -}}
{{- range $catalog.skills -}}
{{- if ne .name "prometheus-observability" -}}{{- $skills = append $skills . -}}{{- end -}}
{{- end -}}
{{- $_ := set $catalog "skills" $skills -}}
{{- end -}}
{{- $_ := set $catalog "image" (include "kagent.mirroredImage" (dict "root" $ "image" $catalog.image)) -}}
{{- $catalog | mustToJson -}}
{{- end -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
*/}}
Expand Down
Loading
Loading