Repository navigation
Add AI assistant instructions and skills for Intel® Agent Toolkit - #34
AhmedSeemalK wants to merge 5 commits into
Conversation
Signed-off-by: Ahmed Seemal <ahmed.seemal@intel.com>
Signed-off-by: Ahmed Seemal <ahmed.seemal@intel.com>
f52b17f to
b4d2d0e
Compare
There was a problem hiding this comment.
Really useful work. This is what agents need: exact error text, read-only checks first, never print secrets, ask before changing anything. I checked about 160 claims against the code and about 120 hold up. Most of the wrong ones come from three changes that landed after the branch: Agent Sandbox v1.0.10 (#36), toolkit-manager#132, and the Toolkit Manager rename (toolkit-manager#138). Please rebase, the branch is 5 commits behind main. Details are inline.
Names first, since they are everywhere (52 places). The repo is intel/toolkit-manager, the installer is toolkit_manager.sh, the env vars are TKM_ENV and TKM_LOG_LEVEL, the CA file is env//logs/toolkit-manager-ca.crt. The old names still work as wrappers, except the CA file.
My recommendation, in short:
- Each toolkit is a front door: Inference, Chatbot and Agent Toolkit. An agent asked to install Agent Toolkit comes to this repo, not to Toolkit Manager. So this repo's README, AGENTS.md and install skill must give the full route on their own: clone toolkit-manager, init agent-toolkit, install, and how to check it worked. Keep these skills here, under the Agent Toolkit name.
- Keep only that route here. The deeper Toolkit Manager details (which env file wins, tracks, teardown, logs) fit better in toolkit-manager's own AGENTS.md. The agent is working inside that checkout by then, and Inference and Chatbot Toolkit need the same details. Then a Toolkit Manager change only needs one fix. This time the rename touched 52 lines here.
- Inference and Chatbot Toolkit can follow the same pattern. This PR is a good model for them.
- Also publish the skills in intel/skills, so people can add them to their own project when they build agents. The files stay here. For that we need an evals/evals.json for each skill, and a dokimi run to show they help.
A few more, about keeping this up to date:
- Let's add a CI check for the skills. AGENTS.md asks to update the skill in the same PR, but nothing checks it. A small script that looks for every Secret, namespace, version and key named in the skills in roles/, config.yaml and components.yaml would have caught sandbox-router-auth and v0.5.0 on its own.
- .github/copilot-instructions.md repeats AGENTS.md in its own words, so they will drift. I'd make it a short pointer, like CLAUDE.md.
- If we run the intel/skills validator and the evals here in CI, the skills are always ready to import, without a cleanup each time.
Happy to talk about it if you see it differently.
Signed-off-by: Ahmed Seemal <ahmed.seemal@intel.com>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open issues
This snippet assumes the current working directory is the Toolkit Manager root (because… · New This calls out a strong security caveat (cluster-wide reachability + admin client cert mounted into… · New This definition conflicts with other guidance in this PR (e.g.,… · New The checklist says “Nothing to do”, but the whole point of the check is to detect when it is not… · New
What changed in this PR
Adds repository-native instructions and “Agent Skills” content so AI coding assistants can reliably help users install, configure, connect to, and troubleshoot Intel® Agent Toolkit (primarily when installed via Toolkit Manager).
Changes:
- Add assistant entrypoints (
AGENTS.md,CLAUDE.md,.github/copilot-instructions.md) and link them fromREADME.md. - Add four skills under
.agents/skills/covering install, configuration, components, and troubleshooting. - Provide detailed reference guides (networking, inference, component failures, known doc mismatches, etc.) to support deterministic assistant workflows.
| File | Description |
|---|---|
| README.md | Adds a “Use with an AI Assistant” section pointing to the new instruction/skills layout. |
| CLAUDE.md | Claude Code entrypoint that forwards to AGENTS.md. |
| AGENTS.md | Central assistant-facing index: repo purpose, tracks, safety rules, and skills table. |
| .github/copilot-instructions.md | Copilot Chat entrypoint pointing to AGENTS.md and the skills. |
| .agents/skills/agent-toolkit-troubleshoot/references/network.md | Network diagnostics guidance: client access and in-cluster ambient mesh behavior. |
| .agents/skills/agent-toolkit-troubleshoot/references/known-doc-errors.md | Catalog of known mismatches between docs and code, with corrected guidance. |
| .agents/skills/agent-toolkit-troubleshoot/references/install.md | Install/teardown failure catalog with log-reading workflow and fixes. |
| .agents/skills/agent-toolkit-troubleshoot/references/inference.md | LiteLLM/model/guardrail/router troubleshooting reference. |
| .agents/skills/agent-toolkit-troubleshoot/references/components.md | Component-specific failure catalog (sandbox, Kata, OpenShell, Redis, pgvector, Ray, Keycloak). |
| .agents/skills/agent-toolkit-troubleshoot/SKILL.md | Skill wrapper defining when/how to use the troubleshoot references. |
| .agents/skills/agent-toolkit-install/references/prerequisites.md | Prerequisites checklist for hosts/nodes, proxy, HF token, Kata, multi-node. |
| .agents/skills/agent-toolkit-install/references/lifecycle.md | Install/validate/teardown/update command reference and operational notes. |
| .agents/skills/agent-toolkit-install/SKILL.md | Skill wrapper defining the install flow and when to use each reference. |
| .agents/skills/agent-toolkit-configuration/references/toolkit-settings.md | Settings reference: keys, defaults, where to set them, and effect/apply notes. |
| .agents/skills/agent-toolkit-configuration/SKILL.md | Skill wrapper for configuration discovery and apply semantics. |
| .agents/skills/agent-toolkit-components/references/sandbox.md | Agent Sandbox usage guide: SDK, RBAC, tokens, limitations, and Kata notes. |
| .agents/skills/agent-toolkit-components/references/ray-and-tracing.md | Ray usage and tracing integration guidance (Langfuse + OTel). |
| .agents/skills/agent-toolkit-components/references/openshell.md | OpenShell usage guide: CLI setup, policies, binaries allowlist, and caveats. |
| .agents/skills/agent-toolkit-components/references/namespace-onboarding.md | Steps to onboard an agent namespace into ambient mesh + LiteLLM allowlist + secrets. |
| .agents/skills/agent-toolkit-components/references/memory.md | Redis/pgvector usage, connection patterns, and schema constraints. |
| .agents/skills/agent-toolkit-components/references/litellm.md | LiteLLM endpoints, key minting, model selection, client config, and error reading. |
| .agents/skills/agent-toolkit-components/SKILL.md | Skill wrapper for connecting agent code to installed components. |
Review effort: Lite
| - **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. | ||
|
|
||
| Mint a virtual key and store it as Secret `<agent>-litellm` in the agent's namespace **(changes the cluster)**. The keys go into variables and are never printed or written to a file: |
| | Sandbox pods | Namespace `openshell-sandboxes` | | ||
| | CLI installed by the installer | `~/.cache/eat/openshell-cli-v<version>/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. |
rohit28903
left a comment
There was a problem hiding this comment.
Looks good to me. I went through the second round against Toolkit Manager main and release-1.2, the inference layer and a live install (the SDK sample, track check, memory numbers, preflight and teardown changes all match). The few things still from older versions (SDK timeout message, the commands.run shell line, OpenShell 0.1.6) are fixed in #40, so I think #40 should go in before this is merged to main.
…e the skills (#40) * docs(skills): link .claude/skills to .agents/skills for Claude Code and Cline * docs(skills): fix what is still stale for Agent Sandbox SDK 1.0.10 and OpenShell 0.1.6; widen the log check * docs(skills): open the reference files; do not open the kubeconfig
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved documentation issues can expose credentials and log secrets, while track-incompatible recipes and unexported environment variables cause authentication and configuration failures.
11 open issues
The checklist says “Nothing to do”, but the whole point of the check is to detect when it is not… This definition conflicts with other guidance in this PR (e.g.,… This calls out a strong security caveat (cluster-wide reachability + admin client cert mounted into… This snippet assumes the current working directory is the Toolkit Manager root (because… Appending /ui/ duplicates the inference UI path · New Toolkit URL, key, and proxy settings are not exported · New REDIS_URL is not exported to the Python process · New Certificate files are world-readable before permissions are tightened · New Collector endpoint and service name are not exported · New Failure context can expose secrets from EXEC lines · New Release-track recipes use incompatible auth and database credentials · New
Review effort: Balanced
| | model-manager | `list`, `deploy`, `undeploy`, `--hfid` | `deploy`, `undeploy` | | ||
| | URL layout | `routing_mode: subdomain` (default) or `path` in `global_config.yaml` | Subdomains only | | ||
|
|
||
| On the release track, use the names and paths in the right-hand column wherever the skills give the main-track ones. |
… failed a live check (#55) * docs(skills): address the Copilot review on #34; Redis 8 on main - LiteLLM ui_url is already the full address (no extra /ui/) - export the variables the examples read (REDIS_URL, OPENAI_*, OTEL_*) - create the OpenShell mTLS folder private before writing the key - leave EXEC lines (secrets in debug logs) out of the log check output - litellm_public_paths: [] publishes no API route in path mode - Agent Sandbox and OpenShell recipes are main-track; release track uses its own docs - inotify row says what a low value means - main installs open-source Redis 8.10.3 (#43) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(skills): fix the commands that failed a live check - OpenShell cert loop: go-template instead of an escaped jsonpath key (bash 5.2 wrote empty files) - SandboxClient() alone gets 401 from the token-checking router: show the laptop form - OpenShell 0.1.6 watcher warning text; token_not_found_in_db for unknown keys - headlamp in the host lists; sudo for /var/lib/etcd; full ctr path for KATA-3 - the apiserver service proxy can fail (it does not on every install) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Unpublished compatibility concerns spanning CLI availability, model deployment, upgrade versions, and repository paths require human assessment.
3 open issues
8 resolved since last review
The checklist says “Nothing to do”, but the whole point of the check is to detect when it is not… This definition conflicts with other guidance in this PR (e.g.,… Failure context can expose secrets from EXEC lines Collector endpoint and service name are not exported Certificate files are world-readable before permissions are tightened REDIS_URL is not exported to the Python process Toolkit URL, key, and proxy settings are not exported Appending /ui/ duplicates the inference UI path
Review effort: Balanced


Adds checked-in guidance that AI coding assistants load automatically: GitHub Copilot, Claude Code, Cursor, Cline and Google Antigravity. With it, an assistant can help users install the toolkit, find the right setting, connect agent code to each service, and debug failures.
Merge order: merge after #33 (release-2.0.0 → main). This PR is based on
release-2.0.0so the diff shows only these files. After #33 merges, I will change the base tomain.What's included
AGENTS.mdCLAUDE.md,.github/copilot-instructions.md.agents/skills/agent-toolkit-install/.agents/skills/agent-toolkit-configuration/.agents/skills/agent-toolkit-components/.agents/skills/agent-toolkit-troubleshoot/File layout
Each skill is a
SKILL.md(when to use it and the steps) plusreferences/files that the assistant opens only when it needs the detail.The skills are kept once, in
.agents/skills/, the location of the open Agent Skills format. Copilot, Cursor, Google Antigravity, Gemini CLI, OpenAI Codex and JetBrains Junie load them from there natively. Claude Code and Cline reach them through the skills table inAGENTS.md.