foundry-hosted-agent-validation

A procedure for rebuilding a search index from MPEP PDFs. The MPEP is the U.S. Patent and Trademark Office manual that explains patent examination procedures.

In plain words
What is it for?
Use it after updating MPEP files, detecting index corruption, getting poor search results, changing the embedding model, or adding a GPU.
Why use it?
It fixes missing or damaged search data and refreshes results after the source documents or embedding model change.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microsoft/agent-framework/foundry-hosted-agent-validation
Any agent
npx skills add microsoft/agent-framework --skill foundry-hosted-agent-validation
Clone the repo
git clone --depth 1 https://github.com/microsoft/agent-framework

Made for: Claude Code, Codex.

Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00082 $0.03452
Opus 5 $0.00041 $0.01726
Sonnet 5 $0.00016 $0.00690
Haiku 4.5 $0.00008 $0.00345

Measured 2d ago against content hash 9ef486e8b046, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

foundry-hosted-agent-validation scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST http://localhost:8088/responses -H "Content-Type: application/json" \

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

`subprocess.Popen([sys.executable, "<sample>/main.py"])` (path relative to
python/scripts/sample_validation/skills/foundry-hosted-agent-validation/SKILL.md · 317 lines

How it starts

The opening of the file, as written. The whole thing — 317 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Validating a Foundry Hosted Agent Sample

A hosted agent sample is "validated" when it passes three independent checks, plus cleanup:

  1. Local, native runtime — run the sample's own entry point (python main.py) and invoke it over HTTP.
  2. Local, via azd ai agent run — the azd local dev loop.
  3. Deployedazd deploy to Foundry, then invoke the hosted agent.

Each check must succeed for single-turn and multi-turn (session / previous_response_id) conversation. Always end with cleanup (delete the deployed agent, remove the temp azd project, restore the sample dir).

Read the sample's own README.md and the parent .../foundry-hosted-agents/README.md first — they define the run/deploy commands and any sample-specific payload. This skill captures the process and the non-obvious gotchas the READMEs don't.


Inputs you need before starting

Gather these:

  • Foundry project endpoint, e.g. https://<account>.services.ai.azure.com/api/projects/<project>.
  • Foundry project resource id (for non-interactive azd ai agent init): /subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.CognitiveServices/accounts/<account>/projects/<project>. Find it with az cognitiveservices account list + the project name.
  • A real, deployed model name in that project (e.g. gpt-4.1-mini). This is often different from the model id in agent.manifest.yaml — the actual deployment name wins.
  • An existing ACR to reuse for deployment (login server, e.g. myacr.azurecr.io). Reusing one avoids azd provision creating resources.
  • Whether a like-named agent already exists in the project (remove it first for a clean validation — see below).

Tooling / auth

  • az (logged in: az login) and azd (logged in: azd auth login).
  • azd agents extension: azd extension list should show azure.ai.agents; install with azd extension install azure.ai.agents.
  • uv for the native-Python local run. python need not be on PATHuv and azd ai agent run provision their own interpreter.
  • Docker is not required when you reuse an ACR (remoteBuild: true builds in ACR Tasks).

Read the full file on GitHub · 317 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 317 lines · 82 tokens per session scan A 9ef486e8b046

Subscribe to this mod's changes

foundry-hosted-agent-validation is a skill published in the GitHub repository microsoft/agent-framework (13,222 stars, last pushed 2d ago), licensed MIT. It adds 82 tokens to every session and 3,452 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

swarmclaw

AI agent runtime and multi-agent orchestration platform. Teaches agents how to use SwarmClaw's 6 primitive tools, persistent memory, dreaming, delegation, connectors, credentials, and the skill system. Use when an agent is running on SwarmClaw and needs to understand the platform's capabilities.

swarmclawai/swarmclaw · 67 tokens

agent-collaboration

Use this skill when coordinating multiple AI agents. Covers multi-agent patterns, handoffs, and orchestration strategies.

ApexIQ/skillsmith · 27 tokens

crewai-multi-agent

Multi-agent orchestration framework for autonomous AI collaboration. Use when building teams of specialized agents working together on complex tasks, when you need role-based agent collaboration with memory, or for production workflows requiring sequential/hierarchical execution. Built without LangChain dependencies…

davila7/claude-code-templates · 61 tokens

company-product-context

Compiles comprehensive company product context from PDF documents, web research, and industry knowledge.

lofcz/LLMTornado · 20 tokens

deep-researcher

Performs comprehensive, multi-layered research on any topic with structured analysis and synthesis of information from multiple sources.

lofcz/LLMTornado · 27 tokens

codebase-context-extractor

This skill provides a comprehensive context extraction system for large codebases. It intelligently analyzes code structure, dependencies, and relationships to extract relevant context for understanding, debugging, or modifying code.

lofcz/LLMTornado · 42 tokens