diff --git a/.agents/skills/agent-toolkit-components/SKILL.md b/.agents/skills/agent-toolkit-components/SKILL.md index 6005a8e5..1bff8c15 100644 --- a/.agents/skills/agent-toolkit-components/SKILL.md +++ b/.agents/skills/agent-toolkit-components/SKILL.md @@ -50,6 +50,8 @@ Steps marked **(changes the cluster)** in the references create or change object | OpenShell: CLI, sandboxes, allowed binaries | `references/openshell.md` | | KubeRay, Langfuse, OpenTelemetry | `references/ray-and-tracing.md` | +The Agent Sandbox Python SDK is `pip install k8s-agent-sandbox==1.0.10` (the controller's `agent_sandbox_version` without the `v`; 1.0.10 on the main track), imported as `from k8s_agent_sandbox import SandboxClient`. Use only these names, not the older upstream `agentic-sandbox-client` or `agentic_sandbox`. `namespace` and `warmpool` go to `client.create_sandbox(...)` (and `namespace` to the other sandbox calls), not to `SandboxClient()`; the example is in `references/sandbox.md` "Code". + ## Rules - One virtual key per agent, limited to its models, with a budget. Never give agent code the master key. @@ -68,8 +70,8 @@ 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 `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` | +| Sandbox SDK `SandboxWarmPoolNotFoundError`, or 403 `cannot create resource "sandboxclaims" ... in the namespace "default"` | Wrong namespace, not RBAC: the SDK default is `default` (or the warm pool name is wrong) | `namespace="agent-sandbox-system"`, `warmpool="python-pool"` | +| Sandbox SDK 403 `cannot create resource "sandboxclaims" ... in the namespace "agent-sandbox-system"` | 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/litellm.md b/.agents/skills/agent-toolkit-components/references/litellm.md index 6fa11816..31005b21 100644 --- a/.agents/skills/agent-toolkit-components/references/litellm.md +++ b/.agents/skills/agent-toolkit-components/references/litellm.md @@ -22,6 +22,8 @@ From outside, trust the gateway CA when TLS is self-signed: `env//logs/tool - **Master key**: Secret `litellm-master-key`, key `master_key`, namespace `litellm`. Admin only, for minting and managing keys. Never put it in agent code or config. - **Virtual key**: one per agent, limited to the models it needs, with a budget and an expiry. +For an agent pod to call LiteLLM, its namespace must be labelled `istio.io/dataplane-mode=ambient` and listed in `litellm_allowed_namespaces` (`namespace-onboarding.md`); otherwise its calls get a connection reset. (While OpenShell is on, LiteLLM also accepts pods outside the mesh.) + Mint a virtual key and store it as Secret `-litellm` in the agent's namespace **(changes the cluster)**. The keys go into variables and are never printed or written to a file: ```bash diff --git a/.agents/skills/agent-toolkit-components/references/memory.md b/.agents/skills/agent-toolkit-components/references/memory.md index 287a3ff7..9289cfad 100644 --- a/.agents/skills/agent-toolkit-components/references/memory.md +++ b/.agents/skills/agent-toolkit-components/references/memory.md @@ -54,12 +54,25 @@ DATABASE_URL=$(kubectl get secret pgvector-credentials -n pgvector -o jsonpath=' | Table | Purpose | Notable columns | |---|---|---| -| `agent_memory` | Long-term memory | `agent_id`, `user_id`, `session_id`, `content`, `embedding VECTOR(1536)`, `metadata JSONB` | +| `agent_memory` | Long-term memory | `agent_id`, `user_id`, `session_id`, `content`, `embedding VECTOR(1536)`, `metadata JSONB`. `agent_id` and `content` are required; `user_id` is `NOT NULL` with default `'default'`, so leave it out or set it, never pass `None` | | `agent_events` | Audit and event log | `event_type`, `payload JSONB`, `duration_ms` | | `agent_cache` | Semantic cache | `cache_key` (unique), `embedding VECTOR(1536)`, `value JSONB`, `hit_count`, `expires_at` | The embedding columns are fixed at **1536 dimensions** with HNSW cosine indexes. An embedding model with another size fails with `expected 1536 dimensions, not N`. Create your own table with the right dimension (for example `VECTOR(768)` for a 768-dimension model), or alter the column before storing data. +Store and search (psycopg 3; `embedding` and `query` are lists of floats): + +```python +import os, psycopg +vec = lambda v: "[" + ",".join(map(str, v)) + "]" # pgvector's text form; pass it with ::vector +with psycopg.connect(os.environ["DATABASE_URL"]) as conn: + conn.execute("CREATE TABLE IF NOT EXISTS my_docs (id bigserial PRIMARY KEY, content text, embedding vector(768))") + conn.execute("INSERT INTO my_docs (content, embedding) VALUES (%s, %s::vector)", ("some text", vec(embedding))) + rows = conn.execute("SELECT content FROM my_docs ORDER BY embedding <=> %s::vector LIMIT 3", (vec(query),)).fetchall() +``` + +`<=>` is cosine distance, the same as the shipped indexes. + ## Embeddings Embeddings through LiteLLM need an embedding model deployed in the inference layer. None is deployed by default. Deploy one with `./model-manager deploy ` from the Toolkit Manager root **(changes the cluster)**, then use the name that `GET /v1/models` returns. If `/v1/embeddings` then fails with HTTP 400, see LLM-3 in the agent-toolkit-troubleshoot skill (`references/inference.md`): some versions register embedding models in LiteLLM in a way that breaks this call. diff --git a/.agents/skills/agent-toolkit-components/references/sandbox.md b/.agents/skills/agent-toolkit-components/references/sandbox.md index 04421822..0f65bdcf 100644 --- a/.agents/skills/agent-toolkit-components/references/sandbox.md +++ b/.agents/skills/agent-toolkit-components/references/sandbox.md @@ -16,7 +16,7 @@ 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: +1. **`namespace="agent-sandbox-system"` on every call that takes it**, for example `create_sandbox()`, `get_sandbox()`, `list_all_sandboxes()`, `delete_sandbox()`. Not on `SandboxClient()`, which has no such argument. The SDK defaults to `"default"`. With the default you get one of: - `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. @@ -24,6 +24,8 @@ The namespace is fixed. Upstream manifests and both templates hard-code `agent-s ## RBAC for an in-cluster agent **(changes the cluster)** +The agent's namespace must also be labelled `istio.io/dataplane-mode=ambient` (`namespace-onboarding.md`), otherwise calls to the router get a connection reset. + Replace `` and ``. This covers the Kubernetes API calls the 1.0.10 SDK makes. It does not read pods. ```yaml diff --git a/.agents/skills/agent-toolkit-configuration/SKILL.md b/.agents/skills/agent-toolkit-configuration/SKILL.md index c0977eb9..fad67e2d 100644 --- a/.agents/skills/agent-toolkit-configuration/SKILL.md +++ b/.agents/skills/agent-toolkit-configuration/SKILL.md @@ -46,7 +46,7 @@ So: | Run on a 128 GB node | `llm_services_autodeploy_models: ["qwen2-5-coder-7b"]` before installing | | Turn the guardrail on or off | `guardrails_enabled` (config.agent-toolkit); see section 4, it needs more than the switch | | Turn on the semantic router | `vllm_sr_enabled: true` (config.inference) | -| Let another namespace call LiteLLM | add it to `litellm_allowed_namespaces` (config.agent-toolkit), keeping the shipped entries | +| Let another namespace call LiteLLM | first label the namespace `istio.io/dataplane-mode=ambient` (without it, calls to Redis, pgvector and the sandbox router get a connection reset, and so do calls to LiteLLM while OpenShell is off), then add it to `litellm_allowed_namespaces` (config.agent-toolkit), keeping the shipped entries. All steps: agent-toolkit-components, `references/namespace-onboarding.md` | | Keep `litellm.` API-only | `litellm_public_paths: [...]` with API paths only. Main track: the admin UI stays on `litellm-ui.` behind Keycloak. Release track: a non-empty list also unpublishes the UI (port-forward only). | | Move Redis or pgvector storage | `redis_stack_storage_class`, `pgvector_storage_class` (before the first install) | | Set the proxy | `http_proxy`, `https_proxy`, `no_proxy` (global_config) | diff --git a/.agents/skills/agent-toolkit-configuration/references/toolkit-settings.md b/.agents/skills/agent-toolkit-configuration/references/toolkit-settings.md index 4ecd1863..0dc805ea 100644 --- a/.agents/skills/agent-toolkit-configuration/references/toolkit-settings.md +++ b/.agents/skills/agent-toolkit-configuration/references/toolkit-settings.md @@ -30,7 +30,7 @@ All keys below go in `env//config.agent-toolkit.yaml` unless the table says | `kuberay_enabled` | `false` | Ray cluster for parallel work. | | `kuberay_namespace` | `ray-system` | Also appears in `litellm_allowed_namespaces`. | | `kuberay_operator_version` | `1.3.0` | KubeRay operator chart. Change together with `kuberay_ray_image`. | -| `litellm_allowed_namespaces` | gateway, litellm, agent-sandbox-system, ray-system | Namespaces whose pods may call LiteLLM in-cluster. Add your own **ambient** agent namespace. The value replaces the default list, so keep the shipped entries. Main track: the inference default also lists `model-manager` (used by model-manager Jobs started from Headlamp); add it back if you use Headlamp deploys. Applied on every run. | +| `litellm_allowed_namespaces` | gateway, litellm, agent-sandbox-system, ray-system | Namespaces whose pods may call LiteLLM in-cluster. Add your own agent namespace, and label it `istio.io/dataplane-mode=ambient` first: while OpenShell is off, an unlabelled namespace gets a connection reset even when listed. The value replaces the default list, so keep the shipped entries. Main track: the inference default also lists `model-manager` (used by model-manager Jobs started from Headlamp); add it back if you use Headlamp deploys. Applied on every run. | | `keycloak_agent_realm` | `agent-toolkit` | Realm name. Used only when Keycloak is installed. | ## Other component switches (defaults in `components.yaml`, not seeded) diff --git a/.agents/skills/agent-toolkit-install/SKILL.md b/.agents/skills/agent-toolkit-install/SKILL.md index fb71c953..c4519755 100644 --- a/.agents/skills/agent-toolkit-install/SKILL.md +++ b/.agents/skills/agent-toolkit-install/SKILL.md @@ -1,6 +1,6 @@ --- name: agent-toolkit-install -description: Install, check, update or remove Intel® Agent Toolkit with Toolkit Manager (intel/toolkit-manager, toolkit_manager.sh). Use when someone says "install the Agent Toolkit", "set up agent toolkit on my server", "is my machine big enough", "my install fails", "is my install working", "add a node", "upgrade the toolkit" or "remove it / start over". Checks host prerequisites first (memory for the default models, AMX CPU, proxy, Docker, ports, Hugging Face token, Kata needs), then walks configure, init agent-toolkit, environment settings, install, validate and client access, and explains what each teardown target deletes. +description: Install, check, update or remove Intel® Agent Toolkit with Toolkit Manager (intel/toolkit-manager, toolkit_manager.sh). Use when someone says "install the Agent Toolkit", "set up agent toolkit on my server", "is my machine big enough", "my install fails", "turn on verbose or debug output", "share the installer log", "is my install working", "add a node", "upgrade the toolkit" or "remove it / start over". Checks host prerequisites first (memory for the default models, AMX CPU, proxy, Docker, ports, Hugging Face token, Kata needs), then walks configure, init agent-toolkit, environment settings, install, validate and client access, explains what each teardown target deletes, and warns that a debug log holds secrets. --- # Install Intel® Agent Toolkit @@ -57,6 +57,7 @@ The agent-toolkit-configuration skill explains every key. - It starts with the node readiness report on every node in `nodes.yaml` (report only, capped at 5 minutes; `node_preflight_enabled: false` turns it off). The report is in `env//logs/health-report-latest.{txt,html}`. A FAIL does not stop the install, but fix it with its hint and run the install again. - It then installs infrastructure (Kubernetes, storage), platform, inference (LiteLLM, the guard model and the default model) and the toolkit. Validation runs on a fresh single node took 41-57 minutes. - Progress and errors go to `env//logs/install-agent-toolkit-.log`. +- Debug logging (`TKM_LOG_LEVEL=debug` or `trace`) writes the LiteLLM master key and `HF_TOKEN` into that log in plain text. Before running it, tell the user so. Never paste or share the whole log: quote only the error lines, and delete the log when done. In a `debug` log, leave out the `EXEC` lines (`grep -v '> EXEC '`). A `trace` log has secrets on other lines too, so quote nothing from it beyond the `fatal:` line. - If it fails, use the agent-toolkit-troubleshoot skill, fix the cause, and run the same command again. Re-running resumes. ## 6. Verify and connect diff --git a/.agents/skills/agent-toolkit-troubleshoot/SKILL.md b/.agents/skills/agent-toolkit-troubleshoot/SKILL.md index 10e1947e..5e87fec9 100644 --- a/.agents/skills/agent-toolkit-troubleshoot/SKILL.md +++ b/.agents/skills/agent-toolkit-troubleshoot/SKILL.md @@ -1,6 +1,6 @@ --- name: agent-toolkit-troubleshoot -description: Diagnose and fix Intel® Agent Toolkit problems. Use when someone says "my install fails", "teardown is stuck", "health check my toolkit", "LiteLLM returns 401", "my model never gets Ready", "my agent gets connection reset", "the sandbox returns 401" or "I cannot open the LiteLLM UI", or when anything in the stack fails or behaves unexpectedly. Covers failed installs or teardowns (toolkit_manager.sh, Kubespray, kubeadm, preflight), unhealthy components (Agent Sandbox, Kata, OpenShell, Redis, pgvector, KubeRay, Keycloak realm), LiteLLM errors (401, 403, 400 invalid model, 500 guardrail blocks, 413, timeouts), model pods Pending, OOMKilled or never Ready, mesh connection resets, and client access (DNS, proxy, self-signed CA, LiteLLM UI). Starts with the installer's validate command, a short set of read-only kubectl checks and the install log, then matches the symptom to a catalog of known failures with the exact check and fix. +description: Diagnose and fix Intel® Agent Toolkit problems. Use when someone says "my install fails", "teardown is stuck", "health check my toolkit", "LiteLLM returns 401", "my model never gets Ready", "my agent gets connection reset", "sandbox creation fails", "the sandbox returns 401 or 403" or "I cannot open the LiteLLM UI", or when anything in the stack fails or behaves unexpectedly. Covers failed installs or teardowns (toolkit_manager.sh, Kubespray, kubeadm, preflight), unhealthy components (Agent Sandbox, Kata, OpenShell, Redis, pgvector, KubeRay, Keycloak realm), LiteLLM errors (401, 403, 400 invalid model, 500 guardrail blocks, 413, timeouts), model pods Pending, OOMKilled or never Ready, mesh connection resets, and client access (DNS, proxy, self-signed CA, LiteLLM UI). Starts with the installer's validate command, a short set of read-only kubectl checks and the install log, then matches the symptom to a catalog of known failures with the exact check and fix. --- # Troubleshoot Intel® Agent Toolkit @@ -54,7 +54,11 @@ Search the references for the exact error text first, for example `grep -rn 'too | `kubeadm init` times out after about 16 minutes (release track) | No systemd-resolved on the host | INS-6 | | `https://litellm.` does not open | DNS or hosts entry, proxy, self-signed CA, or the UI URL | NET-1, LLM-7 | | HTTP 500 `Blocked by the content-safety guardrail: ...` | Usually a correct block; or the guard model is not Ready | GRD-1, GRD-2 | -| Agent gets connection reset, or the sandbox SDK fails with 401 or 403 | Namespace not in the mesh or not allowed; ServiceAccount token; RBAC | NET table, SBX-5, SBX-6 | +| Agent gets `Connection reset by peer` or `ConnectionResetError: [Errno 104]` from a toolkit service | Namespace not labelled `istio.io/dataplane-mode=ambient`, or not allowed by LiteLLM | NET table | +| Sandbox SDK 403 `cannot create resource "sandboxclaims" ... in the namespace "default"` | Wrong namespace in the code (the SDK default is `default`), not RBAC | SBX-4 | +| Sandbox SDK 403 `cannot create resource "sandboxclaims"` in `agent-sandbox-system` | No Role for the pod's ServiceAccount | SBX-5 | +| Sandbox SDK `SandboxRequestError` with `status_code` 401 | No ServiceAccount token, an expired one, or one made with `--audience` | SBX-6 | +| Embeddings request rejected with HTTP 400 (or rerank HTTP 500) through LiteLLM | The model is registered as `openai/` with no `mode` | LLM-3 | | Docker images on the node are gone | Kubespray removes Docker | INS-4 | | Multi-node: Kata fails on workers, or preflight FAILs | `ansible_connection` missing, or time not in sync | INS-21, INS-22 | diff --git a/.agents/skills/agent-toolkit-troubleshoot/references/components.md b/.agents/skills/agent-toolkit-troubleshoot/references/components.md index 2073e701..009abe89 100644 --- a/.agents/skills/agent-toolkit-troubleshoot/references/components.md +++ b/.agents/skills/agent-toolkit-troubleshoot/references/components.md @@ -29,6 +29,7 @@ Install output lines like `FAILED - RETRYING: ... Wait for ... (N retries left)` - **Fix:** pass `namespace="agent-sandbox-system"` and `warmpool="python-pool"` (or `"kata-pool"`). ### SBX-5 SDK or API `403 ... cannot create resource "sandboxclaims"` +- **First read the namespace at the end of the message.** `in the namespace "default"` is SBX-4 (wrong namespace), not RBAC: fix the code, do not add a Role. If the pod has no Role either, the next run gives this 403 in `agent-sandbox-system`, and this entry applies. - **Why:** Kubernetes RBAC. The SDK creates claims with the caller's own credentials, so an agent pod needs a Role. - **Check:** `kubectl auth can-i create sandboxclaims.extensions.agents.x-k8s.io -n agent-sandbox-system --as=system:serviceaccount::` - **Fix:** apply the Role and RoleBinding from the agent-toolkit-components skill (`references/sandbox.md`) **(changes the cluster)**. diff --git a/.agents/skills/agent-toolkit-troubleshoot/references/install.md b/.agents/skills/agent-toolkit-troubleshoot/references/install.md index 15ce93eb..96297a9d 100644 --- a/.agents/skills/agent-toolkit-troubleshoot/references/install.md +++ b/.agents/skills/agent-toolkit-troubleshoot/references/install.md @@ -16,7 +16,7 @@ sed 's/\x1b\[[0-9;]*m//g' "$log" | grep -v ' EXEC ' | awk '{l[NR]=$0} END{for(i= - A `fatal:` followed by `...ignoring` is harmless. Kubespray probes things on a fresh install (`etcd --version`, `calicoctl.sh get ...`). - `FAILED - RETRYING: ... (N retries left)` is polling. - `the output has been hidden due to the fact that 'no_log: true'` hides secret-handling tasks. Debug them from the pod side (logs, Secret present or not). Never turn `no_log` off. -- `TKM_LOG_LEVEL=debug ./toolkit_manager.sh install ...` gives verbose Ansible output (`-vvv`). That log holds secrets in plain text, even from `no_log` tasks: the `EXEC` lines of the model deploy carry the LiteLLM master key and `HF_TOKEN`. Never share a debug log, leave out its `EXEC` lines when you read it (`grep -v '> EXEC '`), and delete it when done. +- `TKM_LOG_LEVEL=debug ./toolkit_manager.sh install ...` gives verbose Ansible output (`-vvv`). That log holds secrets in plain text, even from `no_log` tasks: the `EXEC` lines of the model deploy carry the LiteLLM master key and `HF_TOKEN`. Never share a debug log, leave out its `EXEC` lines when you read it (`grep -v '> EXEC '`), and delete it when done. With `TKM_LOG_LEVEL=trace` (Ansible debug output), other lines hold secrets too, including the context lines the command above prints: read only the `fatal:` lines (`grep -n 'fatal:'`). ## Before or at the start of the install diff --git a/.agents/skills/agent-toolkit-troubleshoot/references/network.md b/.agents/skills/agent-toolkit-troubleshoot/references/network.md index 15c24419..32720bb1 100644 --- a/.agents/skills/agent-toolkit-troubleshoot/references/network.md +++ b/.agents/skills/agent-toolkit-troubleshoot/references/network.md @@ -52,5 +52,5 @@ Toolkit namespaces are in the ambient mesh with STRICT mTLS. **A policy denial i | Timeout (not reset) from code **inside an Agent Sandbox** | By design: sandbox egress is public internet only | agent-toolkit-components skill, `references/sandbox.md` | | `Connection refused` | Nothing listening: wrong port, pod restarting, or a port-forward ended | `kubectl get endpointslices -n -l kubernetes.io/service-name=`. Ports: LiteLLM 4000, router 8080, Ray client 10001, Postgres 5432, Redis 6379 | | HTTP 403 with body `RBAC: access denied` | An L7 policy. The toolkit creates none, so someone added a waypoint or an AuthorizationPolicy with HTTP rules. | `kubectl get authorizationpolicy -A -o yaml \| grep -B3 -A10 -E 'methods\|paths'`; `kubectl get gateway -A` | -| `403 ... cannot create resource "sandboxclaims"` | Kubernetes RBAC, not the mesh | `components.md` SBX-5 | +| `403 ... cannot create resource "sandboxclaims"` | Not the mesh. `... in the namespace "default"`: wrong namespace in the code. Any other namespace: Kubernetes RBAC | `components.md` SBX-4, SBX-5 | | OpenShell sandbox: `403 Forbidden` from the proxy, curl exit 56 or `000` | The OpenShell policy blocked that host | `openshell logs --source sandbox \| grep DENIED` | diff --git a/AGENTS.md b/AGENTS.md index aebd32b5..0ec1d4ce 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -65,7 +65,7 @@ On the release track, use the names and paths in the right-hand column wherever ## Rules for assistants - **Open the matching skill before answering.** This file is only the index. For any question about installing, settings, components or a failure, read the `SKILL.md` from the table below, and the reference file it points to, before you answer. -- **Never show secret values** (keys, passwords, tokens, kubeconfig contents, certificates) in chat, files or logs, even when the user asks for one. Name the Secret and key instead, or offer a virtual key or a `secretKeyRef` (agent-toolkit-components). When a command needs one, read it into a shell variable in the same command and do not echo it. A log written with `TKM_LOG_LEVEL=debug` or `trace` holds secrets in plain text; never share it. +- **Never show secret values** (keys, passwords, tokens, kubeconfig contents, certificates) in chat, files or logs, even when the user asks for one. Name the Secret and key instead, or offer a virtual key or a `secretKeyRef` (agent-toolkit-components). When a command needs one, read it into a shell variable in the same command and do not echo it. A log written with `TKM_LOG_LEVEL=debug` or `trace` holds the LiteLLM master key and `HF_TOKEN` in plain text: say so before running with it, never paste or share the whole log, and quote only the error lines. - **Diagnose read-only first**: `kubectl get`, `describe`, `logs`, `auth can-i`; `helm list` and `status`; reading files under `env/`. The agent-toolkit-troubleshoot skill lists the checks to run. - **Ask the user before changing anything**: - `install`, `teardown`, `init` (including `--upgrade`), `add-node`, `remove-node`, and `git` operations in `` or `ext/` diff --git a/README.md b/README.md index ae833021..2c095bb8 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,8 @@ After `init agent-toolkit`, open `ext/enterprise.agent-toolkit/` in your editor The files are in `ext/` only when Toolkit Manager pins a toolkit revision that contains them; check with `ls ext/enterprise.agent-toolkit/AGENTS.md`. If they are missing, open a clone of this repository's `main` branch instead, and give the assistant the path of your Toolkit Manager checkout. +Keep your assistant's permission prompts on (do not auto-approve commands). The skills tell the assistant to ask before changing anything, but in testing it sometimes tried a change first, and the permission prompt is what stopped it. + --- ## Backend Connection Reference