Escaping the Vendor UI Trap by Moving Agent Definitions Into Reviewable YAML
Versioning agent configs in Git puts permissions and budgets under code review.

Agents-as-code means defining AI agents in YAML configuration files in Git, with Markdown for natural-language instructions, so that changes pass through pull requests, code review, and version control. Moving definitions out of vendor dashboards makes permissions, behavior, and spending limits attributable to approved changes. The architectural principle is straightforward. Agent definitions belong under the same controls as the code they affect, while the infrastructure that runs agents enforces what those definitions allow.
Why agent definitions stored in vendor dashboards escape the governance practices engineering teams already rely on
A security engineer trying to answer “what did this agent do, and who authorized that?” reaches for the git log, only to find that the relevant definition lives in a vendor console. The repository records application changes, but not the instructions, permissions, tool access, or model selection that shaped the agent’s behavior. There may be a record of what ran, but the team’s normal change history leaves out who approved the configuration behind it.
That separation is the problem with dashboard-managed definitions. Code review, pull-request history, and git blame give engineering teams a shared way to check changes and see who is responsible for them. Configuration held in opaque UI state bypasses that machinery, even when it controls consequential actions. A dashboard edit has no diff, reviewer, commit message, or rollback path within the process used for application code. The team must reconstruct approval elsewhere rather than follow the same chain of evidence it already relies on.
What configuration files for AI agents actually are and what the emerging file-format conventions look like in practice
Agent configuration files are plain-text files that tell an AI agent, rather than a human teammate, what to do. They encode project constraints, coding conventions, permissions, tool access, and behavioral instructions. A lightweight instruction file can explain how work should be done, while a workflow definition can specify when execution begins and which actions it permits. These are related artifacts with distinct formats.
A Dataset of Agentic AI Coding Tool Configurations identifies CLAUDE.md and AGENTS.md as the most widely observed configuration file types across repositories. Both use natural-language instructions to spell out what the project expects. Markdown is therefore a familiar place to start with agent configuration, though instructions alone leave some operational controls unspecified, which is the gap Ellipsis, a cloud agent platform that runs agents defined as YAML files in your repository and reviewed like any other code, was built to close. Machine-readable fields serve a different purpose from prose. They give execution systems structured values to interpret.
GitHub Agentic Workflows combines these forms in a Markdown file with YAML front matter followed by a natural-language task description. The YAML defines triggers, permissions, safe outputs, tools, and the AI engine. Structured agent configuration can also set out how credentials are used and what the budget limits are, while prose describes the work to be done. YAML makes operational controls explicit, and natural language gives the agent the context needed to act within them. Enforcement still depends on infrastructure that implements those controls.
How do teams manage YAML agent definitions in Git through pull requests and code review?
Checking an agent definition into Git reconnects its behavior to the controls already applied to application code. Where the repository enforces required approvals, branch protection, and CI checks, definition changes pass through those same gates. A permission change becomes an attributable commit. The changed definition goes through review before it reaches production. Accountability shifts from who had access to the dashboard to who approved the proposed configuration.
YAML makes that review concrete because its declarative fields expose how the new definition differs from the old one. A reviewer can inspect which tool was added, which spending limit increased, or which model selection changed. Markdown instruction changes appear in the same review surface, making behavioral revisions visible beside operational ones. This is the core of agents-as-code governance. The file is not simply a backup of a vendor setting, but the versioned definition against which changes are assessed.
The configurable-agents project demonstrates this operational form through YAML files that define multi-step workflows, control flow, model selection, and observability settings. Those files are version-controlled, shareable, and deployable from a laptop to Kubernetes without changing the definition. Portability follows from that separation of definition and execution. A third party can read the file, and a known commit shows which configuration they are checking. Moving between platforms still depends on support for the definition’s semantics, but ownership of the artifact no longer depends on access to a vendor’s data store.
What the file structure of agent configuration should look like to stay reviewable as complexity grows
Repository storage alone does not make a definition reviewable. A large AGENTS.md or monolithic YAML file can crowd out task context, give every rule equal apparent importance, and drift away from the codebase it describes. As instructions accumulate, the review surface becomes harder to understand even though every edit remains technically visible. Visibility and comprehension are different requirements for governance. A diff is useful only when a reviewer can judge the changed rule in its proper scope.
Short, scoped files provide progressive disclosure. The root configuration states scope, permissions, and high-level constraints, while subdirectory files hold instructions for the parts of the codebase they govern. A structured docs/ directory can hold the supporting guidance outside the root file. A reviewer should be able to check each file in one pass.
Vercel demonstrated the value of precision by compressing a 40KB instruction file to 8KB while maintaining full pass rates. That case-specific result shows that more instruction text need not produce better outcomes, and that a leaner definition can preserve useful guidance while reducing what must be processed and reviewed. YAML’s hierarchy supports the same discipline through root configurations that reference or import scoped configurations where the tooling supports it. Those layers can then receive independent review rather than becoming an undifferentiated mass of instructions.
What budget ceilings and cost enforcement look like when they live in a versioned config file rather than a vendor setting
The same governance boundary applies to what an agent spends. A budget limit hidden in a dashboard is outside the review process even when the instructions and tool permissions are already in Git. Putting the limit in the versioned definition makes a proposed increase visible to the people responsible for approving it. The benefit is change control.
Monitoring reports spending after it occurs, with an alert arriving after the call. Enforcement intercepts execution before the next API call and terminates the session when the limit is reached. Only the latter prevents further spending by the loop. A single agent loop can burn $2,000 overnight, so an alert and an execution boundary are not interchangeable protections.
The reference architecture routes the agent through a gateway responsible for budgets, routing, and logging, then to the model and cost attribution. The platform layer has the cloud credentials, and the agent has none. Versioned YAML makes the gateway’s budget policy reviewable, but the gateway performs the enforcement. Under the repository’s required approval process, raising a budget limit requires a pull request, a reviewer, and an audit record, whereas changing a dashboard slider requires a login.
Why emerging regulatory and compliance frameworks require the kind of audit trail that only repo-based definitions can produce
An execution log can show what an agent did without establishing who approved its authority to do it. That distinction becomes important when a team must explain not just an action, but the configuration under which it occurred. Pull-request history supplies the approval context for definition changes, including who proposed them and why they were accepted.
NIST’s Center for AI Standards and Innovation started an AI Agent Standards Initiative in February 2026. The associated NCCoE concept paper identifies agents’ treatment as generic service accounts as a gap in dedicated identity, authorization, and accountability controls. That concern reinforces the engineering argument for explicit, versioned definitions. Git history provides a record of approved configuration changes that can support the broader identity and authorization controls required during execution.
SOC 2 CC7.2 and CC7.3 also distinguish monitoring from an effective response process. Structured, real-time log streaming to a SIEM supports anomaly monitoring, but documented alert triage, incident classification records, and evidence that alerts were acted on are also necessary. Logging alone is not the complete compliance control. Automatic event logs support EU AI Act Article 12 traceability, while attributable configuration helps explain the authority behind the recorded behavior. Neither a repository nor a log stream substitutes for the other.
These frameworks reinforce repo-based definitions without making YAML a regulatory requirement in itself. The architectural advantage is the evidence that version control and review preserve as changes occur. Retrofitting that history is a different problem from introducing logging later. A team can add a new monitoring system, but it cannot recover an approval rationale that was never recorded. Keeping definitions in Git is therefore good engineering first, with compliance evidence emerging from the same operational discipline.
How AI agents already handle YAML configuration changes in practice, and what that reveals about trust and review scope
Agents are already modifying YAML configuration in real repositories, including CI/CD definitions. Taher A. Ghaleb’s When AI Agents Touch CI/CD Configurations: Frequency and Success found that the overwhelming majority of agent-authored CI/CD changes target GitHub Actions YAML. Agents are consequently operating on the declarative layer that governs how code is built, tested, and deployed. This is not a hypothetical future review problem. Teams already need a way to review the changes agents make to operational configuration.
The same study found comparable build success rates for agent-generated CI/CD changes and non-CI/CD changes. That finding shifts attention away from a blanket assumption that agents cannot handle YAML. A change can pass CI and still give an agent more authority than it should have. Agentic pull requests with CI/CD changes also merged slightly less often than other agentic pull requests, suggesting heightened reviewer scrutiny while leaving the cause unproven. Teams should formalize that scrutiny through pull requests, approvals, and merge gates for configuration with a wide blast radius.
This review model applies in both directions. Human-authored agent definitions and agent-authored configuration changes belong on the same attributable change surface, but approved files still need controlled execution. The reference architecture runs each session in an isolated sandbox, with session credentials minted fresh and revoked on completion. The platform keeps cloud credentials out of the agent’s reach. Every tool call, diff, and token is logged and attributable to the person or trigger that initiated the session.
GitHub Agentic Workflows demonstrates a realization of this pattern through isolated sandboxes, firewalls limited to explicitly specified resources, read-only permissions by default, and safe outputs for configured write actions. Direct write permissions or custom jobs added by workflow authors are not covered automatically, which makes their review particularly consequential. The limits on what can run must match the definition that was reviewed. Otherwise, a clearly documented policy can still differ from the authority available at runtime.
The named tools show that file-based definitions and governed execution are available patterns rather than requirements to invent an entire platform from scratch. The configurable-agents project illustrates portable YAML workflow definitions, while the GitHub workflow model connects reviewable files with sandboxed execution controls. Their value lies in the governance properties they expose. Escaping the vendor UI trap therefore requires a file migration backed by an operational habit. Configurations stay in the repository, execution stays within enforced boundaries, and the approval record remains connected to what agents are allowed to do.


