loci: Instructions file for Codex

AGENTS.md

loci AGENTS.md is an instructions file for Codex, OpenCode from codesstar/loci. It costs 129 tokens per session, scanned A, original, MIT.

A set of operating instructions for Loci, a file-based memory system for an AI assistant that organizes personal and project information.

In plain words
What is it for?
It is for running Loci across conversations, including checking whether setup is complete, reading the user's plan, maintaining memory, and coordinating multiple projects.
Why use it?
It makes the assistant check required planning and behavior files before responding, so its actions follow the stored setup and current state.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/codesstar/loci/agents-md"><img src="https://agentmods.dev/badge/instructions/codesstar/loci/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 This file is loaded in full into every session.
When invoked 129 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.00129 $0.00129
Opus 5.5 $0.00052 $0.00052
Sonnet 5.5 $0.00026 $0.00026
Haiku 4.5 $0.00013 $0.00013

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

Security

Grade A, and why

loci 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 19d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 6 lines

What it actually says

Loci repository / brain entry

Read LOCI.md in this directory; resolve <brain-path> to this directory when it is the user's installed brain. Before Loci memory operations, read LOCI-RULES.md in full once and use its current rules.

When the user is developing Loci itself, treat the personal-data files shipped here as templates. Do not initialize this checkout as their personal brain, run onboarding, or connect global agent settings unless asked. Use temporary brains and an explicit --home for installation tests. Preserve unrelated changes and test changed behavior with node --test tests/*.test.js.

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. 19d ago Changed · -290 lines · -7,377 tokens per session scan C → A 4892a47f186d
  2. 1mo ago Changed · +401 tokens per session 81b5bd168f06
  3. 1mo ago First seen · 296 lines · 7,105 tokens per session scan C eece7c7be243

Subscribe to this mod's changes

loci AGENTS.md is an instructions file published in the GitHub repository codesstar/loci (502 stars, last pushed 4d ago), licensed MIT. It adds 129 tokens to every session, about $0.0005 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-30.

Related

Other instructions, from other repositories