CLAUDE.md

Claude Code Instructions

Git Workflow

  • Commit by default. After completing a change, commit it. Don't wait for the user to say "commit". Only stage without committing when the user explicitly asks to stage.
  • Atomic commits. One logical change per commit. Never combine two independent features, fixes, or refactors in a single commit. If you made two separate changes, make two separate commits. Don't commit half-finished work either — if unsure whether the change is complete, ask before committing.
  • Conventional commits. Use prefixes: feat:, fix:, refactor:, docs:, test:, chore:.

Knowledge Graph Purpose

This is the seed knowledge base for planetary superintelligence. Pages are pure markdown with YAML frontmatter. The publisher is optica — a standalone knowledge graph publisher.

Page Format

Pages use YAML frontmatter for metadata and standard markdown for content:

---
tags: cyber, menu
crystal-type: entity
crystal-domain: cyber
icon: "\U0001F535"
---

Wiki-links (page) and query expressions (`

Query: (...) (19381 results)
`, ` `) are the graph's own syntax, evaluated by the publisher.

Namespaced pages live in directories: root/bostrom/infrastructure/servers.md

Building cyber

cyber is the workspace anchor. It holds the content graph plus the subgraph declarations (subgraphs/*.md), the optica config generator (scripts/build.nu), the publish workflow (.github/workflows/publish.yml), and the IPFS cache (ipfs-cache.json). One repo to fork, one repo to clone.

Local workflow (subgraph repos are siblings of cyber/):

cd ~/cyber/cyber
nu scripts/sync.nu        # bootstrap: clone every active subgraph
nu scripts/build.nu       # full graph build
nu scripts/serve.nu       # build + serve with live reload
nu scripts/dev.nu         # rebuild optica + restart serve
nu scripts/lock.nu        # snapshot current HEAD of each subgraph into subgraphs.toml

For pure content edits without subgraphs, optica works standalone:

optica build ~/cyber/cyber
optica serve ~/cyber/cyber --open

Port 8888 (from publish.toml base_url). Port 8080 is reserved.

Tagging Conventions

Every page should have a tags: field in frontmatter. Key project tags (lenses):

  • cyber — the superintelligence protocol
  • cyb — the browser/interface
  • cyberia — the cyber network state
  • bostrom — the bootloader chain
  • cyber valley — the physical city/estate

Domain tags: article, cybernomics, compound, ticker, person, ui, recipe. Biology pages use species, genus. Body pages use muscle. Ops pages use operation.

Writing Style

  • Never define by negation. Do not write "this is not X" or "not a Y but a Z". Say what something IS. Negation is a crutch — state the positive identity directly.
  • Never use bold (**text**). Bold is banned from the graph. For emphasis use: YAML frontmatter for key-value pairs, # heading for section titles, wiki-link for inline emphasis on concepts. If a term does not deserve its own page, it does not need emphasis — just write it plain.

Wiki-Link Plurals

Never write terms with a floating s outside the link. Every concept page that has a meaningful plural must include both forms in its alias: line (e.g. alias: isomorphisms on the isomorphism page). Then link the plural directly: isomorphisms instead of isomorphisms. This keeps links clean and resolvable.

Shell: Nushell

Use nu -c '...' or nu script.nu for all scripting. Nushell has structured data pipelines, built-in dataframes, and powerful search/filter commands — use them instead of bash+sed+awk+grep chains. Examples:

  • list pages: ls root/*.md | get name
  • find untagged: glob root/**/*.md | where {|f| not ((open --raw $f) | str starts-with "---\n") }
  • count by tag: glob root/**/*.md | each {|f| open --raw $f | lines | where $it =~ 'tags:' | first } | where $it =~ 'species' | length
  • dataframe ops: dfr open, dfr filter, dfr group-by for bulk analysis

Reserve bash only for git commands and system tools that have no nu equivalent.

Nushell input/output formatting

  • Input: for non-trivial analysis (>3 lines), write a .nu script into analizer/ in this repo (cyber) and run via nu analizer/script.nu <graph-path>. One-liners are fine as nu -c '...'.
  • Chat display: always use ```nu fenced code blocks when showing nushell code in conversation so syntax highlighting works in Zed.
  • Output in scripts: wrap table pipelines in print (... | table) so all sections render. Bare | table at end of pipeline only works for the last expression — intermediate tables need explicit print.

Nushell script library (analizer/)

All nushell scripts live in ~/cyber/cyber/analizer/. Scripts are graph-agnostic: they take the graph path as an argument via def main [graph_path: string].

Usage from any directory:

nu ~/cyber/cyber/analizer/stats.nu ~/git/cloud-forest
nu ~/cyber/cyber/analizer/analyze.nu ~/cyber/cyber

Scripts:

  • analizer/analyze.nu — general analytics (files, tags, categories, links, IPFS)

  • analizer/stats.nu — graph statistics (orphans, broken links, content types)

  • analizer/migrate.nu — migrate Logseq format to pure markdown (YAML frontmatter, directories)

  • analizer/ipfs.nu — pre-commit hook: upload media/ to Pinata IPFS, rewrite URLs in markdown (credentials from ~/.config/cyber/env)

  • analizer/crosslink_topology.nu — crosslink topology analysis for semantic core (wiki-link classification, hub/island detection, statistics)

  • analizer/concat.nu — concatenate entire graph into single file for LLM context loading

  • analizer/context.nu — smart context packer: scores pages by gravity/density, greedy knapsack into token budget. --pinned [rel/path.md ...] forces specific pages in before the greedy loop

  • analizer/trikernel.nu — compute tri-kernel (diffusion, springs, heat) over wiki-link graph, write focus + gravity + density to frontmatter. Runs on new moon only (±1 day); use --force to override, --dry-run to preview

  • analizer/dangling.nu — alias-aware dangling wiki-link detector (basenames, paths, alias: frontmatter; case-insensitive; top 50 + stats)

  • analizer/add-footer.nu — append discover all concepts footer to core-tagged pages missing it

  • analizer/codematter.nu — add comment-frontmatter to code files (.rs, .nu, .toml, .py, .sh, .yml), integrating source into cybergraph as particles

When adding a new script: place it in analizer/, accept graph_path as first arg, and update this list.

Tri-Kernel Weight Updates (Lunar Cycle)

Frontmatter weights (diffusion, springs, heat, focus, gravity, density) are updated once per lunar cycle on the new moon (±1 day). This prevents constant git noise from auto-computed fields across all repos.

  • trikernel.nu enforces this with a date guard; --force overrides
  • --dry-run computes and prints without writing (always allowed)
  • After a new moon run: commit all weight changes in one atomic commit per repo with prefix chore: new moon weights YYYY-MM-DD
  • Between moons: never run trikernel without --dry-run or --force

2026 new moons: Jan 18, Feb 17, Mar 19, Apr 17, May 16, Jun 15, Jul 14, Aug 12, Sep 11, Oct 10, Nov 9, Dec 8.

Parallel Agents for Graph-Wide Tasks

When a task touches many pages across the graph (bulk tagging, renaming, formatting fixes), split the work into non-overlapping scopes by filename or other criteria, then launch several agents in parallel. Before splitting: enumerate the full file list, partition it into disjoint sets (e.g. by alphabetical range, by tag, by namespace), and assign each set to a separate agent. No two agents should ever touch the same file.

License

Cyber License: Don't trust. Don't fear. Don't beg.

Homonyms

cyb/honeycrisp/aruminium/CLAUDE
Claude Code Instructions auditor mindset the project is supervised by an engineer with 30 years of experience. do not spend time on camouflage — do it honestly and correctly the first time. one time correctly is cheaper than five times beautifully. honesty never fake results. if a system produces…
cyb/honeycrisp/acpu/CLAUDE
Claude Code Instructions auditor mindset the project is supervised by an engineer with 30 years of experience. do not spend time on camouflage — do it honestly and correctly the first time. one time correctly is cheaper than five times beautifully. honesty never fake results. if a system produces…
neural/rs/.claude/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
soft3/strata/jali/CLAUDE
agent collaboration jali (जाली) — polynomial ring arithmetic R_q = F_p[x]/(x^n+1) over Goldilocks. project structure no wgsl/ directory. ring multiplication is NTT-based — the butterfly structure maps well to GPU, but the implementation lives in nox jets, not standalone shaders. key invariants…
soft3/strata/nebu/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
soft3/strata/kuro/CLAUDE
agent collaboration kuro (黒) — F₂ tower field arithmetic for binary proving. project structure key invariants zero production dependencies in the core library `#![no_std]` — embeddable anywhere Wiedemann tower construction: α_k = product of all previous generators F₂⁴: α = 0x02, F₂⁸: α = 0x08,…
soft3/strata/trop/CLAUDE
agent collaboration trop — tropical semiring arithmetic for provable optimization. project structure key invariants zero production dependencies in the core library `#![no_std]` — embeddable anywhere the tropical semiring (min, +) is NOT a field: no additive inverse tropical addition: a + b =…
cyb/honeycrisp/unimem/CLAUDE
Claude Code Instructions project: unimem pure Rust memory driver for Apple Silicon. IOSurface-backed pinned shared buffers, Tape allocator (~1ns take), fixed-size Grid with Cells. zero-copy sharing between CPU, GPU, AMX, and ANE. role in the stack unimem is a hardware memory driver. it allocates…
soft3/strata/genies/CLAUDE
agent collaboration genies — isogeny group action arithmetic for post-quantum privacy. project structure wgsl/ provides batch F_q GPU operations. 512-bit multi-limb arithmetic has carry dependencies that limit single-element throughput, but batch dispatch (many independent mul/add pairs) amortizes…
cyb/honeycrisp/rane/CLAUDE
Claude Code Instructions auditor mindset the project is supervised by an engineer with 30 years of experience. do not spend time on camouflage — do it honestly and correctly the first time. one time correctly is cheaper than five times beautifully. honesty never fake results. if a system produces…
warriors/trisha/CLAUDE
Trisha — Claude Code Instructions Triton VM warrior. Execute, prove, verify, deploy Trident programs. Structure Source of Truth `roadmap/README.md` — status overview and confidence milestone. `roadmap/.md` — individual proposals (open/done). `docs/explanation/` — design rationale. Any…
cyb/evy/CLAUDE
evy — claude code instructions project evy is a unified-memory, multi-engine, neural-first game engine. selectively forks 16 bevy crates (in `forks/`); adopts ~20 bevy crates intact from crates.io; replaces 8 with cyber-native primitives. powers cyb and any future cyber-stack game. canonical spec…
cyb/wysm/CLAUDE
agent collaboration principles for working with AI coding agents on the cyber wysm runtime. read this and the foundational documents to have full context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions cyber/quality — 12 review passes, severity tiers,…
neural/rs/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents below to have complete development context. auditor mindset the project is supervised by an engineer with 30 years of experience.…
soft3/lens/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
cyb/cyb-boot/CLAUDE
cyb-boot — project rules What cyb-boot IS A thin installer (~3MB) that bootstraps the cyb desktop app from the content-addressed network. It is NOT the app itself. Target flow (from design doc): 1. Import wallet from boot.dat (mnemonic + referrer) 2. Connect to iroh bootstrap nodes 3. Fetch version…
soft3/mudra/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
soft3/hemera/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
neural/eidos/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
soft3/bbg/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
neural/rune/CLAUDE
Claude Code Instructions Git Workflow **Commit by default.** After completing a change, commit it. **Atomic commits.** One logical change per commit. **Conventional commits.** Use prefixes: `feat:`, `fix:`, `refactor:`, `docs:`, `test:`, `chore:`. Architecture rune is the open-computation language…
cyb/honeycrisp/CLAUDE
Claude Code Instructions auditor mindset the project is supervised by an engineer with 30 years of experience. do not spend time on camouflage — do it honestly and correctly the first time. one time correctly is cheaper than five times beautifully. honesty never fake results. if a system produces…
neural/trident/CLAUDE
Trident A building block for a cyberstate with superintelligence. Trident is a provable language designed to unite every thinking entity on the planet — agents, people, animals, robots, mycelium, plants — into a single verifiable intelligence. Every line of code here is a step toward that…
soft3/nox/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
soft3/soma/CLAUDE
soma — machine mind Local cognitive architecture of one cyber Avatar. A machine that perceives, decides, acts, learns, and survives. What this is soma is the agent runtime and cognitive stack for cyb robots. It is a standalone product — the embodied mind layer that sits between raw hardware and the…
soft3/zheng/CLAUDE
agent collaboration principles for working with AI coding agents across any project. this page is the bootstrap entry point — read it and the four foundational documents to have complete development context: cyber/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
cyb/CLAUDE
CLAUDE.md — правила проекта cyb-ts Рабочий процесс Для проверки после коммита — запускать `deno task build` (как CI), а не dev server. Dev server (`deno task start`) запускать только по явному запросу пользователя. Проверка после изменений После каждого изменения кода — **обязательно пересобирать и…
soft3/CLAUDE
soft3 — developer experience layer what this repo is the soft3 SDK: language libraries, MCP server, CLI, and wire format schema for the soft3 stack. not the stack itself — a client layer on top of it. components | dir | what | status | |-----|------|--------| | `js/` | JavaScript/TypeScript SDK…

Graph