Work

Code Akos

Your app crashes. An AI writes the fix. You approve it.

In short

Apps crash, and when one crashes for a real person, someone usually has to find out why and fix it by hand. Code Akos does that first part for you. It notices the crash, works out what went wrong and asks an AI to write a fix. Nothing changes until a person reads the fix and says yes, and they can see whether the app’s own tests still pass with it. It runs on your own computer, and anyone can read its code.

Code Akos running: the dashboard, triage of a new error, then the pull request it opened. The clip uses sample data.
What it is
Self hosted error tracking that drafts fixes
Built with
TypeScript, Node.js, SQLite, Electron
AI
Ollama, DeepSeek or Anthropic, with fallback
Runs on
Your own machine, as one process
Tests
Around 570
Status
Source available, v1.3.0

Full stack: Sentry protocol, Error fingerprinting, LLM tool use, Git worktrees, TypeScript, Node.js, SQLite, Electron, Ollama

Screens, full size

The Code Akos dashboard: 9 errors tracked, 9 triaged, 9 filed on GitHub, 9 fixes tried and 4 pull requests open.
The dashboard follows every error from the crash to a pull request.
An error opened in Code Akos. Triage explains that OrderHistory reads session.user.id while the session is still null, says what to do, and tags it as safe for a bot.
Triage says what happened, what to do, and tags the error.
The same error after the resolver ran: what it changed in OrderHistory.tsx, a note that the check command passed, and a link to the pull request waiting for review.
The resolver says what it changed, whether the check passed, and links the pull request.

The error and pull request views come from the demo in the Code Akos repo, run on sample projects. Select a picture to see it full size.

Everything below is for engineers: how it is built, what I measured and what went wrong.

The problem

Between an exception in production and a fix, someone has to group the duplicates, write the issue, find the cause and open a pull request. Sentry automates the last steps with Seer on its paid plans, at $40 per active contributor per month as of October 2026. Self hosted Sentry is a Docker Compose stack of 53 services, Kafka and ClickHouse among them, and it needs 16 GB of RAM.

Code Akos Sentry GlitchTip Bugsink
Sentry SDK events Yes Yes Yes Yes
Self hosted size 1 process 53 services App + Postgres 1 container
Fix pull requests Yes, your model Paid (Seer) No No
Alerts No Yes Email, webhooks Chat, webhooks
Multiple users No Yes Yes Yes

These figures come from each tool’s own documentation as of October 2026, compared in the Code Akos README. I wanted the whole path in one process on my own machine, with a model I choose.

How it works

Step What happens
1. Ingest Your app’s Sentry SDK sends the error to Code Akos
2. Group Repeats of the same bug are counted as one issue
3. Triage A model or rules tag the issue and suggest a next step
4. File Issues with a stack trace become GitHub issues
5. Resolve A model attempts a fix in a throwaway copy of your code
6. Check Your check command runs before and after the change
7. Open A pull request is opened, marked verified or unverified

Ingest. It accepts the Sentry store and envelope endpoints, with gzip, deflate or brotli bodies and CORS for browser SDKs. An existing app changes only its DSN.

Grouping. Each error gets a fingerprint from its exception type, the crashing file and the source text of that frame. Ids inside messages and shifted line numbers do not split a group, and an SDK’s own fingerprint is honoured.

Triage. A model, or rules when no model is set, tags each group as safe for a bot, needing a human, infrastructure, third party, missing a stack trace or a test event, with a reason and a next step.

Issues. Each new group with a stack trace at error or fatal level becomes one GitHub issue. Code Akos comments on it again at 100, 1,000 and 10,000 events.

Resolver. For each open issue it filed, Code Akos fetches the branch into a throwaway git worktree made from one shallow clone, gives the model up to 20 tool use turns, runs your check command before and after, and opens a pull request marked verified or unverified. The model may answer SKIP instead of guessing, and a failing issue gets three attempts.

One process. The dashboard and the ingest endpoint are two sockets in one Node process, both on loopback by default. GitHub tokens are stored encrypted with AES 256 GCM. The desktop app is Electron, and its four step setup checks that the ports are free, that Ollama answers, that API keys are accepted and that the chosen model exists.

Decisions that mattered

Group on the text of the line, not its number. A small edit above the crash moves every line number. Grouping on the text keeps one bug in one group.

Rules the model cannot overrule. In a replay of 12 situations, with bugs added to a copy of one of my own apps, the local model made mistakes such as tagging a real exception as a test event or app code as third party. I added guardrails on facts the model cannot overrule, each with its own test.

Keep local variables out of the issue. The local model sees them, because they help it triage. The GitHub issue never gets them, because the repository may be public.

Say whether the check passed. A pull request is only marked verified when your own check command passed after the change.

What did not work at first

That replay found several gaps, three of them in how errors were read and tagged. Logged failures carried their stack in a field Code Akos ignored, so they were never filed. The rules only knew JavaScript wording, so common Python errors were not recognised. A missing macOS permission was reported as a code bug. All three are fixed. Three of the 12 cases, triaged by rules alone:

Case Tag before Tag after
Misspelled name (NameError) Needs a human Safe for a bot
Method called on None Needs a human Safe for a bot
Missing macOS permission Needs a human Infra, needs a human

The full before and after tables are in the repo.

Limits

  • The resolver does not read the triage tags yet, so it also attempts issues marked as needing a human. With a paid API, every attempt costs money.
  • The fix success rate has not been measured.
  • Only the Apple Silicon build is tested, and no build is signed by a recognised developer.
  • It is built for one maintainer: no alerts, no tracing and no multiple users.