AAAA-Coalition

Infra Aware Agent — DevOps skill for Claude Code

DevOps community

Help an AI agent know its infrastructure by measurement: a daily data catalogue per host (databases, archives, rights, writer unit), a Claude Code hook that recalls pointers and already-solved problem.

How to install Infra Aware Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AAAA-Coalition/infra-aware-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Infra Aware Agent does

Help an AI agent know its infrastructure by measurement: a daily data catalogue per host (databases, archives, rights, writer unit), a Claude Code hook that recalls pointers and already-solved problems by pattern, and a LiteLLM model probe per usage with fallbacks disabled, linked to who depends on each model.

Alternatives in DevOps

  • Appwrite — Appwrite® - complete cloud infrastructure for your web, mobile and AI apps 57.5k ★
  • Open Agent Email — Open-source email infrastructure for AI agents: secure inboxes, REST and MCP APIs, SMTP, human approval workfl 2.1k ★
  • Infra Deploy — Use when changing Terraform, Docker, AWS or Azure deployment assets, or deployment documentation, including te 47 ★

README

infra-aware-agent

Three small tools so that an AI agent **knows the infrastructure it works on** — from measurement, refreshed every day, and recalled at the moment it matters. Python, standard library only, with planted witnesses and mutation checks.

tool what it does
data_catalogue.py measures what data each host holds: data directories, SQLite and Postgres databases with row counts, the systemd unit that writes each one, its rights, and a world-readable flag
recall_hook.py a Claude Code UserPromptSubmit hook: when the user's message mentions something already mapped or a problem already solved, one short pointer is added to the agent's context
model_probe.py exercises every model of a LiteLLM gateway per usage (text, vision, embeddings), fallbacks disabled, and says who depends on it

They answer one complaint from the person we work for, close to verbatim: *"you know nothing, you don't know where it is, you have to search, and we solve the same problem dozens of times."* Everything the agent needed was in files it could read. Nothing made it read them.


1. Data catalogue

**What it cost.** Our map of the system listed services, ports, MCP tools and timers. It did not list the two largest assets on the host: a mail archive of tens of gigabytes and a search index of several hundred thousand rows. Nobody had forgotten them. **The map simply never looked at data**, so every agent asking *"where are the mails?"* started from zero.

**What it records**, per host, run as root:

  • directories above a threshold under configurable roots (same filesystem only, like du -x);
  • SQLite databases: tables and row counts;
  • Postgres databases inside Docker containers: largest tables, estimated rows, size;
  • for each: the unit(s) that mention its path — who writes it — its mode, owner, and a WORLD-READABLE flag.

**What it never does**: read a row, print a value, or open a database whose path matches