Skip to content

Projects

A published research project, open source tooling, and personal and academic builds.

★

Multi-agent RAG for vulnerability detection and repair

Published research, ICCCT 2025

Specialised LLM agents find and fix C and C++ vulnerabilities, grounded by retrieval over MITRE's Top 25 CWEs. 60.71% more correct detection and repair than a single-LLM baseline.

Built with
Gemini 1.5 Flash, ChromaDB, all-MiniLM-L6-v2
Multi-agent RAG framework for vulnerability detection and repair C and C++ source goes through three LLM agents in turn: attack vector identification, vulnerability detection and remediation. The loop repeats until no vulnerabilities remain or an attempt limit is reached, then outputs patched code. Detection and remediation retrieve context from a ChromaDB store built from MITRE's Top 25 CWEs. Source codeC and C++ Attack vector agentfinds potential weaknesses Detection agentconfirms a specific CWE Remediation agentwrites the secure fix Patchedcode repeat until no vulnerabilities remain or the attempt limit is reached MITRE Top 25 CWEsdescriptions, mitigations, examples Embedding modelall-MiniLM-L6-v2 ChromaDBvector knowledge base retrieved context groundsdetection and repair Agents run on Gemini 1.5 Flash; structured JSON output is validated at each step.
Framework overview, redrawn from the paper's method: three LLM agents in a repair loop, grounded by retrieval over MITRE's Top 25 CWEs.
  • LLM agents
  • RAG
  • Security
  • Python
01

universalMods

Open source, MIT licensed

universalMods floor showing a roadmap flowchart, a cost panel and the Mod Builder creating a new mod

A local web floor where a master Orchestrator plans work and delegates it to Codex or Claude Code agents. Each agent runs its real CLI in a live terminal, alongside a shared kanban and plan board, inter-agent messaging and a live roadmap drafted by a PM agent as a Mermaid flowchart.

Everything is a mod: views, guards and workflows are hot-reloading folders with a manifest and server and client halves, and a Mod Builder agent can write one from a single sentence. Guards can deny dangerous tool calls, and the server binds to 127.0.0.1 behind a per-run token.

Agents
Codex via app-server JSON-RPC; Claude Code via stream-json
Built with
Node 20+, TypeScript server mods, React views, Mermaid
Status
Open source under MIT, with a Claude Code plugin install
  • Node.js
  • TypeScript
  • React
  • MCP
  • Codex
  • Claude Code
02

MacroSnap

Personal project, built in public

MacroSnap Today screen showing calories left, a range bar with minimum, target and maintenance, and macro barsMacroSnap Trends screen showing daily calories against target and maintenance, and a smoothed weight trend
The Today and Trends screens, running on sample data from the app's fake-AI dev mode.

The itch

For months I believed I was in a calorie deficit. I was eating at maintenance. The tracker said one thing, the scale said another, and I had no way to tell which number to trust. So I built the tracker I would trust: share a food photo from the phone gallery, get calories and macros I can actually check, and see them judged against targets that follow my training and my real metabolism.

How a photo becomes a number

It is a PWA on the phone with a service worker that catches the photo from the Android share sheet, and one Node and TypeScript service behind it that serves both the API and the UI. A fast vision model only does what it is good at: name the items and estimate grams. If a nutrition label is visible, it reads the printed per 100 g values and those are used directly instead of any estimate.

Every item name is normalised into a food key (tokenised, synonyms and plurals folded, words sorted), so "Tandoori Chicken" and "chicken tandoori" are one food. A lookup cascade tries Redis, the store, learned aliases, then a fuzzy match that auto-links at high similarity and asks "Same as...?" in the grey zone. Only foods the app has never seen go to a stronger reasoning model, which breaks the dish into a recipe and derives nutrition per 100 g from IFCT 2017 and USDA sources.

Then comes the part I care about most. Deterministic checks run on that answer: energy must match the macros (4P + 4C + 9F + 2 fibre) within a tolerance, no macro can exceed 100 g per 100 g, and the ingredient calories must add up to the total. A failure goes back to the model with the errors listed. If it still fails, the UI flags the food instead of quietly logging it.

A library that learns

Results are stored per 100 g with their recipe, assumptions and sources, then scaled to the grams logged. Each meal shows where every item came from: Library, New, Check or Yours. Rename an item the same way twice and the correction becomes a permanent alias. The expensive reasoning call is only paid for new foods, so cost falls as the library grows.

Targets that tell the truth

The energy engine starts from Katch-McArdle when body fat is known, Mifflin-St Jeor otherwise, and adds activity from the best signal on hand: Strava or a watch, power, pace, heart rate or a MET table, counting only 85% of wearable estimates. Harder days get more carbs. Then it checks itself: 28 days of logged intake against a smoothed weight trend teach it a correction factor, clamped to plus or minus 25%, so the target reflects the metabolism you actually have. Guardrails keep it honest: never below BMR or a sex floor, deficit capped at 25%, surplus at 15%.

Decisions that shaped it

  • The math over the model. One model's confident number is not evidence. Checks and sourced recipes are, so validation sits between the AI and the log.
  • Two models, not one. A cheap vision model for the plate, an expensive reasoning model only for new foods.
  • Self-hosted first. No auth or billing, so it shipped fast. A hosted mode with sign-in and usage limits exists on a separate branch but is not launched.
  • Per-user libraries. No shared food database keeps it private and simple, at the price of each new user paying for staples early on.
  • Boring storage. SQLite as the system of record, so a backup is one file. Redis is cache only and the app keeps working if it dies. Couchbase stays optional.
  • Cut on purpose. Image embeddings and photo memory (SigLIP, DINO, JEPA) were dropped: the photo just goes to a vision model.
  • Kind wording. On a cut, going over target but under maintenance says "Still in deficit", not "failed".

Bugs that taught me things

Browsers cached stale JavaScript, so a new index.html ran against old modules, fixed with no-cache headers and a service worker that bypasses the HTTP cache. Meal thumbnails stored at 128 px looked blurry, so they are now 640 px. The Docker data volume was not writable by the node user. The UI was redesigned twice, then again from a design canvas. It was built and shipped in public over one weekend in November 2026.

Where it stands

Self-hosted only, with no public instance yet. I have not measured accuracy, latency or cost per photo, so I am not quoting any: the interesting claim here is the design, not a benchmark.

Built with
Node, TypeScript, zod, SQLite, Redis, Docker
AI
OpenRouter: vision model for plates, reasoning model for new foods
Data
IFCT 2017, USDA, Strava
Features
Share-sheet logging, label reading, learning food library, adaptive TDEE, trends, export
Status
Self-hosted, open source on GitHub
  • Node.js
  • TypeScript
  • PWA
  • LLM
  • SQLite
  • Docker
03

GenieTest

Test automation, QE tooling

Cursor alone has no project-specific context, cannot control what it asks the user, and is unreliable on large repositories. GenieTest closes those gaps with a custom MCP server, Cursor rules for prompt engineering, a Cursor extension and a purpose-built RAG dataset, so QE engineers get test automation scripts faster.

The data pipeline chunks the team's test repositories into a test functions database (description, steps, dependencies) and a helper functions database (usage patterns). OpenAI's Batch API did the initial extraction, the output was quality-checked by hand, and embeddings come from a hosted Snowflake Arctic model.

The MCP server exposes the tools: a steps generator breaks the request into structured steps, the user reviews them, a vector search finds the closest existing test, and a code generator then reuses that test, or writes a new test in the same or a new class, pulling helper functions per step. A review and edit tool does the same for changes to an existing test.

Tools
Steps generator, display steps, closest test, code generator, review and edit
Retrieval
Vector search over test and helper function databases
Host
Cursor IDE with MCP client and Cursor rules
Built with
Python MCP server, Snowflake Arctic embeddings, OpenAI Batch API
GenieTest architecture: a data pipeline builds vector databases from test repositories, and a Python MCP server with tools for steps, similar tests and code generation serves the Cursor IDE host
Architecture: the data pipeline (top) builds the vector databases; the MCP server (right) serves Cursor, the MCP host (left).
  • MCP
  • RAG
  • Cursor
  • Snowflake Arctic
  • OpenAI Batch API
  • Python
04

GOSniff

Personal project

Captures packets with the network interface in promiscuous mode and streams them to a web interface over WebSocket for real-time inspection.

For each packet it reports the protocol (by OSI layer and port), source and destination IP addresses, and source and destination MAC addresses where applicable. Useful for protocol debugging, security monitoring and teaching how traffic moves.

Built with
Go, promiscuous-mode capture, WebSocket, browser UI
  • Go
  • WebSocket
  • Networking
05

Early Speed Breaker Detection

National hackathon, top 10 of 75 teams

Road accidents from speed breakers and potholes cause around nine deaths a day. Smartphone accelerometer and location data feed a TensorFlow RNN that classifies speed breakers, potholes and normal road. Because no public dataset existed, we built a custom one.

A hazard is only confirmed when several devices agree at the same coordinates, which keeps false positives down. Confirmed locations build a live hazard map, and drivers approaching one get an advance alert.

Result
About 80% classification accuracy; top 10 of 75 teams
Built with
TensorFlow RNN, Django, JavaScript client, geospatial database
  • TensorFlow
  • RNN
  • Django
  • IoT
06

Pay via Fingerprint

Computer architecture course

Students pay on campus with a fingerprint and settle later on a tab, a model modelled on the one used at BITS Pilani Hyderabad. A Raspberry Pi with a fingerprint sensor authenticates the user, a Flask REST API processes transactions and MongoDB stores users and transaction history.

Built with
Flask REST API, MongoDB, Raspberry Pi, fingerprint sensor
  • Flask
  • MongoDB
  • Raspberry Pi
07

Mock Stock Trading

Personal project, built before AI coding tools

NOT vibecoded

Practise trading with virtual currency and no financial risk. Free API keys rarely offer real-time data, so the simulator replays historical market data, with portfolio management and performance tracking.

It was the project where I learned how a whole application fits together: serving data, handling user actions, keeping state and showing it back in a usable interface.

How it was built
By hand, from docs, Stack Overflow and YouTube tutorials
Features
Buy and sell orders, portfolios, trade history, performance tracking
What it taught me
Full stack development, end to end
  • Full stack
  • Historical market data