agentleFS
MicrosoftKnown publishermicrosoft-foundry/foundry-samples/samples/python/hosted-agents/agent-framework/responses/24-steering/AGENTS.md

foundry-samples / 24-steering

AGENTS.md21 starsChanged 3 months agoMITView on GitHub

This sample is a Microsoft Foundry hosted Agent Framework agent served through the Responses protocol. It demonstrates same-conversation steering of a regular agent while an earlier turn is active. - Direct code deployment: azure.yaml declares the Python 3.13 runtime and main.py entry point. The Dockerfile remains available for equivalent local container and live protocol validation. - azure.yaml - Foundry project and hosted-agent manifest - src/agent-framework-steering-responses/main.py - agent and host - src/agent-framework-steering-responses/pyproject.toml and uv.lock - fully resolved runtime dependencies - src/agent-framework-steering-responses/Dockerfile…

The file

We split this AGENTS.md into the rules it gives an agent

5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not commit Foundry Toolkit generated .vscode files.

    line 22
  2. Very specific:

    Follow samples/python/hosted-agents/DEPENDENCY_POLICY.md.

    line 26
  3. Very specific:

    Do not combine conversation and previous_response_id in that request.

    line 35
  4. Very specific:

    Do not claim the .NET host's queued status or serialized ordering.

    line 36
  5. Very specific:

    Use logging for hosted diagnostics.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Coding Agent Instructions - Steering

This sample is a Microsoft Foundry hosted Agent Framework agent served through the Responses protocol. It demonstrates same-conversation steering of a regular agent while an earlier turn is active.

Deployment mode

  • Direct code deployment: azure.yaml declares the Python 3.13 runtime and main.py entry point. The Dockerfile remains available for equivalent local container and live protocol validation.

Key files

  • azure.yaml - Foundry project and hosted-agent manifest
  • src/agent-framework-steering-responses/main.py - agent and host
  • src/agent-framework-steering-responses/pyproject.toml and uv.lock - fully resolved runtime dependencies
  • src/agent-framework-steering-responses/Dockerfile - Linux container
  • README.md - local, deployment, and same-conversation steering validation

Do not commit Foundry Toolkit generated .vscode files.

Dependency workflow

Follow samples/python/hosted-agents/DEPENDENCY_POLICY.md. Use uv 0.11.7, run uv lock, and validate with uv sync --frozen.

Steering invariants

  • Steering is same-conversation input admitted during active work, not crash recovery.
  • Send the steering request with the same conversation while the first response is active.
  • Do not combine conversation and previous_response_id in that request.
  • Do not claim the .NET host's queued status or serialized ordering. The current published Python beta reports the admitted response as in_progress and can execute it before the earlier turn finishes.

Runtime logging

Use logging for hosted diagnostics. Never log credentials, tokens, or isolation key values.

Development workflow

uv sync --frozen
uv run python main.py
azd ai agent run
azd deploy

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.