BrainCue CLAUDE.md

A guide for BrainCue, a local-first desktop assistant for live conversations. It describes an Electron, React, and TypeScript app that transcribes with consent, shows relevant cues in an overlay, archives conversations, and keeps reviewed long-term memory on the user's computer.

In plain words
What is it for?
Developing BrainCue's conversation, meeting, interview, practice, profile, memory, retrieval, and on-screen cue features. It helps agents preserve the app's local-data and consent expectations.
Why use it?
It gives coding agents the product context needed to change shared features without assuming the app is only for interviews. It also explains profile handling and that only retrieved context and the current question are sent to OpenAI with the user's own key.

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/tpikachu/braincue/claude-md
Clone the repo
git clone --depth 1 https://github.com/tpikachu/BrainCue
Per session 1,819 This file is loaded in full into every session.
When invoked 1,819 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.01819 $0.01819
Opus 5 $0.00910 $0.00910
Sonnet 5 $0.00364 $0.00364
Haiku 4.5 $0.00182 $0.00182

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

Security

Grade A, and why

BrainCue 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 2d 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 · 64 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

BrainCue — a local-first desktop AI companion for live conversations (Electron + React + TypeScript). It transcribes what it hears in real time (with consent), decides when it can help, and streams grounded cues into a floating, screen-share-invisible overlay ("Cue Card"). It archives each conversation so the next one starts where the last ended, and holds reviewed long-term memory per profile. Data stays on the user's machine; only retrieved context + the current question go to OpenAI (BYO key).

Interviews are one activity, not the product. Interview Copilot and Practice are still fully shipped, but meetings and solo sessions are the daily cases — when you touch a shared path (prompts, retrieval, session defaults), check that it doesn't assume an interview. See docs/00-VISION.md and docs/16-CONTINUITY.md.

One profile at a time. The dashboard is scoped by AppSettings.activeProfileId, chosen in the sidebar switcher and resolved in main (shared/activeProfile.ts) so every window agrees. Profile-scoped surfaces read it — never add another profile <Select> to a page. See docs/19-ACTIVE-PROFILE.md.

The user picks an activity, never a mode. shared/activities.ts is the one catalog: what a call IS (meeting/project/job/subject/personal/game/solo/custom), what a Space is a saved instance of, and which SessionMode the engine derives from it. There used to be two lists answering the same question and they could disagree. Never add a mode picker back to a start surface; add an activity. See docs/18-ACTIVITIES.md.

A Space is where a conversation is kept. archiveSession and extractMemoryCandidates both return 0 when sessions.packId is null — no Space, no summary, no memory. The start modal offers only the Spaces of the chosen activity (spacesFor) and says what will survive the session before it starts; the save prompt offers the choice once more and files the session before either half runs. Exactly one activity refuses to start without one (ActivityConfig.needsSpace, job). See docs/16-CONTINUITY.md §15.

Read the full file on GitHub · 64 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. 2d ago First seen · 64 lines · 1,819 tokens per session scan A 9ec126fffcf2

Subscribe to this mod's changes

BrainCue CLAUDE.md is an instructions file published in the GitHub repository tpikachu/BrainCue (5 stars, last pushed 1mo ago), licensed MIT. It adds 1,819 tokens to every session, about $0.0091 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-31.