From 86d6cbbea9a43e0bb01390e38722866e280efeca Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 30 Nov 2026 17:03:02 +0530 Subject: [PATCH 1/3] docs(skills): link .claude/skills to .agents/skills for Claude Code and Cline Co-Authored-By: Claude Opus 5.5 --- .claude/skills | 1 + AGENTS.md | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 .claude/skills diff --git a/.claude/skills b/.claude/skills new file mode 120000 index 00000000..2b7a412b --- /dev/null +++ b/.claude/skills @@ -0,0 +1 @@ +../.agents/skills \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index e2f53b09..c9e0d6d7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -88,7 +88,7 @@ On the release track, use the names and paths in the right-hand column wherever ## Skills -The skills live in `.agents/skills/`, the shared location of the open Agent Skills format. Copilot, Cursor, Antigravity, Gemini CLI, Codex and Junie load them from there automatically. If your assistant does not list them (for example Claude Code, which reads this file through `CLAUDE.md`, or Cline), open the `SKILL.md` that fits the task before answering, and follow it. +The skills live in `.agents/skills/`, the shared location of the open Agent Skills format. Copilot, Cursor, Antigravity, Gemini CLI, Codex and Junie load them from there automatically, and Claude Code and Cline load them through the `.claude/skills` link. Whether or not your assistant lists them, open the `SKILL.md` that fits the task before answering, and follow it. | Skill | Use it to | Path | |---|---|---| diff --git a/README.md b/README.md index 89f8ae4a..ae833021 100644 --- a/README.md +++ b/README.md @@ -289,7 +289,7 @@ This repository ships instructions and skills for AI coding assistants (GitHub C | File | Purpose | |---|---| | [`AGENTS.md`](AGENTS.md) | What each component is for, how to find your installation, and the rules the assistant follows (read-only diagnosis first, never print secrets, ask before changing anything) | -| [`.agents/skills/`](.agents/skills) | Four skills: `agent-toolkit-install`, `agent-toolkit-configuration`, `agent-toolkit-components`, `agent-toolkit-troubleshoot` | +| [`.agents/skills/`](.agents/skills) | Four skills: `agent-toolkit-install`, `agent-toolkit-configuration`, `agent-toolkit-components`, `agent-toolkit-troubleshoot` (`.claude/skills` links here, for Claude Code and Cline) | | [`.github/copilot-instructions.md`](.github/copilot-instructions.md), [`CLAUDE.md`](CLAUDE.md) | Short entry points for Copilot Chat and Claude Code, which point at the files above | After `init agent-toolkit`, open `ext/enterprise.agent-toolkit/` in your editor (or start your assistant's CLI there), so the assistant loads these files. Then ask, for example, "check my Agent Toolkit install" or "connect my LangGraph agent to Redis and the sandbox". From 8882b2ea7f761c6fbed5833ce956eaedb8749837 Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 30 Nov 2026 17:03:02 +0530 Subject: [PATCH 2/3] docs(skills): fix what is still stale for Agent Sandbox SDK 1.0.10 and OpenShell 0.1.6; widen the log check Co-Authored-By: Claude Opus 5.5 --- .agents/skills/agent-toolkit-components/SKILL.md | 2 +- .../agent-toolkit-components/references/openshell.md | 8 ++++---- .../skills/agent-toolkit-components/references/sandbox.md | 2 -- .../agent-toolkit-troubleshoot/references/components.md | 4 ++-- .../agent-toolkit-troubleshoot/references/install.md | 4 ++-- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.agents/skills/agent-toolkit-components/SKILL.md b/.agents/skills/agent-toolkit-components/SKILL.md index aa3e1706..4e720c25 100644 --- a/.agents/skills/agent-toolkit-components/SKILL.md +++ b/.agents/skills/agent-toolkit-components/SKILL.md @@ -66,7 +66,7 @@ Steps marked **(changes the cluster)** in the references create or change object | LiteLLM 500 `Blocked by the content-safety guardrail: ...` | Guardrail decision (or the guard is down) | Read the reason; agent-toolkit-troubleshoot skill, GRD-1 | | `WRONGPASS invalid username-password pair` | An old password (Redis was reinstalled), or a client that sends an empty username | Use the current `REDIS_URL` | | `expected 1536 dimensions, not N` | The pre-created pgvector tables are 1536-d | Create a table with your dimension | -| Sandbox SDK `TimeoutError("Could not resolve sandbox name from claim ...")`, `SandboxWarmPoolNotFoundError`, or 403 `... in the namespace "default"` | Wrong namespace (the SDK default is `default`) or wrong warm pool name | `namespace="agent-sandbox-system"`, `warmpool="python-pool"` | +| Sandbox SDK `SandboxWarmPoolNotFoundError`, or 403 `... in the namespace "default"` | Wrong namespace (the SDK default is `default`) or wrong warm pool name | `namespace="agent-sandbox-system"`, `warmpool="python-pool"` | | Sandbox SDK 403 `cannot create resource "sandboxclaims"` | No RBAC for the pod's ServiceAccount | Role in `references/sandbox.md` | | `SandboxRequestError` with `status_code` 401 | No ServiceAccount token, an expired one, or one made with `--audience` | `extra_headers={"Authorization": f"Bearer {token}"}` with the pod's token; `references/sandbox.md` | | OpenShell `policy_denied` | The calling program is not in the provider's `binaries` | `references/openshell.md` | diff --git a/.agents/skills/agent-toolkit-components/references/openshell.md b/.agents/skills/agent-toolkit-components/references/openshell.md index d97c099e..c68791a4 100644 --- a/.agents/skills/agent-toolkit-components/references/openshell.md +++ b/.agents/skills/agent-toolkit-components/references/openshell.md @@ -17,7 +17,7 @@ Side effect: with OpenShell on and Istio present, LiteLLM accepts connections fr | Sandbox pods | Namespace `openshell-sandboxes` | | CLI installed by the installer | `~/.cache/eat/openshell-cli-v/openshell` on the installer host, for the installing user | -Access model (default): single admin, and the client certificate is the only check. The gateway Service is ClusterIP, but no NetworkPolicy guards it and `openshell-system` is not in the mesh, so any pod in the cluster can reach `openshell.openshell-system:8080`, not only a port-forward. Whoever holds the certificate is the admin: anyone who can read `openshell-client-tls` in either namespace, or get into a sandbox pod in `openshell-sandboxes` (they mount it). OIDC (`openshell_oidc_issuer`) exists but is not validated. +Access model (default): single admin, and the client certificate is the only check. The gateway Service is ClusterIP, but no NetworkPolicy guards it and `openshell-system` is not in the mesh, so any pod in the cluster can reach `openshell.openshell-system:8080`, not only a port-forward. Whoever holds the certificate is the admin: anyone who can read `openshell-client-tls` in either namespace, or get into a sandbox's supervisor pod in `openshell-sandboxes` (`os-supervisor-*`, which mounts it; on 0.0.116 the sandbox pod itself). OIDC (`openshell_oidc_issuer`) exists but is not validated. ## Connect the CLI @@ -37,7 +37,7 @@ openshell provider list # expect: genai-gateway eat-genai-gateway ## Run an agent in a sandbox **(changes the cluster)** ```bash -openshell sandbox create --name demo --provider genai-gateway --detach \ +openshell sandbox create --name demo --provider genai-gateway --detach --from python:3.12-slim \ --env OPENAI_BASE_URL=http://litellm.litellm.svc.cluster.local:4000/v1 openshell logs demo --source sandbox | grep DENIED # what the policy blocked ``` @@ -57,11 +57,11 @@ Matching uses the **resolved** path: a venv's python resolves to its base interp - Error `policy_denied` or `binary ... not allowed in policy '_provider_genai_gateway'`: inside the sandbox, find the real path (`readlink -f "$(command -v node)"`), add it to `binaries`, then re-run `./toolkit_manager.sh install openshell --only` from the Toolkit Manager root **(changes the cluster)**. The profile is updated in place. - OpenShell 0.0.116 only: a placeholder in a request **body** (not a header) fails with `credential_injection_failed`. -- The default sandbox image is the community `base:latest`, which can change binary paths. Pin an image (`--from `) for repeatable runs. +- Always pass `--from `: without it, 0.1.6 uses `nvcr.io/nvidia/base/ubuntu:24.04`, which has none of the binaries above, so nothing in it can call LiteLLM. (0.0.116 used the community `base:latest`, which can change binary paths.) ## Things to know -- `kubectl exec` into a sandbox pod bypasses every policy and reaches the mounted admin certificate. Restrict `pods/exec`, and `get`/`list` on Secrets (the certificate is there too), in `openshell-sandboxes`. +- `kubectl exec` into a supervisor pod (`os-supervisor-*`; on 0.0.116 the sandbox pod) bypasses every policy and reaches the mounted admin certificate. Restrict `pods/exec`, and `get`/`list` on Secrets (the certificate is there too), in `openshell-sandboxes`. - OpenShell 0.0.116 only: policy decisions are written inside the pod. Fluent Bit and Loki do not collect them; use `openshell logs`. - Reinstalling OpenShell issues new client certificates (old CLI configs stop working), a new LiteLLM key and a new provider. - If someone revokes the `openshell-sandboxes` key in LiteLLM while the Secret still exists, the installer does not mint a new one. Fix **(changes the cluster)**: `openshell provider delete genai-gateway`, `kubectl delete secret openshell-genai-key -n openshell-system`, then `./toolkit_manager.sh install openshell --only`. diff --git a/.agents/skills/agent-toolkit-components/references/sandbox.md b/.agents/skills/agent-toolkit-components/references/sandbox.md index 4400c764..e93ae5e9 100644 --- a/.agents/skills/agent-toolkit-components/references/sandbox.md +++ b/.agents/skills/agent-toolkit-components/references/sandbox.md @@ -17,7 +17,6 @@ The namespace is fixed. Upstream manifests and both templates hard-code `agent-s ## Three things the SDK needs 1. **`namespace="agent-sandbox-system"` on every call.** The SDK defaults to `"default"`. With the default you get one of: - - `TimeoutError("Could not resolve sandbox name from claim 'sandbox-claim-...' within 180 seconds.")` - `SandboxWarmPoolNotFoundError("SandboxWarmPool requested does not exist: ...")` - from a pod whose Role is only in `agent-sandbox-system`, an immediate 403 `cannot create resource "sandboxclaims" ... in the namespace "default"`. That is a namespace mistake, not missing RBAC. 2. **A ServiceAccount token for the router.** The router rejects a call without `Authorization: Bearer ` with HTTP 401. It only authenticates: any valid ServiceAccount token of this cluster is accepted. In a pod, use the pod's own token (`/var/run/secrets/kubernetes.io/serviceaccount/token`). From a laptop, `kubectl create token -n ` gives a one-hour token; do not add `--audience`, because the router checks the token against the API server's own audience. @@ -82,7 +81,6 @@ finally: - The kubelet rotates the token file. Read it again for each new client; a token read once at start-up expires. - The pod's ServiceAccount token must be mounted (do not set `automountServiceAccountToken: false`). The same ServiceAccount needs the Role above. - `warmpool="kata-pool"` runs the same code in a Kata microVM. A comment in `charts/agent-sandbox/kata-templates.yaml` shows `create_sandbox(template=...)`, which is wrong for SDK 1.0.10: the argument is `warmpool`. -- `commands.run()` runs the command without a shell. Wrap pipes and `&&` in `sh -c '...'`. - `SandboxClient()` with no config uses a `kubectl port-forward` tunnel. That is for laptops, not pods. - `SandboxInClusterConnectionConfig` connects straight to the sandbox pod and times out: sandbox pods accept traffic only from the router. - The Python runtime image serves `POST /execute {"command": "..."}` on port 8888 and returns `stdout`, `stderr` and `exit_code`. diff --git a/.agents/skills/agent-toolkit-troubleshoot/references/components.md b/.agents/skills/agent-toolkit-troubleshoot/references/components.md index 9284ff0d..176a5bed 100644 --- a/.agents/skills/agent-toolkit-troubleshoot/references/components.md +++ b/.agents/skills/agent-toolkit-troubleshoot/references/components.md @@ -23,8 +23,8 @@ Install output lines like `FAILED - RETRYING: ... Wait for ... (N retries left)` - **Check:** `ls -l /tmp/agent-sandbox-router-*` (an old date means a stale copy). - **Fix:** delete those files, then `install agent_sandbox --only` **(changes the cluster)**. -### SBX-4 SDK `TimeoutError("Could not resolve sandbox name from claim ... within 180 seconds.")`, `SandboxWarmPoolNotFoundError`, or 403 `... in the namespace "default"` -- **Why:** the SDK looked in the wrong namespace (its default is `"default"`), the warm pool name is wrong, or the pool has no ready pods. The 403 in `default` is a namespace mistake, not missing RBAC. (`Sandbox resolution exceeded the ready timeout.` is rarer: the claim resolved but the sandbox did not become ready in time; see SBX-1.) +### SBX-4 SDK `SandboxWarmPoolNotFoundError("SandboxWarmPool requested does not exist: ...")`, `TimeoutError("Could not resolve claim readiness from claim ... within 180 seconds.")`, or 403 `... in the namespace "default"` +- **Why:** the SDK looked in the wrong namespace (its default is `"default"`), the warm pool name is wrong, or the pool has no ready pods. The 403 in `default` is a namespace mistake, not missing RBAC. The `TimeoutError` means no sandbox became ready in time; see SBX-1. - **Check:** `kubectl get sandboxwarmpool -n agent-sandbox-system`; `kubectl get sandboxclaim -A`. - **Fix:** pass `namespace="agent-sandbox-system"` and `warmpool="python-pool"` (or `"kata-pool"`). diff --git a/.agents/skills/agent-toolkit-troubleshoot/references/install.md b/.agents/skills/agent-toolkit-troubleshoot/references/install.md index bab3ea5e..872d6112 100644 --- a/.agents/skills/agent-toolkit-troubleshoot/references/install.md +++ b/.agents/skills/agent-toolkit-troubleshoot/references/install.md @@ -9,8 +9,8 @@ The newest file in `env//logs/` is the last run: `--/logs/*.log | head -1) sed 's/\x1b\[[0-9;]*m//g' "$log" | grep -n -A4 'PLAY RECAP' | tail -20 # which pass failed -# real errors only: fatal lines not followed by "...ignoring", with the 8 lines after each -sed 's/\x1b\[[0-9;]*m//g' "$log" | awk '{l[NR]=$0} END{for(i=1;i<=NR;i++) if(l[i]~/fatal:/ && l[i+1]!~/ignoring/ && l[i+2]!~/ignoring/) {for(j=i-2;j<=i+8&&j<=NR;j++) if(j>0) print j": "l[j]; print "--"}}' | tail -60 +# real errors only: fatal lines with no "...ignoring" in the next 6 lines, with the 8 lines after each +sed 's/\x1b\[[0-9;]*m//g' "$log" | awk '{l[NR]=$0} END{for(i=1;i<=NR;i++) if(l[i]~/fatal:/) {ign=0; for(k=1;k<=6;k++) if(l[i+k]~/^\.\.\.ignoring/) ign=1; if(ign) continue; for(j=i-2;j<=i+8&&j<=NR;j++) if(j>0) print j": "l[j]; print "--"}}' | tail -60 ``` - A `fatal:` followed by `...ignoring` is harmless. Kubespray probes things on a fresh install (`etcd --version`, `calicoctl.sh get ...`). From d3c56750550d6c7a6ea41dc92d033c0659be1a67 Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 30 Nov 2026 17:03:03 +0530 Subject: [PATCH 3/3] docs(skills): open the reference files; do not open the kubeconfig Co-Authored-By: Claude Opus 5.5 --- .agents/skills/agent-toolkit-components/SKILL.md | 2 ++ .agents/skills/agent-toolkit-configuration/SKILL.md | 2 ++ .agents/skills/agent-toolkit-install/SKILL.md | 2 ++ .agents/skills/agent-toolkit-troubleshoot/SKILL.md | 2 ++ AGENTS.md | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.agents/skills/agent-toolkit-components/SKILL.md b/.agents/skills/agent-toolkit-components/SKILL.md index 4e720c25..5ef09da5 100644 --- a/.agents/skills/agent-toolkit-components/SKILL.md +++ b/.agents/skills/agent-toolkit-components/SKILL.md @@ -5,6 +5,8 @@ description: Connect agent code to the components of an installed Intel® Agent # Use the Intel® Agent Toolkit components from agent code +This file is a summary. The exact steps, commands and fixes are in the `references/` file that each table row points to: open that file before you answer. + ## 1. See what is installed ```bash diff --git a/.agents/skills/agent-toolkit-configuration/SKILL.md b/.agents/skills/agent-toolkit-configuration/SKILL.md index 611adb82..c0977eb9 100644 --- a/.agents/skills/agent-toolkit-configuration/SKILL.md +++ b/.agents/skills/agent-toolkit-configuration/SKILL.md @@ -5,6 +5,8 @@ description: Find and change Intel® Agent Toolkit settings. Use when someone as # Configure Intel® Agent Toolkit +This file is a summary. The exact steps, commands and fixes are in the `references/` file that each table row points to: open that file before you answer. + ## 1. Use the environment's files Settings live in `/env//` (see `AGENTS.md` to find `` and ``). `init` seeds these files once and never overwrites them. Do not edit `config.yaml` in this repo or `/configs/defaults/`; those only seed new environments. diff --git a/.agents/skills/agent-toolkit-install/SKILL.md b/.agents/skills/agent-toolkit-install/SKILL.md index a0fb8b83..fb71c953 100644 --- a/.agents/skills/agent-toolkit-install/SKILL.md +++ b/.agents/skills/agent-toolkit-install/SKILL.md @@ -5,6 +5,8 @@ description: Install, check, update or remove Intel® Agent Toolkit with Toolkit # Install Intel® Agent Toolkit +This file is a summary. The exact steps, commands and fixes are in the `references/` file that each table row points to: open that file before you answer. + Intel® Agent Toolkit is not installed from this repository. Toolkit Manager (`intel/toolkit-manager`) clones it into `ext/enterprise.agent-toolkit/` and installs it with the layers below it. All commands run from the Toolkit Manager root. See `AGENTS.md` to find the root, the environment and the track. Ask before running anything that changes the host or cluster. Steps that need a terminal or a sudo password are the user's to run. diff --git a/.agents/skills/agent-toolkit-troubleshoot/SKILL.md b/.agents/skills/agent-toolkit-troubleshoot/SKILL.md index 731ff241..10e1947e 100644 --- a/.agents/skills/agent-toolkit-troubleshoot/SKILL.md +++ b/.agents/skills/agent-toolkit-troubleshoot/SKILL.md @@ -5,6 +5,8 @@ description: Diagnose and fix Intel® Agent Toolkit problems. Use when someone s # Troubleshoot Intel® Agent Toolkit +This file is a summary. The exact steps, commands and fixes are in the `references/` file that each table row points to: open that file before you answer. + Diagnose read-only first. In the references, fixes that change the cluster, a host or an env file are marked **(changes the cluster)**, and fixes that lose data are marked **(deletes data)**. Show the command and get the user's OK first, and explicit confirmation for data loss. Never print secret values. ## 1. Get the facts diff --git a/AGENTS.md b/AGENTS.md index c9e0d6d7..9eb41c02 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,7 +37,7 @@ To install it: clone `intel/toolkit-manager`, run `./toolkit_manager.sh configur 1. **Toolkit Manager root.** If `../../toolkit_manager.sh` exists (`../../es_auto_installer.sh` in a checkout from before the rename), this repo sits inside a Toolkit Manager checkout, and its root is `../..`. If `./toolkit_manager.sh` exists, you are already at the root and this repo is `ext/enterprise.agent-toolkit/`. Otherwise this is a standalone clone. Ask whether the user already has a Toolkit Manager checkout and use its path as ``; if not, use the `agent-toolkit-install` skill. 2. **Environment.** Each directory under `/env/` is one environment (`local` unless `--env` was used at `init`). Ask which one if there are several. -3. **Cluster access.** `export KUBECONFIG=/env//kubeconfig.yaml`. On a bring-your-own cluster, the user's own kubeconfig is used instead. +3. **Cluster access.** `export KUBECONFIG=/env//kubeconfig.yaml`. Point `KUBECONFIG` at the file; do not open it, it holds the cluster admin credentials. On a bring-your-own cluster, the user's own kubeconfig is used instead. 4. **Settings.** Edit the files in `/env//`, never the copies in this repo or in `configs/defaults/`. The installer loads `global_config.yaml` after the `config..yaml` files, so it wins when a key is in both (only `nodes.yaml` and `-- -e` on the command line load later). 5. **Logs.** `/env//logs/--.log`. Read the newest one first.