claw-brain
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 11 GitHub stars
Code Gecti
- Code scan — Scanned 5 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
This tool is a knowledge management template designed to work with Claude Code. It uses a git-first approach with markdown and JSON files to help humans and AI agents organize information through slash commands, creating a personal or shared "brain" for documents and data.
Security Assessment
The light code scan reviewed 5 files and found no dangerous patterns. There are no hardcoded secrets, no dangerous permissions requested, and no obvious red flags in the codebase. The tool is written in Shell and operates primarily on local files, categorizing dropped documents into knowledge areas. While the `/process-inbox` command reads and moves files automatically, the system keeps everything local with standard markdown and JSON—no databases or external services required.
Overall risk: Low
Quality Assessment
The project is active, with its last push occurring today. It carries a standard MIT license, making it freely usable and modifiable. The repository has 11 GitHub stars, which indicates a small but present community interest. The README is comprehensive and clearly documents the folder structure, slash commands, and underlying philosophy. As an agent template meant to be forked, the small scope and "files over features" approach make it easy to review and understand quickly.
Verdict
Safe to use. This is a straightforward, lightweight template with no concerning code patterns, an open license, and transparent local-first file management.
A knowledge brain for humans and agents alike.
██████╗██╗ █████╗ ██╗ ██╗ ██╔════╝██║ ██╔══██╗██║ ██║ ██║ ██║ ███████║██║ █╗ ██║ ██║ ██║ ██╔══██║██║███╗██║ ╚██████╗███████╗██║ ██║╚███╔███╔╝ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝B R A I N
A fork-and-use template for building your own agent brain - a knowledge management system powered by Claude Code, with slash commands, structured data validation, and a git-first workflow.
Works as a personal brain, a shared team knowledge base, a nanoclaw group brain, or a brain for openclaw bots and agents.
Quick Start
- Fork this repo (or use as a GitHub template)
- Clone and
cdinto it - Run
claudeto start Claude Code - Run
/onboard- creates your personal profile and fills in the About section - Run
/new- creates your first knowledge area - Drop files into
drop/, run/process-inbox- auto-categorizes into knowledge areas
Philosophy
- Files over features - Knowledge lives in markdown and JSON. No databases, no services, no vendor lock-in.
- Agent-native - Built for Claude Code. Slash commands do the work. The codebase is small enough to understand in one session.
- Structured when you need it - JSON files with co-located schemas give you validation without infrastructure. Your agent reads and writes them directly.
- Personal or enterprise - Same template works as a personal brain, a shared team knowledge base, a nanoclaw group brain, or a brain for openclaw bots and agents.
- Connected when relevant — Related knowledge files link to each other using standard markdown links. Connections grow organically through commands, not forced upfront. The index navigates; links connect.
Folders
| Folder | Purpose |
|---|---|
memory/ |
Index (_index.md), personal profile (me.md), session learnings (lessons.md), and activity log (log.md) - all gitignored except index |
knowledge/ |
All documents — source files (raw facts) and wiki pages (synthesized). Source of truth. |
raw/ |
Immutable source document archive. Originals preserved here during inbox processing. Gitignored by default. |
drop/ |
Inbox for new files. Processed by /process-inbox. |
output/ |
Generated files. Named YYYY-MM-DD-description.md. |
Slash Commands
| Command | Description |
|---|---|
/onboard |
Create your personal profile and fill in brain metadata |
/new |
Create a new knowledge area (folder + index entry + CLAUDE.md update) |
/process-inbox |
Categorize and file everything in drop/ |
/status |
Show brain overview - areas, inbox, recent output, health checks |
/learn |
Extract learnings from the current session into memory |
/recall |
Surface relevant knowledge before starting a task |
/synthesize |
Create or update wiki pages that synthesize across multiple sources |
/sleep |
Autonomous improvement loop — explore, research, synthesize, clean up |
Wiki Pattern (Optional)
Inspired by Karpathy's LLM Wiki pattern. Knowledge files come in two types:
- Source files (
type: source) — Raw facts, data, quotes. The ground truth. Default iftype:is omitted. - Wiki pages (
type: wiki) — Synthesized pages that weave together multiple sources. Can be regenerated from source files.
Use /synthesize to create wiki pages. Use /process-inbox to ingest new sources. When you ingest a source, originals are archived immutably in raw/. Wiki pages are optional — the system works perfectly fine with only source files.
Customization
Adding commands
Create .claude/commands/your-command.md with a YAML frontmatter description and markdown instructions. See existing commands for the pattern.
Structured Data
JSON files are your "databases" - no Postgres, no Airtable, just files your agent can read and write directly. Co-located schemas keep them honest.
The convention: place foo.schema.json next to foo.json in any directory. The pre-commit hook and CI action validate automatically - on every commit locally and on every push/PR in CI.
Use it for anything structured: contacts, inventory, projects, config - any data that benefits from a defined shape. Your agent works with these files natively, no connectors or ORMs needed.
Knowledge Quality
Every .md file in knowledge/ must have YAML frontmatter with a source: field - a URL, internal file path, or description of where the information came from. Knowledge files must contain specific facts, data, or raw information - no vague summaries or AI filler. Both rules are enforced by pre-commit hook + CI pipeline, same pattern as JSON schemas.
One-time setup:
pip install pre-commit check-jsonschema
pre-commit install
Adding areas
Run /new or manually:
- Create
knowledge/{area}/with an initial.mdfile - Add entries to
memory/_index.md - Add a row to the Areas table in
CLAUDE.md
Collaboration
External agents can write to your brain using the standard git workflow: clone → branch → write → PR. The brain owner reviews and merges.
Ask Claude to generate a contributor guide if you need one - it can tailor it to any agent or service.
Works with: nanoclaw groups, GitHub Actions, Discord/Slack bots, CI pipelines, cron jobs, or any script that can git push.
NanoClaw Compatibility
To use as a brain for a nanoclaw group:
cd groups/
git clone <your-fork> my-brain
The brain uses relative paths only - no container paths or IPC references. NanoClaw's own CLAUDE.md loads additively alongside this one.
Built On
Derived from our internal kayba-brain - the system we use to run Kayba, built on the ACE framework. Inspired by the nanoclaw philosophy of lightweight, composable agent groups.
Contributing
Contributions welcome - see CONTRIBUTING.md.
License
MIT
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi