An ongoing personal AI project: a local-first assistant that I plan to expand, over time, into a scientific research, engineering, and robotics development partner. This page covers what runs today, what is still an experiment, and what hasn't been built.
Developed by Owen Ogrodnick, founder of OTO Intelligence
$ .venv/bin/python -B -W ignore -m unittest discover -s tests -t ....................................................................................sss.....................................................................................................................................................
Ran 235 tests in 0.776s
OK (skipped=3)
Real output from the project. The 3 skips are unfinished learning exercises.
Language
Python 3.9
Language model
Gemma, running locally through Ollama
Speech
sherpa-onnx recognizer, Kokoro voice
Hardware
M3 MacBook Air, 16 GB
Codebase
About 8,300 lines of Python, tests included
Status
In active development
01 · In plain English
What ONYX is
ONYX is a program on my laptop that I can talk to. It listens through the microphone, works out a reply using an AI model stored on the same machine, and answers out loud. That conversation doesn't have to leave the computer.
The second half of the project is a task engine: an attempt to make an AI model do multi-step work reliably. It plans, acts, checks whether the action really worked, and changes approach when it didn't. For now it runs against simulated computer screens instead of my real one, so I can measure it safely.
The AI model itself is a standard open model that I download and run. I don't train it. The engineering is in the software around it: what the model is asked, what it's allowed to do, how its answers are checked, and how the whole system is tested.
What's ONYX, and what's borrowed
Task loop, limits, recovery
ONYX code
Permission checks
ONYX code
Completion checks
ONYX code, though whether a result matched what I meant still relies partly on a model
Choice of model
ONYX code
Planning and deciding
A model proposes, ONYX code controls and checks
Raw reasoning
Borrowed from an outside model
Long-term memory
Not built
02 · Status
What's real today
Working means it runs on my laptop. Experimental means it exists and has been measured, but only in simulation or with limited testing. Planned means it hasn't been built.
WorkingRuns on my laptop today
Local text conversation
Streams replies from a model on the laptop. It has no access to tools, on purpose.
Evidence29 tests. One reads the source code and fails if this mode can ever reach the task engine.
Local voice chat
Speech recognition and speech synthesis both run on the laptop. You can interrupt it mid-sentence, and it has three swappable voice profiles.
Evidence33 tests, plus timed trials. Known issue: about 3 false interruptions in 3.5 minutes on laptop speakers.
Context and saved history
When the model's window fills, older conversation is condensed into labelled notes. Every exchange is saved locally and can be resumed.
EvidenceCovered by the conversation tests. A new chat knows nothing about old ones unless I resume them.
Original voice assistant
Wake word, speech in, local model, spoken reply, and opening apps and websites. This older version still uses cloud services for speech recognition and voice output.
EvidenceWake word: 15 of 15 on my own recordings, the same clips it was tuned on. App opening has only been tested with simulated speech.
Regression test suite
Automated tests over the engine, router, voice, conversation, and benchmarks. Runs in under a second with no model or microphone.
Evidence235 tests on 9 Nov 2026: 232 passed, 3 skipped on purpose.
ExperimentalExists and is measured, with limits
General task engine
Plans, acts one step at a time, checks the result, and changes approach when stuck.
EvidenceSimulation only, not connected to my real computer. 16 of 24 on unseen tasks.
Independent task verification
A task counts as complete only with proof that doesn't rest on the model's word.
EvidenceFalse claims of success: 1, against 5 for the model alone, on the same 24 tasks.
Attempt ledger
Records what has been tried, sorts each outcome by kind, and blocks pointless repeats.
Evidence66 tests. No repeated tests or submissions in the last two reasoning runs. Newest code in the project, not merged into the main line yet.
Approval gate
Actions like sending, paying, or deleting need my approval, enforced in code so a model can't talk its way past it.
Evidence4 of 24 simulated runs still took an unsafe action, against 8 for the model alone. This is the main safety gap.
Adaptive model routing
Picks which model answers each question: privacy and cost rules first, then a score for fit, track record, and speed.
Evidence36 tests and a 6 of 6 practice run. Only the local model has been enabled, so it has never had a real choice to make.
PlannedNot built yet
Real computer control
Operating real apps through macOS accessibility, with every action verified.
TodayA tool interface and a simulator.
Memory that applies experience
Short-term, working, and long-term memory, with lessons from past tasks.
TodayNot started.
Research missions
Multi-source research with traceable citations, ending in verified deliverables.
TodayA staged design document. No search or page-reading tools exist yet.
Experimental self-improvement
ONYX analyzing its own results and building isolated prototypes, with my approval, testing, and rollback before anything reaches the core.
TodayBenchmarks only.
Research and robotics partner
The long-term direction: a partner for scientific research, engineering, and robotics development.
TodayNo robotics integration exists.
What ONYX does not do
ONYX does not train or modify its own neural network, and it does not learn permanent new skills. What it works out during a task is gone when the task ends. The one thing it keeps between runs is a set of reliability averages that the model router uses, and those only change which model gets asked. They don't make any model smarter.
03 · Architecture
How the pieces fit
Two systems share a model layer. The dark boxes show where a language model is involved. Everything else is ordinary code, which is the point: the model suggests, and the software decides.
Conversation and voice
Working
MicrophoneShared two-way audio link
Echo cancellerecho.py
Speech recognizerears.py
Turn-takingvoice_chat.py
Context and historysession.py
Local modelollama.py
Speech synthesisspeech_engine.py
Speakermouth.py
Kept apart on purpose. Conversation mode can't reach tools or the task engine, and a test fails if that ever changes.
Task engine
Simulation only
GoalFrom the user
ObserveRead the state
PlanSteps and a definition of done
DecideOne next step
Approval gatepermissions.py
Actsim.py
VerifyModel offers proof, code checks it
ReportCompleted, partial, failed, or unverified
Adapt. If progress stalls, the model diagnoses why and proposes a different plan. After two replans, the engine stops and reports that it couldn't finish.
Provider contract
models.py defines one neutral question format, so any model can be swapped without touching the engine.
Model router
router.py applies hard rules, then scores what's left. Used by the task engine only.
Adapters
Vendor names stay out of the core, and a test enforces it. The local adapter is on. Hosted adapters are off, with a $0 budget.
Language model involvedModel offers, code checksOrdinary code
The systems, one at a time
Each row starts with a plain explanation. The right column has the technical detail.
Python-based architecture
Modular Python, with the engine, conversation code, models, and tests kept apart.
onyx_core/ holds the task engine, router, and permissions. conversation/ holds text and voice. A test fails if a vendor name appears in the core.
Local language model
The AI model runs on the laptop through Ollama, so replies stay on the machine and cost nothing per use.
gemma4:e4b-it-q4_K_M, about 6.6 GB on disk. 8,192-token context. Task-engine replies are constrained to a JSON schema.
Voice interaction
You can talk over it and it stops. To allow that, it has to remove its own voice from what the microphone hears.
One two-way audio stream keeps playback and recording in step. The adaptive echo canceller stops learning when it can't explain the sound. Only the words you actually heard get saved.
Context and saved history
A language model has no memory. It seems to remember because the conversation so far is sent along with every message.
Older turns are condensed into notes labelled as summaries. Events are appended as one line of JSON each, so a crash can damage at most the last line.
Planning and reasoning workflows
The model proposes a plan and a next step. Code decides whether that step is allowed and what actually happened.
TaskLoop: observe, understand, reason, plan, act, verify, adapt. Hard limits of 15 steps, 50 model calls, 300 seconds, and 2 replans.
Adaptive model routing
A dispatcher that decides which model should answer each question.
Rules first (privacy, cost, quota, cooldown), then a score: 50% fit, 35% track record, 15% speed. Personal data can't reach an untrusted model at any score.
Task execution simulations
Made-up computers with screens, buttons, and forms, so failures are free and nothing real is at risk.
sim.py and benchmarks/. Traps include prompt injection, ambiguous requests, irreversible buttons, and impossible tasks. The simulator decides pass or fail.
Regression testing and error handling
Automated tests protect what already works, and failures are expected to be handled, not to crash the program.
235 tests. A broken tool becomes a recorded result instead of an exception. Unreadable model replies get one retry. Lost router history is tolerated.
Independent task verification
A task only counts as done with proof that doesn't depend on the AI saying so.
Code checks that quoted evidence is really on screen, isn't only what the assistant typed, and wasn't there before it acted. Or a tool declared in advance as the judge must give an explicit yes.
Troubleshooting and debugging
Every run leaves a step-by-step record of what the model saw, proposed, and did.
journal.py writes JSON events for plans, decisions, gate verdicts, actions, verification, and replans, one file per task.
04 · Process of elimination
How a wrong answer becomes useful
Process of elimination happens at two levels. During a simulated task, ONYX evaluates alternatives and uses feedback to guide its next decision. Between runs, I use repeatable tests, failure analysis, and troubleshooting to improve the software.
During a task: what ONYX does
One of the benchmarks is a lock with a secret three-digit code, each digit from 1 to 4. That makes 64 possible codes. ONYX tries a guess, gets feedback, and has to narrow it down. Step through three real runs, including one it failed.
64of 64 codes still possible
The guesses and feedback are from the saved benchmark run of 8 Nov 2026. The grid is an illustration I compute from that feedback. ONYX's code records attempts and blocks repeats, while the language model does the reasoning about which codes remain, which is why it can fail. Across all 12 problems in that run, it solved 4.
How outcomes are sorted
Code sorts every attempt into exactly one kind. A refused input and a wrong answer are different things, and only real results count as evidence about the task.
Kind
What happened
Evidence?
invalid
It never ran, because the input broke a rule.
No
execution_failed
The tool itself broke.
No
negative
It ran properly and the answer was no.
Yes
positive
It ran properly and the answer was yes.
Yes
uncertain
It ran, but nothing shows whether it achieved its aim.
Not yet
The rules that follow
An attempt already judged wrong is blocked before it runs.
A failed attempt can only be retried if something has changed since.
Two rounds with no progress force a diagnosis and a new plan.
After two replans, the engine stops and says it couldn't finish.
All of this is forgotten when the task ends. It's short-term strategy, not learning.
05 · Between runs
How I approach engineering problems
Same idea, one level up. Change something, measure it, and rule out what didn't work. The examples below come from the project's test logs and commit history.
Run it the same way each time
Same tasks, same model, fixed seeds, and results saved to a file.
Investigate surprises
A result that looks too bad or too good gets examined before it gets believed.
Compare against something simpler
The engine is measured against the same model with no checks around it, so added complexity has to earn its place.
Find the actual cause
The step-by-step journal shows what the model saw, what it proposed, and what happened.
Make small changes
Separate, reversible changes, so a result can be traced to what caused it.
Verify on fresh ground
Fixes go through the test suite, then tasks that weren't used for tuning.
Four real examples
The test was wrong, not the model
probes_20261108_210026 · commit 1c9e48b
Symptom
The first run of the reasoning problems scored 0 of 12 for ONYX and 0 of 12 for the baseline. Two different agents both scoring exactly zero looked more like a broken test than a bad model.
Diagnosis
The run log showed the model working out the rule correctly and writing 112 is the predicted output for 37. The scorer pulled out every digit and joined them, turning a correct 112 into 11237.
Fix
An answer now has to be digits and nothing else, and one that can't be judged no longer uses up an attempt.
Result
Later runs scored 3 of 12 and 4 of 12. The engine also changed between those runs, so the gain can't be credited to the scorer alone.
A better score hiding a worse behavior
holdout_20261108_182106 · commit 2085472
Symptom
After four defects were fixed, the score rose from 29 of 40 to 34 of 40. False claims of success also rose, from 2 to 5.
Diagnosis
On Rename my note Ideas to Startup ideas, the proof offered was the title field showing the new name. That was text the assistant had typed itself and never saved.
Fix
Code now rejects proof that is only the assistant's own typing, input that was never applied, or words that were on screen before it acted.
Result
36 of 40, with false claims back to 2. Both remaining came from one ambiguous request, which is still unsolved.
Retiring a test set after using it
fresh_20261108_213451 · commit 7d4895a
Symptom
Those fixes were made after seeing failures on the held-out set, so 36 of 40 could no longer be read as a fair score.
Diagnosis
A test set stops measuring anything once it has influenced the code it's testing.
Fix
A new set of 24 tasks was committed to version control before any model had run on it, and it isn't used for tuning.
Result
16 of 24, against 8 of 24 for the baseline. That lower number is the one I report.
The first trial with my real voice reported 8 of 12 for detecting the name ONYX.
Diagnosis
Most of those tries had bypassed the detector completely, so the figure wasn't measuring it at all.
Fix
The bypass was fixed and the detector was retuned.
Result
15 of 15 on my own recordings. Those are the clips it was tuned on, so real-world use may be lower.
Smaller problems found and fixed
The model's safety flag marked saving a calendar event as hard to undo, so ordinary tasks stalled waiting for approval. A focused second look now excludes saving what was asked for, and stays cautious if the answer is unclear.
The voice dictionary silently skipped about one word in twenty, including plurals it didn't know. Missing plurals are now generated from English sound rules.
The echo canceller could learn to subtract the user's own voice. It now stops learning when it can't explain what it hears.
Voice chat crashed only when launched with no options, because a default named a voice by number. Confirmed fixed by starting the real launcher with no arguments.
06 · Results
The numbers, with their limits
These come from saved result files, measured in November 2026. Every benchmark ran on the local model at no cloud cost. The tasks are simulated and the samples are small, so read these as engineering measurements and not as claims about general ability.
235automated tests232 passed, 3 skipped on purpose
16 of 24unseen tasks completed8 of 24 for the model alone
1false claim of success5 for the model alone
4 of 12reasoning problems solvedThe weakest result so far
Unseen task set
24 simulated tasks, one attempt each. The comparison is the same local model with no checks around it. The simulator decides what passed.
Measure
ONYX task engine
Model alone
Tasks completed correctly
16 of 24
8 of 24
Recovery from an unexpected failure
3 of 3
2 of 3
False claims of success (lower is better)
1
5
Runs with an unsafe action (lower is better)
4
8
Median model calls per task
8
6
Average tokens per task
4,427
2,500
Median time per task
22 s
22 s
The engine costs about 77% more tokens per task. All three tasks that depended on remembering an earlier screen failed for both agents, because the engine remembers what it did and not what it saw. Four unsafe runs is too many.benchmark_results/fresh_20261108_213451.json
Earlier held-out set
20 tasks, two attempts each. Only the first engine run was a clean measurement. The later rows are useful for tracking fixes, and that's all.
12 problems where the answer can only be found by experimenting: hidden number rules, locks, and locating a fault within a limited number of tests.
Run
Hidden rule (of 6)
Elimination (of 3)
Limited tests (of 3)
Total
First run, with the scorer bug
0
0
0
0 of 12
Scorer fixed, run A
1
0
2
3 of 12
Scorer fixed, run B
1
2
1
4 of 12
This is the current weak point, and most of the limit is the small local model. Neither later run made a false claim of success. Another 16 problems were written and deliberately held back, so one clean measurement is still available.benchmark_results/probes_20261108_210026, probes_dev_new250_20261108_224842, probes_dev_new250b_20261108_231356
Voice, measured on my laptop
Trials used the Mac's built-in voice as the speaker, because an automated test can't be a real person.
First spoken reply 5 to 8 s
Later replies Usually 2 to 4 s
Time to interrupt on laptop speakers About 3 s
False interruptions About 3 in 3.5 min
Speech synthesis speed About 2× real time
Known misheard word "robot" as "rovote"
07 · Media and source
Demonstration and code
These spaces are reserved for real recordings and screenshots of ONYX. They stay empty until those exist.
Demonstration videoReserved · not recorded yet
Voice chat screenshotReserved
Benchmark run screenshotReserved
Source codeThe repository is private for now. A public link will go here.
08 · Credits
How this project gets built
I lead ONYX independently, and I develop it with AI coding tools. Claude Code is credited as a co-author on the commits in this repository. I set the direction and the rules the project has to follow, approve major changes, and judge the results.
Understanding each part well enough to change it myself is one of the project's goals. Each major component has a written guide with exercises, and the three skipped tests above are exercises I haven't finished yet.
Get in touch
Working in robotics, AI, or engineering?
I'd be glad to talk about apprenticeships, engineering roles, or the project itself. If you came here for a website or an automation for your business, OTO's services are one click away.