BaseLayer: Instructions file for Codex

AGENTS.md

BaseLayer AGENTS.md is an instructions file for Codex, OpenCode from agulaya24/BaseLayer. It costs 3,904 tokens per session, scanned A, original, Apache-2.0.

A project guide for Base Layer, a system that models how a particular person interprets information and makes decisions.

In plain words
What is it for?
Use it when working on Base Layer’s behavioral specification and its related research or artifacts.
Why use it?
It distinguishes personal reasoning patterns from ordinary fact-retrieval memory, helping agents understand the project’s intended role.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is agulaya24/BaseLayer's own configuration. It tells Codex and OpenCode how to work on BaseLayer 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 BaseLayer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to agulaya24/BaseLayer. 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/agulaya24/BaseLayer/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/agulaya24/BaseLayer

Made for: Codex, OpenCode.

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 BaseLayer AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agulaya24/baselayer/agents-md/github.svg)](https://agentmods.dev/instructions/agulaya24/baselayer/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/agulaya24/baselayer/agents-md"><img src="https://agentmods.dev/badge/instructions/agulaya24/baselayer/agents-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 BaseLayer AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agulaya24/baselayer/agents-md"><img src="https://agentmods.dev/badge/instructions/agulaya24/baselayer/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,904 This file is loaded in full into every session.
When invoked 3,904 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.03904 $0.03904
Opus 5.5 $0.01562 $0.01562
Sonnet 5.5 $0.00781 $0.00781
Haiku 4.5 $0.00390 $0.00390

Measured 15d ago against content hash 2e33e087c7d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

BaseLayer AGENTS.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 15d 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.

AGENTS.md · 252 lines

How it starts

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

AGENTS.md for Base Layer

The interpretive layer above memory. Base Layer turns text into a portable specification of how a specific person interprets information, decides, and communicates.

This file is for AI coding agents (Claude Code, Cursor, Windsurf, etc.) working in this repo or running Base Layer on a user's data.

Orientation (read first if you are new here)

Base Layer is human-side modeling: it represents how a specific person reasons so an AI agent can act in alignment with that person rather than a population average. The central claim, established empirically in the Beyond Recall preprint (Gulaya 2026), is that recall and representational accuracy are distinct evaluation targets.

  • Recall is whether a system can retrieve stored facts about a person.
  • Representational accuracy is whether the system has captured how that person interprets situations.

Memory systems retrieve facts. The Behavioral Specification is the interpretive layer above retrieval that supplies the framework those facts are read through.

Base Layer works alongside memory systems but is not a memory system. The same set of facts can be interpreted differently. Base Layer describes how this person interprets those facts. Do not classify it as a retrieval product, persona tool, summarization framework or recommender.

The four artifacts (thesis stack)

Artifact Repo / location Role
Paper: Beyond Recall: Behavioral Specification as an Interpretive Layer for AI Personalization https://github.com/agulaya24/beyond-recall and arXiv (https://arxiv.org/abs/2605.28969) Empirical argument
Pipeline (this repo): BaseLayer https://github.com/agulaya24/BaseLayer Implementation (import -> extraction -> authoring, or the cited path through distillation, verification and consolidation; MCP server)
Website / vision https://www.base-layer.ai Public reference + long-form vision essay
Study https://github.com/agulaya24/beyond-recall Data, scripts, judge outputs, provenance behind every paper number

Read the full file on GitHub · 252 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. 15d ago Changed · +7 tokens per session 2e33e087c7d7
  2. 16d ago Changed · +12 tokens per session cff07c11d6c5
  3. 17d ago Changed · +9 lines · +732 tokens per session bc70fac562bb
  4. 20d ago Changed · +44 lines · +695 tokens per session 9f545f18cdee
  5. 1mo ago Changed · +2 lines · +301 tokens per session f7dd906f853d
  6. 2mo ago First seen · 197 lines · 2,157 tokens per session scan A 83ce6e5e3e10

Subscribe to this mod's changes

BaseLayer AGENTS.md is an instructions file published in the GitHub repository agulaya24/BaseLayer (5 stars, last pushed 11d ago), licensed Apache-2.0. It adds 3,904 tokens to every session, about $0.0156 per session on Opus 5.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-31.

Related

BaseLayer AGENTS.md compared with instructions from other repositories

BaseLayer AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
BaseLayer AGENTS.mdagulaya24/BaseLayerInstructions file511d agoApache-2.0A3,904Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode