agents CLAUDE.md

agents CLAUDE.md is an instructions file for coding agents from eloylp/agents. It costs 5,296 tokens per session, scanned A, original, MIT.

Instructions for a self-hosted Go service that dispatches AI coding agents to work on GitHub repositories. It describes how agents, repositories, schedules, events, dashboards, and model backends fit together.

In plain words
What is it for?
Use it when navigating the codebase, configuring agents and repositories, handling GitHub-triggered or scheduled work, working with the SQLite fleet, or testing model backends.
Why use it?
It gives coding agents the project context needed to change the service safely and understand how automated repository work is configured.

Instructions file

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 instructions/eloylp/agents/claude-md
Clone the repo
git clone --depth 1 https://github.com/eloylp/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 agents CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/eloylp/agents/claude-md.svg)](https://agentmods.dev/instructions/eloylp/agents/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/eloylp/agents/claude-md"><img src="https://agentmods.dev/badge/instructions/eloylp/agents/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,296 This file is loaded in full into every session.
When invoked 5,296 The same file — it is already loaded in full.
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.05296 $0.05296
Opus 5 $0.02648 $0.02648
Sonnet 5 $0.01059 $0.01059
Haiku 4.5 $0.00530 $0.00530

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

Security

Grade A, and why

agents CLAUDE.md 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 4d 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.

CLAUDE.md · 146 lines

How it starts

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

CLAUDE.md

Project Overview

agents is a self-hosted Go daemon that dispatches AI CLIs (Claude, Codex) to work on GitHub repos. The fleet lives in SQLite and is managed through the dashboard, REST, MCP, or YAML import/export; YAML is a portable strategy format, not the only configuration path. Agents are bound to repos via labels, GitHub event subscriptions (event-driven), and/or cron schedules (autonomous). GitHub operations happen through the AI backend inside a fresh runner container: GitHub MCP tools are preferred, with gh available as fallback for complex local checkout/test/PR loops. The daemon itself is read-only against GitHub. The daemon also ships a built-in Anthropic↔OpenAI translation proxy so the claude CLI can be routed through any OpenAI-compatible backend (local llama.cpp, hosted Qwen, vLLM, etc.), see docs/local-models.md. Agents can additionally invoke each other at runtime via the reactive inter-agent dispatcher (see Architecture Notes).

Directory Structure

cmd/agents/main.go          # Daemon entry point + --db / legacy --import flags
internal/
  fleet/                    # Domain entities: Workspace, Agent, Prompt, Skill, Guardrail, Repo, Backend, Binding (zero deps)
  config/                   # Normalized runtime config types, YAML parsing, defaults, validation (uses fleet)
  ai/                       # Prompt composition + command-based CLI runner (per-backend env)
  anthropic_proxy/          # Built-in Anthropic↔OpenAI Chat Completions translation proxy
  observe/                  # Observability store: events, traces, dispatch graph, SSE hubs; run attribution resolution including artifact-chain walk (attribution.go, attribution_artifacts.go)
  scheduler/                # Cron scheduler + agent memory (SQLite-backed)
  runtime/                  # Runner interface + ContainerSpec/ExitStatus types, Docker implementation, per-backend container setup (env, scripts, paths)
  backends/                 # Backend discovery: CLI probing, GitHub MCP health checks, tool diagnostics, orphan detection
  service/                  # Mutable fleet/config use cases shared by REST and MCP; owns use-case validation and transaction orchestration
  store/                    # SQLite persistence boundary: migrations, config import/load, tx-aware primitives, DB-level safety checks
  workflow/                 # Event routing engine, durable event queue (persist-on-push + replay), processor, dispatcher
  daemon/                   # Daemon as a single composed unit: lifecycle, router, /status, /run, proxy + UI + MCP mounts
  daemon/observe/           # Observability HTTP handlers (events, traces, graph, dispatches, memory, SSE)
  daemon/config/            # /config snapshot, /export, /import HTTP handlers and methods; token budget CRUD and leaderboard endpoints
  daemon/fleet/             # Agents/skills/backends CRUD + GET /agents fleet view + orphans (incl. /agents/orphans/status)
  daemon/repos/             # Repos + per-binding HTTP CRUD handlers and methods
  daemon/runners/           # /runners listing + delete + retry (event_queue × traces JOIN; in-flight + completed runs)
  webhook/                  # GitHub webhook receiver only: HMAC verification, delivery dedupe, /webhooks/github event parsing
  mcp/                      # MCP server exposing fleet-management tools at /mcp
  ui/                       # Embedded Next.js web dashboard (served at /ui/)
  logging/                  # zerolog setup
docs/                       # Long-form docs: quickstart, configuration, events, dispatch, API, local-models, security

Read the full file on GitHub · 146 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. 4d ago First seen · 146 lines · 5,296 tokens per session scan A 6da68d820f03

Subscribe to this mod's changes

agents CLAUDE.md is an instructions file published in the GitHub repository eloylp/agents (9 stars, last pushed 6d ago), licensed MIT. It adds 5,296 tokens to every session, about $0.0265 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.