BRKSP624 · Breakout
Claude Keeps Building: How coding agents in Foundry change software development
Speakers: Kevin Martin
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Kevin Martin from Anthropic shows how Claude Code running on Microsoft Foundry changes the software lifecycle once coding stops being the bottleneck and shipping becomes the constraint. He separates non-deterministic guidance (CLAUDE.md, skills, prompts) from controls enforced by the harness (hooks, deny rules, sandbox) and demonstrates them on an Azure DevOps ticket driven to a PR from a single prompt. Later parts cover long sessions with /goal, parallel worktrees and a read-only reviewer subagent, an automated PR loop in GitHub Actions with Entra sign-in and a human approval gate, and Anthropic's managed Claude Code Review with auto fix. The session closes with org controls (identity, data boundaries, managed settings via Intune, WSL2, OpenTelemetry) and advice on what to stop doing with newer models.
Best for: Engineering leads and platform or security admins planning to roll out Claude Code on Microsoft Foundry with enforced guardrails and automated PR loops.
New material starts at 18:23. Before 18:23 the session covers the framing, guardrail basics and a single-engineer demo; at 18:23 the first more novel part starts, on long sessions with /goal, parallel worktrees and a read-only reviewer subagent.
Where to skip: Skip the intro and start at 02:54 if the guidance-versus-enforcement split is new to you; the Stop hook (11:05) and protected-files layers (13:33) are the technical core. If you already know Claude Code, jump to 18:23 for long sessions, then watch 24:28–31:13 for the GitHub Actions loop and Claude Code Review, and 31:13–39:06 for org controls and the prompt-audit tips. The close from 39:06 is a recap.
Chapters (15)
- 00:00 Recap Depth 100 · Novelty 0/3
Intro: Claude Code at team scale and why shipping, not coding, is the bottleneck
Kevin Martin (Claude Code, Anthropic) frames the session around what happens when whole teams build with Claude Code. He cites Anthropic's own jump in merged pull requests and argues that deciding, reviewing and releasing now consume most of the time. He outlines the agenda (one engineer and one ticket, the team PR loop, org rules), notes that the demos run on Microsoft Foundry but mostly rely on repo files, and explains that processes such as specs-first, large PRs and manual gates were designed for slow code writing.
- 02:54 Deep dive Depth 200 · Novelty 1/3
Inner vs outer loop and guidance vs deterministic controls
Every change goes through an inner loop (engineer plus Claude: read ticket, edit, run, check) and an outer loop (code review, CI, approvals, org rules). Teams can find their bottleneck by comparing time to open versus time open for their last 20 closed PRs. Claude should decide how to do tasks, but anything irreversible (leaked key, dropped production table) needs more than a prompt. CLAUDE.md, skills and prompts are non-deterministic guidance, while command hooks, deny rules and sandboxes are enforced by the Claude Code harness outside the model; any 'never' in CLAUDE.md should move to the enforced side.
- 05:44 Deep dive Depth 200 · Novelty 1/3
Demo setup: Azure DevOps ticket, MCP and auto mode on Foundry
The running example is user story 4812, exporting order history as CSV with a button, streaming of large histories and a feature flag, using a mock company. The inner loop runs in Claude Code and Claude Desktop connected to Microsoft Foundry, with the ticket in Azure DevOps read via an Azure DevOps MCP server configured in the repo. The session uses auto mode, where a classifier checks shell commands and edits and escalates risky ones. The speaker cites an August study on how well humans versus the classifier caught a dangerous command.
- 08:02 Deep dive Depth 300 · Novelty 1/3
Failure mode 1: missing context – CLAUDE.md and skills with guarded steps
Claude skipped the App Service staging-slot deploy because that knowledge existed nowhere in the repo; a smarter model would not fix this. The speaker recommends asking Claude at session end what it had to guess, keeping CLAUDE.md under about 200 lines with only what cannot be inferred from code, and codifying the deploy as a skill. Only a skill's name and description (front matter) are loaded by default and the description drives triggering. Because a skill is still guidance, the production swap step should get an ask rule or be made human-start only.
- 11:05 Deep dive Depth 400 · Novelty 1/3
Failure mode 2: premature 'done' – Stop hook with exit code 2
Claude reported the work ready for review although a type check showed two errors, and self-written tests can encode the same wrong assumption as the code. Anthropic has Claude write tests for the end state first and reviews those verification methods up front. A Stop hook runs a script such as typecheck.sh whenever Claude ends its turn; it must exit with code 2 to block the stop and return the error so Claude retries, up to a configurable retry limit, while exit 1 is treated as a broken script.
- 13:33 Deep dive Depth 300 · Novelty 1/3
Failure mode 3: protected files – deny rules, PreToolUse hooks and sandbox
Claude wanted to add a database migration for a slow query, but the team requires a separate review for migrations, so the edit is denied and Claude paginates instead and leaves a note for the database team. Three layers protect such files: deny rules match tool calls before they run but only see the command text; PreToolUse hooks catch variants and tell Claude what to do instead; the OS-level sandbox limits what shell commands can reach. The sandbox must be turned on, configured with which keys to hide, and requires WSL2 on Windows.
- 15:31 Demo Depth 300 · Novelty 1/3
Demo 1: one prompt drives ticket 4812 to a PR with guardrails in place
With context, the Stop hook and the migration guard in place, Claude reads the work item over MCP, reuses an existing cursor and CSV helper, is blocked by the Stop hook for two type errors and fixes them, is blocked from a migration and uses an existing index, then uses the deploy skill, opens a PR linked to the work item and lists the staging slot. Only the first prompt was typed. The speaker recommends classifying repeated corrections into the three fixes and sharing skills, hooks and MCP servers via a plugin, while deny rules live in settings.json or company managed settings distributed via MDM.
- 18:23 Demo Depth 300 · Novelty 2/3
Demo 2: long sessions – /goal, parallel worktrees, subagents and a read-only reviewer
For hours-long work, chat instructions can be summarised away, so constraints like 'don't push' should become ask rules, and the /goal command gives Claude an end state to keep working towards. Larger work is split across parallel sessions, each in its own Git worktree after agreeing API contracts, with subagents and a reviewer subagent limited to read, grep and glob. In the demo the endpoint session delegates tests to a subagent, the UI session asks where the button goes, and the reviewer of the combined diff finds a CSV quoting bug (comma in product name) that the individual sessions missed.
- 21:15 Deep dive Depth 300 · Novelty 1/3
Outer loop: fewer hand-offs, capped fix loops and risk-tiered review
More sessions than reviewers only lengthen the queue, so shipping must become a loop: a classic release has six hand-offs, and checking steps can be codified, leaving two (into the loop and a person approving). The pseudocode loop of implement-fix-until-checks-pass needs a cap on rounds and time before handing to a person. Since green checks can be gamed by changing the checks, tests, workflow files, package scripts and the .claude folder should be under code owners or required reviewers in Azure Repos. Anthropic uses a classifier to set reviewer count: none for benign changes (Claude Code Review only), one engineer for most, two humans for critical changes.
- 24:28 Demo Depth 300 · Novelty 1/3
Demo 3: Claude Code in GitHub Actions on Foundry, CI, human approval, Azure deploy
The PR from demo 1 goes through the team loop: Claude Code runs in GitHub Actions on Foundry, reviews and pushes fixes, CI runs the same command as the local Stop hook, a teammate approves using Claude's notes on what it ran and didn't test, then it deploys via staging slot swap. Four checks before running unattended: scope identities per job (settings come from the base branch, package scripts from the PR), run on throwaway runners with sandbox and treat tickets/logs as untrusted, let CI status decide done, and require human approval with stale approvals reset on new commits. In the demo the workflow signs into Azure via Entra trusting the GitHub token, finds a missing account-ownership check, adds a fix and test, and Dana approves and merges.
- 28:06 Deep dive Depth 400 · Novelty 1/3
Workflow file details: Entra sign-in, Foundry switch, limits and CI token pitfall
The claude.yml workflow signs in with Entra (no stored key) and one setting turns on Foundry; these are the lines that change off Foundry. Including the prompt makes it run automatically, omitting it makes it wait for an @-mention, useful while building trust. The speaker recommends listing allowed tools, setting the permission mode, and adding max turns and a timeout as the loop cap. GitHub doesn't start CI for commits made with the default token, so pushes should use the Claude GitHub app; for Azure Repos, use claude -p headless in your own pipeline.
- 29:25 Deep dive Depth 300 · Novelty 2/3
Claude Code Review: adversarial multi-agent PR review and self-healing auto fix
Anthropic offers a managed alternative, Claude Code Review, which runs on Anthropic infrastructure rather than Foundry and is available for Claude Team and Enterprise plans with repos on GitHub. Several agents review the PR adversarially without the author's context, and a second adversarial pass verifies their findings before posting. It never approves or blocks; teams can read the finding count into their own CI to gate merges. With Claude Code Remote sessions, auto fix watches the PR and relaunches the authoring session to fix reported findings, making the PR self-healing while the merge still waits for a human.
- 31:13 Deep dive Depth 300 · Novelty 2/3
Org controls: Entra sign-in, data boundaries, managed settings, WSL2 policy, OpenTelemetry
Approving an agent on thousands of laptops comes down to four questions: untrusted inputs, identity, blast radius and visibility. On Foundry users sign in with Azure CLI and access is an Azure role, so disabling the Entra account ends access when tokens expire; Claude acts as the user, so just-in-time production access helps. Hosted on Azure, prompts and completions stay in Azure, with only usage metadata and safety-flagged content going to Anthropic; models should be pinned because Foundry defaults are often older models without auto mode. Managed settings.json via Intune override user settings (admin-console settings don't reach Foundry), WSL2 does not read Windows policy by default, and on Foundry telemetry needs OpenTelemetry with a user ID attribute, prompt logging decisions, and monitoring of rejected tool calls and PR open time.
- 36:53 Deep dive Depth 300 · Novelty 2/3
What to stop doing: lean prompts, scaffolding removal, /doctor prompt-audit, /permissions
The speaker no longer writes long step-by-step prompts but gives goal, constraints and verification; rarely uses plan mode; points Claude at the entry point instead of hand-picking files; and keeps CLAUDE.md lean because instructions for older models can hurt. Anthropic deleted 80% of the Claude Code system prompt with the generation 5 models, and teams need evals to confirm gains when upgrading. /doctor prompt-audit finds outdated or contradictory instructions, and /permissions should be reviewed because 'don't ask again' creates allow rules that usually skip the classifier. He reviews PRs once, focusing on Claude Code Review highlights.
- 39:06 Closing Depth 100 · Novelty 0/3
Takeaways, thinking in loops, where to start and booth info
Takeaways: decide what Claude decides and enforce the rest; place human sign-off deliberately and protect the checks before it; turn one frequent, clearly pass/fail, easily reversible weekly task (e.g. dependency updates, flaky tests) into a loop, comment-only for the first week. The speaker suggests replaying already shipped tickets from the prior commit as an eval when changing models. The Foundry setup guide and settings page are linked; code review, cloud sessions and the admin console require an Anthropic plan, and larger rollouts should involve Microsoft or Anthropic account teams. He invites attendees to the Anthropic booth 4009 in Moscone South.
Announcements (2)
-
Claude Code Review
Managed multi-agent adversarial pull request review running on Anthropic infrastructure for GitHub repositories.
Claude Team and Claude Enterprise plans
Speaker’s quote (at 29:00)
„Anthropic also offers a managed version of this process, and that's our product that we call Cloud Code Review.“
-
Auto fix
A background routine that watches a PR and relaunches the authoring Claude Code Remote session to fix findings from Claude Code Review.
Speaker’s quote (at 30:20)
„when Claude Code Review reports findings, auto fix basically kicks that session back on and allows that session to go ahead and fix whatever comes up“
Demos (3)
-
A single engineer has Claude implement an Azure DevOps user story end to end, with repo-level context and deterministic guardrails catching type errors and a forbidden migration.
Steps (9)
- Configure an Azure DevOps MCP server in the repo and connect Claude Code/Claude Desktop to Microsoft Foundry.
- Add a CLAUDE.md note about the App Service staging slot and a deploy skill.
- Add a Stop hook running a type-check script that exits with code 2 on failure.
- Add a deny rule and PreToolUse hook blocking database migration edits.
- Start the session in auto mode and enter the prompt to pick up user story 4812.
- Claude reads the work item via MCP, summarises its understanding and builds on the existing cursor and CSV helper.
- The Stop hook blocks the stop with two type errors; Claude fixes them and reruns the type check.
- Claude tests a large account, tries to add a migration, is blocked by the hook and uses an existing index instead.
- Claude runs the deploy skill, pushes, opens the pull request linked to the work item and lists the staging slot step.
Prerequisites: Claude Code or Claude Desktop connected to a Microsoft Foundry resource, an Azure DevOps MCP server configured in the repo, CLAUDE.md, a deploy skill, a Stop hook script and deny rule/PreToolUse hook in .claude/settings.json.
-
One engineer splits a growing ticket into three parallel sessions (API, UI, docs) and uses a read-only reviewer subagent on the combined diff.
Steps (6)
- Create three Git worktrees/branches (export endpoint, account page button, docs) with a session in each.
- In the endpoint worktree, prompt Claude to build the streaming endpoint and later have the reviewer read the combined diff.
- The endpoint session writes the route and hands test updates across five files to a subagent.
- In the UI worktree, prompt Claude to add the Export CSV button; answer its placement question.
- Once docs are done, Claude merges the three branches and starts a reviewer subagent with only read, grep and glob tools.
- The reviewer finds the CSV quoting issue; the endpoint session fixes it, adds a test and updates the pull request.
Prerequisites: Claude Code with Git worktrees and a configured read-only reviewer subagent; API contracts agreed before splitting.
-
A team runs an automated PR review-and-fix loop with CI and a human approval gate, deploying to Azure via a staging slot.
Steps (7)
- Open the pull request from the laptop session.
- The GitHub Actions workflow starts automatically and signs into Azure via Entra trusting the GitHub OIDC token (no stored key).
- Claude Code starts on Foundry, reads the diff and the team's review skill.
- Claude finds the missing account-ownership check, adds the check and a test, pushes and comments.
- CI runs on the new commit; the PR waits for required human approval.
- The reviewer reads the comment and diff, approves and merges.
- Deployment goes to the staging slot, health is checked, then slots are swapped to production.
Prerequisites: GitHub repository with the Claude Code GitHub Action, Entra workload identity federated with GitHub, a Microsoft Foundry resource, CI checks, branch protection requiring approval, and an Azure App Service with a staging slot.