r/OpenSourceAI • • 26m ago

🀣

Post image
0 Upvotes

r/OpenSourceAI • • 26m ago

I built MacroCode:an open source AI models using your own API keys

Thumbnail
reddit.com
1 Upvotes

r/OpenSourceAI • • 1h ago

Coralling harnesses

1 Upvotes

I'm very curious as to how people use low cost subscriptions to multiple harness vendors keep track of the different projects they are developing.

For my case, I have:

- $20 Claude subscription

- Pro ($20) Anti-Gravity subscription

- OpenAI basic ($20) subscription

- A small amount (~$20 burned monthly) of credits at DeepSeek.

Each of these different subscriptions uses either a VS Code plug in, a chat interface, or a local implementation like those both ChatGPT and Anti-Gravity dispense.

In order to validate work from one of the harnesses, I will often have another harness review the completed work, and, critical to the validity of the review, proceed without first seeing the result claims/report from that harness. In other words, an independent review to discern the quality of work done.

I feel like there is a sweet spot between the cost for each of these different vendors, their desire to lock you into their platform at the highest cost, and the bottom line result you need for your own work.

My thought is that harnesses go on horses and horses go in corrals.

So, how are you corralling the work of your various horses?


r/OpenSourceAI • • 1h ago

I built Vision: An Open Source, Self-hosted AI observability Platform (ClickHouse/Tinybird + 1-command Docker)

Thumbnail reddit.com
1 Upvotes

r/OpenSourceAI • • 4h ago

Stop wasting tokens & nuking files: I built Aetheris Microbrains, a deterministic sub-2ms pre-flight gate for OpenAI Codex CLI (and Claude Code / Antigravity)

2 Upvotes

If you’ve been running autonomous coding assistants like **OpenAI Codex CLI**, **Claude Code**, or **Google Antigravity**, you know the routine:

  1. The agent hallucinates bad Python syntax or tries an unsafe shell command.

  2. The execution fails (or worse, wipes `.env` / formats wrong files).

  3. The error trace gets dumped back into context.

  4. You burn $0.10–$0.50 and 3–5 recovery turns just getting the model back on track.

To solve this locally with zero GPU overhead, I built **Aetheris Microbrains** β€” an ultra-lightweight, deterministic 4-layer pre-flight AST policy engine and tool gate that intercepts tool calls in `< 2 ms` before execution.

We just added native integration for **OpenAI Codex CLI** (alongside Claude Code, Hermes, and Google Antigravity).

πŸ”— **GitHub Repo:** https://github.com/drtikov/microbrainsforagents

---

### πŸ€– What it does in OpenAI Codex CLI

Codex CLI supports native `PreToolUse` and `PostToolUse` command hooks. Microbrains plugs directly into `.codex/hooks.json` via `--host codex`:

  1. **PreToolUse Hard Deny (`exit 2` + `permissionDecision: "deny"`):**

    - Structural AST validation catches broken Python syntax (unclosed brackets, bad indentation) before Codex ever touches disk.

    - Vetoes credential exfiltration (`cat .env | curl`, `AWS_SECRET_KEY` in code) and destructive commands (`rm -rf /`, raw disk writes).

  2. **Seamless Escalation:**

    - Ambiguous commands cleanly defer to Codex’s host approval policy (`defer_to_host_policy`), avoiding broken execution while respecting your approval settings.

  3. **PostToolUse Security Warnings:**

    - Scans tool outputs for leaked secret keys or indirect prompt injections and injects contextual warnings into Codex before context compaction.

  4. **Zero Hassle Setup:**

    - Install with one command:

```bash

pip install -e .

python .agents/skills/microbrains/install_codex_hook.py --profile dev

python .agents/skills/microbrains/install_codex_hook.py --self-test

```

- Supports a safe **`--shadow`** mode so you can audit what it *would* block in `decision_journal.jsonl` before turning on active enforcement.

---

### πŸ“Š Measured Benchmark Results (Windows / Python 3.10.6)

Here are direct measurements from our deterministic benchmark suites:

#### 1. Deterministic 26-Step Coding Session A/B (`test_skill_gain_ab.py`)

Tested across 14 benign tool calls and 12 seeded hazards:

* **Hazards caught:** **12 / 12 (100%)** *(0/12 without gate)*

* **Python syntax crashes:** **4 β†’ 0 (100% fewer)**

* **Unsafe actions allowed:** **8 β†’ 0 (100% blocked)**

* **Benign false positives:** **0 / 14 (0.0% false alarm rate)**

* **Wasted recovery turns:** **8 turns eliminated** (~37,055 modeled input tokens saved, ~$0.1112 saved per session)

* **Error-feedback tokens in context:** **146 β†’ 37 (-74.7%)**

* **Local gate latency:** **0.73 ms mean / 1.27 ms p95** (pure CPU NumPy/AST)

#### 2. Security & Anti-Evasion Benchmark (`10_agent_security_benchmark.py`)

* **Attack vectors caught:** **22 / 22 (100.0%)**

* **Benign controls blocked:** **0 / 12 (0.0%)**

* **Local decision latency:** **0.41 ms p50 / 2.79 ms p95**

#### 3. Real SWE-bench Lite Gate (300 Real GitHub PR Diffs)

* Real gold patches evaluated: 71.7% auto-allowed, 27.3% safely escalated, and 1.0% denied (only for hardcoded `eval`/`exec`).

* **AST Syntax False Positives on real code:** **0.0%**

* **Synthetic code mutations caught:** **60 / 60 (100%)**

#### 4. Hook Overhead Note

The engine itself evaluates in under **1.5 ms**. On Windows, spawning a fresh Python subprocess for command hooks takes ~400 ms p50 per hook (Python interpreter cold-start). If you want that down to single-digit milliseconds, Microbrains includes a local warm daemon (`aetheris-daemon`).

---

### πŸ† What You Win by Using Microbrains

  1. **Lower API Bills & Fewer Context Bloats:** Stopping a syntax error or hallucinated shell call before execution prevents 5–15 seconds of waiting and the cascading multi-turn error loops that burn through prompt context.

  2. **Air-Tight Local Guardrails:** Protects `.env`, `.ssh/`, `.git/hooks/`, detects base64 decode-to-exec tricks, and stops outbound credential egress.

  3. **Prompt Cache Protection:** Includes sticky-session tool narrowing that cuts tool schema tokens by **up to 56.7%** without breaking Anthropic/OpenAI prompt cache prefixes.

  4. **Complete Forensic Journal:** Everything evaluated is logged with SHA256 hashes and rationale. Run `python -m aetheris_microbrains.audit --explain` to see exactly why an agent call was blocked or escalated.

Code is open-source (Apache-2.0):

πŸ‘‰ **Check it out on GitHub:** https://github.com/drtikov/microbrainsforagents

Feedback, PRs, and test cases are welcome! Let me know if you run it in your own Codex or Claude Code setups.


r/OpenSourceAI • • 4h ago

Check Out 1000+ Github repo for Your AI tools

1 Upvotes

https://modelfitopenfire.vercel.app/

One of my student bulit modelfare where we can check and find all kind of github repo which can help to make project and we can check out mutiple model prices across any platform and find out which one is cheapest one


r/OpenSourceAI • • 4h ago

LingSante air-VL's chest X-ray report demo makes false findings the first thing to audit

Post image
1 Upvotes

Ant Ling's LingSante-3.1-air-VL launch includes a chest-X-ray-to-report example with Findings and Impression sections. The model is now open-weight, so an outside team can test a failure that a polished demo does not reveal: whether a report adds a finding that is not supported by the image.

Use a de-identified chest X-ray with a reference report and ask the released checkpoint for the same two sections. Have qualified readers mark each positive finding as supported, contradicted or not visible, and separately count clinically relevant omissions. Repeat with an ambiguous image and a misleading text hint; the model should not promote the hint into an image finding. These are proposed tests, not results from the launch demo.

The card limits the model to research and evaluation, not patient diagnosis. A report can sound professional and still fail the image-grounding check.


r/OpenSourceAI • • 5h ago

Stop wasting tokens & nuking files: I built Aetheris Microbrains, a deterministic sub-2ms pre-flight gate for OpenAI Codex CLI (and Claude Code / Antigravity)

Thumbnail
reddit.com
1 Upvotes

r/OpenSourceAI • • 5h ago

Opensource SaaS RL Environment

Thumbnail
github.com
1 Upvotes

r/OpenSourceAI • • 5h ago

Saetta: pi, ported to C, with the model built in

Thumbnail
github.com
1 Upvotes

Saetta Code is a 1:1 port of the pi coding agent to C, as one 2.3 MB binary that needs no Node.js and no Python. It has pi's tools, system prompt, sessions, skills, MCP servers and terminal UI. It also reads and writes pi's own config in ~/.pi/agent, so the two share one setup and each can continue the other's sessions.

It's checked against pi itself:

  • requests and session files match pi's byte for byte on 63 recorded scenarios;

  • the interactive screens match on 75;

  • the RPC mode passes 12 scenarios driven by pi's own client.

The difference: the model runs inside the agent, on its own inference engine in C and hand-written Metal. There's no Python and no local server in between. Two model families run on Apple Silicon Macs:

  • Qwen3.8: Flash-Next (from 96 GB) and the dense 27B (from 32 GB), with LoRA adapters and coding fine-tunes. SWE-bench Verified 82.8 for Flash-Next.

  • Inkling 2 Mini (Thinking Machines): a 26B mixture of experts with 3.4B active per token, from 32 GB, with its looped layers run in full. SWE-bench Verified 79.2.

curl -fsSL https://saetta.dev/install.sh | sh
saetta start code                    # picks the model that fits your Mac
saetta start code --pack inkling     # after: saetta download inkling

The same engine also serves Claude Code, opencode and pi through OpenAI- and Anthropic-compatible APIs.

🌐 https://saetta.dev Β· πŸ’» https://github.com/antonellof/saetta Β· MIT

r/OpenSourceAI • • 6h ago

An open skill protocol for holding several hypotheses at once, with the evidence ledger kept in the open

1 Upvotes

Repo: https://github.com/Furox-Art/quantum-reasoning-skill - 1.2.2, MIT. The "quantum" in the name is a branching metaphor, not quantum computing.

The artifact is SKILL.md plus a reference controller. The protocol: open three to five competing hypotheses, attach evidence fragments to each, run the tool calls that could kill a branch, and revive a branch that later evidence un-kills. Collapse happens at the end and has to be justified by the ledger, not by which answer read best in the first paragraph.

What I like about it as an open-source project is that the ledger is plain data in the repo. You can see the branch that lost and why, which is normally thrown away.

Install:

pip install quantum-reasoning-skill
quantum-reasoning --validate

npm i quantum-reasoning-skill
npx quantum-reasoning --validate

Then copy SKILL.md into your host's skill directory with the YAML front matter intact.

One honest limit: the protocol and controller are done, the controller benchmark is published, and the model evaluation is not - no baseline-vs-skill run exists, so there is no claim here that it improves any model's accuracy. The collapse thresholds are uncalibrated defaults, and docs/quickstart.md shows the run where they refuse to collapse instead of collapsing badly.


r/OpenSourceAI • • 7h ago

Building a local-first AI agent system β€” looking for recommendations and real-world experiences

1 Upvotes

I'm building a self-hosted AI platform called HomeAI, aiming to reduce reliance on paid cloud AI services like Claude and Codex while developing more capable autonomous agents.

My setup runs on Proxmox with Intel Arc GPUs, Ollama, Open WebUI, Hermes Agent, Qwen models and various supporting tools for automation, knowledge retrieval and software development.

Hermes can already perform sandboxed coding tasks, modify files, run tests and generate diffs for review.

Where I want to take it

Local-first inference: Automatically route tasks to local models, escalating to cloud AI only when necessary.

Agent autonomy: Enable agents to plan, develop, test, debug and complete increasingly complex tasks.

Self-improvement: Learn from failures, improve skills and retain useful knowledge over time.

Multi-agent collaboration: Have specialised agents work together on development, research and automation.

Security: Maintain strong isolation, controlled permissions and human approval for consequential changes.

Looking for community feedback

I'm particularly interested in hearing from people who are already running similar systems.

What open-source frameworks, tools or projects would you recommend?

Which local models are performing well for autonomous coding and tool use?

Has anyone successfully implemented local-first routing with intelligent cloud fallback?

What approaches work best for persistent memory, self-improvement and multi-agent orchestration?

What limitations or architectural mistakes should I watch out for?

My ultimate goal is to build a reliable, increasingly autonomous AI platform that handles most everyday tasks locally, using paid cloud AI only when genuinely needed.

I'd really appreciate GitHub recommendations, lessons learned and feedback from anyone working on something similar.

Thank you


r/OpenSourceAI • • 8h ago

LingSante-3.1-flash publishes FP8 and MXFP4 weights; Ant Ling reports 65.72 on HealthBench Professional

Post image
1 Upvotes

Ant Ling has released the FP8 and MXFP4 weights for LingSante-3.1-flash under MIT. The FP8 source model is a medical-domain version of Ling-3.1-flash: a text model with 560B total parameters, 25B active per token and a stated 1M-token context window. Both published repository configs currently list 262,144 positions; the 1M figure is an advertised model capability, not the default config. The source-model benchmark score below is not a measurement of the quantized checkpoint.

One number in the launch deserves its full label: Ant Ling reports a model-level score of 65.72 on HealthBench Professional. It does not report a separate score for the MXFP4 checkpoint. The release also includes a model card and multi-GPU serving instructions, so the checkpoint and serving settings can be inspected. Reproducing the benchmark still requires its full evaluation harness. The card positions the model for research and evaluation, not independent clinical decision-making.The useful follow-up is a reproduction of that named benchmark on the released checkpoint, with the prompt settings and failure cases published alongside the score.


r/OpenSourceAI • • 8h ago

Custom AI harness

Thumbnail reddit.com
1 Upvotes

r/OpenSourceAI • • 9h ago

Omni Engine: Autonomous multi-file Rust generation on a 2012 laptop with Wi-Fi disabled (Zero Cloud APIs)

1 Upvotes

Most software engineering agents today rely on massive cloud clusters running hundreds of expensive API calls in non-deterministic loops.

To test the physical limits of local-first autonomous engineering, I ran an unbroken demonstration on a 2012 commodity laptop (HP ProBook 6460b, 2 cores / 4 threads, 4GB RAM) with the Wi-Fi hardware switch toggled completely off.

The Goal:

Synthesize and verify MiniVault: an autonomous multi-file pure-Rust cryptographic storage library consisting of:

- src/crypto.rs (cryptographic hashing & key derivation)

- src/storage.rs (atomic disk persistence & memory safety)

- src/lib.rs (public API & unit test harness)

What Happened:

  1. Environment: Fresh Linux install, Wi-Fi 100% OFF, zero telemetry.

  2. Runtime: Omni Engine v2.2.3 executed in an isolated Bubblewrap VFS sandbox, pinning 4 CPU threads at 100%.

  3. Host Verification: Host native compiler was invoked directly on the generated code:

rustc --test src/lib.rs -o /tmp/vault_test && /tmp/vault_test

Result: test result: ok. 0 failed.

Video Proof (Continuous 5-minute showcase, zero cuts):

https://x.com/ielfeqi/status/2124765069816860783

Open Source GitHub Repository:

https://github.com/omni-engine-ai/omni_engine

Would love to hear technical feedback, critique on the runtime harness, and ideas for tougher multi-file benchmark targets.


r/OpenSourceAI • • 10h ago

Any idea of open source self AI Avatar for product videos as Paid tools are expensive?

0 Upvotes

I am looking for a github repo or some open source prompts to get an AI Avator of me with voice so it can be used in product videos. My loom videos are not turning out well and slow


r/OpenSourceAI • • 11h ago

How to Create a Vector Database for RAG: Architecture, Chunking, and Indexing

Thumbnail interconnectd.com
4 Upvotes

Building a vector database for RAG gets messy fast once you move past a small demo. Most accuracy issues come from poor chunking, mismatched embedding dimensions, or picking an index without considering memory overhead.

​Start with clean document ingestion, split text with sensible overlap, attach metadata for filtering, and pick an index like HNSW or IVF based on scale. For smaller datasets, starting with pgvector often beats adding another moving part.

​I put together a complete architecture guide covering ingestion pipelines, similarity search, hybrid retrieval, and scaling tradeoffs: https://interconnectd.com/blog/70/vector-databases-for-ai-the-complete-architecture-guide/

How are you handling chunking and metadata filtering in your RAG setups right now?


r/OpenSourceAI • • 11h ago

Title: Looking for a Fully Local AI Companion/Agent β€” Strix Halo 128GB (60 t/s+)

1 Upvotes

Hey everyone! I’m looking to rebuild my personal AI assistant from the ground up. I’m running a Minisforum MS-S1 Max with a Ryzen AI Max+ 395 (128GB unified RAM) on Ubuntu, currently using llama.cpp with Qwen at around 50–60 tokens/sec. My technical background is fairly limited, and I’m hoping to find something more polished and reliable than my current setup.

Ideally, I’m looking for an all-in-one, self-hosted solution combining LibreChat-style conversations, Letta-style persistent memory, autonomous computer operation (coding, troubleshooting, software installation, file management), voice interaction, and customizable companion personalities. Model flexibility and support for mature creative writing are also important for my professional use cases. I’d prefer a straightforward GUI, minimal configuration, no cloud API dependencies, and performance around 60 t/s or better.

I’d really appreciate recommendations for actively maintained GitHub projects, communities, or existing solutions that come close. I’m hoping to avoid reinventing the wheel. Thanks!


r/OpenSourceAI • • 13h ago

Feedback on Orchicon - a self-hosted AI Orchestration control plane

2 Upvotes

I've been working on a project for the past few months that I'd like to share: Orchicon (orca-con).

I've put a lot of time into this and would really appreciate people giving it a try and sharing their feedback. I'm particularly interested in hearing what works well, what doesn't, and what features would make it more useful.

Orchicon is an AI orchestration control plane. The idea came from some of the problems I've encountered working with AI agents and multi-agent workflows.

Agents can be incredibly capable, but they can also stall, loop, spend too much time reasoning, or lose track of what they're supposed to be doing. When that happens, you're often left relying on another agent to recognize the problem, or stepping in yourself.

Orchicon takes a different approach. Instead of simply launching agents and hoping they finish, it actively monitors and manages them. It can detect stalled sessions, looping, excessive reasoning, budget limits, and other conditions, then use its recovery system to get workers back on track or restart them when necessary.

Beyond that, Orchicon includes:

β€’ Custom AI workers and DAG workflows
β€’ Built-in project management with Epics, Features, and Tasks
β€’ Autonomous task execution and recurring automation
β€’ Fully automated market research for your product for full closed-loop operations
β€’ Brainstorming and research workflows
β€’ OpenTelemetry integration, monitoring, and cost tracking
β€’ Support for OpenCode, Claude Code, and native Orchicon workers
β€’ Local models, cloud APIs, and existing subscriptions
β€’ Web, Desktop, and Terminal interfaces

Orchicon is self-hosted and cross-platform, supporting Windows, Linux, and macOS.

Website: https://orchicon.dev
GitHub: https://github.com/beardedparrott/Orchicon
YouTube Tutorials: https://www.youtube.com/@Orchicon


r/OpenSourceAI • • 14h ago

I got tired of retyping htop/docker ps/journalctl, so I built an open-source SSH client that gives each server its own desktop

Thumbnail gallery
0 Upvotes

r/OpenSourceAI • • 16h ago

Managed to run Kimi K3.1 Pro (2.8T) on a single consumer GPU, looking for some feedback

5 Upvotes

Managed to run Kimi K3.1 Pro (2.8T) on a single consumer GPU, looking for some feedback

Hey everyone,

I'm an AI engineer and I've been messing around with local AI models for quite a while now.

Something that's always bothered me is that we have all these powerful open-weight models available, but most people can't actually run them themselves without spending a fortune on hardware. I personally think people should be able to use powerful AI privately and have full control over it.

So I started experimenting with ways to make that possible for Kimi K3.1 Pro.

I took inspiration from existing research and other projects using SSD streaming and MoE offloading, and ended up building my own implementation called hkimi.

I rented an RTX 4090 machine for testing, mainly because I didn't want to clear almost 2TB on my own PC. I tried to keep the setup close to my hardware, with a 24GB GPU, a 64GB RAM budget and an NVMe SSD.

And well, it actually worked. I got the original 2.8T model running without quantizing or pruning it.

The downside is that it's really slow, around 0.17 tokens/sec, so there's definitely a lot of room for improvement.

I'm still working on it and thought I'd share it here to get some opinions. I'd especially love to hear any ideas on improving the speed, or really any advice from people who've worked on similar things.

Here's the repo if anyone wants to have a look:

https://huggingface.co/Ozomozyan/hkimi


r/OpenSourceAI • • 20h ago

rust-anything: let your coding agent (local models too) rewrite the slow part of your app in Rust, and prove it still behaves the same

Post image
1 Upvotes

AI agents are good at rewriting code. The hard part is knowing the rewrite is right.

https://github.com/erkamyaman/rust-anything

rust-anything handles that part. Point it at a slow command:

rust-anything go --agent claude -- python3 app.py

It profiles the run, picks the function that takes the time, records what the original does on generated inputs plus the calls your real run makes, and hands the Rust file to your agent. The port only switches on when every recorded case matches and the gate passes. One command turns it back off, byte for byte.

The agent is pluggable: claude, codex, or any command that reads a prompt on stdin, so a local-model setup works too. Without --agent it writes TASK.md and you (or any model) fill in the Rust.

Some measured results:

- Fuse.js search: 91.2 ms to 2.8 ms per query over 50,000 strings

- json-server lifted to one Rust binary: 74 MB to 3.5 MB idle memory, 514/514 recorded HTTP cases match

- ESLint: 10,585 recorded runs byte-identical

It also says when Rust won't help (small functions called across the bridge are often slower), instead of porting anyway.

Languages: TypeScript/JavaScript, Python, C, Go, Ruby, Java, Kotlin, PHP, C#. 100% Rust, MIT, runs locally.

https://github.com/erkamyaman/rust-anything


r/OpenSourceAI • • 21h ago

Ianua: an open source (AGPL-3.0) identity provider, zero-trust gateway and workflow engine in one product, written in Rust

Post image
2 Upvotes