agents-universe: Instructions file for Claude Code

CLAUDE.md

agents-universe CLAUDE.md is an instructions file for Claude Code from agents-universe/agents-universe. It costs 1,950 tokens per session, scanned A, original, Apache-2.0.

Instructions for Agents Universe, a full-stack framework for building enterprise AI agents across a Python backend and a Vue web interface. A monorepo is one repository containing multiple related packages, which this project uses for its agent engine, web service, and browser interface.

In plain words
What is it for?
It helps with the agent engine, FastAPI service, Vue interface, agent and skill definitions, workflows, knowledge indexing, and local development.
Why use it?
It gives assistants a map of the repository and its development commands, making it easier to work in the correct package and load project knowledge as intended.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Codex.

This is agents-universe/agents-universe's own configuration. It tells Claude Code how to work on agents-universe itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agents-universe configures →

Reuse

Borrowing it

Nothing to install: this file belongs to agents-universe/agents-universe. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/agents-universe/agents-universe/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/agents-universe/agents-universe

Made for: Claude Code.

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-universe CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agents-universe/agents-universe/claude-md/github.svg)](https://agentmods.dev/instructions/agents-universe/agents-universe/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/agents-universe/agents-universe/claude-md"><img src="https://agentmods.dev/badge/instructions/agents-universe/agents-universe/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agents-universe CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agents-universe/agents-universe/claude-md"><img src="https://agentmods.dev/badge/instructions/agents-universe/agents-universe/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,950 This file is loaded in full into every session.
When invoked 1,950 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01950 $0.01950
Opus 5 $0.00975 $0.00975
Sonnet 5 $0.00390 $0.00390
Haiku 4.5 $0.00195 $0.00195

Measured 11d ago against content hash f5c08ea1ccb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

agents-universe 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 11d 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 · 91 lines

How it starts

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

Agents Universe — Enterprise AI Agent Framework

Project Overview

Full-stack enterprise AI agent framework running in Linux containers: autonomous planning, multi-LLM providers (Anthropic / OpenAI / Azure OpenAI / Google Gemini), on-demand knowledge loading, Codex-style web UI.

Core principle: project knowledge loads in full on project selection. No embedding model — context via MD cross-references ([[slug]]).

Monorepo Layout

  • packages/agent-core/ — Python 3.12 LLM orchestration engine (pure library, no HTTP)
  • packages/api/ — Python 3.12 FastAPI web service: auth, DB, WebSocket
  • packages/web/ — TypeScript + Vue 3 Codex-style browser UI
  • agents/ — agent definitions (*.agent.md) and skills (skills/**/*.md)
  • knowledge/ — global framework knowledge base (system/, technical/, _template/); categories.yaml — project category registry (template subsets per category)
  • workflows/ — workflow definitions (*.workflow.md); agent reads and follows

Development Commands

# API (from packages/api/)
PYTHONPATH=src python -m uvicorn api.main:app --port 8000

# Frontend (from packages/web/)
npm run dev

# Run knowledge indexer for a project
python -m agent_core.knowledge.index --project {slug}

# DB migrations (from packages/api/)
alembic upgrade head
alembic revision --autogenerate -m "description"

# Docker local stack
docker compose up
docker compose up --build

Key Conventions

  1. Token security — Encrypted tokens are never logged, printed, or included in error messages. AES-256-GCM in token_vault.py.
  2. Knowledge cross-links[[slug]] inside Markdown files; resolved to knowledge_id at index time.
  3. Project context loadingknowledge/loader.py two-tier model on project selection: primary files load in full from disk; knowledge_level: detail files are indexed in DB (metadata + summary only) and loaded on demand via knowledge_rw.
  4. DB primary keys — Model layer always client-side String(36) + uuid4() (models/_compat.py::new_uuid), portable across all dialects. Never IDENTITY; UNIQUEIDENTIFIER DEFAULT NEWID() appears only in MSSQL-only migration DDL branches.
  5. DB drivers — Four first-class dialects, switched via DATABASE_URL (async app driver → sync alembic driver): SQL Server mssql+aioodbcmssql+pyodbc (never pymssql), PostgreSQL postgresql+asyncpgpostgresql+psycopg2, MySQL mysql+aiomysqlmysql+pymysql, SQLite sqlite+aiosqlitesqlite. DB_* fields build the default MSSQL URL; MSSQL_CONNECTION_STRING is legacy fallback. T-SQL-only DDL must be guarded by dialect branches; SQLite table rewrites use op.batch_alter_table; data backfills guard context.is_offline_mode().
  6. Project isolation — Knowledge queries always scope to project_id = :current OR project_id IS NULL. No cross-project queries.
  7. Agent definitions — Markdown frontmatter + body in agents/*.agent.md (global, synced at startup). Project-scoped agents live in {PROJECTS_ROOT}/{slug}/agents/{project_slug}--{name}.agent.md with matching skills/ and workflows/ dirs; lazily synced to the agents table (column project_id), selectable only within their project, shadowing global skills/workflows of the same slug at runtime. Created/deleted via the 智能体定制专家 conversation (file write/delete + lazy sync) — no restart needed. Models are NOT defined per-agent: configured in Settings → AI Models (user_model_configs table), one per conversation. model_low/mid/high on the agents table and complexity.py are legacy — no complexity-based routing at runtime. @-mention agent routing: typing @ in the composer lists agents only (popup-driven; hand-typed @name stays plain text); selecting one inserts @{display_name} and routes that single turn to the mentioned agent (per-message agent_id is a slug, resolved per turn in handlers.py). The conversation's default agent is unchanged. Attribution is stored on messages.agent_slug; _load_history prefixes other agents' replies with [display_name]: so the mentioned agent can tell whose output is whose. Mid-run injections cannot switch agents (the running agent owns the turn).
  8. Skill typesguidance (LLM instructions), template (code templates), executable (runnable code blocks), composite (chains other skills).
  9. Workflow definitions — Same format as skills; files end in .workflow.md. No YAML engine — agent reads and executes.
  10. Image outputs — Stored in {PROJECTS_ROOT}/{slug}/.tmp/media/{conversation_id}/; served via /api/media/ with JWT auth. Never stored as DB blobs.
  11. Secret management - Two-tier encrypted storage: user_tokens (per-user, cross-project), project_secrets (per-project); both AES-256-GCM in token_vault.py. secret_vault manages the user vault (list/save/delete); api_request resolves secrets via secret_ref/secret_refs + secret_scope (project->user fallback). Secret prompts (user_confirm / api_request) use save_to_project_secrets or save_to_user_tokens (mutually exclusive) - plaintext never reaches the LLM. Secrets never stored in personal_memories (memory_rw rejects them). Keys never put in URL query parameters.
  12. MCP integration - Agents connect to external MCP (Model Context Protocol) servers declared in knowledge/integrations/mcp-servers.md (project-level YAML catalog). Agent frontmatter tools: list declares mcp (all enabled servers) or mcp:<slug> (specific). Tools discovered at runtime, injected as mcp__<server>__<tool> via attach_mcp_tools() in handlers.py (before agent.run()). Transport: Streamable HTTP with SSE fallback. Secrets reuse project_secrets/user_tokens via secret_ref; SSRF validation, header blacklist, destructive-tool confirmation gate, and response redaction are built in. MCPConnectionManager holds connections per ToolContext (cleaned up in ToolContext.cleanup()). MCP failures never block the conversation (degraded to warning).

Read the full file on GitHub · 91 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. 11d ago First seen · 91 lines · 1,950 tokens per session scan A f5c08ea1ccb9

Subscribe to this mod's changes

agents-universe CLAUDE.md is an instructions file published in the GitHub repository agents-universe/agents-universe (377 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,950 tokens to every session, about $0.0097 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-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens