brainoutside CLAUDE.md

brainoutside CLAUDE.md is an instructions file for coding agents from hassancs91/brainoutside. It costs 1,796 tokens per session, scanned A, original, MIT.

A repository instruction file for BrainOutside, a self-hosted server that indexes a private git repository of Markdown notes and exposes them through APIs.

In plain words
What is it for?
Use it when modifying BrainOutside's Django services, brain synchronization, reader, feeds, configuration, deployment, or related documentation.
Why use it?
It explains the system structure, deployment setup, write-approval process, and the important separation between the server code and the separate notes repository.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/hassancs91/brainoutside/claude-md
Clone the repo
git clone --depth 1 https://github.com/hassancs91/brainoutside

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hassancs91/brainoutside/claude-md.svg)](https://agentmods.dev/instructions/hassancs91/brainoutside/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/hassancs91/brainoutside/claude-md"><img src="https://agentmods.dev/badge/instructions/hassancs91/brainoutside/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,796 This file is loaded in full into every session.
When invoked 1,796 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01796 $0.01796
Opus 5 $0.00898 $0.00898
Sonnet 5 $0.00359 $0.00359
Haiku 4.5 $0.00180 $0.00180

Measured 5d ago against content hash 51b1e41578bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

brainoutside 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 5d 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 · 148 lines

How it starts

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

BrainOutside — working notes for agents

Self-hosted memory server. A git repo of markdown is the user's brain; this Django app indexes it, serves it over REST + MCP with visibility tiers enforced server-side, and gates every write behind human approval.

Single-user, single-brain. That is the product, not a limitation.

Full architecture and milestones: docs/PLAN.md. Deploying: docs/DEPLOY.md. (Internal working docs — launch plan, release checklist, design docs — live untracked under docs/, maintainer's machine only; see .gitignore.)

This repo is NOT the brain. The brain is a separate repo the server clones into data/brain-repo. Never edit brain content from here.


Stack

Django 5.2 / Python 3.13, Postgres, Redis, Django-Q2. Docker Compose: web + mcp + worker + postgres + redis.

Path What
apps/mind/ The public read API — endpoints, tier enforcement, file serving, throttling
apps/brain/ Entity index, git clone/sync, snapshots, graph
apps/feeds/ Proposal → approval queue → signed commit
apps/reader/ Reader agent, chat, SDK runner
apps/brainconfig/ Ops UI, settings, /setup wizard, health
apps/events/ Event log, SDK ledger, tasks
apps/mcp_proxy/, apps/api_keys/ MCP transport, consumer keys + tiers
apps/docs/ Self-documenting API reference at /docs/
templates/ops/, templates/setup/ The UI that matters
assets/css/app.css Tailwind SOURCE (not served)
static/css/tw.css Compiled artifact (committed, served)

Settings: basedev (DEBUG, SQLite) → docker (local full stack) → prod. Containers run config.settings.docker locally, config.settings.prod deployed.


Running it

.\dev.ps1 up | reload [svc] | logs [svc] | status | manage <cmd> | css [-Watch]
  • web self-reloads on Python edits. mcp and worker need reload.
  • Template edits need reload web.
  • The clone at data/brain-repo has no git credentials in-container: pull on the host, then .\dev.ps1 manage sync_brain --no-pull.

Read the full file on GitHub · 148 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. 5d ago First seen · 148 lines · 1,796 tokens per session scan A 51b1e41578bc

Subscribe to this mod's changes

brainoutside CLAUDE.md is an instructions file published in the GitHub repository hassancs91/brainoutside (73 stars, last pushed 17d ago), licensed MIT. It adds 1,796 tokens to every session, about $0.0090 per session on Opus 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.