Agents
InfraDots agents review and implement infrastructure changes for you. They work on your Terraform/OpenTofu code and your plans, and they follow the standards your team writes down.
What agents do
Review
The review agent reviews pull requests and commits together with the plan. It applies risk-based checklists by resource type, leaves line comments on the change, and can request changes. Whether it requests changes depends on how severe its findings are; see Review severity.

Review severity
The review grades every finding with one of four severities:
| Severity | What it means |
|---|---|
| Blocker | The change must not merge as it is: the run or fmt failed, it destroys or replaces a stateful resource unintentionally, it exposes data, or it escalates privileges. |
| Warning | A real risk to fix before merge, such as missing encryption at rest, IAM wider than the change needs, or no backups. |
| Info | Worth knowing, with no action needed, such as an unused resource or a cost note. |
| Nit | Style or taste, such as naming or a hard-coded value that could be a variable. |
Your organization sets the lowest severity that requests changes, in Settings → Agents → Request changes at (review_blocking_severity in the Terraform provider). The default is Warnings or higher. A finding at that severity or above is a blocking finding:
- With blocking findings, the review requests changes. On a pull request it posts a "Request changes" review.
- With none, the review approves the pull request, and every finding stays a comment.
- Auto-implement implements only the blocking findings. The others stay review comments.
A failed run or fmt check is always a blocker, whatever the setting.
Implement changes asks which findings to implement: Blockers only, Warnings or higher (the default), Info or higher, or Every finding. Your choice applies to that implementation only.
Implement
The implement agent writes a change and opens a pull request. A follow-up request on the same pull request adds to it instead of starting over.
Auto-implement
When the workspace allows it, the review agent can implement its own blocking findings.
Reviewing a pull request, it commits the fix to that pull request, on the branch's current commit — the change the review asked for lands where it was asked, and the pull request stays the one change under review. Reviewing a commit on the workspace's own branch, it opens a pull request instead: either one, or, with the "minimal blast radius" option, several smaller ones.
If the agent's own commit then fails the plan, it gets one attempt to fix what it broke. After that the pull request waits for a person.
After the merge
An agent's pull request is followed past the merge to the run that applies it, in the pull request's own workspace. InfraDots comments the outcome on the merged pull request and edits that one comment as the outcome changes:
- Applied, or no changes when the plan found nothing to apply.
- Waiting approval on a workspace without auto-apply: no comment until the run is approved and finishes.
- Rejected or cancelled by a person: the comment says so, and nothing else happens.
- Never applied: no run applying the merge started within 60 minutes, for example because the workspace's trigger patterns excluded the change or the webhook was not delivered.
- Failed: a remediation run starts (below).
The agent run that opened the pull request shows the same outcome as a tag, linked to the run that applied it.
Remediation
When the apply of a merged agent change fails, a remediation run reads the failed run's output, the merge and the request behind it, and decides the cause before it changes anything:
| Cause | Examples | What happens |
|---|---|---|
code | an invalid argument or value, a missing dependency, a name or CIDR already taken, a resource that already exists outside the state | a fix pull request against the workspace's branch, when the workspace allows auto-implement |
manual | a permission the workspace's credentials lack, a quota, an organization policy denial, an expired credential | the steps a person takes |
transient | throttling, a timeout, eventual consistency, a provider outage, a state lock someone else holds | re-run the apply |
The diagnosis — cause, summary, the error it is based on, and the steps — is added to the comment on the merged pull request and shown on the remediation run, on the failed run's page. When the cause is in the code but auto-implement is off, Implement fix on the remediation run opens the fix pull request.
A fix pull request is an ordinary agent pull request: its apply is followed the same way. When a fix fails to apply as well, one more remediation runs; the next failure in a row is left to a person, and the comment says so. Remediation runs only in workspaces with agents enabled, and counts against your plan's agent interactions like any other run.
Reviewer guidance
Reviewer Guidance is org-wide guidance that your team writes and approves. Agents read it before every review and every implementation, ranked by the resource types and modules the run touches; see Which guidance reaches a run. Agents also learn from some of their own failed runs and from how their pull requests end; see Guidance InfraDots learns. What they learn waits for a person's confirmation, except a high-confidence rule from a run in a workspace, which applies to that workspace for 30 days.
Skills
Skills give agents your playbooks and checklists. A skill is a one-line description plus instructions, in the
Agent Skills SKILL.md format. Review, implement and remediation runs use them.
Agents load skills in three steps, so a large library costs little:
- Which skills a run sees. A skill can be limited to some agents (
review,implement,remediate), to resource types (aws_iam_*,google_container_*), and to Terraform, OpenTofu or Terragrunt workspaces. Runs outside those limits never see it. - The skill list. Every run sees the skills it may use, each as its name, its description of at most 128
characters, and the run's resource types it matched:
- iac-security-review: Security review of IaC changes. [matches aws_iam_role]. Skills matching resources the run changes come first, then those matching resources the workspace manages, then the rest. - Instructions on demand. The agent loads a skill's instructions only when it fits the work, and a git skill's other files only when the instructions point to them.
Where skills come from
- Platform skills are InfraDots' own and reach every organization.
- Your skills are added under Settings → Agents → AI Skills, with
idp agent skillor theinfradots_agent_skillresource. Write the instructions in InfraDots, or point to a skill directory in git: InfraDots pins the commit the ref points to when you save, and runs load that commit until you save again. - Skill packages install many skills from one git repository, following the Agent Plugins standard.
When two have the same name, your skill wins, then a package's, then the platform's. To change a platform skill, open it and choose Customize: you get your own copy under the same name. Turn off stops your agents from using it; delete your entry to turn it back on.
Safety. Skills are guidance: they never override the destructive-change and security checks, and nothing in a
skill is run. Its files reach the agent as text. Your skills pass the same input check as implement requests when
you save them, and a refused skill is not saved. Your VCS token is sent only to the host that issued it.
Changing skills, skill packages and reviewer guidance needs the write_agents permission; every member can read
them.
Registry lookups
Agents look up the newest provider and module versions, and a resource's reference (arguments, attributes, examples), in the public Terraform and OpenTofu registries, asking the registry that matches the workspace (OpenTofu or Terraform) first. This lets agents pin current versions and use arguments that exist.
When a run delegates, the lookups go through the lookup delegate: the agent asks it a question and gets back only the version or argument it asked for, so a long registry page never enters the agent's own context. A run that does not delegate reads the registry itself.
Delegation
A review or an implementation can ask a specialist a focused question inside the same run. The specialist is a delegate, with a role:
| Role | What it does | Asked by |
|---|---|---|
lookup | Reads the Terraform and OpenTofu registries: provider and module versions, resource and argument references. | Reviews and implementations |
security | A second, security-focused reading of the change. It reads the same files and the diff, and only advises. | Reviews whose plan changes a sensitive resource type (below) |
tester | Runs fmt -check on the Terraform and OpenTofu files the implementation changed, before it opens its pull request. | Implementations |
A review gets security only when its plan changes a resource type in one of these families:
- AWS - IAM, security groups and VPC security group rules, network ACLs, KMS, S3 bucket policies and public access blocks (bucket and account level), Lambda permissions, Secrets Manager, and WAFv2.
- Google Cloud - project, organization and folder IAM, service accounts, Cloud Storage bucket IAM, Compute firewalls, and KMS.
- Azure - role assignments and role definitions, network security groups and rules, Key Vault, and Azure Firewall.
- Kubernetes - roles, cluster roles, and network policies.
Reviews of other changes do not get a security delegate.
A delegate gets only the tools its role needs, so security reads files even when the agent that asked it can write. Delegates never delegate: a delegate cannot ask another.
Each question a delegate answers, and each tool call it makes, appears in the run's steps, labelled with its role, for example "lookup · Looking up a provider".
A delegate shares the run's budget. If a delegate uses its own allowance of model requests without answering, it tells the agent so, and the agent carries on without that answer.
Where you trigger them
- Web app - from your workspaces and pull requests, or by asking IDA in the chat (see Chat with IDA).
- Repository analysis - point it at an application repository to provision what it needs (see Analyze a repository).
- Slack - ask the InfraDots Slack bot.
- CLI -
idp agent listandidp agent history <job-id>(see idp-cli). - Your IDE - the AI in Your IDE skill lets Claude Code or Cursor drive the CLI.
Chat with IDA
IDA is the assistant in the web app's chat. Ask it for a change in plain language. It looks at the workspaces in your organization, and at where the resources you mention are already managed, then asks what it still needs to know before it drafts anything.
Clarifying questions
IDA asks its questions as a card, one to four at a time. Each question has two to four answers to pick from, and every question also offers Other, which takes a written answer of up to 500 characters. A question marked pick any takes several answers.
Send answers stays disabled until every question has an answer. The card then shows what you chose, greyed out and marked Answered; nothing more is posted in the chat. IDA receives your answers as your next message, one line per question.
If you type a reply in the chat instead, the card closes as Answered in chat and IDA reads what you typed. A card is answered once: if it was already answered, from another tab for example, it says so instead of sending the answers again.
Proposals
When it has what it needs, IDA proposes the change: the workspaces it would touch and the instruction for each. Nothing runs until you press Confirm & implement. Before that you can edit an instruction or remove a workspace.
After you confirm
Each workspace gets its own implementation run. The card shows each run's status and, once the run opens one, a link to its pull request. When a run ends, IDA posts the outcome in the chat: the pull request it opened, or why it failed or was cancelled. These messages stay in the conversation when you reopen it.
To change what a confirmed proposal opened, ask IDA in the same conversation. If a workspace still has an open pull request from an earlier proposal in that conversation, the new change is committed to that pull request instead of a new one. Any other open agent pull request on the workspace still has to be merged or closed first. That includes one from another conversation, from Slack, or from auto-implement.
Analyze a repository
Point InfraDots at an application repository and it finds what the application needs from your infrastructure (databases, caches, buckets, queues), then proposes where each one goes among your existing workspaces. Nothing is provisioned until you confirm, and each confirmed workspace gets an ordinary implementation: a pull request, a plan and a review.
Start one from IDA → Analyze repository in the web app, with idp analyze repo in the CLI, by asking the Slack bot, or from an MCP client. Give it:
- Repositories - up to 10 per analysis. Several repositories are analyzed together, so two services that both need Redis come out as one decision.
- Environment - required when your workspaces are tagged with more than one, using the
environmentorenvtag. - What the app needs (optional) - names InfraDots knows, such as
postgresqlors3. Some names also fix the resource type:s3means anaws_s3_bucket. An unknown name is refused, with the list of known ones. - Notes (optional) - your own words, such as sizing or what already exists. Notes are screened like any implementation request, and they can only make the analysis do less: we already have Redis turns Redis into a reuse, but a note can't add something the repository or your list of needs doesn't show.
- Placement hints (optional) -
team,regionandapp, matched against workspace tags.
What it reads
The repository is cloned with your organization's VCS connection and read without a model. If your organization has its own agent pool with a runner on idp-agent 0.19 or later, the analysis runs there: the runner clones and reads the repositories, so an analysis reaches a self-hosted or private VCS that only your network can. Otherwise it runs in InfraDots.
- manifests for Python, Go, Node.js, Java, Ruby, Rust, .NET and PHP;
- client libraries;
docker-composeimages and Helm chart dependencies;- variables in
.env.example-style files; - Terraform the repository already has;
- README mentions, which count as hints only.
Every finding links to the file and line at the commit it read. A real .env is never read.
Where it puts things
For each dependency, InfraDots ranks your workspaces:
| Signal | Points |
|---|---|
| Already manages a matching resource type | +4 (+5 with 2+) |
app tag matches the repository | +4 |
team tag matches your hint | +2 |
layer (or tier) tag matches, e.g. data for a database | +2 |
region tag matches your hint | +1 |
layer tag names a different layer | -3 |
| No environment tag; locked | -2 each |
| Your bootstrap workspace, creating a new workspace | 1 |
The environment tag filters rather than weighs: a workspace tagged with another environment is never a candidate. The analysis takes the top-ranked workspace unless the repository says otherwise. When the top two are within a point, it asks you. A dependency that no workspace can serve comes back as a question. For the resource types that can serve several kinds of dependency, InfraDots also reads one attribute from a workspace's state: the engine of an aws_db_instance, aws_rds_cluster or aws_elasticache_cluster, the database version of a google_sql_database_instance, and the chart behind a helm_release. A workspace whose engine or chart matches the dependency counts as a full match, and one whose engine or chart is a different kind (a MySQL aws_db_instance for a PostgreSQL dependency) is not a candidate for it. Only those values are kept; nothing else from your state is stored. A workspace whose state was uploaded before this was recorded has no engine on file, so a match on one of those types is marked unverified until the workspace's next state upload.
Confirm
The proposal shows, for each workspace, what goes there and why. A dependency InfraDots doesn't recognize starts unticked. Before you press Confirm & implement, you can:
- untick a workspace;
- move a dependency to another ranked workspace;
- rewrite its instructions. A rewrite is screened like any request you type.
The analysis page updates as the analysis moves from scanning to a proposal, and as the confirmed workspaces' runs progress, without a refresh. If the live connection drops, for example while InfraDots is updated, the page refreshes itself every few seconds until it returns. To be told in Slack, Teams or a webhook when a proposal is waiting, subscribe an integration to analysis.proposed (see Repository Analysis Events).
You can teach InfraDots new kinds of dependency under Analyze repository → Dependency kinds. A row adds a kind, or more names, resource types and signals for an existing one; it never replaces a built-in. Editing needs the organization write permission.
Corrections teach placement
Each time you untick a workspace or move a dependency to another one and confirm, InfraDots remembers it. A correction counts for 90 days. Moving a dependency of a kind to a workspace adds 1 point to that workspace for that kind, and moving one away from a workspace, or unticking it, takes 1 point off. The points are capped at +3 and -3 per workspace and kind, so corrections can break a tie or overturn a type match but cannot outvote the other signals. The ranking line says so, for example moved here 2× before (+2).
When three corrections move the same kind to the same workspace, InfraDots drafts a proposed rule such as "In
this organization, redis for an application goes in the workspace data-prod", which it writes itself from the
counts, with no model. It is never auto-activated, because it would apply organization-wide; later agreeing
corrections add their analysis to its evidence. See Reviewer Guidance.
What the agents learn from
InfraDots watches how agent runs end. Only an input-gate refusal, a run the agent itself ended as failed, and a run that hit its usage limit are learned from. A clone failure, a lost or shut-down runner, a timeout, a missing VCS connection, a plan quota and an analysis that cloned nothing are not. A small model reads InfraDots' own failure reason, the run's counters and the names of the tools it called, plus the person's request for a gate refusal, and never repository text. The result is a proposed reviewer guidance rule for a person to confirm. This costs one small-model call per learnable run, which is not counted as an interaction.
The pull requests agents open are watched too: one closed without merging, and commits a person pushes onto one, are learned from. Merged or closed is recorded on GitHub, GitLab and Bitbucket; the reviewers' comments and a person's pushed changes are read on GitHub only. Those are repository text, so a rule drafted from them is always proposed for a person, never applied on its own. See Pull requests the agent opened.
Where they run
| Where | Model | Read more |
|---|---|---|
| InfraDots cloud | Managed by InfraDots, or your own model account | This page |
| Your Kubernetes cluster | Your own model account (Anthropic, Bedrock, Vertex, Foundry) | Self-hosted Runners |
| Your laptop, no account | Your own model account | Review & implement locally |
How much a run may do
Every run has a budget of model requests: the round trips between the agent and the model.
| Agent | Model requests | Told to finish at |
|---|---|---|
| Review | 34 | 23 |
Review, with a security delegate | 42 | 28 |
| Implement | 67 | 45 |
| Input check and other one-shot agents | 3 | — |
The review and implement figures include the room delegates need. A run's limit is its own limit plus the allowance of each delegate it can ask: lookup 4 requests, security 8, and tester 3. Without delegates a review has 30 requests (told to finish at 20) and an implementation 60 (told to finish at 40). A delegate's requests are counted against the run's budget, not against a budget of their own, so a delegating run cannot spend more than its limit.
When a run reaches the point where it is told to finish, the agent finishes with what it has. An implementation commits what it has written, opens the pull request (or adds to the one it is working on), and lists in the description what it did not get to. A review posts what it found and says what it did not cover. To continue an unfinished implementation, send a follow-up request on the same pull request.
A run stops at the limit itself only if it keeps going after that. Token limits back the request limits up, and sit well above anything a run has used.
Before a review starts, InfraDots gives the agent what it already knows — the job's result, whether the change is a pull request, the changed files and the diff — so the agent spends its requests on the review.
The limits travel with each run, so they apply wherever it executes, including your own agent pool. Runners older than idp-agent 0.17 apply the same limits but are not told to finish first.
Your own model
Agents run on InfraDots' model account by default. An organization can point them at its own instead: the same Claude models, reached through your Anthropic, AWS, Google or Azure account. Prompts, tools and reviews do not change — the model bill moves to you, and the subscription moves to a flat rate (see Subscriptions).
Add a provider
In the organization's Settings → Agents → Model providers, add one and choose where its calls go:
| Provider | provider_type | Settings |
|---|---|---|
| Anthropic API | anthropic | api_key, optional base_url |
| AWS Bedrock | bedrock | aws_region, aws_access_key, aws_secret_key, optional aws_session_token |
| Google Vertex AI | vertex | project_id, region, access_token |
| Azure AI Foundry | foundry | resource, api_key, optional base_url |
A base_url must be an http or https URL whose host resolves to a public IP address; a private, loopback or link-local address is rejected when you save it.
A provider must carry the credentials that identify your account. InfraDots rejects one without them rather than saving it: every one of these SDKs falls back to the environment of whatever process makes the call, which here is InfraDots' own, so a provider with no credentials would work — and bill us — while reporting the run as yours.
Bedrock, Vertex and Foundry name their models differently from InfraDots, so each one also needs a model map: every model InfraDots asks for, against that provider's own ID.
{
"claude-opus-5": "eu.anthropic.claude-opus-5-v1:0",
"claude-sonnet-5": "eu.anthropic.claude-sonnet-5-v1:0"
}
A run that needs a model the map lacks stops before it starts, and its message names the model to add.
Verify it
Verify sends one token to the provider and reports what came back. Use it after adding a provider or rotating a key: a wrong key, a missing region or a model your account cannot see otherwise surfaces several minutes into a review. The result is shown on the provider, with the date it last answered.
Use it
Use for this organization picks which provider the agents call. Until you set it, providers you have added are only configuration.
Fall back to InfraDots' model is off by default. With it off, a run whose provider cannot be reached fails and says what to fix. Turn it on and those runs quietly go to InfraDots' model instead — which also means the model bill quietly comes back to us, so leave it off unless you mean it.
With your own agent pool
A run queued to your own agent pool is routed by the runner that claims it, from its own MODEL_PROVIDER — a runner holds its own credentials. Pointing the organization at a provider still matters for those runs: InfraDots compares each runner's provider against it and flags a runner that disagrees, on the pool's page, before a run fails.
For Google Cloud, a self-hosted agent pool is the steadier route: Vertex authenticates with short-lived tokens, while a runner uses your environment's own Application Default Credentials.
Getting started
Agents are off by default: turn them on for a workspace in its settings (or --agents-enabled with idp workspace create, or agents_enabled in the Terraform provider). Then they review the workspace's runs as they finish, within your plan's agent interactions. Auto-implement is set for the organization, and each workspace can override it. See Reviewer Guidance to teach the reviewer your standards.
ℹ️ Info
[!info]
Starter includes 5 agent interactions, Growth starts from 15 and scales with your plan, and Enterprise has custom limits. On your own model provider, runs are not counted against those limits — see Subscriptions. Running agents locally with --offline is free and needs no account.
