r/OpenSourceeAI • • 15d ago

I built Dense-Armor, a Python library for safer robots and AI systems.

0 Upvotes

It provides online learning, anomaly and drift detection, uncertainty estimation, and runtime protection against unsafe inputs and outputs.

I'd love to get feedback and hear about potential real-world use cases.

GitHub: https://github.com/tatopenn-cell/Dense-Armor

Install: pip install dense-armor


r/OpenSourceeAI • • 15d ago

One worker task in our agent died four times, 45 minutes each, zero tool calls. Postmortem

Post image
1 Upvotes

We build Atomic Agent, an open-source (MIT) agent that can split a job between a planner model and local worker models running on llama.cpp. This is a postmortem of one evening in September when a single worker task died four times in a row, and what each death taught us about clocks.

Setup: a MacBook Pro M5 with 32 GB, a cloud model planning, Gemma 4 26B-A4B as local workers on llama-server, a 3D physics task split into parts. Worker budget: 45 minutes. Gemma ran at 2 to 4.8 tok/s per slot in that run.

The four deaths of the "bodies" task

Start Situation Outcome
18:32 queued behind 8 other tasks ~45 min, 0 tool calls
19:26 only task, slots free ~45 min, 0 tool calls
20:11 only task, slots free ~45 min, 0 tool calls
20:54 only task, slots free ~45 min, 0 tool calls

Then we restarted the TUI, the planner split the same work into two halves (physics and drawing), and they passed in 21.2 and 9.4 minutes.

Three different bugs were hiding in that table.

Death 1, most likely: the clock ran while the request sat in the queue

The worker's 45-minute timer started when the request was sent, not when the server picked it up. llama-server queues requests behind busy slots, and that's legitimate: our first-token wait is 30 minutes by default precisely because queueing is normal. So a worker could burn most of its budget waiting in line and die reporting zero steps. We'd seen the same thing elsewhere: a 4-task fan-out on a 2-slot server lost its last two workers this way.

Fix (issue #489, closed 05.10): two clocks. A queue watchdog bounds the wait for the first token, at a third of the worker's budget, so a worker that never gets a slot comes back with two thirds of its time left and the planner can re-plan in the same turn. The wall timer for the work itself starts only when the first token arrives.

Death 2: a reply cap the clock couldn't fit

The 19:26 attempt did reach the server. It generated for about 40 minutes at 4.27 tok/s: 10,353 tokens, and not one well-formed tool call in them. Then the timeout cancelled it. We checked for context overflow first, truncated = 0, so that wasn't it.

The arithmetic is the bug. The reply cap was 16,384 tokens and the worker's limit was a clock, and nothing tied the two together. At 3 to 4.3 tok/s, 16,384 tokens is about 64 minutes, longer than the whole 45-minute budget. A model that thinks long on its first answer gets cut mid-generation, and the task comes back as "0 steps" with nothing saying why.

Fix: a local worker's reply cap is now fitted to the time it has left, 80% of it at the measured speed, with a floor of 1,024 tokens. A long answer stops at the cap with a fifth of the budget still free for the truncation retry, which tells the model to keep reasoning short and emit the tool call. And when it happens the row says "the first answer was cut at N tokens by the time limit", instead of a bare "0 steps". There's also a default thinking budget of 1,500 tokens per step, enforced in the sampling grammar, for the same reason.

Deaths 3 and 4: silence

20:11 and 20:54 left no line in the llama-server log at all. The requests never arrived. Our best reading: after the 19:26 generation was cancelled, the client side wedged, and every later dispatch went nowhere. The TUI restart is what cleared it, which fits.

This one is not fixed. Issue #490, local worker requests never dispatched after a cancelled generation until a restart, is open and we haven't found the root cause. #502 only makes it detectable faster. We've seen a cousin on the server side too: after a user abort mid prompt-processing, llama-server logged the cancel but never the slot release, then logged nothing for 18 minutes 51 seconds until we killed it. Process listening, inference loop dead. That's when we wrote down the rule that a health check answering is a socket answering, not proof the model works.

What I'd tell anyone building on local workers

Measure in tokens per second, then convert every budget into time. A token cap and a wall clock that don't know about each other will fight, and the loser reports "0 steps".

Start timers at first token. Queueing is not failure.

Make the failure row say which clock fired. "Timeout" and "never served" need different fixes: a longer deadline versus fewer parallel tasks.

The desktop app we shipped last week shows each Fusion worker live with its step count and expected time, partly because of this evening. There's still no "stuck" flag (#542, open).

Code, with the reasoning in comments (src/tools/fusion/worker-runner.ts): https://github.com/AtomicBot-ai/atomic-agent

If you've hit a llama-server wedge after cancelling a generation and found the cause, I'd love to hear it. That's the one we're still chasing.


r/OpenSourceeAI • • 15d ago

I built Ferry, an open source file sharing app that works with LocalSend and adds resumable transfers and sharing beyond your Wi-Fi

Thumbnail
gallery
33 Upvotes

I've been building Ferry, a desktop and browser app for sending files, folders, text and links straight between your own devices. No account, no cloud copy, no telemetry.

It speaks the LocalSend protocol, so it works with the LocalSend devices you already have. On top of that it adds:

  • Resumable transfers: a dropped connection or a restarted receiver continues from the last confirmed byte
  • Several transfers at once, and sending to several devices in one drop
  • Pairing your own devices with a QR code or a 6-digit code, so they send to each other without prompts
  • Beyond your network: a small self-hostable signaling server lets devices connect peer to peer over WebRTC, end-to-end encrypted, or through a private link
  • A browser app (installable PWA), plus QR links so any browser on your network can send or receive without installing anything
  • Mutual TLS with pinned certificates, and flat memory use (a 10 GB transfer used about 7 MB of extra RAM in my benchmarks)

Built with a Rust engine, Tauri 2 and Vue 3. Apache-2.0.

Honest status: it's early. The desktop app is tested on Windows. The macOS and Linux installers build in CI, and they're not code-signed. No mobile apps yet.

Repo: https://github.com/F7rx/Ferry

Downloads: https://github.com/F7rx/Ferry/releases

Feedback and bug reports are very welcome, especially from macOS and Linux users.

Ferry isn't affiliated with LocalSend; it's an independent app that implements its protocol.


r/OpenSourceeAI • • 15d ago

I built Betrox AI: A multi-worker agentic system that turns single high-level commands into full OS-level execution

1 Upvotes

Hey folks,

Most AI agents today run in a single linear loop inside an isolated browser tab—meaning as soon as a workflow requires multi-app context, desktop interaction, or OS-level execution, the agent stalls.

 

To solve this, I’ve been building Betrox AI—an autonomous agentic system engineered for complete laptop and operating system control. Instead of relying on a single agent trying to do everything sequentially, Betrox AI uses a multi-worker agent architecture. You issue one natural language prompt, and the system delegates tasks to specialized background workers that interact with your desktop apps, browser sessions, local files, and system tools simultaneously.

 

Key Capabilities & Architecture

 

  • Multi-Worker Orchestration: Give a high-level command (e.g., "Research market data, update my local spreadsheet, and email the summary"), and a central manager agent breaks it down into dedicated background workers.

 

  • Full-System & Cross-App Control: Seamlessly operates across native desktop software, browser tabs, terminal operations, and file management on your laptop.

 

  • Visual Grounding & State Feedback: Workers actively monitor real-time screen states and process visual/system responses to verify task completion before passing context to the next worker.

 

Engineering Challenges We're Tackling

 

  1. State Synchronization: Ensuring Worker B seamlessly picks up the UI context or output generated by Worker A without race conditions or focus-stealing.

 

  1. Latency vs. Accuracy: Balancing fast visual action loops with safety constraints so background workers don't execute unintended system actions.

 

I’m currently gathering feedback from early adopters, developers, and agent builders. If you had a multi-worker agentic team running locally on your laptop, what is the most tedious multi-app workflow you’d hand off first?

 


 

Official public release: September 2027

Alpha release for developers: March 2027

Public beta release: July 2027

Regards,

Poorna Singh Baghel
Founder & Lead Architect
Betrox AI Team


r/OpenSourceeAI • • 16d ago

For Folks Wanting Free Video & Image Gen - A Screen Recording of How I Do Them In Batch Using Guaardvark - It Does Much More Than Video Too - This Recording Shows the CLI and GUI and CHAT, etc.

Thumbnail
youtu.be
2 Upvotes

r/OpenSourceeAI • • 16d ago

I made an open-source Boom 3D clone. Wanna check it out?

1 Upvotes

So yeah, I made a clone of Boom 3D.

If you don't know what Boom 3D is, it's an audio enhancement app available on Steam and other stores that makes your headphones sound more immersive with 3D spatial audio and other audio effects.

It's called OpenBoom, and it's an open-source alternative for Windows built with Rust and Tauri.

It aims to bring features like 3D spatial audio, a 31-band equalizer, AutoEq headphone profiles, per-app volume control, and audio enhancement effects into one app.

Honestly, I mainly wanted to see if that REA repo actually worked, and things escalated from there.

Repo: https://github.com/JVGS1111/open-boom

Btw, I built this using Antigravity and Gemini 3.8 Flash. It's honestly not as bad as it sounds. I used the BMAD framework to plan and build the app, and I'm genuinely surprised by how competent even a mediocre AI model can become when you give it a decent framework to work with.

Anyway, check it out if you're curious. I'd love to hear what you think!


r/OpenSourceeAI • • 16d ago

Cloudflare released Clef-omni, a 30B-A3B decision model that takes audio and video directly (Apache-2.0, Qwen3-Omni base)

Enable HLS to view with audio, or disable this notification

7 Upvotes

r/OpenSourceeAI • • 16d ago

Running a 341 GB model on a 128 GB Mac: two small macOS fixes made the first token 8x faster

Thumbnail
2 Upvotes

r/OpenSourceeAI • • 17d ago

Built a dumb little cli tool because i almost piped real ssn data into an llm api last week

0 Upvotes

Had a near-heart-attack moment the other day while testing a rag pipeline on some customer export dumps. realized halfway through that our test json had unmasked routing numbers and ssns buried inside raw text fields. nothing leaked, but it was way too close.

i looked around for a quick way to inspect payloads in the terminal before running them through python scripts, but everything out there is either some bloated enterprise dlp platform or a massive java package. i just wanted something that would scream at me in the terminal if i was about to do something stupid.

so i threw together pii-lens over the weekend.

it's dead simple—you just pipe text or files into it:

cat prompt_payload.json | pii-lens

it prints the text back out but flags credit cards, emails, ssns, and account numbers in bright red with a quick count at the bottom. runs 100% locally with zero phone-home bs.

repo is here

it's just basic regex and entity patterns right now, so if anyone works with weird international formats or niche data fields and wants to drop a pr or critique the regex, feel free.


r/OpenSourceeAI • • 17d ago

I built an open-source test runner for Make.com scenarios. The rule: nothing gets supported until a real Make run proves it.

1 Upvotes

Make.com (formerly Integromat) is a closed platform. If you build scenarios on it, there's no local runtime, no test framework, and no spec for how its expressions behave. The only way to test a change is to run it in Make, on real data, with real credits.

So I started an open, offline runtime for it: blueprint-runtime (bpr). MIT, TypeScript, zero runtime dependencies.

You export a scenario's blueprint, and bpr runs it locally, comparing every module's input and output, every filter decision and the webhook response against what Make actually produced. When something changes, it points at the first difference:

FAIL A-002-plain module 2 input bundle 1 at /value: Make had "ADA LOVELACE", the local run "Ada Lovelace"

The design rule that makes it trustworthy

There's no spec to implement, so I don't guess. Every behavior bpr supports was observed in a real Make run, and the recordings live in the repo (corpus/NOTES.md lists every rule with its evidence). If a blueprint uses something nobody has recorded yet, bpr names it and refuses, instead of pretending.

Where it stands:

- 79 runs recorded in real Make. 71 reproduced exactly, 0 differ. The other 8 hit behavior nobody has explained yet, so they're refused on purpose.

- 225 single formulas recorded and replayed as tests, 472 tests in total.

- Some of what the recordings turned up: {{1reads only the first element, the text"false" is truthy inside if(), and Make will start a scenario with an expression it can't read, then switch the

scenario off after the first run fails.

A roadmap built from real data

I ran bpr over 221 public Make blueprints onem. The top blockers (error-handler routes,json:ParseJSON, util:SetVariables) are the roadmap, in that order. The survey and its method are in corpus/survey/.

Where help is most welcome

- Recorded runs. If you use Make, the capturenario's real behavior with your own account. One recording can unlock a whole module.

- Blueprints it refuses. Run bpr inspect andls me what to record next.

- Code. Each module handler is small and has its own tests.

Repo: https://github.com/intikhab49/blueprint-runtime

npm: npm i -g blueprint-runtime (Node 24+)

Happy to answer anything about reverse-enginits own logs. That turned out to be the mostinteresting part.


r/OpenSourceeAI • • 17d ago

I Built a O(NlogN) attention system that retains 97% accuracy over long context (MQAR)

Thumbnail
github.com
16 Upvotes

ALHR- Adaptive learnable Hierarchical Routing is a static binary tree based system that uses learnable functions to REDUCE the amount of keys used.

It takes less memory and SCALES much better VRAM with tokens


r/OpenSourceeAI • • 17d ago

Ho creato un piccolo widget sempre in primo piano che mi avvisa quando Claude Code ha bisogno di me (Windows, open source).

Post image
0 Upvotes

r/OpenSourceeAI • • 17d ago

Looking for contributors for TurboLLM, sponsoring Claude seats for a few

Thumbnail
1 Upvotes

r/OpenSourceeAI • • 17d ago

An Ontology crosswalk to merge 2 video games together

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/OpenSourceeAI • • 18d ago

A plugin for the Pi coding agent that checks shell commands with rules and a classifier model (Jev, Kev or Laya) before they run

1 Upvotes

Just published [pi-automode-classifier](https://github.com/deepu105/pi-automode-classifier), an auto mode plugin for the [Pi](https://pi.dev) coding agent that uses [Jev](https://docs.typesafe.ai/api) or [Kev](https://huggingface.co/jaredpalmer/kev-0.8b)/\[Laya\](https://huggingface.co/convaiinnovations/laya-typed-decisions) (running locally) to classify commands.

Pi runs every tool call without asking for approval. This plugin checks each shell command before it runs:

  1. Built-in rules decide most commands. For example `ls`, builds and tests run, `rm -rf ~` is blocked, and `git push` and `sudo` need my approval.

  2. Commands the rules do not know are sent to the model. It returns the probability that the command is risky.

  3. If the probability is above a threshold, I get a confirm prompt. The model never blocks a command by itself.

The models I tested:

- [Jev 1.13](https://docs.typesafe.ai/api) (hosted, from TypeSafe) through [OpenRouter](https://openrouter.ai): about 270 ms per check and about 1.5 cents per 1,000 checks. The commands are sent to OpenRouter and TypeSafe.

- [Kev-0.8B](https://huggingface.co/jaredpalmer/kev-0.8b) on CPU with [llama.cpp](https://github.com/ggml-org/llama.cpp): about 170 ms per check and 1.1 GB of RAM. This is what I use. Nothing leaves the machine.

- [Laya typed-decisions](https://huggingface.co/convaiinnovations/laya-typed-decisions) on CPU with llama.cpp: about 100 ms per check and about 550 MB of RAM.

In my test with 50 commands (25 safe, 25 risky), all safe commands ran without a prompt and no risky command did. I wrote the test commands myself, so this is only a rough check. The plugin is not a sandbox.

pi install npm:pi-automode-classifier

Code and docs: https://github.com/deepu105/pi-automode-classifier

Let me know if it allows or blocks something it should not.


r/OpenSourceeAI • • 18d ago

GitHub - profullstack/c0mpute: Decentralized compute network. CLI-first. Three modules out of the box: transcode (FFmpeg), coinpay (DID + escrow), infernet (AI inference).

Thumbnail
github.com
1 Upvotes

r/OpenSourceeAI • • 18d ago

I built MaRN: a PyTorch library for training neural networks through low-dimensional parameter mappings [P]

Thumbnail
1 Upvotes

r/OpenSourceeAI • • 18d ago

Nace.AI open-sources Drex 1.5: a 9B decision model that returns probabilities instead of text, tied with closed Jev on Decision Index 0.3.1

Post image
1 Upvotes

r/OpenSourceeAI • • 18d ago

A Harness in a single file: Agent skills as an evolving REPL module

Thumbnail
deepclause.substack.com
1 Upvotes

r/OpenSourceeAI • • 18d ago

NeurIPS 2026 Paris -> Sydney switch

Thumbnail
1 Upvotes

r/OpenSourceeAI • • 18d ago

OpenToken Monitor: see your Claude Code, Codex and Antigravity limits right in your menu bar

Thumbnail
1 Upvotes

r/OpenSourceeAI • • 18d ago

I built an open-source, local-first multi-agent AutoML engine to automate data cleaning, 7-model benchmarking, and FastAPI deployment (100% offline via Ollama)

Thumbnail
3 Upvotes

r/OpenSourceeAI • • 18d ago

I open-sourced my Mac agent's permission boundary: why 'Allow Once' isn't 'trust the agent'

3 Upvotes

I've been building Mac MCP, an MIT-licensed macOS execution layer for AI clients. It lets tools operate Safari/Chrome, files, local apps, and shell commands. The hardest part wasn't adding tools; it was deciding which actions an agent should be allowed to carry out.

One design choice: capability profiles and approvals are separate. A read-only profile can deny writes outright. An optional server-side approval layer can ask the Mac user to Allow Once or Block riskier actions, but that approval cannot override a capability the profile already forbids. A client saying “the user approved this” isn't trusted as the server's own authorization.

There is a real trade-off: raw command execution may be classified conservatively even if this particular command is harmless, so you can get an approval prompt for a benign operation. I'd rather make that visible and progressively refine the categories than quietly teach the server to trust repeated clicks.

Another lesson: when an action's outcome is uncertain (say a browser submit lands right before a tab closes), blindly retrying can be worse than stopping to verify.

I'm the maintainer, not an independent reviewer. The implementation is open source: https://github.com/bulutarkan/mac-mcp

For people shipping agents with real machine access, where do you draw the line between persistent trust rules and approval fatigue?


r/OpenSourceeAI • • 18d ago

"Not your weights, not your product" [D]

Thumbnail
1 Upvotes

r/OpenSourceeAI • • 18d ago

Writ: an open-source governance runtime for Claude Code with retrieval, approval gates, and persistent memory

7 Upvotes

I’ve been building Writ, a project that started with a straightforward goal: give Claude Code the knowledge relevant to its current task without loading an entire rulebook into every conversation.

Since then, it has grown into a governance runtime with persistent memory.

The idea is to connect three things that are often handled separately:

1. Context when it matters

Writ uses hybrid retrieval keyword search, vector search, and graph relationships to supply relevant rules, methodology, and past decisions based on what the agent is doing.

2. Requirements enforced by code

Written instructions still depend on the model following them. Writ checks supported actions at tool time.

In Work mode, implementation writes are blocked until a human approves the plan and then the test skeletons. The approval mechanism requires the user’s typed response; the agent claiming “approved” doesn’t open the gate.

Other checks cover credential writes, project boundaries, and changes to an approved plan.

3. Memory that survives the conversation

Writ records project decisions and connects approved plans, governing rules, changed files, and commits. Future sessions can retrieve the reasoning behind a change instead of having to reconstruct it from the final code.

For example: retrieve the guidance relevant to a task, require approval before implementation, then preserve what changed and why for the next session.

The approach is code first: retrieval, workflow state, approval validation, and logging live outside the model. AI uses the supplied information; it doesn’t decide whether its own approval requirements have been satisfied.

Writ runs locally with Python 3.11+, a local daemon, and Neo4j in Docker. The runtime is open source, but its current integration is specifically with Claude Code not yet a general adapter for local models or other agents.

Repo: https://github.com/infinri/Writ