Skip to content
SP
All work

Independent local AI-agent platform, 2026

Spidey

A self-hostable AI agent that runs on local models, draws its reasoning as a live graph and asks for approval before sensitive actions.

ReAct
agent loop with tool calling
SFT + DPO
two-stage fine-tuning pipeline
Offline
voice with Vosk, models with Ollama
Human
approval before sensitive actions

The problem

Most autonomous agents are cloud-only black boxes. Running them locally trades that for another problem: small open-weight models are unreliable at tool calling, narrating an intention instead of acting, or emitting malformed arguments.

The approach

An agent that runs fully offline on open-weight models and streams each reasoning step to a live graph. Rather than hoping a small model behaves, a QLoRA SFT stage teaches the tool-call format and a DPO stage teaches the decision of which tool to call.

What I did

  • Built a Python/FastAPI backend for local model adapters, tool calling, retrieval-augmented generation and persistent memory.
  • Streamed execution events to a React interface over WebSockets, and added offline voice interaction and human approval before sensitive actions.
  • Developed evaluation and fine-tuning workflows to investigate local-model reliability.

How it works

  1. Voice or chat input

    Offline wake word and speech-to-text with Vosk

  2. Agent core

    ReAct loop, with every step streamed over WebSockets

  3. Safety layer

    Command screening and path confinement outside the model

  4. Tool execution

    Runs after approval when an action is risky

  5. Memory

    Local long-term memory and retrieval

Key decisions

  • DPO on top of SFT, not SFT alone

    Supervised fine-tuning teaches the output format but not the judgement. DPO targets the decision itself: whether to call a tool, which one, and with valid arguments.

  • Safety checks live outside the model

    Command screening and path confinement run as ordinary code, so a confused or prompt-injected model cannot talk its way past them.

  • API keys stay in the browser

    Bringing your own key should not mean trusting the server, so a self-hosted deployment never becomes a credential store.

What has been checked

  • An evaluation harness scores whether a model calls the right tool with the right arguments.
  • A test suite drives the platform through its real API, offline.

What has not

  • The harness exists, but no measured benchmark has been published yet. The numbers in the README are illustrative.
  • The default offline model is a one-time download of about 7.6 GB, and local inference is slower than a hosted frontier model.

Working on something related?

I am looking for a Master's thesis or visiting research placement on LLM pipelines, covering their reliability, evaluation and structured output, including language-guided robotics, starting in winter semester 2027/28.