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.
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 vecadd
every commit: format clean, clippy clean, builds, examples run.
project: aruminium
pure Rust driver for Apple Metal GPU. compile shaders, create pipelines,
dispatch compute and render work on GPU hardware. zero external
dependencies in the core crate — only macOS system frameworks.
role in the stack
aruminium is a hardware GPU driver. it compiles shaders and dispatches GPU work.
it does NOT allocate shared memory, run CPU math, build 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) ← this crate
rane driver: ANE hardware (MIL compile, dispatch)
↑ 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.
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
- rane (https://github.com/cyberia-to/rane) — ANE: MIL compile, load, run
architecture
cargo workspace with two members:
aruminium (root crate) — library + metal_probe binary + examples.
zero external dependencies. links only system frameworks via FFI.
benches/ (crate metal-benches) — CLI binaries (bench, compare).
heavy dependencies isolated here.
src/ core library (zero deps)
lib.rs public API: Gpu, Buffer, GpuError
ffi/ Metal.framework, CoreFoundation, libobjc FFI
mod.rs types, constants, extern links, string helpers
selectors.rs cached ObjC selectors and classes
trampoline.rs typed objc_msgSend trampolines
device.rs Gpu: discovery, properties, factory methods
buffer.rs Buffer: zero-copy shared GPU memory
fp16.rs fp16<->f32 conversion (NEON + software fallback)
command.rs Queue, Commands
dispatch.rs Dispatch, Batch, GpuFuture
encoder.rs Encoder, Copier
shader.rs ShaderLib, Shader: MSL compilation
pipeline.rs Pipeline
sync.rs Fence, Event, SharedEvent
texture.rs Texture
probe.rs metal_probe binary — 5-level capability probe
examples/ runnable demos (vecadd, matmul)
benches/ separate crate with heavy deps (bench, compare)
docs/ documentation (tutorial, guide, explanations)
specs/ specification (source of truth)
README.md API spec — concepts, lifecycle, apple mapping
source of truth
specs/ is canonical. if specs/ and code disagree, resolve
in specs/ first, then propagate to code.
pipeline contract
MSL source → Metal.framework (linked)
→ MTLLibrary (compile → GPU bytecode)
→ MTLComputePipelineState
→ Command Buffer → Encoder → Dispatch
→ GPU hardware
MTLBuffer with StorageModeShared is the zero-copy CPU↔GPU data path.
no lock/unlock needed for shared mode.
key gotchas
- Metal access requires macOS with Metal-capable GPU. examples fail on Linux.
- Metal.framework is public — linked at compile time, not dlopen.
- all ObjC protocol methods go through objc_msgSend transmuted to typed fn pointers.
- MTLSize struct (24 bytes) passed in registers on ARM64 — verify transmute works.
- newXxx methods return retained objects. commandBuffer is autoreleased — retain it.
- MTLBuffer.contents() returns raw pointer — valid for buffer lifetime.
- never write naive loops for matmul on CPU — use Accelerate.framework.
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 + Metal.framework link.
- MTLBuffer for zero-copy CPU↔GPU data. inline NEON asm for fp16.
cargo fmt enforced. 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
license
cyber license: don't trust. don't fear. don't beg.
Synonyms
Claude
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…
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…
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…
github/CLAUDE
Workspace Agent Instructions This repo is the cyberia-to workspace anchor. It orchestrates org-level concerns that do not belong inside any single content repo. Dependency direction One-way, always: `.github` knows every subgraph. No subgraph knows about `.github`. Never reintroduce org-awareness…
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…
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…
cyb/CLAUDE
CLAUDE.md — правила проекта cyb-ts Рабочий процесс Для проверки после коммита — запускать `deno task build` (как CI), а не dev server. Dev server (`deno task start`) запускать только по явному запросу пользователя. Проверка после изменений После каждого изменения кода — **обязательно пересобирать и…
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…
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.…
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…
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…
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…
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…
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…
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,…
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…
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…
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 =…
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…