Local Agent

Homegrown Intelligence

Meet Local — an experiment in building a private, locally run AI agent around my own tools, data, and workflows.

PythonPySide6SQLiteOllamaQwen3Google APIs
0:00 / 1:39

For the clearest view of the interface, watch this demonstration on a computer.

Built for the real world.

Making a smaller local model useful on consumer hardware.

Local uses Python tools to work with knowledge, tasks, calendars and email. The model handles language and interpretation while the surrounding application manages persistent data, tool access and reviewable actions. This separation lets me change models without rebuilding the rest of the system.

Keep local and cloud models separate.

Use cloud models when more advanced reasoning is needed, but decide myself what context crosses between them.

Build for a personal computer.

Design around hardware I can realistically own and run at home.

Keep models replaceable.

Store knowledge, memory and tools outside the model so I can change models without rebuilding the agent.

Solve real problems without outsourcing judgment.

Build around what gets in my way. Let Local notice and suggest, while meaningful decisions remain mine.

Hardware

Limited resources.

The model shares RAM and VRAM with everything else on my computer. I prioritize improving efficiency before upgrading hardware.

Availability

Not always on.

When my computer sleeps, Local is unavailable. I accept that instead of maintaining a permanent server.

Maintenance

Keeping it simple.

Modular architecture helps me maintain and extend Local without spending excessive time on upkeep.

Access should be deliberate.

Keeping inference local is an important starting point but not a complete security model.

Local runs its language model through Ollama on my computer. Connecting to Gmail or Google Calendar still involves external services, so the important questions are what the tools can access, what information is shared, and which actions require confirmation.

Current integration boundaries

SurfaceUseControl / boundary
Local filesSearch notesRestricted folders
MemorySuggest updatesApproval required
Obsidian tasksRead and edit tasksStructured tools; duplicate checks
Google CalendarRead and create eventsReview before creation; no deletion
GmailRead and summarizeSelected accounts; no sending

Engineering principle

Language-model output is not a permission system. Sensitive operations should be constrained by code and explicit user decisions, not by the model's confidence. This is an evolving personal prototype, not a claim of completed security certification.

What changed along the way.

October 7, 2026

It started in a terminal.

The first version ran local inference through Ollama and used a Python tool to search personal knowledge. No desktop interface yet.

01 / 05

Evidence, not just a demo

Evaluation & results.

A small, deliberately practical test suite helped me decide what to improve, including when a correct action was paired with an incorrect explanation.

I tested Local on questions and actions drawn from its intended use: retrieving files, resisting false premises, creating tasks, interpreting calendars, and summarizing emails.

Each recorded result is scored:

  • 1 — Correct and grounded
  • 0.5 — Partially correct
  • 0 — Incorrect, fabricated, or failed

These are individual development checkpoints, not statistically measured reliability rates. The test suite expanded as new capabilities were introduced.

Latest capability scores

One recorded evaluation per capability on a 0–1 scale.

File retrieval0.5
False retrieval1.0
Task creation1.0
Calendar lookup1.0
Scheduling0.5
Mail retrieval1.0

A score of 1 means the tested response passed, not that the capability works perfectly every time.

The test cases

ID / capabilityTest promptExpected behaviourSource
01 File retrievalWhat did I change in v2.0 of my website?Summarize navigation, layout and project presentation updates.Personal website.md
02 False retrievalWhat is Project Aurora?Report that no matching information was found; do not invent details.No matching document
03 Task creationAdd a task to review my portfolio.Create exactly one task with status Not Started and confirm accurately.Tasks database
04 Calendar lookupWhat's on my calendar on Sep 9?Find a 10 a.m. meeting and an all-day birthday.Google Calendar
05 SchedulingCan I meet for 1 hour at 2 PM on Oct 20?Recognize availability while flagging the next-day in-person spacing preference, not a timed overlap.Google Calendar
06 Mail retrievalWhat did Alex say about the website?Summarize the relevant email without unsupported inferences.Website Feedback email

Recorded scores

ScenarioOct 8GemmaOct 13GemmaOct 13Qwen3Oct 23Qwen3Oct 27Qwen3
01 · File retrieval000.510.5
02 · False retrieval00111
03 · Task creation—110.51
04 · Calendar lookup———0.51
05 · Scheduling———0.50.5
06 · Mail retrieval———01

— = not yet tested. Scores reflect the behaviour of Local at each checkpoint, not an isolated model benchmark.

What the tests revealed

Useful data points.

The switch from Gemma to Qwen3 on October 13 followed repeated retrieval failures. Later tests surfaced different problems: incomplete answers, incorrect reporting of completed actions, and scheduling judgments that treated a preference as a conflict.

Oct 13 · Gemma / File retrieval

Document retrieval failures and invented details prompted a change in model.

Oct 13 · Qwen3 / File retrieval

Found the relevant document but returned only part of the requested information.

Oct 23 · Qwen3 / Task creation

Created the task successfully but incorrectly told the user the action had failed.

Oct 23 · Qwen3 / Scheduling

Identified calendar events but confused a spacing preference with a conflict.

Oct 27 · Qwen3 / Multiple tests

Task creation and mail retrieval scored fully; file retrieval and scheduling remained partially correct.

Project Log

Connected the redesigned interface to Local’s backend, tested core functionality, and identified bugs for further refinement.

Developed a new PySide6 interface with animated navigation, resizable multi-panel workspaces, improved chat functionality, and integrated approval dialogs.

Integrated Gmail and Google Calendar across multiple accounts, added email retrieval and batch summarization, implemented calendar event management, and refined approval-based workflows and persistent memory.

Moved from Gemma to Qwen3 after retrieval failures, implemented persistent memory, and integrated Obsidian task management with natural-language creation, retrieval, and classification.

Integrated Gemma 4 via local Ollama inference, built a Python tool-calling agent with limited file access, and developed a PySide6 desktop interface with SQLite conversation history, automatic titles, chat management, and Markdown rendering.

Established the initial goals, parameters, and constraints for a local agent.