brainoutside: Instructions file for Claude Code

CLAUDE.md

brainoutside CLAUDE.md is an instructions file for Claude Code 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hassancs91/brainoutside/claude-md/github.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/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 brainoutside CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hassancs91/brainoutside/claude-md"><img src="https://agentmods.dev/badge/instructions/hassancs91/brainoutside/claude-md.svg" alt="Reviewed on agentmods" width="80" 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. 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.01796 $0.01796
Opus 5.5 $0.00718 $0.00718
Sonnet 5.5 $0.00359 $0.00359
Haiku 4.5 $0.00180 $0.00180

Measured 1mo ago against content hash 51b1e41578bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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: base → dev (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. 1mo 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 (77 stars, last pushed 2mo ago), licensed MIT. It adds 1,796 tokens to every session, about $0.0072 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