What GIKSN is building: an AI stack in Rust, from kernels to agents
GIKSN Research is going to build the AI stack from first principles in Rust, in public. At the bottom sit GPU kernels and an inference engine that serves language models. At the top sits an agent framework for building durable, tool-using agents. Go implementations will follow the Rust ones. This piece explains every layer we plan to build, why we are building things that already exist, the principles we will hold ourselves to and the order the work will happen in.
Most people who work with AI touch it through an API. You send text, you get text back, and everything between those two points is someone else's problem. That works until it doesn't: until latency matters, until cost matters, until an agent fails in a way nobody can explain. The people who can fix those problems are the ones who understand the layers underneath.
GIKSN's main work for the coming months is to build those layers ourselves, one at a time, and to write up each one as we go. The code will be open source. The write-ups will live here, in the archive.
The stack, from the bottom up
There are two tracks, and they meet in the middle.
Track one: the inference engine
This is the machinery that takes a trained model and turns it into a service that answers requests.
- Kernels. The small GPU programs that do the actual arithmetic: matrix multiplies, normalization, rotary position embeddings, attention, sampling. We will write the first version of each in CUDA C++, launch it from Rust, test it against a CPU reference and then port it to Rust-native kernels using cuTile Rust, NVIDIA's experimental framework for writing GPU kernels in Rust.
- The model runtime. Loading weights from safetensors files, running the forward pass of a transformer layer by layer, and producing a probability for every possible next token.
- The KV cache. The memory where each request's past keys and values live so they don't have to be recomputed. We will start with a simple contiguous cache and move to a paged one, where memory is handed out in fixed-size blocks like pages in an operating system.
- The scheduler. The part that decides, many times a second, which requests run together on the GPU. It will do continuous batching: new requests join the batch as old ones finish, instead of everyone waiting for the slowest.
- The server. An HTTP API compatible with OpenAI's, so any existing client can talk to it, with streaming responses, metrics, health checks and graceful shutdown.
After that come the techniques that make serving cheap: prefix caching, chunked prefill, 4-bit and 8-bit weights, speculative decoding, CUDA graphs, and splitting one model across several GPUs.
Track two: the agent framework
This is the machinery that turns a model into something that plans, calls tools and keeps state over a long task.
- Core types. Messages, models, tools and structured output, with tool schemas generated from Rust types so the description a model sees can never drift from the function it calls.
- The graph runtime. A stateful, durable runtime: nodes, edges, branches, typed state with reducers, checkpoints saved after every step and interrupts that pause a run until a human approves it.