agentleFS
kinkos1234kinkos1234/comad-world/brain/CLAUDE.md

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

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
  1. Very specific:

    All crawler scripts MUST be executed with bun run crawl:* scripts (which include --smol for memory safety).

    line 5
  2. Very specific:

    NEVER run crawlers directly via bun run packages/crawler/src/...

    line 6
  3. Distinctive:

    All fetch workers: max 5 concurrent (hardcoded in code)

    line 28
  4. Distinctive:

    After any crawl ingestion, always run these follow-up steps:

    line 35
  5. Very specific:

    Test runner: Bun built-in (bun:test)

    line 44

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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:playwright

Concurrency 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:

  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

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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.