comad-world / brain
CLAUDE.md16 starsChanged 8 months agoMITView on GitHub
All crawler scripts MUST be executed with bun run crawl:* scripts (which include --smol for memory safety). NEVER run crawlers directly via bun run packages/crawler/src/... — this bypasses memory limits. After any crawl ingestion, always run these follow-up steps: 1. bun run packages/crawler/src/extract-paper-claims.ts — extract claims 2. bun run packages/crawler/src/build-paper-links.ts — build paper links
In this repository6 other files it gives its agents.
- ear/AGENTS.mdAGENTS.md
- ear/CLAUDE.mdCLAUDE.md
- eye/CLAUDE.mdCLAUDE.md
- photo/CLAUDE.mdCLAUDE.md
- sleep/CLAUDE.mdCLAUDE.md
- voice/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
All crawler scripts MUST be executed with bun run crawl:* scripts (which include --smol for memory safety).
- Very specific: line 6
NEVER run crawlers directly via bun run packages/crawler/src/...
- Distinctive: line 28
All fetch workers: max 5 concurrent (hardcoded in code)
- Distinctive: line 35
After any crawl ingestion, always run these follow-up steps:
- Very specific: line 44
Test runner: Bun built-in (bun:test)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Knowledge Ontology (Comad Brain) — Project Rules
Crawler Execution Rules
All crawler scripts MUST be executed with bun run crawl:* scripts (which include --smol for memory safety).
NEVER run crawlers directly via bun run packages/crawler/src/... — this bypasses memory limits.
Available Commands
# Crawling
bun run crawl:hn -- --limit 3000 --output data/articles-crawl.json
bun run crawl:arxiv
bun run crawl:github
# Ingestion
bun run crawl:ingest -- --source arxiv|github|blogs --file <path>
bun run crawl:resume -- --source blogs --file <path> --batch 50
# Enrichment & Retry
bun run crawl:enrich -- --limit 100
bun run crawl:retry
bun run crawl:playwrightConcurrency Limits
- All fetch workers: max 5 concurrent (hardcoded in code)
- Neo4j connection pool: max 20
- Playwright: sequential with guaranteed page cleanup (try-finally)
- PDF download: streamed to disk, never loaded into memory as arrayBuffer
Post-Ingestion Pipeline
After any crawl ingestion, always run these follow-up steps:
bun run packages/crawler/src/extract-paper-claims.ts— extract claimsbun run packages/crawler/src/build-paper-links.ts— build paper links
Testing
bun test # Run all tests
bun test packages/core/ # Run core package tests only- Test runner: Bun built-in (
bun:test) - Neo4j 의존 함수는 mock으로 테스트 (neo4j-client.js mock)
CI
GitHub Actions: TypeScript type check + Bun tests. Triggers on push to master, autoresearch/** branches, PRs to master.
Tech Stack
- Runtime: Bun
- Database: Neo4j (bolt://localhost:7688)
- Monorepo: 5 packages (core, crawler, graphrag, ingester, mcp-server)
- PDF parsing: opendataloader-pdf (requires Java 21)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

