Skip to the content.

AgentFS (agent-filesystem)

Shared agent scaffolding with skills, knowledge bundles, and cross-agent context.

Part of the agent-x trilogy:

AgentFS is a structured filesystem convention for AI agents (Goose, Hermes, Claude Code, etc.) that enables persistent memory, reusable skills, and shared knowledge across agents and sessions.

Quick Navigation

Resource Path What’s Inside
Skills catalog skills/index.md All available skills — signal phrases, tags, descriptions
Knowledge bundles knowledge/index.md Curated knowledge — concepts, patterns, postmortems
Deployment profiles skills/hosted-model-ctl/references/deployment-profiles.md Self-hosted model profiles — fitting scores, speed, hardware, trade-offs
Activity log log.md Reverse-chronological change history
Design spec skills/agentfs-setup/references/design-spec.md Architecture, scope model, layer definitions

Scope Definitions

AgentFS operates in three scopes. These definitions are canonical.

Scope Root Path Resolves To Purpose
USER ~/.agents/ /home/<user>/.agents/ Machine-wide shared library: skills and knowledge visible across all projects and agents
PROJECT ./.agents/ <repo-root>/.agents/ Per-repository agent workspace: identity, profiles, memories, and project-scoped skills
LITE ./.agents/ <remote-project>/.agents/ Minimal per-repo workspace for small-context models: identity and memories only

Rule of thumb: USER scope = ~/.agents/. PROJECT scope = ./.agents/ (CWD). LITE scope = ./.agents/ at a remote path, managed externally.

This repository is a USER scope AgentFS instance.

Getting Started

Step 1: Set Up USER Scope (~/.agents/)

Choose one of two paths:

Clone this repo directly into ~/.agents/:

git clone https://github.com/rhtevan/agentfs.git ~/.agents

You get the complete skill library, knowledge bundles, and structural scaffolding — ready to use immediately.

Path B: Minimal Install

For a clean, empty ~/.agents/ where you cherry-pick skills:

  1. Clone the repo to a staging location:
    git clone https://github.com/rhtevan/agentfs.git ~/repos/agentfs
    
  2. Make the staging location visible to your agent (e.g., add ~/repos/agentfs/skills/ to the agent’s skill search paths — see the relevant agent setup skill for details).
  3. Ask your agent to run the agentfs-setup skill with USER scope:

    “Set up AgentFS in USER scope”

    The agent will load the agentfs-setup skill and scaffold an empty ~/.agents/ with skills/, knowledge/, index.md, and log.md.

  4. Cherry-pick specific skills using the skill-merge skill or manual copy.

Step 2: Configure Your Agent

With Goose

Load the goose-agentfs-setup skill to configure Goose for AgentFS:

Required: the tom (Top Of Mind) extension; it injects the file named by GOOSE_MOIM_MESSAGE_FILE (registered by hey sync goose agentfs). Recommended: the knowledgegraphmemory (KGM) extension and the signal-dispatch plugin. Both are fail-open; without them, hey dispatch is left to the model (Rule 1). hey sync goose agentfs auto-enables tom and registers GOOSE_MOIM_MESSAGE_FILE.

Run hey sync goose agentfs to perform a full sync (updates project AGENTS.md from template, then generates custom system.md and MOIM).

With Hermes Agent

Install Hermes with the hermes-install skill (hey install hermes), then load the hermes-agentfs-setup skill to register ~/.agents/skills in Hermes’s skills.external_dirs.

Step 3: Set Up PROJECT Scope (per repo)

In any git repository, ask your agent to run the agentfs-setup skill:

“Set up AgentFS for this project”

The agent will scaffold .agents/ (with skills, profiles, memories, SOUL.md) and create AGENTS.md at the repo root. Since PROJECT is the default scope, no additional hint is needed.

Step 3b: Set Up LITE Scope (for remote small-model projects)

To set up a minimal AgentFS for a project consumed by a small-context model, specify the target directory explicitly:

“Set up AgentFS at ~/projects/my-lite-project”

The explicit remote path signals LITE scope. The agent scaffolds a minimal .agents/ (identity + memories only, no skills or profiles) and creates a LITE AGENTS.md (~850 tokens) with 6 simplified rules. LITE projects are maintained by full-capability sessions and consumed by developer-only sessions.

Adding Skills

Create a new directory under skills/ with a SKILL.md file, then ask the agent to run the skill-index skill to regenerate the index.

Adding Knowledge

Ask the agent to run the okf-bundle-setup skill to scaffold a new OKF-conformant knowledge bundle under ~/.agents/knowledge/ (USER scope — knowledge is shared across all projects).

Directory Structure

USER Scope (~/.agents/)

A machine-wide shared library of skills and knowledge visible to any agent across all projects. No agent identity, memories, or profiles — purely a capability and knowledge store.

~/.agents/
├── skills/          # Shared agent workflows (SKILL.md format)
├── knowledge/       # Shared knowledge bundles (Open Knowledge Format)
├── plugins/         # Goose hooks plugins (deterministic enforcement)
├── scripts/         # Shared scripts (SDM, compliance benchmark + parallel driver, dispatch fidelity checker, gather-state, test fixtures)
├── assets/          # Static assets (images, diagrams)
├── index.md         # Navigation hub — start here
└── log.md           # Activity log (reverse chronological)

PROJECT Scope (./.agents/ in a repo)

A per-repository agent workspace that adds identity, memory, and multi-agent collaboration on top of skills. Each project can have its own agent profiles with independent memories.

Each profile is a distinct agent identity with its own SOUL.md, recipe.yaml (for spawning as a Goose recipe session), memories/, and output/ directory. The default agent SOUL is interactively authored via author-soul.sh and loaded automatically at session start via @import in AGENTS.md.

./
├── AGENTS.md                # Workspace entry point
└── .agents/
    ├── SOUL.md              # Default agent identity
    ├── profiles/            # Named agent profiles (each with SOUL.md, recipe.yaml, memories/, output/)
    ├── memories/            # Default agent's learned context (USER.md, MEMORY.md)
    ├── skills/              # Project-specific skills
    ├── index.md
    └── log.md

LITE Scope (./.agents/ at a remote path)

A minimal per-repo workspace for projects consumed by small-context models (e.g., Granite 3B at 16K context). No skills, profiles, or knowledge — only identity and memories.

<target-project>/
├── AGENTS.md              # Lite template (~850 tokens, 7 rules)
└── .agents/
    ├── SOUL.md            # Default agent identity
    ├── memories/          # Default agent's learned context (USER.md, MEMORY.md)
    ├── index.md
    └── log.md

LITE scope is always managed externally by a full-capability session. It cannot self-sync or self-scaffold.

Scope Boundaries

All three scopes coexist — agents discover USER-level skills and knowledge globally while maintaining project-scoped identity and memory. LITE scope projects use a minimal subset optimized for constrained context windows.

Skills (skills/)

Each skill is a self-contained directory with a SKILL.md file that provides step-by-step instructions an agent can load and follow. Skills cover topics like:

Category Examples
Agent Setup AgentFS scaffolding, Goose/Hermes/DSH configuration, Hermes install (hermes-install), agent profiles, interactive SOUL authoring (author-soul.sh), on-demand profile recipe generation (gen-profile-recipe.sh), session cleanup (goose-recipe-session-cleanup), Goose system prompt optimization (goose-agentfs-setup: primacy-zone AGENTS.md, MOIM SOUL delivery, profile activation, drift detection)
LLM Providers LiteLLM Vertex AI proxy (setup, verify, model discovery), Goose/Hermes/DSH provider config, Headroom proxy, MaaS providers, Skupper provider (goose-skupper-provider)
OpenShift/CRC CRC install/upgrade/uninstall (guided, sha-verified, crc-install), operator installs (COO, NOO, NMState, MetalLB, NAD dynamic plugin), cluster lifecycle (start/stop/cleanup), post-setup config (monitoring, system-reserved, banner), AAP demo
Knowledge Mgmt OKF bundle creation, indexing, harvesting, generation, KGM lifecycle (goose-kgm)
Model Serving Hosted model lifecycle (deploy, start, stop, test on NVIDIA GPUs via Podman), platform report (specs, accelerator, model recommendations by VRAM tier), Skupper model provider (remote GPU exposure via VAN)
Diagramming Architecture/workflow/sequence/data-flow diagrams (agentfs-archify), draw.io integration (goose-nextai-drawio)
Desktop/System Hermes desktop fixes, Fedora window list, desktop WMClass fixes, DNS cache, NetworkManager boot delays, Goose CLI/desktop fixes, Obsidian Snap fix
Shell Tooling Bash tab-completion generation (bash-completion-gen)
Spec Authoring Spec-kit setup and configuration (spec-kit-setup)
Evaluation AgentFS workspace eval (agentfs-eval), individual skill eval (skill-eval), QOO schemas (schemas/quality.yaml, observable.yaml, operable.yaml, adapted variants for AGENTS.md)
Data Services Apache Fuseki triplestore lifecycle (agentflow-fuseki)

The library currently contains 63 skills across these categories. See skills/index.md for the full catalog.

SKILL.md Frontmatter

Every SKILL.md begins with YAML frontmatter:

---
name: my-skill
description: >
  signal phrase 1, signal phrase 2, signal phrase 3
metadata:
  version: "1.0.0"
  tags: [domain, function]
user-invocable: true
---
Field Required Purpose
name Yes Must match parent directory name
description Yes Signal phrases (2-4 word trigger phrases) for intent matching
metadata.version Yes Quoted 3-part semver (e.g., "1.0.0")
metadata.tags Yes Tag-based discovery
user-invocable Yes Must be true (skill-check S01)

See skill-gen/references/skill-schema.md for the full canonical schema.

Skill Directory Layout

skills/my-skill/
├── SKILL.md          # Instructions (loaded by load_skill)
├── CHANGELOG.md      # Version history (external, not loaded by default)
├── scripts/          # Executable automation (non-interactive)
└── references/       # Supporting docs

Changelogs are externalized into CHANGELOG.md to avoid bloating the model context window when load_skill reads SKILL.md. Access via load_skill("skill-name/CHANGELOG.md") when needed.

The skills/index.md serves as a signal-based routing lookup table — it contains Skill, Tags, Description, and Updated columns. Agents read it on session start to map user intent to skills.

Knowledge (knowledge/)

Knowledge bundles follow the Open Knowledge Format (OKF) — each bundle contains concept documents, an index.md navigation hub, and a log.md changelog.

Current bundles:

See knowledge/index.md for the full catalog.

Structural Rules

AgentFS v7.15.2 enforces 7 operational rules as numbered subsections (### N. Name) with When/Do pairs in AGENTS.md. Behavioral norms (false premises, consent, risk naming, bounded effort) live in SOUL.md Principles — the self-discipline layer. AGENTS.md rules handle external enforcement only: routing, hooks, process obligations.

# Name When Do
1 Signal Dispatch User message starts with hey Route per Signal Dispatch table (Path A) or search_nodes (Path B). Progressive narrowing on miss.
2 Pre-Flight Before any task that modifies ≥2 files, has step dependencies, or includes git push Two modes: Standard Mode — state plan, fold in constraints, execute. Spec-Driven Mode — define validation gate, numbered actions with expected outcomes, fold in constraints, execute incrementally, run gate before claiming done.
3 Session Canary Session begins or continuity check Rules already in context, authoritative. Read USER.md. On turn 1, start response with ephemeral two-word canary. Re-verify every 10 turns (or after compaction). Silent self-violation check at re-verification.
4 Conflict Resolution Reversing a position or request conflicts with a rule State what changed. Quote the rule, explain the conflict, ask for [OVERRIDE].
5 Checkpoint Before destructive .agents/ op; also before editing seed-agents-md.sh checkpoint.sh create <files>. Bump version: in SKILL.md if editing seed template. Execute. Run sync-agents-md.sh if template edited. checkpoint.sh clear.
6 Scope & Post-Write Writing to or deleting any file under .agents/ or ~/.agents/ Scope: memories PROJECT-only, skills default USER. After EACH write immediately run post-write.sh — do not respond until it completes. After EACH deletion run post-write.sh --deleted. Graduate mature patterns via hey harvest.
7 Dry-Run Gate A skill workflow step runs a Command script (creates, modifies, or deletes files, services, or configuration) Run with --dry-run first if supported. DRY_RUN_RESULT=CONVERGED → report “already configured”, skip apply. DRY_RUN_RESULT=PENDING → apply. Exit 0 means the dry-run succeeded, not “no changes” — read the signal.

Design constraint: Rules must use guard-style When clauses (evaluable before execution). Effect-based triggers — whose conditions depend on the agent’s own completed actions — are prohibited (0% fire rate on all model sizes). See design-spec.md C1/C2.

Signal Dispatch is a separate table in AGENTS.md. All signals are unified under the hey prefix. Deterministic enforcement is provided by the signal-dispatch plugin via Goose PreToolUse hooks.

Hook plugins (plugins/, discovered by goose from plugins/<name>/hooks/hooks.json; live in every goose session). Rule text is unchanged; hooks only block and remind:

Plugin Rule Behaviour
signal-dispatch 1 On a hey prompt not in the Signal Dispatch table, blocks the first other tool once with a reminder to run search_nodes; a wrongly named KGM tool gets a one-time notice with the fix. Fail-open: enforces only when the KGM extension is enabled in goose config.yaml, otherwise Rule 1 is left to the model. With goose-kgm’s default (enabled: false, enabled per session) it stays inactive; with KGM enabled globally (enabled: true) it enforces in every session
preflight-reminder 2 Blocks the first mutating tool call of each turn once with a Pre-Flight reminder; the user’s reply after a hold, or a short approval (yes/go/…), option pick (A, option 2) or 2–3 word reply ending in one (fix + go; not no go), counts as approval
post-write-enforce 7 After a write under .agents/ (write/edit tools, or a shell command that writes there: redirect, sed -i, cp/mv/rm, python3 file writes — also when the command then fails, if the file changed), blocks the next non-shell tool once with a reminder to run post-write.sh; a post-write.sh run clears only the file it was run on (fail-open: never locks the session). Not detected: writes inside a script the command runs (bash some-script.sh) — that script must call post-write.sh itself

Per-session state lives in /tmp/goose-{dispatch,preflight,postwrite}/<session-id>. goose reuses session IDs, so each plugin clears its state on SessionStart (new sessions only). Compliance scores in compliance-profile.yaml measure AGENTS.md + hooks; verdicts tag hook-assisted runs. Re-record with scripts/run-parallel.sh real (sharded per tier, ~12 min for 3 tiers × 49 runs).

Path hygiene (never use /home/<user>/ in output) is enforced by pre-push-scan.sh Category 2 rather than a dedicated rule.

The canonical source for rules is the agentfs-setup skill template (seed-agents-md.sh). See any project’s AGENTS.md for the full rendered rules (generated from seed-agents-md.sh).

Memory Architecture

AgentFS implements a layered memory system inspired by cognitive science. Each layer serves a distinct purpose, scope, and mutability model.

Memory Lifecycle

  ┌─────────────────────────────────────────────────┐
  │              Working Memory                     │
  │  (runtime-managed, persisted by agent runtime)  │
  │                                                 │
  │  auto-loaded at session start:                  │
  │    AGENTS.md, .goosehints, CLAUDE.md, ...       │
  │    + agent persistent instructions              │
  │  auto-loaded via @import in AGENTS.md:          │
  │    SOUL.md                                      │
  │  read on first use (agent-initiated):           │
  │    USER.md                                      │
  └──────────┬──────────────────────────────────────┘
             │
             │ on-demand capture
             │ (user-triggered: "remember this")
             ▼
  ┌─────────────────────────────────────────────────┐
  │      MEMORY.md  (episodic, per-project)         │
  │                                                 │
  │  NOT auto-loaded — read on-demand for recall    │
  │  or graduation only                             │
  └──────────┬──────────────────────────────────────┘
             │
             │ on-demand graduation
             │ (user-triggered: "harvest memories")
             ▼
  ┌──────────┴──────────┐
  │                     │
  │                     │
  ▼                     ▼
  ┌───────────────┐    ┌───────────────┐
  │  knowledge/   │    │   skills/     │
  │  (semantic)   │    │ (procedural)  │
  └───────────────┘    └───────────────┘

All transitions are on-demand and human-gated — nothing is automatic. The user explicitly triggers capture (“remember this”) and graduation (“harvest memories”). This is by design: human gating ensures quality control over what persists and what graduates.

The Full Memory Model

Memory Type Cognitive Analogy Scope Location Mutability
Working memory Short-term / active SESSION Agent runtime (context window + persistent session store, e.g. SQLite) Runtime-persisted; opaque to AgentFS
MEMORY.md Episodic / experiential PROJECT .agents/memories/ Agent-written, session-to-session
OKF bundles Semantic / conceptual USER ~/.agents/knowledge/ Distilled, graduated
SKILLs Procedural / SOP Both ~/.agents/skills/ or .agents/skills/ Human + agent authored
SOUL.md Identity PROJECT .agents/SOUL.md Human-authored (guided by author-soul.sh)
USER.md User model PROJECT .agents/memories/USER.md Agent-written
AGENTS.md Working agreements PROJECT ./AGENTS.md Human-authored + templated
instructions.md Agent instincts USER (agent-specific) e.g. ~/.config/goose/instructions.md Human-authored

Layer Details

Working Memory — Runtime-Managed

The agent’s active context window during a session: current conversation, loaded files, in-flight goals, scratch reasoning, and tool results. This is the “RAM” of the agent — everything the model can attend to right now.

What gets loaded into working memory at session start:

What AgentFS does NOT manage:

Boundary interactions with AgentFS:

External systems: Agent runtimes, MCP-based session stores (e.g. Hindsite), or agentic RAG systems (e.g. Cognee) may provide their own working memory persistence, retrieval, or cross-session sharing. These are external to AgentFS. When such systems coexist, AgentFS files remain the canonical source of truth; external systems are accelerators, not replacements.

Episodic Memory — MEMORY.md

Concrete, project-specific observations and discoveries recorded by the agent during work. Each agent profile (default, named profiles) maintains its own MEMORY.md.

Semantic Memory — OKF Knowledge Bundles

Abstract concepts, patterns, and methodology distilled from episodic memories across one or more projects. Strictly USER-scoped to protect personal intellectual property — never committed to any project repository.

Procedural Memory — Skills

Actionable, preferably idempotent workflows — standard operating procedures (SOPs), exercises, and automation functions.

Memory Signal Routing

When multiple memory systems coexist (e.g., AgentFS file-based memory, agent-specific extensions like Goose Memory/Cognee, or external MCP servers), natural-language signals like “remember this” can create ambiguity. AgentFS solves this with a two-layer decision table architecture:

Layer 1: Agent-Agnostic Table (AGENTS.md Signal Routing)

Defines signal → route mappings that work with ANY agent. The table contains only LLM-direct routes (no skill involved) and genuinely ambiguous multi-skill triage entries:

Skill-routed signals (e.g., “create a skill” → skill-gen) do NOT live in the AGENTS.md table. They live in each SKILL.md’s metadata.signals frontmatter field and are aggregated into ~/.agents/skills/index.md by the skill-index skill.

Resolution flow:

  1. Check AGENTS.md Signal Routing table (LLM-direct routes)
  2. Check ~/.agents/skills/index.md Signals column (skill routes)
  3. Fallback: default skill name/description matching

Layer 2: Agent-Specific Table (e.g., Goose instructions.md)

Overrides Layer 1 when the agent has its own memory extensions enabled. The table is static — it lists all possible routes with priority numbers. The agent resolves dynamically at runtime by checking whether each referenced tool exists in the current session’s available tools.

Example (Goose):

Priority Extension When Available
1 (highest) Cognee MCP Knowledge graph with semantic search — subsumes Memory when enabled
2 Goose Memory Simple persistent .txt storage — fallback when Cognee unavailable
3 Chat Recall Past session search — unique capability, no overlap with storage

Resolution rule: Process rows in priority order. First row whose tool exists in the current tools list wins. If no agent-specific tool matches, fall through to Layer 1 (AGENTS.md).

Tool existence = extension enabled. Agents only inject tools when their parent extension is active, so checking tool availability is equivalent to checking extension state — no config file inspection needed.

Rule Layering

Rules exist at three levels:

Level Location Scope Purpose
AgentFS template seed-agents-md.sh in the agentfs-setup skill Cross-project Canonical source of the 6 structural rules; projects are aligned to this template
AGENTS.md ./AGENTS.md in each project PROJECT Rendered instance of the template rules, plus any project-specific additions
Agent config e.g. ~/.config/goose/instructions.md USER (agent-specific) Agent-level instincts — memory routing overrides, SOUL identity (per-turn via tom)

When the AgentFS template is updated, existing projects are brought into alignment by re-running agentfs-setup --sync (extracts project-owned sections, regenerates from template, re-injects preserved sections).

Template Versioning

Every generated AGENTS.md carries a version stamp on line 1:

<!-- agentfs-template-version: 7.15.2 -->

AGENTS.md is divided into two ownership zones:

Zone Marker Managed By
Template-owned Everything above <!-- PROJECT-OWNED --> seed-agents-md.sh template; regenerated by --sync
Project-owned Everything below the marker Project-specific; preserved across sync

Project-owned sections:

Template-owned sections are read-only at project scope. To change a rule or add a signal, update the seed template and sync.

README Sync Rule

When AgentFS design, rules, skills schema, or template structure changes, ~/.agents/README.md MUST be updated in the same session. This is enforced by Rule #5 (Filesystem Integrity).

Skill Design Principles

Skills follow three foundational design principles that govern how interactivity, determinism, and orchestration are separated across architectural layers.

1. Non-Interactive Scripts

Scripts under scripts/ MUST be non-interactive. They MUST NOT use read, select, interactive prompts, or any mechanism that blocks waiting for stdin. All inputs MUST be accepted via command-line arguments, environment variables, or input files.

# ✅ Correct — inputs as arguments
bash scripts/provision.sh --name "$NAME" --email "$EMAIL"

# ❌ Wrong — blocks on stdin
read -p "Enter name: " NAME

This ensures scripts remain testable, composable, and executable in automated contexts (scheduled jobs, skill chaining, CI pipelines) where no human is present at the terminal.

2. Agent-as-Orchestrator Pattern

Skills implement a three-layer architecture that cleanly separates concerns:

┌────────────────────────────────────────┐
│              SKILL.md                  │
│       (Process Definition)             │
│  Defines steps, decision points,       │
│  interaction gates, and script calls   │
└──────────────┬─────────────────────────┘
               │ instructs
               ▼
┌──────────────────────┐       ┌──────────────┐
│       Agent          │◄─────►│     User     │
│   (Orchestrator)     │       | conversation │
│                      │       |    context   │
│  Mediates human      │       └──────────────┘
│  interaction,        │
│  holds state,        │
│  feeds data between  │
│  steps               │
└──────────┬───────────┘
           │ executes
           ▼
┌──────────────────────┐
│  Deterministic       │
│  Scripts (Actions)   │
│                      │
│  Non-interactive,    │
│  idempotent,         │
│  args in → exit      │
│  code out            │
└──────────────────────┘
Layer Responsibility Interactive?
SKILL.md Defines the process — sequence, decision points, gates N/A (blueprint)
Agent Orchestrates flow, mediates user interaction, translates between human language and script arguments ✅ Conversationally
Scripts Execute deterministic, repeatable actions ❌ Never

The agent handles the “messy human stuff” — ambiguous inputs, clarifications, approvals, error explanations. The scripts handle the “precise machine stuff” — validation, API calls, data transformations. The SKILL.md is the contract between them.

3. Skills as Business Process Definitions

Skills can model multi-step business processes that include human interaction points. The key insight is that interactivity belongs in the agent ↔ user conversation layer, not in script execution.

A business process skill defines:

Example pattern in a SKILL.md:

## Steps

1. **Collect requirements**
   Ask the user for: name, department, role.

2. **Validate input**
   Run: `bash scripts/validate.sh --name "$NAME" --dept "$DEPT"`
   If exit code 1 → report errors, return to Step 1.

3. **Present plan and confirm**
   Show the provisioning plan. Ask for user confirmation.

4. **Execute**
   Run: `bash scripts/provision.sh --config /tmp/plan.json`

5. **External approval gate**
   Tell the user: "Manager approval required. Provide the
   approval reference when ready."
   Run: `bash scripts/verify-approval.sh --ref "$REF"`

6. **Finalize and report**
   Run: `bash scripts/finalize.sh --id "$ID"`

This pattern preserves all structural rules — scripts stay idempotent by design, the process is documented (SKILL.md is the documentation), each script is independently testable, and the same scripts can be reused by other skills or automated jobs with pre-known inputs.

4. Parameter Binding for Multi-Argument Skills

Skills with three or more parameters SHOULD use the Parameter Binding Pattern (see knowledge/agentfs-skill-patterns/parameter-binding-pattern.md):

Evaluation

AgentFS includes a QOO (Quality, Observable, Operable) evaluation framework with two domain-specific skill pairs:

Domain Static (Quality + Operable-build) Runtime (Operable-runtime) Runtime method
Base skill (AGENTS.md + SOUL.md) agentfs-setup (hey upgrade agentfs) → artifacts/agents-md/scores.yaml agentfs-eval (hey eval agentfs) → compliance-profile.yaml controlled compliance campaign (T4/T3/T2, fixtures + graders)
SKILL skill-gen (hey score skill) → <skill>/scores.yaml skill-eval (hey eval skill) → <skill>/scores.yaml async: scripts write traces, SDM scores the latest one

Canonical methodology: knowledge/agentfs-engineering-evolution/evaluation-methodology.md.

QOO Properties

Property Schema What It Measures
Quality quality.yaml (MCACS) Build-time structural quality: modularity, cohesion, abstraction, coupling, separation of concerns
Observable observable.yaml Build-time instrumentation: trace instrumentation, CNL compliance, anti-fabrication guards, SDM delegation
Operable operable.yaml (BMBT + CECX) Build-time structural readiness (bones, muscle, brain, harness) + runtime execution correctness (step completion, no fabrication, inference hops, token efficiency, correct sequence, scope resolution)

AGENTS.md is Non-Observable (passive document, no self-instrumentation) and uses adapted schemas (quality-agents-md.yaml, operable-agents-md.yaml) with calibrated thresholds for declarative policy. SKILL artifacts use the universal schemas.

Each evaluation uses a hybrid evidence architecture: Stage 1a (gather-skill-state.sh for structural facts) + Stage 1b (frontier model for semantic extraction per dimension) + Stage 2 (SDM SystemOne API for reproducible bounded scoring). No composite score across axes — per-axis bands reported separately.

Evaluation Stages (agentfs-eval)

The full eval sequence (hey eval agentfs) runs 9 steps in strict order:

Stage Method What It Verifies
S0 template-check.sh (deterministic) Template quality: token budget, section order, rule completeness, version consistency, no effect-based triggers, rule lint (A0–A14)
S1 agentfs-check.sh (deterministic) Structural: links, log ordering, index completeness, scope correctness
S2 agentfs-behavior.sh (deterministic) Behavioral: action-log correlation, timestamp alignment, scope leakage
S3 semantic rubrics (LLM) Memory classification, reference verification, sycophancy detection
Runtime update-compliance.sh --check + runtime-compliance.sh (deterministic) Rule compliance per tier from the compliance profile: pass rate, frontier delta, weak rules, variance. No SDM. Campaigns (run-parallel.sh) run only on request
Static static-sheet-status.sh Static record current / stale (report only)

Scoring

Every number has one stored home; derived views are computed, never copied.

Record Holds Written by
agentfs-setup/artifacts/agents-md/scores.yaml base skill static: Quality + Operable-build (+ a stateless runtime reference) hey upgrade agentfs (SDM, or calibrated T4)
agentfs-setup/compliance-profile.yaml base skill runtime: per-rule, per-tier pass rates compliance campaigns only
<skill>/scores.yaml ordinary skill QOO, including trace-based runtime skill-gen / skill-eval

When SDM is unavailable, the session model answers as a T4 fallback: report only, never persisted. One exception: the base skill’s static record uses a calibrated T4 scorer (another model family, median of 3, within ±3 of an SDM reference) and records it as scorer: t4-fallback:<model>.

Maturity Levels

Level Name Requirements
L0 Absent No .agents/ directory
L1 Scaffolded .agents/ exists with valid structure
L2 Structurally Sound No S1 assertion fails
L3 Behaviorally Safe No S1 or S2 assertion fails
L4 Semantically Accurate No S1–S3 assertion fails
L5 Self-Correcting Agent detects and fixes its own violations

Only FAIL blocks a level; WARN and N/A are reported but do not block.

Usage

Run agentfs-eval explicitly by asking any agent:

“hey eval agentfs” — full eval (S0–S3 + runtime compliance + static record status) “hey eval agentfs workspace” — S1–S3 + maturity, report only (≤ 2 min) “hey eval agentfs template” — S0 + runtime compliance + static record status “hey agentfs score” — S0 only (quick deterministic check) “hey check violations” — session audit mode (diagnostic, no scores)

For the most reliable results, run in a fresh session with a capable model to eliminate self-evaluation bias.

Key Design Decisions

See skills/agentfs-eval/SKILL.md for full details and skills/agentfs-eval/references/design-decisions.md for the complete design rationale.

License

Copyright 2025 Evan Zhang

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

See LICENSE for the full text.