domain

domain is an agent for coding agents from the-metafactory/soma. It costs 0 tokens per session (804 once invoked), scanned A, original, MIT.

Repository guidance for using domain documentation while working in a codebase. It defines which files contain the project’s current decisions, glossary, research, and supporting architecture information.

In plain words
What is it for?
Use it when exploring the repository, checking design decisions, understanding project terminology, or finding the research and architecture documents that support an implementation.
Why use it?
It helps an agent resolve unfamiliar terms and conflicting documentation by providing an order of authority. Missing optional documents are treated as normal until they are needed.

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/the-metafactory/soma/domain
Clone the repo
git clone --depth 1 https://github.com/the-metafactory/soma

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 domain

README.md
[![agentmods](https://agentmods.dev/badge/agents/the-metafactory/soma/domain.svg)](https://agentmods.dev/agents/the-metafactory/soma/domain)
Your own site
<a href="https://agentmods.dev/agents/the-metafactory/soma/domain"><img src="https://agentmods.dev/badge/agents/the-metafactory/soma/domain.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 804 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.00000 $0.00804
Opus 5 $0.00000 $0.00402
Sonnet 5 $0.00000 $0.00161
Haiku 4.5 $0.00000 $0.00080

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

Security

Grade A, and why

domain 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.

docs/agents/domain.md · 85 lines

How it starts

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

Domain Docs

How the engineering skills should consume soma's domain documentation when exploring the codebase.

Hierarchy of authority

  1. VSA.md at repo root — current source of truth for scope, criteria, decisions in flight, and verification (per AGENTS.md).
  2. design/design-decisions.md — the metafactory Design Decisions record. Numbered DD-N. If anything contradicts a DD, the DD wins.
  3. CONTEXT.md at repo root — domain glossary (does not yet exist; /grill-with-docs creates it lazily as terms get resolved).
  4. research/*.md — evidence base. DDs cite specific research findings.
  5. docs/*.md — supporting docs: architecture.md, substrate-adapters.md, naming.md, boundaries.md, default-availability.md, etc.

If CONTEXT.md or design/design-decisions.md don't exist yet, proceed silently. Don't flag absence; don't suggest creating them upfront. The producer skills create them lazily when terms or decisions actually get resolved.

Metafactory Design Decision format

Each DD is a section inside design/design-decisions.md:

## DD-N: Title

**Status:** Accepted | Proposed | Deprecated | Superseded
**Date:** YYYY-MM-DD
**Authors:** Names
**Research:** research/<file>.md, <other refs>

### Context
What problem this addresses; what was previously the case.

### Decision
The actual rule. One paragraph, hard-to-vary.

### Consequences
What this commits the project to. Trade-offs accepted.

DD numbering is per-repo sequential. Pick the next free number when adding one.

File structure

~/work/mf/soma/
├── AGENTS.md
├── VSA.md
├── CONTEXT.md                    ← lazily created by /grill-with-docs
├── design/
│   └── design-decisions.md       ← metafactory DD format, numbered DD-N
├── research/                     ← evidence cited by DDs
├── docs/
│   ├── architecture.md
│   ├── boundaries.md
│   ├── substrate-adapters.md
│   ├── naming.md
│   └── ...
└── src/
    ├── adapters/
    └── skills/

Read the full file on GitHub · 85 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 · 85 lines · 0 tokens per session scan A 95944856a413

Subscribe to this mod's changes

domain is an agent published in the GitHub repository the-metafactory/soma (8 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 804 tokens. 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.