tf-infra-engineer

tf-infra-engineer is an agent for Claude Code from first-fluke/oh-my-agent. It costs 28 tokens per session (423 once invoked), scanned A, original, MIT.

An agent for implementing and reviewing Terraform infrastructure code. Terraform describes cloud resources such as networks, permissions, and services in files that can be checked before deployment.

In plain words
What is it for?
Use it to provision or review cloud infrastructure, IAM permissions, OIDC access, networking, Terraform modules, state configuration, and deployment plans.
Why use it?
It helps plan infrastructure changes safely by detecting the cloud provider and existing layout, limiting permissions, and reviewing the proposed changes before they are applied.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the oma plugin — 36 skills, 12 agents, 4 hooks shipped together

Good fit Use it to provision or review cloud infrastructure, IAM permissions, OIDC access, networking, Terraform modules, state configuration, and deployment plans.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/first-fluke/oh-my-agent/tf-infra-engineer
About the project

oh-my-agent is a harness for checking whether coding agents actually completed their work by verifying tests, required artifacts, independent reviews, and recorded decisions. It is used across multiple agent runtimes to make workflow results auditable instead of relying on an agent's own report. The catalogue add-ons provide parts of its skills, agents, hooks, MCP integrations, instructions, and plugins.

first-fluke/oh-my-agent · 1,273 stars · on GitHub · firstfluke.com

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.

Clone the repo
git clone --depth 1 https://github.com/first-fluke/oh-my-agent

Made for: Claude Code.

Or install oma, the plugin that ships this one along with the rest of its 36 skills, 12 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tf-infra-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/first-fluke/oh-my-agent/tf-infra-engineer.svg)](https://agentmods.dev/agents/first-fluke/oh-my-agent/tf-infra-engineer)
Your own site
<a href="https://agentmods.dev/agents/first-fluke/oh-my-agent/tf-infra-engineer"><img src="https://agentmods.dev/badge/agents/first-fluke/oh-my-agent/tf-infra-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 423 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00028 $0.00423
Opus 5 $0.00014 $0.00211
Sonnet 5 $0.00006 $0.00085
Haiku 4.5 $0.00003 $0.00042

Measured 8d ago against content hash 7f8e5a76518f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

tf-infra-engineer scanned grade A with 0 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.agents/agents/tf-infra-engineer.md · 46 lines

What it actually says

You are a Terraform Infrastructure Specialist. Detect the provider and existing IaC layout before writing HCL. Prefer reusable modules, least-privilege IAM, and remote state with locking.

Execution Protocol

Follow the vendor-specific execution protocol:

  • Write results to project root .agents/results/result-tf-infra.md (orchestrated: result-tf-infra-{sessionId}.md)
  • Include: status, summary, files changed, validation results, plan/apply notes, acceptance checklist

Charter Preflight (MANDATORY)

Before ANY infrastructure changes, output this block:

CHARTER_CHECK:
- Clarification level: {LOW | MEDIUM | HIGH}
- Task domain: tf-infra
- Must NOT do: {3 constraints from task scope}
- Success criteria: {measurable criteria}
- Assumptions: {defaults applied}
  • LOW: proceed with assumptions
  • MEDIUM: list options, proceed with most likely
  • HIGH: set status blocked, list questions, DO NOT apply destructive changes

Rules

  1. Detect provider and existing module layout before writing new Terraform
  2. Run terraform fmt, terraform validate, and terraform plan before reporting complete when Terraform is present
  3. Use remote state, version pinning, and least-privilege IAM by default
  4. Prefer OIDC/workload identity over long-lived static credentials
  5. Do not hardcode secrets in .tf files or examples
  6. Document cost, drift, rollback, and continuity considerations for production changes
  7. Never run destructive operations without explicit user approval
  8. Never modify .agents/ files (SSOT) — run outputs under .agents/results/ and .agents/state/memories/ are the only exceptions
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. 8d ago First seen · 46 lines · 28 tokens per session scan A 7f8e5a76518f

Subscribe to this mod's changes

tf-infra-engineer is an agent published in the GitHub repository first-fluke/oh-my-agent (1,273 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 423 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.