# Kucing Labs & Arah > Kucing Labs builds Arah, a PyTorch toolkit for writing, editing, transferring, compressing, and verifying neural-network weights with deterministic float64 rebuilds, coordinate blame, and evidence-gated claims. Arah v1 ships all 16 pillars across Milestones 1 through 8 (16 subpackages, 12 top-level modules, 115 lazy exports in `arah.__all__`). Requirements: Python 3.12+, PyTorch 2.9+, NumPy 2.1+, safetensors 0.8+. Install from GitHub: `uv add "arah @ git+https://github.com/Hazqeel09/arah.git"` (or `pip install "arah @ git+https://github.com/Hazqeel09/arah.git"`). Complete single-file documentation corpus (all 16 guides and 26 runnable Python examples): [llms-full.txt](https://kucinglabs.com/llms-full.txt). Key rules for AI agents authoring weights with Arah: - Choose where and how to edit; delegate exact linear algebra, null-space solves, hardware profiling, and statistical controls to local Arah tools. - Open third-party checkpoints with `arah.donor.open(path, digest=..., budget_bytes=...)` to avoid pickle execution; compute `pin = unpinned.pin()` once during setup and pass `digest=pin` in production. - Watch matrix orientation: `null_space_fit`, `imprint_trajectory_into_layers`, and `imprint_multi_donor_joint_null_space` expect column-vector matrices shaped `(d_in, n_samples)`, while `ridge_fit` and `exact_rational_ridge_fit` expect PyTorch row-vector batches shaped `(n_samples, d_in)`. - Do not self-declare `Status.checked` or `Status.formal` claims; obtain them from verifier calls (`verify_contract_claim`, `promote_formal_claim`). Reloading disk artifacts downgrades both to `heuristic` until re-verified. - Use `arah checkout` from the CLI (`log`, `show`, `diff`, `blame`, `checkout`, `verify`, `fsck`); `switch` exists in Python as `arah.history.switch`. - Connect tool-calling agents through `ArahMCPServer` (12 sandboxed JSON-RPC 2.0 tools, zero shell access) or `run_authoring_loop`. ## Start - [Arah overview](https://kucinglabs.com/docs/overview.md): Write, edit, transfer, compress, and verify PyTorch weights with full provenance, deterministic rebuilds, and evidence-gated claims. - [Quickstart](https://kucinglabs.com/docs/quickstart.md): Install Arah from GitHub, write an exact two-layer XOR model without training, catch silent tensor drift, and connect an LLM via run_authoring_loop and ArahMCPServer. ## Core toolkit - [Recipes and determinism](https://kucinglabs.com/docs/recipes.md): Build structured weights from algebraic primitives, apply regional overlays with blame chains, and rebuild bit-identical tensors across CPUs and GPUs. - [Transactions and history](https://kucinglabs.com/docs/history.md): Commit weight edits as atomic transactions in a content-addressed .arah/ store, inspect diffs and blame across commits, catch sparse spikes, and roll back failures in place. - [Edit algebra and patches](https://kucinglabs.com/docs/edit-algebra.md): Represent typed weight edits that compile into bit-identical recipes, certify dyadic weight gaps, and compose multi-patch updates with automatic conflict resolution. - [Donor compiler and dissection](https://kucinglabs.com/docs/donor-compiler.md): Open third-party checkpoints without running pickle, stream models larger than VRAM block by block, dissect static circuits, grow exact widths, and certify standalone runs. ## Architecture and transfer - [Architecture and shootouts](https://kucinglabs.com/docs/architecture.md): Build multimodal ArchSpec DAGs, apply typed structural operators, check attention-geometry barriers, route certified shortcuts, and run matched-capacity shootouts. - [Cross-model transfer and dark folding](https://kucinglabs.com/docs/cross-model-transfer.md): Audit attention sinks, align trajectories with auto-whitened Procrustes and CausalInterface bridges, imprint capabilities in null-space, and fold rank-1 gates with zero hooks. - [Circuits, CEGIS, and MCP server](https://kucinglabs.com/docs/circuits-mcp.md): Compile zero-parameter exact circuits, decompile networks into portable symbolic IR, run Statistical CEGIS, mine repair procedures, and serve 12 sandboxed MCP tools. ## Verification - [Evaluation and claims](https://kucinglabs.com/docs/evaluation-claims.md): Check contracts behind falsifiable oracle gates, meter forward budgets and reach, certify training-free runs, evaluate matched controls, and render guarded reports. - [Formal proofs, protocols, and interop](https://kucinglabs.com/docs/formal-interop.md): Audit Lean 4 and TorchLean declarations for Status.formal claims, verify statistical protocols with the Experimental Protocol Compiler, and export in-toto, DSSE, and CycloneDX 1.7 ML-BOMs. - [Feedback and authoring runner](https://kucinglabs.com/docs/feedback-runner.md): Locate causal faults without gradients, solve closed-form updates with AlphaEdit null-space projection and exact rational ridge, diagnose 3-axis bottlenecks, and run budgeted epochs. - [Benchmarks and hardware targets](https://kucinglabs.com/docs/benchmarks-targets.md): Evaluate authoring harnesses on holdout-isolated arah-bench scorecards, profile models on declared hardware presets, and compute exact DAG live-buffer and mixed-precision schedules. ## Reference - [CLI reference](https://kucinglabs.com/docs/cli.md): Inspect, diff, blame, checkout, verify, and integrity-check .arah/ stores from the terminal with deterministic plain-text output and zero ANSI escapes. - [Package map and error reference](https://kucinglabs.com/docs/api-errors.md): Look up all 16 Arah subpackages, 12 top-level modules, lazy off-POSIX exports, and the structured ArahError hierarchy with stable dotted codes. ## Optional - [Roadmap and Arahan](https://kucinglabs.com/docs/roadmap.md): Review all 16 shipped Arah v1 pillars across Milestones 1 through 8, trust guarantees, and how Arahan operates inside the Arah authoring loop. - [Complete single-file docs (llms-full.txt)](https://kucinglabs.com/llms-full.txt): All 16 Arah guides and workbench Python examples concatenated in one Markdown file. - [Arah documentation portal](https://kucinglabs.com/docs): Interactive HTML documentation with live search and syntax highlighting. - [Arah source repository](https://github.com/Hazqeel09/arah): Python source code, test suites, and issue tracker for Arah v1. - [Kucing Labs website source](https://github.com/Hazqeel09/kucinglabs): Source repository for kucinglabs.com.