neo: Instructions file for Claude Code

CLAUDE.md

neo CLAUDE.md is an instructions file for Claude Code from Parslee-ai/neo. It costs 2,517 tokens per session, scanned A, original, Apache-2.0.

A set of repository instructions for Neo, a read-only helper that uses several language-model reasoning steps and stored code-related knowledge.

In plain words
What is it for?
It is for guiding development of Neo's Python code and for explaining how to use its semantic memory, model integrations, and tests.
Why use it?
It gives coding agents clear rules for style, testing, memory, error handling, and command timeouts while working on the project.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: names the ExitPlanMode tool; mentions Claude Code; mentions Codex.

This is Parslee-ai/neo's own configuration. It tells Claude Code how to work on neo 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 neo configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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 neo CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/parslee-ai/neo/claude-md/github.svg)](https://agentmods.dev/instructions/parslee-ai/neo/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/parslee-ai/neo/claude-md"><img src="https://agentmods.dev/badge/instructions/parslee-ai/neo/claude-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 neo CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/parslee-ai/neo/claude-md"><img src="https://agentmods.dev/badge/instructions/parslee-ai/neo/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,517 This file is loaded in full into every session.
When invoked 2,517 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.02517 $0.02517
Opus 5.5 $0.01007 $0.01007
Sonnet 5.5 $0.00503 $0.00503
Haiku 4.5 $0.00252 $0.00252

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

Security

Grade A, and why

neo CLAUDE.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 14d 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.

CLAUDE.md · 168 lines

How it starts

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

Project: Neo - Semantic Reasoning Helper

Quick Context

  • Purpose: Read-only reasoning helper for CLI tools using MapCoder/CodeSim-style multi-agent reasoning with semantic memory
  • Tech Stack: Python 3.10+, fastembed (Jina Code v2, 768d), faiss-cpu (legacy pattern matching), Anthropic/OpenAI/Google LMs
  • Installation: pip install -e ".[dev]" for development

Code Style

  • Import convention: stdlib → third-party → local, specific imports
  • Naming: PascalCase classes, snake_case functions, UPPER_SNAKE constants, _private methods
  • Error handling: Try/except with specific exceptions, logger warnings, graceful fallbacks
  • Testing: test_*.py pattern, pytest framework
  • Type hints: Extensive with Optional, list[], dict[]
  • Docstrings: Triple quotes, brief description first

Project Rules

  • Keep implementations simple first, enhance iteratively
  • Test all changes before committing
  • Use 3-5 minute timeout when executing neo commands
  • Semantic memory: Local embeddings (Jina 768-dim) preferred over OpenAI (1536-dim)
  • When creating a pull request, always use the PR template included in the repo.
  • Before changing a subsystem, read its notes in docs/engineering-notes/. They hold the reasons, measurements and footguns behind every rule below; most rules exist because the obvious alternative was shipped and broke. Add new long-form notes THERE, not here — this file stays short.

Subsystem rules (details: docs/engineering-notes/<file>)

Memory store — memory-store.md

  • Per-scope valid-fact caps (SCOPE_LIMITS): global 200, org 100, project 500, session 50. Supersession at cosine ≥ 0.85 (SUPERSESSION_THRESHOLD); pre-write dedup is canonical-signature EQUALITY, not cosine.
  • Promotion to a durable PATTERN needs ≥2 git-verified ACCEPTED episodes sharing a correlation signature AND spanning ≥2 distinct sittings/base revisions (applied_on_revision, FactStore._sitting_bases union-find). Fails closed on a blank revision. Never reintroduce a session-id fallback. Any new producer of ACCEPTED outcomes must set applied_on_revision or it never promotes.
  • Correlation signature = candidate SUBJECT + structural fingerprint (_suggestion_fingerprint, name-normalized inside the skeleton extractor), never the LM body. Frozen into Fact.canonical_signature at mint; teardown uses the frozen value only. Don't conflate _episode_signature / _global_signature with _canonical_signature (dedup, includes body).
  • Only pattern kind promotes (algorithm/bugfix task types). Task type comes from classify_task_type; ties fail safe to non-promotable kinds.
  • suggestion_is_verifiable must resolve paths via normalize_suggestion_path; it deliberately over-admits (kind is frozen at mint). learning-stats classification is reporting-only and stricter; keep its check ordering.
  • REVIEW→PATTERN similarity synthesis was REMOVED; do not reintroduce an unverified clustering route.
  • _invalidate is the single invalidation choke point and strips embeddings + bulk text (keeps subject/tags/metadata). Cold start runs recall-lift → prune → demote → purge → strip with save=False and one save.
  • project_id = hash of the normalized git remote URL (path hash fallback).
  • Retrieval rank formula lives only in memory.models.rank_score; audit ContextAssembler._score_facts when changing it. Decay counts in DECAY_UNIT_DAYS; only carries_lesson facts enter the engine's valid layer and recall — slowing decay without that filter floods commit subjects. Four-layer context assembly must preserve the StateBench decision-accuracy contract.
  • GitHubPRSource facts enter as REVIEW on probation and never promote by recurrence.
  • Recall deliveries (ledger recall_delivered) lift probation for mined lessons but are NOT accesses; a recall-lifted fact lives only while recall keeps delivering it. Never feed deliveries into access_count.

Read the full file on GitHub · 168 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. 14d ago Changed · +6 lines · +109 tokens per session f6939a1a6f05
  2. 15d ago Changed · +8 lines · +147 tokens per session faf51bfd972e
  3. 16d ago Changed · +4 lines · +72 tokens per session 02e2fb0227f5
  4. 17d ago Changed · -1,729 lines · -34,949 tokens per session 02195a4276df
  5. 18d ago Changed · +7 lines · +103 tokens per session 9e17a4101ba2
  6. 22d ago Changed · +13 lines · +236 tokens per session 6d91dde608a4
  7. 24d ago Changed · +138 lines · +2,742 tokens per session 5dfb629f57fb
  8. 1mo ago Changed · +11 lines · +203 tokens per session a6ef717b7fab
  9. 1mo ago Changed · +31 lines · +1,521 tokens per session ff034d0413eb
  10. 1mo ago First seen · 1,679 lines · 32,333 tokens per session scan A 1816324a0790

Subscribe to this mod's changes

neo CLAUDE.md is an instructions file published in the GitHub repository Parslee-ai/neo (18 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,517 tokens to every session, about $0.0101 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

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens