Version: 0.1.0
Status: Draft
Specification: SPECIFICATION.md
The Open Reasoning Format (ORF) defines a lightweight, file-based memory architecture for AI agents. It synthesizes principles from:
- The Reasoning Bank paper (Google): Procedural knowledge, abstracted heuristics, and execution traps learned through experience.
- Open Knowledge Format (OKF): Human-readable, token-optimized Markdown and YAML.
- Agent Skills Specification: Progressive disclosure and zero-runtime indirection layers.
๐ Key Features
- Zero Runtime Infrastructure: Operates via local workspace file I/O (
./experiences), requiring no vector databases or external server processes. - Progressive Disclosure: Agents query high-level category metadata (~200 tokens) before fetching targeted experience playbooks (~800 tokens), optimizing context window usage.
- Standardized Schema: 5-section Markdown architecture with YAML frontmatter for explicit indexing and trigger conditions.
- Agent Skill Ready: Interoperable with agentskills.io via the included
manage-experienceskill and reference CLI tool.
๐ Repository Structure
.
โโโ AGENTS.md # AI agent operational guidelines
โโโ README.md # Overview and usage instructions
โโโ SPECIFICATION.md # Full ORF v0.1.0 Specification
โโโ requirements.txt # Python dependencies (PyYAML)
โโโ experiences/
โ โโโ INDEX.md # Root category index & indirection layer
โ โโโ python-scripting/ # Domain directory
โ โโโ EXP-20260720-0001.md # Frontmatter parsing playbook
โ โโโ EXP-20260720-0002.md # Atomic file storage playbook
โ โโโ EXP-20260720-0003.md # Subprocess pipe deadlock playbook
โโโ manage-experience/
โ โโโ SKILL.md # Agent Skill Specification (agentskills.io)
โ โโโ scripts/
โ โโโ experiences.py # Reference Python helper CLI script
โโโ evals/ # Trajectory Evaluation & A/B Testing Framework
โ โโโ README.md # Evaluation harness & scenario authoring guide
โ โโโ runner.py # Evaluation CLI benchmark runner
โ โโโ harness/ # Sandbox, evaluator, and spec validator
โ โโโ scenarios/ # Isolated scenario benchmarks (problem.md & test_verify.py)
โ โโโ reports/ # Exported evaluation matrix reports (Markdown / JSON)
โโโ tests/
โโโ test_experiences.py # Automated unit test suite
๐ ๏ธ Getting Started
Prerequisites
- Python 3.10+
- PyYAML (
pip install -r requirements.txt)
pip install -r requirements.txt
๐ก Using the Helper CLI (experiences.py)
The reference implementation script provides deterministic file I/O operations for viewing and creating experience records.
1. List Available Categories
python3 manage-experience/scripts/experiences.py list-categories
2. Inspect Experience Metadata in a Domain Category
python3 manage-experience/scripts/experiences.py get-frontmatter --category python-scripting
3. Read a Specific Experience Record
python3 manage-experience/scripts/experiences.py read-experience --id EXP-20260720-0001
4. Record a New Experience
python3 manage-experience/scripts/experiences.py create-experience \ --domain "cloud-run" \ --title "Set explicit memory limit on container deployment" \ --description "Trigger when deploying containerized apps to Cloud Run experiencing OOM kills." \ --keywords "cloud-run,container,memory,oom" \ --complexity "medium" \ --objective "Deploy service to Cloud Run without container OOM restarts." \ --trap "Default 512MiB allocation caused container crashes under load." \ --insight "Always set memory limit to at least 1GiB for Node/Python runtimes during initial provisioning." \ --validated-path "Pass --memory 1Gi to gcloud run deploy command." \ --checklist-item "Verify memory utilization in Cloud Monitoring."
๐ง The manage-experience Skill
The Open Reasoning Format includes a pre-built Agent Skill located in manage-experience/SKILL.md, adhering strictly to the agentskills.io specification.
Skill Overview
- Name:
manage-experience - Specification:
ORF-0.1 - Location:
manage-experience/SKILL.md - Helper Script:
manage-experience/scripts/experiences.py - Compatibility: Requires local filesystem read/write permissions and Python 3.10+ (with
PyYAML).
Skill Frontmatter Header
--- name: manage-experience description: Dynamically routes, retrieves, and records procedural playbooks from the local `./experiences` folder. Use at the start of complex tasks to consult past experience, and at the end of a successful execution to record new operational learnings. license: Apache-2.0 compatibility: Requires local file-system read/write permissions and Python 3.10+ metadata: version: "0.1.0" spec_format: "ORF-0.1" ---
๐ฆ Installing the Skill
Install manage-experience into your AI coding agent (e.g. GitHub Copilot, Claude Code, Cursor, Antigravity) using standard Agent Skills CLI tools:
Using Vercel skills CLI (skills.sh)
# Install into the current project npx skills add glaforge/open-reasoning-format --skill manage-experience # Install globally (available across all projects) npx skills add glaforge/open-reasoning-format --skill manage-experience -g
Using GitHub CLI (gh skill)
# Install into current project gh skill install glaforge/open-reasoning-format manage-experience # Install for a specific agent (e.g. claude-code, cursor, antigravity) at user scope gh skill install glaforge/open-reasoning-format manage-experience --agent claude-code --scope user
How Agents Utilize the Skill
Host agent frameworks that support the Agent Skills specification automatically discover manage-experience/SKILL.md upon initialization. The skill provides step-by-step instructions guiding the agent through a two-phase workflow:
-
Phase 1: Progressive Discovery & Retrieval
- Step 1 (Category Search): The agent runs
list-categoriesto check if the user prompt matches known domain categories. - Step 2 (Metadata Inspection): If a category matches, the agent runs
get-frontmatter --category <domain-id>to inspect triggers and descriptions of relevant experiences (~500 tokens). - Step 3 (Experience Loading): When a specific trigger condition matches the active task or error trap, the agent runs
read-experience --id EXP-...to load the full playbook (~800 tokens) into its context.
- Step 1 (Category Search): The agent runs
-
Phase 2: Post-Task Learning & Experience Recording
- After successfully solving a non-trivial problem, handling an unexpected edge case, or finding a domain-specific workaround, the agent runs
create-experienceto append a newEXP-<YYYYMMDD>-<sequence>.mdfile and automatically updateexperiences/INDEX.md.
- After successfully solving a non-trivial problem, handling an unexpected edge case, or finding a domain-specific workaround, the agent runs
๐ค Integration with AI Agent Frameworks
ORF experiences can be loaded dynamically into any agent framework that supports local tool calling or skill execution.
Execution Lifecycle
- Category Retrieval: Call
list-categoriesto check if past experiences match the user task domain. - Metadata Inspection: Call
get-frontmatter --category <domain-id>to find matching playbooks or traps. - Experience Retrieval: Call
read-experience --id EXP-...to inject the Abstracted Insight and Validated Path into the prompt context. - Learning & Post-Task Recording: After resolving a complex issue or trap, call
create-experienceto store the operational learning for future runs.
๐ Trajectory Evaluation & A/B Testing Framework
ORF includes a built-in evaluation harness (./evals) to empirically measure whether experience playbooks improve AI agent trajectories, reduce step counts, eliminate trial-and-error debugging cycles, and validate dynamic experience recording.
3-Stage Evaluation Pipeline
[ Stage 1: Cold Run ] --> [ Stage 2: Spec Validation ] --> [ Stage 3: Warm Run ]
Without Prior Experience Validate New EXP-*.md File With Newly Minted EXP
- Measures baseline steps - Checks YAML frontmatter - Evaluates Phase 1 retrieval
- Tests Phase 2 recording - Audits 5 required sections - Measures step reduction &
(`create-experience`) - Confirms INDEX.md update first-attempt trap avoidance
- Stage 1 (Cold Run - Baseline): An agent attempts a scenario without prior experience playbooks. If it encounters and resolves a trap, we measure whether it automatically triggers Phase 2 of the skill (
create-experience) to record a new playbook. - Stage 2 (Spec Validation): An automated validator (
spec_validator.py) audits any dynamically generatedEXP-*.mdfile against the 7 required YAML frontmatter fields and 5 mandatory Markdown headers. - Stage 3 (Warm Run - Accelerated Execution): A fresh agent context attempts the scenario with the newly recorded playbook available. We evaluate Phase 1 retrieval (
manage-experience), first-attempt trap avoidance, and percentage step count reduction.
Benchmark Scenarios & SWE-bench Integration
frontmatter-parser: Parses and updates Markdown index files without corrupting YAML frontmatter headers block (EXP-20260720-0001.md).atomic-writer: Updates JSON state persistent files atomically using temporary files andos.replace(EXP-20260720-0002.md).subprocess-pipe: Executes CLI subcommands with non-blocking stdout/stderr pipe streaming (EXP-20260720-0003.md).- SWE-bench Multilingual Pilot: Evaluates real-world GitHub issues across Python (
SWE-bench_Lite) and Java (SWE-bench_Multilingual) containerized via Podman.
๐ SWE-bench Efficacy Empirical Results
| Dataset / Language | Cold Run Pass Rate (No ORF) | Warm Run Pass Rate (With ORF) | Step Count Reduction |
|---|---|---|---|
๐ Python (SWE-bench_Lite) |
66.7% (2/3) | 100.0% (3/3) | 73.5% (11.3 โ 3.0 steps) |
โ Java (SWE-bench_Multilingual) |
66.7% (2/3) | 100.0% (3/3) | 74.3% (11.7 โ 3.0 steps) |
| ๐ Overall Multilingual | 66.7% (4/6) | 100.0% (6/6) | 73.9% Net Step Reduction |
Running Evaluation Benchmarks
# 1. Run local evaluation scenarios in dry-run verification mode python3 evals/runner.py --dry-run # 2. Run live A/B testing benchmarks using local `agy` (Antigravity CLI) binary python3 evals/runner.py --agy # 3. Run SWE-bench 2-pass evaluation benchmarks via Podman .venv/bin/python evals/harness/swebench_orf_runner.py # 4. Export Markdown and JSON comparative reports python3 evals/runner.py --agy \ --export-markdown evals/reports/agy_report.md \ --export-json evals/reports/agy_report.json
๐งช Running Tests
To verify script parsing, experience generation, and index updates:
python3 -m unittest discover -s tests
๐ License
Apache-2.0
๐ Disclaimer
This is not an official Google project.

