neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Brain OS는 코드로는 알 수 없는 AI 에이전트 운영 메모리, 결정 이유·차단·프로젝트 간 공유 제공
Brain OS is the operational memory your AI agent can't infer from code: the decisions and why, what's blocked versus just unfinished, and what carries across your other projects. Local-first, MCP, ope
개발 도구TypeScript · PythonGitHub @brainOS-HQ온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Stops AI agents reopening rejected decisions and forgetting project state. Local-first MCP server: decisions, blockers, plans, patterns, next moves.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Local-first MCP memory server for operational project state: decisions, blockers, plans, patterns, and next moves.
Your AI remembers conversations. It still forgets project state.
Brain OS gives agents operational state: decisions, plans, blockers, and priorities that survive across sessions.
AI agents are powerful inside a session, but long-running work has more state than any one chat: what you decided, what's blocked, what's active, and what should not be reopened. Brain OS gives agents operational state, not conversation logs:README 전문 보기 ↗Your AI remembers conversations. It still forgets project state.
Brain OS gives agents operational state: decisions, plans, blockers, and priorities that survive across sessions.
AI agents are powerful inside a session, but long-running work has more state than any one chat: what you decided, what's blocked, what's active, and what should not be reopened. Brain OS gives agents operational state, not conversation logs:
Brain OS is an MCP server that works with any MCP-compatible client: Claude Code, Cursor, Zed, GitHub Copilot, OpenAI Codex, Windsurf, or any agent that speaks the protocol.
Before the agent acts, it can check whether a proposed move conflicts with an existing decision:
> decision_check({ proposal: "switch to Postgres for the new service" })
{
"verdict": "conflict",
"conflicting_decision": {
"id": "dec_2026_03_14_db_choice",
"decision": "Use SQLite for all local-first projects",
"reason": "Lower ops burden, no infra to run, fits single-user scope",
"rejected_alternatives": ["Postgres", "DuckDB"],
"logged_at": "2026-03-14"
},
"guidance": "Re-litigating a settled choice. Surface the prior reasoning to the user before proceeding."
}
That's the wedge: structured state with enforcement, so agents stop re-opening questions you already answered.
Requires Node.js 20 or newer.
# In your project
npx brain-os init
This does three things:
.brain/ directory with your entity, decision, and pattern stores..claude/commands/ so you can run /brain, /brain:focus, /brain:decide, etc. directly in Claude Code. Bare aliases (/focus, /decide, etc.) install alongside for brevity.AGENTS.md (canonical, cross-tool) plus thin pointer files for Claude Code (CLAUDE.md), GitHub Copilot (.github/copilot-instructions.md), Cursor (.cursor/rules/brain-os.mdc), Zed (.zed/rules.md), and Windsurf (.windsurfrules).Flags:
npx brain-os init --minimal — install only AGENTS.md + CLAUDE.md, skip the other client pointers (clean-repo mode)npx brain-os init --no-commands — skip slash commands (MCP server only)npx brain-os init --no-agent-instructions — skip all agent-instructions pointer filesclaude mcp add brain-os -- npx brain-os serve
Add to your MCP config:
{
"brain-os": {
"command": "npx",
"args": ["-y", "brain-os", "serve"]
}
}
Brain OS can independently read a small, explicit set of repository facts and show drift without updating memory or project state:
npx brain-os reconcile --check .
The matching MCP tool, operational_state_check, observes only package.name, package.version, the current Git branch, and Git HEAD. Optional claimed state, desired state, and decision context are returned as separate layers: observations may be verified, stale, conflicting, unavailable, or different from a claim, but the checker never chooses a winner or applies a change.
The report is ephemeral JSON written to stdout. It creates no fact, evidence, issue, memory, entity, decision, plan, or audit record.
The semantic_recall tool needs an embeddings provider. Everything else (entity_update, decision_log, plan_*, etc.) works without one.
Brain OS does not install an embeddings SDK by default. This keeps the core install small and avoids pulling native ONNX/Sharp dependencies into users who do not need semantic search. Install the optional OpenAI provider beside brain-os, then add BRAIN_EMBEDDINGS to your MCP server env:
npm install brain-os openai
Then configure the provider in your MCP server environment:
{
"brain-os": {
"command": "npx",
"args": ["-y", "brain-os", "serve"],
"env": {
"BRAIN_EMBEDDINGS": "openai",
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
}
| Mode | What it does | Setup |
|---|---|---|
local | Temporarily unavailable while the former provider carries unresolved High-severity transitive advisories. | Use keyword recall or the OpenAI provider until an audited local backend ships. |
openai | Uses text-embedding-3-small via the OpenAI API. Faster than local. Costs ~$0.02 per million tokens. | Install openai, set BRAIN_EMBEDDINGS=openai, then reference OPENAI_API_KEY from your shell environment. |
If BRAIN_EMBEDDINGS is unset, the OpenAI provider is missing, or local mode is requested, semantic_recall returns a clear setup error. No silent provider install, model download, or API call occurs. Core tools continue working normally.
Never paste a raw
sk-...key into your MCP config.~/.claude.jsonand similar MCP config files are plaintext and easy to expose on screen or in backups. Instead, export the key once in your shell and reference it from the MCP process environment.
| Tool | Description |
|---|---|
entity_read | Read operational state of one or all tracked entities |
entity_update | Update entity state — status, momentum, blockers, next moves |
decision_log | Log a strategic decision with reasoning and alternatives |
decision_check | Check a proposed action against active decisions — returns clear/caution/conflict |
decision_refresh | Refresh an existing decision: bump review_date, append evidence, change status. Metadata only — does not mutate decision content. |
decision_review | Review-debt inbox: buckets overdue decisions (still-true / changed / archive / needs-evidence) and recommends an action for each. Read-only — proposes, you confirm. Auto-detects duplicate-stub decisions. |
context_resolve | Resolve which entity the current work belongs to, from explicit mention / alias / files / lexical signals. Deterministic and confidence-scored — routes known context, never guesses intent. |
focus_get | Get prioritized recommendations on what to work on |
project_evidence_scan | Read-only scan of a repo's native operating state (STATE.md, FLAGS, HANDOFF, ROADMAP/PLAN/TODO, git activity, dirty files) for human gates, next moves, and do-not-touch — grounds focus in repo reality. |
operational_state_check | Ephemeral read-only comparison of allowlisted package/Git facts with optional claimed and desired state; reports evidence-backed drift/conflict without applying changes. |
pattern_detect | Analyze patterns across all entities |
memory_check | Audit memory quality — flags stale data, contradictions, noise |
memory_commit | End-of-session commit — save all state changes |
semantic_recall | Search memory by meaning using natural language |
audit_log | Read the full mutation history — what changed, when, by whom |
wrap_check | Detect whether meaningful state changes have accumulated since the last wrap |
wrap_auto |
brain-os init installs slash commands into .claude/commands/ so the agent has a clear vocabulary for working with operational state. Each command installs in two forms: /brain:* (canonical, documented form) and a bare alias (/decide, /focus, etc.) for power-user brevity. /brain is the namespace root and installs once.
It also installs:
BRAIN_OS_PROTOCOL.md at .claude/brain-os/PROTOCOL.md (project) and ~/.claude/brain-os/PROTOCOL.md (user). The protocol governs tool routing: when an agent runs a Brain OS slash command, it reads the protocol first, then calls entity_read/plan_read/focus_get/etc. as primary. Pulse files become fallback only.brain-os-mode subagent at .claude/agents/brain-os-mode.md. When the main agent delegates Brain OS work to a subagent (e.g. Claude Code's Task tool), it picks up under the same protocol — no risk of subagents falling back to generic file search.templates/hooks/brain-os-routing-guard.py. Opt-in PreToolUse hook that warns if pulse files are read while a .brain/ workspace exists. Install instructions are printed by brain-os init.| Command | Alias | What it does |
|---|---|---|
/brain | — | Project scanner: overview of all entities, freshness, decisions, alerts |
/brain:focus | /focus | "What should I work on today, and why?" with evidence |
/brain:decide | /decide | Capture a strategic decision (with conflict check before logging) |
/brain:strategy | /strategy | Strategic thinking partner: think a decision through before building |
/brain:wrap | /wrap | Session wrap: update entity state, capture decisions, detect momentum shifts |
/brain:patterns | /patterns | Detect patterns across entities: recurring blockers, avoidance, themes |
/brain:retro | /retro | Weekly or monthly retrospective: what shipped, what stalled, what's hidden |
/brain:graph | /graph | Show how entities connect, leverage opportunities, shared decisions |
Re-running init is safe and repair-aware: existing Brain OS commands are preserved, and any missing form is installed. If a command path is taken by another tool, that path is skipped and reported — your file is never overwritten. You can install Brain OS into a project with existing /decide or /focus commands and the namespaced /brain:* forms will still land.
Brain OS stores everything as local JSON files in a .brain/ directory:
.brain/
entities/ — one file per tracked entity
decisions/ — decision log
patterns/ — detected patterns
config.json — workspace settings
No cloud. No database. No account. Your data stays on your machine.
The interface is the agent. Brain OS is read and written through MCP tool calls — /brain, /focus, /decide, decision_check, etc. — surfaced inline by whichever client you use (Claude Code, Cursor, etc.). There's no separate dashboard to keep open, no second tab to context-switch into, no UI state that can drift from the underlying files.
This is a design choice, not a missing feature. Brain OS state lives at the same level as your code; the agent is already there, already in the conversation, already the right surface to ask "what's the priority right now?" Adding a human dashboard would split attention between two interfaces for the same data.
If you want a visual at-a-glance view, .brain/ is plain JSON — render it however you want. The public MCP server stays agent-native by design.
Brain OS is single-user by design today. But because .brain/ is just local JSON files, teams can share a brain through any synced filesystem — no product changes needed:
| Approach | Pros | Cons |
|---|---|---|
Git — commit .brain/ to the repo | Diff/merge tools, version history, intentional sync points | Manual git pull; merge conflicts on simultaneous edits |
| Dropbox / Drive shared folder | Real-time-ish, no manual steps | Concurrent writes can create conflict files; embeddings.json rewrites often |
| NFS / SMB / S3 mount | Truly real-time | Requires infrastructure setup |
This works without any built-in sync because every Brain OS tool call reads fresh from disk — there's no in-memory cache to invalidate. Whatever your filesystem syncs, the next tool call sees. Same applies cross-tool: log a decision from Claude Code on Monday, open Cursor on Tuesday — same brain, both agents.
Native encrypted team sync with proper merge semantics is on the roadmap. The local-first foundation today is what makes that federation additive, not a retrofit.
When an MCP client connects, Brain OS exposes a brain://status resource with an operational overview — active entities, alerts, top priority, and recent decisions. The agent starts every session with context, not amnesia.
Brain OS ships a smoke test suite at tests/smoke.mjs, wired to npm test and run on every push by .github/workflows/audit.yml. Run locally:
npm test
Current coverage (regression + happy-path):
decision_log — type-collision no-supersede, explicit supersedes works, cross-entity supersession rejecteddecision_check — keyword-only flag stays caution without embeddings (no false STOPs), asymmetric semantic comparison (rejected vs chosen facet)decision_refresh — clears dangling superseded_by when status transitions away from supersededplan_advance — no over-promotion when an active step already existsentity_update — apply diff and record changes, create missing entity, mode_reason required when parking, status-only updates apply, guarded ranking skips are visiblesemantic_recall — throws EmbeddingsNotConfiguredError (not generic Error) when BRAIN_EMBEDDINGS is unset.brain/Known gaps (no direct coverage yet): focus_get scoring, pattern_detect heuristics, memory_*, plan_set/add/read, and the brain://status resource. Expanding the suite is on the roadmap.
If you hit a bug, please open an issue with the tool, input, and output — that's the fastest path to a fix.
MIT
| Non-interactive safety-net wrap: applies low-risk fields and stages high-risk changes for review |
plan_set | Set an ordered plan for an entity — step 1 becomes active next_move |
plan_advance | Complete or skip a step (requires evidence/reason) — auto-promotes next |
plan_add | Add steps to an existing plan |
plan_read | View plan progress and current step |
risk_assess | Classify risky actions before execution, including public-release and destructive-operation risks |
action_guard | Apply built-in guard templates to common high-risk actions before proceeding |