Just starting?
Begin with sample-agent.md to understand the basic structure. It’s the simplest complete example.
This page showcases complete, runnable agent examples from the examples/ directory in the repository. Each example demonstrates different ado-aw capabilities and can serve as a starting template for your own agents.
A minimal example demonstrating the basic structure of an agent file.
Key features:
repos: shorthandUse this when: You want to understand the minimal structure of an agent file or need a clean starting template.
---name: "Daily Code Review"description: "Reviews code changes and creates summary reports"on: schedule: dailyrepos: - my-org/my-repoworkspace: repo---
## Code Review Agent
Review the latest code changes in the repository and provide feedback.
### Tasks
1. Analyze recent commits2. Check for code quality issues3. Generate a summary reportDemonstrates using the Azure DevOps MCP server to interact with work items programmatically.
Key features:
Use this when: You need to build agents that query, triage, or update Azure DevOps work items.
---name: "ADO Work Item Triage"description: "Triages work items using the Azure DevOps MCP"on: schedule: daily around 9:00tools: azure-devops: toolsets: [core, work, work-items] allowed: - core_list_projects - wit_my_work_items - wit_get_work_item - wit_get_work_items_batch_by_ids - wit_update_work_item - wit_add_work_item_comment - search_workitempermissions: read: my-read-arm-connection write: my-write-arm-connectionsafe-outputs: update-work-item: status: true body: true tags: true max: 10 target: "*" comment-on-work-item: max: 10 target: "*"---
## ADO Work Item Triage Agent
You have access to the Azure DevOps MCP server. Use it to:
1. Query open work items assigned to the team2. Triage items by priority and area path3. Add comments summarizing your analysis4. Update tags to reflect triage status
### Guidelines
- Only update work items that need attention- Add the `triaged` tag to items you've reviewed- Add a comment explaining your triage decisionShows how to use the Lean 4 runtime for formal verification workflows.
Key features:
Use this when: You want to integrate formal verification, theorem proving, or mathematical proof workflows into your pipeline.
---name: "Lean Formal Verifier"description: "Analyzes code and builds formal Lean 4 proofs of critical invariants"on: schedule: weekly on friday around 17:00tools: cache-memory: trueruntimes: lean: truesafe-outputs: create-pull-request: target-branch: main create-work-item: work-item-type: Task tags: - formal-verification - lean4permissions: write: my-write-arm-connection---
## Formal Verification Agent
You are a formal verification agent. Your job is to analyze the codebase, identify critical invariants and safety properties, and build Lean 4 proofs that verify them.
### Workflow
1. **Identify invariants**: Review the source code for critical logic — data validation, state transitions, arithmetic bounds, access control checks.2. **Model in Lean**: Create `.lean` files that formalize the identified properties as Lean 4 theorems.3. **Prove correctness**: Write proofs for each theorem. Use `lake build` to verify the proofs compile.4. **Iterate on failures**: If a proof fails, analyze the error output from `lean` to understand why. Either fix the proof or report the property as unverifiable (which may indicate a bug).5. **Submit results**: Create a PR with the `.lean` proof files, or create work items for properties that could not be verified.
### Guidelines
- Start with the simplest invariants first (null checks, bounds checks, type safety).- Use `lake init` to create a new Lake project if one doesn't exist.- Check your memory for findings from previous runs to avoid re-analyzing the same code.- If a property cannot be formalized or proved, use the `create-work-item` tool to flag it for human review.examples/dogfood-failure-reporter.md
A specialized example demonstrating debug-only capabilities for internal testing.
Key features:
create-issue safe output (not available in regular agents)max: 3)Use this when: You’re building internal testing infrastructure or need to understand how debug-only safe outputs work (reference only — not for production use).
---name: "Dogfood Failure Reporter"description: "Files a GitHub issue on githubnext/ado-aw when a dogfood pipeline run fails"on: schedule: dailypermissions: read: my-read-arm-connectionado-aw-debug: create-issue: target-repo: githubnext/ado-aw title-prefix: "[pipeline-failure] " labels: - pipeline-failure - automated allowed-labels: - "agent-*" - "pipeline-failure" assignees: - jamesdevine max: 3---
## Dogfood Failure Reporter
You are a dogfood failure-reporting agent for `githubnext/ado-aw`. You runin Azure DevOps inside an AWF-isolated sandbox.
### Tasks
1. Read the pipeline run logs available under `$BUILD_SOURCESDIRECTORY` for any signs of recent failures.2. For each distinct failure, file **one** GitHub issue using the `create-issue` MCP tool with: - A concise `title` describing the failure. - A markdown `body` with reproduction steps, log excerpts, and links to relevant ADO build URLs. - `labels: ["pipeline-failure"]` (must match the `allowed-labels` allowlist configured by the operator).3. Limit yourself to **at most 3** issues per run (the `max` budget).4. If you cannot file an issue (e.g., the failure isn't reproducible), call `report-incomplete` instead — do **not** invent details.
### Important
- Do not attempt to redirect issues to a different repository — the agent has no `target_repo` parameter and the target is fixed by the operator.- The `ADO_AW_DEBUG_GITHUB_TOKEN` PAT is **not** visible to you; it is used only by Stage 3 to authenticate against GitHub.- Issues are reviewed for prompt injection by Stage 2 before they are filed, so do not include text that looks like ADO pipeline commands (`##vso[...]`) — they will be flagged and the run rejected.Just starting?
Begin with sample-agent.md to understand the basic structure. It’s the simplest complete example.
Need ADO integration?
Use azure-devops-mcp.md as a template. It shows how to configure the Azure DevOps MCP server and use work item safe outputs.
Need specialized runtimes?
Check lean-verifier.md for runtime configuration. The pattern applies to Python, Node.js, and .NET runtimes too.
Building internal tools?
Reference dogfood-failure-reporter.md carefully — it uses debug-only features not available in standard agents.
After reviewing these examples: