<!-- docs/decisiones/0001-rust-desde-cero.md at fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92 · https://github.com/OmarAlex24/klav/blob/fe8e2a0c8c248c44514c31c7f73b89c3f9cafc92/docs/decisiones/0001-rust-desde-cero.md · status: fresh -->

# 0001 · From scratch and in Rust, with a shared core

- Status: accepted
- Date: 2026-11-02

## Context
We considered building the agent layer on top of Vaultwarden/Bitwarden to ship sooner. We want Klav to be its own product, with an agent model built into the cryptography, not bolted on top.

## Decision
We build from scratch. Core, server, CLI/MCP, daemon and SDK in Rust. The extension uses `klav-core` through WASM (with a TypeScript UI) and mobile through uniffi (with a native Swift/Kotlin UI). Cryptography exists **only** in `klav-core`.

## Consequences
- A single cryptographic implementation to audit, with shared test vectors.
- Mobile autofill and the extension take more time; that is why they come in milestone B, after the agents are working.
