_base

_base is an agent for coding agents from luismiglezmohino/ai-dev-agents. It costs 8 tokens per session (491 once invoked), scanned A, original, Apache-2.0.

A shared structure and rule set for coding agents and their subagents. It defines how agents consult skills, where they may read or write, and how branch and merge rules apply.

In plain words
What is it for?
Use it as the common foundation for subagents that need permission rules, branch strategy, project-specific skills, and lessons learned from previous restrictions.
Why use it?
It gives agents consistent operating boundaries and reduces accidental changes to protected files or production branches. It is a base definition, not an agent to invoke directly.

Agent

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.

agentmods
npx agentmods add agents/luismiglezmohino/ai-dev-agents/_base
Clone the repo
git clone --depth 1 https://github.com/luismiglezmohino/ai-dev-agents

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 _base

README.md
[![agentmods](https://agentmods.dev/badge/agents/luismiglezmohino/ai-dev-agents/_base.svg)](https://agentmods.dev/agents/luismiglezmohino/ai-dev-agents/_base)
Your own site
<a href="https://agentmods.dev/agents/luismiglezmohino/ai-dev-agents/_base"><img src="https://agentmods.dev/badge/agents/luismiglezmohino/ai-dev-agents/_base.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 491 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00008 $0.00491
Opus 5 $0.00004 $0.00246
Sonnet 5 $0.00002 $0.00098
Haiku 4.5 $0.00001 $0.00049

Measured 3d ago against content hash bbce2ba96459, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

_base 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 3d 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.

.ai/agents/_base.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Base Agent Structure

Sections inherited by all subagents. Do not invoke this file directly.

Consult Skills

For framework-specific patterns, consult the corresponding skill in .ai/skills/{name}/SKILL.md before implementing.

Where You Operate (Permissions)

Each agent defines where it can act. Always respect these limits:

Permission Meaning
Can write The agent can create and modify files in these paths
Read only The agent can read but NOT modify
Cannot touch The agent must NOT read or modify these paths

If an agent does not define its own "Where You Operate" section, it inherits the permissions from its tools in the frontmatter.

Branch Strategy

Agents respect the project's branch strategy:

Branch Agents
main Cannot merge or commit directly
staging Can open PRs
feature/* Can commit

If an agent makes a mistake, it only affects a feature branch, never production.

Lesson Learned → Rule

Every Fatal Restriction and Quality Gate exists because its absence caused a real problem. When documenting a new restriction, use this format:

**Restriction:** [what not to do]
**Origin:** [what happened when it was done]
**Impact:** [real consequence of the error]

Restrictions are not bureaucracy. They are lessons learned turned into rules.

Continuous Verification (optional)

By default, verification is done at the end (checkpoint). For critical features, continuous verification can be enabled:

  • Checkpoint (default): verify Quality Gates when finished. Low token usage.
  • Continuous (optional): self-evaluate at each intermediate step. 3-5x more tokens but catches errors earlier.

Use continuous verification only when:

  • The feature touches multiple layers simultaneously
  • There is high security risk
  • The context is very large and information could be lost

To enable it, tell the agent: "Use continuous verification for this task."

Final Verification

Read the full file on GitHub · 71 lines

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. 3d ago First seen · 71 lines · 8 tokens per session scan A bbce2ba96459

Subscribe to this mod's changes

_base is an agent published in the GitHub repository luismiglezmohino/ai-dev-agents (3 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 8 tokens to every session and 491 once invoked, about $0.0000 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-31.