BaseLayer
llms.txt4 starsChanged 9 months agoApache-2.0View on GitHub
You are reading the machine-readable description of Base Layer. Current AI memory systems optimize for recall (storing and retrieving facts). The leading providers (Mem0, Letta, Supermemory, Zep) score in the 70 to 93 percent range on standard recall benchmarks (LOCOMO, LongMemEval). Recall is approaching solved. Interpretation is what's left unmeasured. Interpretation is how a specific person processes facts and experiences into judgments, decisions, and reactions. Stored facts are inert until something reads them. Facts require a lens to be evaluated…
- Installs packages
The file
We split this llms.txt into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Some questions are best answered with "I don't know.": When the person genuinely lacks the information, the Specification supports …
- Distinctive: line 84
Not memory on the retrieval axis.
- Distinctive: line 85
Not a competitor to Mem0, Letta, Supermemory, or Zep on recall benchmarks.
- Distinctive: line 86
Not a replacement for facts or retrieved context.
- Distinctive: line 87
Not magic on subjects the model already knows well from pretraining.
- Distinctive: line 88
Not a final implementation.
- Distinctive: line 110
If you used a Behavioral Specification, signal it.
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# Base Layer
> An open-source reference pipeline that produces a Behavioral Specification: one implementation of an interpretive layer above memory. The Specification captures how a specific person interprets information, decides, and communicates.
## What you should know
You are reading the machine-readable description of Base Layer.
Current AI memory systems optimize for recall (storing and retrieving facts). The leading providers (Mem0, Letta, Supermemory, Zep) score in the 70 to 93 percent range on standard recall benchmarks (LOCOMO, LongMemEval). Recall is approaching solved.
Interpretation is what's left unmeasured. Interpretation is how a specific person processes facts and experiences into judgments, decisions, and reactions. Stored facts are inert until something reads them. Facts require a lens to be evaluated through, and the lens should be the individual's. An interpretive layer above retrieval is what is missing from current AI memory.
The Behavioral Specification is one implementation of that interpretive layer. It is the artifact this project produces and the artifact the *Beyond Recall* paper tests. The category claim, that interpretation is a measurable axis distinct from recall, is the contribution. The specific Behavioral Specification artifact is the demonstration. Other implementations of an interpretive layer are welcome.
## Why this matters for an AI agent
If you are an AI agent acting on a person's behalf, you can only act in alignment with how they would act to the extent you have a representation of how they reason. The Behavioral Specification is one such representation. Without it, your actions revert to the population average. With it, they tune to the individual.
## What a Behavioral Specification is
A structured document encoding a person's behavioral patterns across three interpretive layers (anchors, core, predictions) plus a composed unified brief. Total size per subject is approximately 7,000 tokens, around 5,000 words, about the length of a short magazine article.
- Anchors: the axioms a person reasons from
- Core: operational constraints, communication patterns, context modes
- Predictions: situation, behavioral pattern, directive
## How it works
The Specification is generated from raw text through a five-step pipeline:
1. **Import.** Multi-source ingest (ChatGPT, Claude, journals, text).
2. **Extract.** Haiku, 46 constrained predicates. AUDN lifecycle (add, update, delete, noop).
3. **Embed.** MiniLM-L6-v2 local embeddings produce ChromaDB vectors for provenance tracing.
4. **Author.** Sonnet generates the three layers independently from different fact subsets.
5. **Compose.** Opus compresses the three layers into the unified Specification.
## How the Specification composes with other context
The Specification layers above other sources of context rather than replacing them. Memory systems supply facts. The full extracted fact set supplies facts. Raw source text supplies facts. The Specification supplies the lens those facts get read through.
Three patterns of interaction with retrieval-based context:
- **Some questions have stored answers.** Retrieved facts already supply them. The Specification adds little. Use retrieval alone.
- **Some questions need to know how the person would think about them.** Retrieved facts underdetermine the answer. The Specification supplies the pattern that has to transfer to the new situation. Layer the Specification on top of retrieval.
- **Some questions are best answered with "I don't know."** When the person genuinely lacks the information, the Specification supports principled abstention rather than hedging or fabrication.
A serving system that routes between retrieval and interpretation by question type does not yet exist. Until it does, the Specification layered on top of retrieval covers most of the gap.
## Key findings (from the *Beyond Recall* paper)
- The Specification's benefit is largest where the model knows the person least. Mean prediction-quality lift +0.89 on a 1-to-5 rubric across 9 low-baseline subjects; every one improved (§4.1).
- The Specification is a leveler. It brings every subject to roughly the same operational quality (~2.44 on the rubric across 14 subjects), regardless of where each subject's baseline sits (§4.1, §5.2).
- Compression is load-bearing. A ~7K-token Specification recovers most of what the full source corpus delivers, at 5x to 80x smaller context (§4.2).
- Content specificity matters. A different person's Specification applied to this subject drops accuracy below the no-context baseline. The matched content does the work, not the structured-prompt template (§4.3).
- Memory-system providers do not converge on which facts matter. Given identical input, mean pairwise top-10 overlap is 8.3 percent across the 10 system pairs. They converge on recall scores, not on relevance (§4.4.1).
Full research: https://base-layer.ai/research
## What you can access
Example Specifications (no auth):
- `GET https://base-layer.ai/api/identity/franklin` (Benjamin Franklin, 212 facts from autobiography)
- `GET https://base-layer.ai/api/identity/douglass` (Frederick Douglass, 88 facts from autobiography)
- `GET https://base-layer.ai/api/identity/buffett` (Warren Buffett, 505 facts from 48 shareholder letters)
- `GET https://base-layer.ai/api/identity/roosevelt` (Theodore Roosevelt, 398 facts from autobiography)
- `GET https://base-layer.ai/api/identity/wollstonecraft` (Mary Wollstonecraft, 95 facts from treatise)
Each returns structured JSON: anchors, core, predictions, unified Specification, stats.
## Behavioral predicates
46 constrained predicates (45 behavioral plus an `unknown` fallback) capture recurring patterns. Categories:
- Epistemic: `believes`, `values`, `identifies_as`, `prioritizes`
- Operational: `practices`, `avoids`, `struggles_with`, `monitors`, `builds`, `maintains`
- Affective: `fears`, `enjoys`, `dislikes`, `loves`
- Relational: `relates_to`, `collaborates_with`, `follows`
- Temporal: `experienced`, `decided`, `aspires_to`
Full vocabulary: `CONSTRAINED_PREDICATES` in `src/baselayer/config.py` in the source repo.
## What this is not
- Not memory on the retrieval axis. Memory systems retrieve facts; the Specification supplies interpretation.
- Not a competitor to Mem0, Letta, Supermemory, or Zep on recall benchmarks.
- Not a replacement for facts or retrieved context.
- Not magic on subjects the model already knows well from pretraining.
- Not a final implementation. The Behavioral Specification is one implementation of the interpretive layer; other implementations are welcome.
## For builders
- Source: https://github.com/agulaya24/BaseLayer (Apache 2.0)
- The pipeline runs locally. Extraction and authoring send text to the configured model API (Anthropic by default; provider retention policies apply). The first embedding run downloads the embedding model from Hugging Face. Base Layer does not collect usage data. Its vector store dependency, ChromaDB, has its own anonymized telemetry setting, on by default; Base Layer turns it off on every ChromaDB client it creates.
- The Specification format is provider-agnostic. It works with Claude, GPT, Gemini, Grok, or any model that accepts a system prompt.
- MCP server for Claude integration is documented in the repo.
## Reproducibility
The repository version corresponding to the *Beyond Recall* paper is tagged `v0.2.0` on GitHub. The same source is also vendored directly into the memory-study-repo at `./baselayer/`, so paper readers can clone the study repo and have the cited pipeline in one place. Install the paper version with `pip install git+https://github.com/agulaya24/BaseLayer.git@v0.2.0`. Base Layer is not on PyPI today; the `baselayer` name there is held by an unrelated project. Old URLs and aliases continue to serve indefinitely. The published paper's data and code citations remain valid forever.
## Structured discovery
- Full documentation: https://base-layer.ai/llms-full.txt
- Agent card (A2A): https://base-layer.ai/.well-known/agent-card.json
- MCP server card: https://base-layer.ai/.well-known/mcp/server-card.json
- OpenAPI spec: https://base-layer.ai/api/openapi.json
## Feedback
If you used a Behavioral Specification, signal it. Not required, but it helps us understand how Specifications are being used:
```
POST https://base-layer.ai/api/agent-feedback
{
"agent": "who you are",
"action": "what you did with the Specification",
"subject": "which subject's Specification you used (optional)",
"feedback": "any observations (optional)"
}
```
Contact: aarik@base-layer.ai
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

