Home / Projects

Things I've built

Projects

A selection of things I've built, newest first.

Mirage

2026 MadHacks 2026

Real-time video diffusion you steer by voice

Diffusion models, Python, PyTorch, Wan 2.1, Causal Forcing++, WebSockets, Claude Sonnet, React

A video diffusion model generates video live, and you steer it by talking: say "make it winter" and the video changes while it plays, with no re-render. A normal video diffusion model takes minutes to render one five-second clip, so every change means starting over. Mirage streams Wan 2.1 (1.3B) with Causal Forcing++ at 16 frames a second on one GPU, and a command it already knows shows up in about 0.4 seconds. New sentences go to Claude Sonnet, which writes the full scene prompt in two to three seconds.

Two problems took most of the work. A new prompt barely changes the picture, because the model's memory of recent frames still holds the old scene, so on a command the memory is cleared; restarting from an empty memory first took 412 ms against a 250 ms budget per chunk, and two denoising passes plus a deferred memory write brought it to 162 ms, with the cut blended over eight frames. The video also drifts as the model feeds on its own output, so every six seconds it restarts from a clean saved frame with fixed noise, which cut the visible jump at each restart from 30.4 to 10.9, below ordinary motion.

Built by a team of four on top of Training-Free Interactive World Models. I led the team and owned the real-time engine: the GPU machines, the generation loop, frame streaming, and latency.

Four real frames from one live Mirage run: a red sports car on a country road, then after spoken commands the same car on a snowy mountain road, in a neon city at night, and on a beach road

mosh-rs

2026 Pre-alpha

Rust port of mosh, the mobile shell

Rust, UDP, AES-128-OCB3, protobuf, Linux/macOS/Windows

A Rust port of mosh that is wire-compatible with existing mosh 1.4 servers. It adds a native Windows client and writes scrollback into the local terminal's history. The port covers the UDP state-synchronization protocol, AES-128-OCB3 encryption, and a VT terminal emulator, and it ships static Linux binaries, macOS builds, and a Windows client. It was checked against upstream's own C++ code by differential testing (millions of fuzz inputs through both emulators), passes upstream's test suite and a 120-cell interop matrix under packet loss and roaming, and was reviewed line by line. AI coding agents built it in October 2026 from a written plan, and the full record (plan, status log, interventions, reviews) is in the repository. GPL-3.0-or-later.

A mosh-rs session in a terminal during a 12-second network blackout: the blue status bar reads Last contact 11 seconds ago while the session waits to catch up.

Tripwire

2026 Live on PyPI

Prompt-injection evaluation harness

Python, GitHub Actions CI, LangGraph/CrewAI adapters

Tests whether a tool-using AI agent can be hijacked by prompt injection before it ships. It puts the agent in realistic tasks and runs 16 attacks, some of them adaptive ones that refine their injection based on how the agent responds. Then plain Python, with no LLM judge, answers one question: did the agent leak a planted secret? The report gives attack-success rates with confidence intervals and plain-English advice on hardening the agent. Published as tripwire-eval, with a CI gate that fails the build when a change pushes the attack success rate above a threshold.

Terminal output of a tripwire run: an attack-success-rate table for three attacks, followed by security feedback explaining which attacks leaked and how to harden the agent

RACE Attention Kernel

2026 Done

GPU systems work, CDIS & OpenAI Summer AI Lab

CUDA, PyTorch, bf16

The RACE Attention paper (ICLR 2026) leaves optimized causal CUDA kernels as future work, and these are those kernels. The reference PyTorch prefix-sum path materializes a five-dimensional tensor that grows by about 128 KB per token, so a 40 GB A100 runs out of memory at 131K tokens. Since that tensor is written once and read once, the fused kernels never store it. With them, a 2M-token causal forward runs in 14.7 ms on one H100 in 8 GiB of memory, 165x faster than the chunked PyTorch baseline.

Log-log chart of peak GPU memory versus context length: the reference cumsum path at 284 KB per token hits out-of-memory at 131K tokens on a 40 GB A100, while the fused kernel at 4 KB per token reaches 2M tokens using 8.4 GB

jobcrawl

2026 Running 24/7

Autonomous job-search pipeline

Python, SQLite, LLM APIs, systemd

Watches about 5,900 company career boards at the source (14 applicant tracking systems plus company APIs like Google's and Amazon's) on a 12-minute cycle. An LLM scores new postings against my profile, and matches go out as email digests and an auto-generated tracker. Most of the work is in the infrastructure: conditional fetches with ETags, per-host throttling, content-hash dedupe with repost detection, absence-based closure detection, and a feedback loop that turns my applied/skipped decisions into calibration examples for the scorer. It has run unattended on an EC2 instance under systemd timers since July 2026, with 7,358 runs, about 872 million postings fetched, and 33,038 tracked.

Monday

2026 Research prototype

Assistive hardware + AI, built at StarkHacks 2026

Python, Arduino, Claude vision, EMS

Vision-guided assistive grasping for people with upper motor neuron injury, who can reach for an object but cannot close the hand around it. A voice trigger starts a grasp, a Claude-based grip planner reads the camera feed, and electrical muscle stimulation moves three fingers. A physical kill switch sits inline with the EMS lead. Research use only, not a medical device.

The Monday prototype worn on a forearm: EMS electrodes taped to the hand, relay board and Arduino on the wrist, in front of a piano

CortexOS

2026 Live

Observability for AI agent memory

Python, FastAPI, Postgres, Next.js, TypeScript

Sits between a memory system and the LLM that reads from it. For each retrieval it records which memories were returned, scores how much each one influenced the response, tracks token cost, and keeps a provenance graph so a stored memory can be traced back to the interaction that created it. It comes as an SDK that wraps any Mem0-compatible client, along with an operator dashboard.

Cortexa monitor tracing a support-bot hallucination: the agent quoted an outdated shipping policy, the attribution trace pins it on a stale memory with 0.86 attribution while the current policy memory ranked 4th, and the fix invalidates the stale memory and promotes the current one

cshell

2025 Done

POSIX shell

C11, no dependencies beyond libc

A POSIX shell in about 1,800 lines of C11. It handles quoting and variable expansion, pipelines of any length, redirection, background jobs, and enough terminal job control that Ctrl-C kills the running command instead of the shell. It started as the shell project in UW-Madison's CS537 and grew well past the spec.

A real cshell session showing pipelines, stdout and stderr redirection, a background job with jobs output, and history

WattBot

2025 Kaggle competition

Hybrid RAG question answering

Python, BM25, BGE embeddings, HNSW

Answers quantitative questions about the environmental cost of AI for the UW-Madison Environmental AI Kaggle competition, where an answer only counts if the value, unit, and source document all match exactly. Retrieval combines BM25 and dense embeddings with reciprocal rank fusion. It gets 87% accuracy on 282 held-out test questions with only 40 labelled examples, which are used as few-shot exemplars picked by question type.

WattBot results card: 87 percent accuracy on 282 held-out test questions, 40 labeled examples, 32 source PDFs, hybrid BM25 plus BGE retrieval with reciprocal rank fusion

InterviewIQ

2025 3rd at MadData 2025

AI mock interviewer

Gemini, computer vision, speech

Runs a live practice interview in the browser. Gemini generates the questions, the webcam feed is read frame by frame to track body language, and at the end you get written feedback on your answers and on how you delivered them. Placed 3rd at MadData, UW-Madison's annual data science hackathon.