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 nothing — show nothing.
a dash is more honest than a copied number. never substitute
appearance of progress for actual progress. never generate placeholder
data to fill a gap.
literal interpretation
when the user says something, they mean it literally. do not
reinterpret. if unsure, ask once. do not guess and iterate.
known failure mode: the user says "show real numbers" and the agent
reformats display labels instead of showing actual data. this is the
masquerading instinct — optimizing for "looks correct" instead of
"is correct."
chain of verification
for non-trivial decisions affecting correctness:
- initial answer
- 3-5 verification questions that would expose errors
- answer each independently
- revised answer incorporating corrections
skip for trivial tasks.
build & verify
cargo fmt --all cargo clippy --workspace -- -W warnings cargo build --release --workspace cargo run --example matmul
every commit: format clean, clippy clean, builds, examples run.
project: rane
pure Rust access to Apple Neural Engine. compile MIL programs, load
into ANE hardware, dispatch compute. zero external
dependencies in the core crate — only macOS system frameworks.
role in the stack
rane is a hardware ANE driver. it compiles MIL and dispatches to ANE.
it does NOT allocate shared memory, build model graphs, or schedule ops.
cyb-mem memory: IOSurface, arena, pool
acpu driver: CPU/AMX compute (NEON, AMX inline asm)
aruminium driver: Metal GPU compute (shaders, pipelines)
rane driver: ANE hardware (MIL compile, dispatch) ← this crate
↑ drivers — raw hardware access, no model knowledge
──────────────────────────────────────────────────────
↓ runtimes — model graphs, scheduling, inference logic
cyb/llm runtime: graph IR, jets, scheduling, model loading
all inference logic (attention blocks, transformer layers, model loading,
op scheduling, graph optimization) belongs in the runtime layer
(https://github.com/cyberia-to/cyb), not in the drivers.
rane provides mil::matmul, Program::compile, run_direct. the runtime
decides WHAT MIL programs to generate and WHEN to dispatch them.
drivers expose raw capabilities. runtimes compose them.
sibling drivers
- cyb-mem (https://github.com/cyberia-to/unimem) — memory: IOSurface, arena, zero-copy buffers
- acpu (https://github.com/cyberia-to/acpu) — CPU/AMX: sgemm, softmax, rmsnorm, rope, silu
- aruminium (https://github.com/cyberia-to/aruminium) — Metal GPU: shaders, buffers, compute
architecture
cargo workspace with two members:
rane (root crate) — library + rane_probe binary + examples.
zero external dependencies. links only system frameworks via FFI.
tools/ (crate ane-tools) — CLI binaries (convert_hf, tokenize,
chat). heavy dependencies (safetensors, ureq, tokenizers, zip)
isolated here.
src/ core library (zero deps)
lib.rs public API: Program, Buffer, Source, AneError
main.rs rane_probe — 7-level reverse engineering probe
ffi.rs IOKit, CoreFoundation, IOSurface, libobjc FFI
accel.rs Accelerate.framework FFI (cblas, vDSP, vecLib)
surface.rs IOSurface wrapper, inline NEON asm for fp16
model.rs Program compile/load/run/unload via objc_msgSend
config.rs ModelConfig presets (Qwen3-0.6B, Stories-110M)
weights.rs checkpoint I/O, LayerWeights, KVCache
mil/ MIL program builder → ANE bytecode
ops/ CPU kernels (rmsnorm, rope, attention, loss, adam)
examples/ runnable demos (matmul, infer, train, bench)
tools/ separate crate with heavy deps (convert_hf, tokenize, chat)
specs/ specification (source of truth)
api.md API spec — concepts, lifecycle, apple mapping
docs/ documentation (Diataxis)
explanation/ conceptual understanding
source of truth
specs/ is canonical. if specs/ and code disagree, resolve
in specs/ first, then propagate to code.
docs/ is documentation — teaches, guides, explains. references spec
but does not duplicate it.
pipeline contract
MIL text → AppleNeuralEngine.framework (dlopen)
→ _ANEInMemoryModel (compile → ANE bytecode)
→ XPC to aned daemon
→ IOKit H11ANEIn driver
→ ANE hardware
IOSurfaces are the only data path CPU↔ANE. they must be locked
before read/write and unlocked before ANE dispatch.
key gotchas
- ANE access requires Apple Silicon Mac. examples fail on Intel/Linux.
- MIL programs are text, compiled at runtime via dlopen. no link dep.
- weight blobs: little-endian fp16, 128-byte header (magic 0xDEADBEEF).
- all matmuls use row-major: W[rows, cols] @ x[cols, seq].
- checkpoint format: custom binary (magic 0x424C5A54, version 5).
- tools/ binaries download from HuggingFace at runtime — needs network.
- never write naive loops for matmul — use accel::sgemm.
do not touch
without explicit discussion:
- Cargo.toml dependency versions
- src/ffi.rs FFI signatures (must match system frameworks)
- specs/ structure
- LICENSE
quality
file size limit: 500 lines per source file. split into submodules
if exceeded.
every commit:
- type check / lint — zero warnings
- builds clean
- examples run
coding conventions
- no ObjC, no Swift, no headers. FFI through libobjc + dlopen.
- IOSurfaces for zero-copy CPU↔ANE data. inline NEON asm for fp16.
- Accelerate.framework (cblas, vDSP, vecLib) for CPU ops.
cargo fmt enforced (max_width = 100). clippy clean.
git workflow
- atomic commits — one logical change per commit
- conventional prefixes: feat:, fix:, refactor:, docs:, test:, chore:
- commit by default after completing a change
agent memory
plans and design documents persist in .claude/plans/, not in
ephemeral storage. read what is already there before writing.
parallel agents
split by non-overlapping file scopes. never let two agents edit the
same file.
estimation model
estimate work in sessions (3 focused hours) and pomodoros (30 min).
shell: nushell
use nu -c '...' or nu script.nu for scripting.
reserve bash for git commands and system tools only.
writing style
state what something is directly. never define by negation.
license
cyber license: don't trust. don't fear. don't beg.
Homonyms
CLAUDE
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…
cyb/CLAUDE
CLAUDE.md — правила проекта cyb Архитектура Bevy — корневой runtime. Один бинарник для всех платформ. Внешние зависимости: `~/cyber/nu/` — форк nushell (nu-protocol, nu-engine, sugarloaf и др.) `~/cyber/evy/forks/naga/` — форк naga (shader compiler) One Binary Rule **WebView is only for web content…
soft3/CLAUDE
soft3 — stack contracts and developer interfaces what this repo is soft3 owns foundational stack composition contracts and developer interfaces: language libraries, MCP server, CLI and wire format adapters. Component algorithms remain in their owning repositories. `specs/execution-model.md` is the…
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.…
cyb/seer/CLAUDE
seer — agent instructions seer is a miner. it mines the mint of any chain that pays for focus — every token has its own home book (cyber/research/oikos.md: one token, one chain), $CYB's is the reference — by finding the cyberlinks that shift focus most per unit of will and handing them to the…
soft3/neuron/CLAUDE
neuron — working instructions The user's requested canonical specification directory is specs/. docs/ explains the model; specs/ defines it. Root README states implementation status. The user established cyb/anatomy.md as the authority for organ meanings. Neuron is the protocol subject and executes…
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: cyberia/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…
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…
warriors/erga/CLAUDE
Claude Code Instructions Git workflow **Commit by default.** After completing a change, commit it. **Atomic commits.** One logical change per commit. **Conventional commits.** `feat:`, `fix:`, `perf:`, `refactor:`, `docs:`, `ui:`, `chore:`. What erga is A one-button ERGO miner for Apple Silicon.…
warriors/trisha/CLAUDE
Trisha — Claude Code Instructions Triton VM warrior. Execute, prove, verify, deploy Trident programs. Structure Source of Truth `roadmap/README.md` — acceptance gates and proposal index. `roadmap/.md` — individual contracts/proposals. `docs/explanation/` and `docs/reference/` —…
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/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/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…
warriors/joy/CLAUDE
Joy — Claude Code Instructions nox VM warrior for the cyber battlefield. Build, execute, prove and verify Trident programs compiled to nox formulas (the soft3 stack). Live deployment is unsupported. Built the way trisha is built; trident's CLAUDE.md rules (honesty, forbidden patterns, review…
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: cyberia/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
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: cyberia/engineering — pipeline contracts, dual-stream optimization, verification dimensions cyberia/quality — 12 review passes, severity tiers,…
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: cyberia/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
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: cyberia/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…
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/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…
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/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…
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…
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: cyberia/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
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: cyberia/engineering — pipeline contracts, dual-stream optimization, verification dimensions…
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 =…
cyberia/research/mimi/CLAUDE
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…