# agent ops discipline

> Operational rules for AI agents to prevent redundant builds, manage token costs, and maintain clean project state.

agent ops discipline is a free AI agent skill on Agensi by Steve Peak, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Steve Peak](https://www.agensi.io/creators/steve-peak)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-ops-discipline
- Tags: ai-agents, llm-ops, project-management, git, software-engineering

## About this skill

Long-running AI coding agents often drift into inefficiency, creating redundant tools, letting documentation rot, or burning through token budgets on trivial tasks. This skill enforces a rigorous operational discipline for agents working on complex, multi-week projects. It provides a framework for resource management, task hygiene, and cross-model routing to ensure your agent acts like a senior engineer rather than a runaway script.

### What it does
- **Redundancy prevention** mandates checking existing `package.json` scripts, `Makefiles`, and tool directories before any new code is proposed.
- **Stale-data protection** prohibits hardcoding values in documentation, requiring generated numbers or tests that fail when data drifts.
- **Token cost optimization** routes work to the cheapest capable model based on the specific deliverable rather than file complexity.
- **Tracker integrity** enforces aggressive ticket management, ensuring task statuses, assignments, and descriptions reflect the actual state of play.
- **Environment cleanup** ensures all background processes, dev servers, and temporary git branches are purged immediately upon task completion.

### How it works
1. **Pre-flight check**: Before building a new feature or tool, the agent scans the project index and synonyms to verify the capability doesn't already exist.
2. **Model routing**: The agent evaluates whether a task is mechanical, implementation-heavy, or architectural to select the appropriate model tier.
3. **Execution & brief**: Subagents are dispatched with tight, scoped briefs that include explicit "done when" conditions and cleanup rules.
4. **Finalization**: Once verified, the agent merges code, deletes the local and remote branches, and closes the associated tracker ticket.

### Frameworks & tools
This skill is platform-agnostic but designed to interface with Git, task trackers like GitHub Issues, Linear, or Jira, and various LLM tiers (small, mid, and top-tier reasoning models).

### Why this beats prompting it yourself
Generic prompts often fail to address the "hidden costs" of agentic workflows, such as orphan background processes or context window bloat from stale instruction files. This skill codifies specific operational failures learned from months of real-world production use, preventing expensive re-work and human-interruption cycles.

### Use cases
- Managing a complex refactor across multiple PRs without leaving stale branches.
- Keeping a project README updated with real build metrics and test counts.
- Orchestrating a team of subagents to handle routine mechanical edits at low cost.
- Maintaining a clean Linear or GitHub project board during high-velocity development.

### Known limitations
Does not provide automated integration with specific tracker APIs; the agent must have its own tools to interact with Jira or Linear. It cannot prevent a human from manually overriding its cleanup rules.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the agent ops discipline skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent the creation of redundant tools and code?

The skill prevents "agent drift" by enforcing rigorous checks for existing tools and scripts before writing new code, ensuring your project doesn't become cluttered with redundant or conflicting files.

### Does this skill require a specific LLM, or can it work across different model tiers?

It utilizes a classification logic that matches task types—such as mechanical edits vs. architectural design—to the most cost-effective LLM tier, preventing top-tier model spending on low-complexity work.

### Can I use this discipline framework with my existing project management tools like Linear or Jira?

Yes, the skill is platform-agnostic and designed to interface with any agent that has existing tool access to Git, GitHub Issues, Linear, or Jira.

### What exactly is included in the purchase of the 'agent ops discipline' skill?

You receive the operational framework, the logic for pre-flight checks and model routing, and the standardized "done when" criteria for subagent task briefs.

### Are there any specific limitations regarding automated environment cleanup?

While it automates cleanup for branches and processes, the skill cannot prevent manual human overrides, nor does it provide the underlying API connections for your trackers.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
