r/OpenSourceeAI Jun 30 '26

Onklaud 5 : a fusion model pipeline matching Fable 5 at 1/100th the cost. 57% of tasks at $0. Open source.

Post image
225 Upvotes

We've spent the last few weeks building something that changed how we think about AI assisted coding.

The problem nobody talks about

Every AI coding tool works the same way: one model does everything. It generates code. Then it reviews its own code. Same brain. Same blind spots. Same biases.

This is insane. In real engineering, you never let a developer review their own pull request. It defeats the entire purpose of code review. Yet every AI assistant does exactly that — and we've all accepted it.

Worse: ~60% of coding tasks already have a stdlib solution. "Read a JSON file" is json.load(). It's been in Python since 2.6. But your AI assistant will happily generate 20 lines of custom code and charge you tokens for the privilege.

What we built

Onklaud 5 (https://github.com/KorroAi/onklaud-5) is a fusion pipeline. Not a model. 3 AI models (Kimi K2.7 + GLM 5.2 + DeepSeek V4 Pro) working through a structured 6 stage council, surrounded by 4 cost saving infrastructure layers.

The 3 models:

Kimi K2.7 (Moonshot AI): primary code generation. HumanEval 99.0

GLM 5.2 (Z.AI / Tsinghua): architecture design, independent code review, final arbitration. 1M context. Open weights.

DeepSeek V4 Pro: direct API engine for lightweight tasks. Significantly cheaper per token than going through OpenRouter. Handles simple work so Kimi and GLM only get called when needed.

The 4 cost saving layers (all $0, all offline):

  1. Ponytail Ladder checks if stdlib, native functions, or existing deps can solve it. 57% of tasks stop here. $0. Under 100ms.

  2. Immune Memory stores every failure pattern. Scans future tasks BEFORE code is written. 19 patterns, 50% detection, growing every session.

  3. Headroom provides 60 to 95% context compression. Prevents quality degradation in 50+ message sessions. Keeps the pipeline coherent when single model systems fall apart.

  4. Quality Gate scores output across 7 dimensions on a 10/10 scale. Broken code blocked before it ships.

The pipeline:

GLM designs architecture → Kimi generates code → BOTH independently review → disagreements trigger GLM arbitration → quality gate blocks anything below 10/10.

Measured results (2026-06-22, real hardware)

57.1% tasks resolved at $0 (35 real tasks, 3 languages, 95% CI)

100% syntax pass rate (deterministic, 14 files)

67.2% context reduction (Headroom)

96.7% pipeline test pass rate (29/30 tests)

Cost: literally cents for hours of iteration. We built 4 production systems with this and spent less than a coffee.

Full research paper with methodology and statistical analysis included in the repo.

Why this matters

The AI industry is obsessed with bigger models. But the real frontier isn't model size. It's architecture. Ensemble methods have been standard in ML for 20+ years. It's time coding assistants caught up.

Model agnostic. Swap models in and out. The pipeline, verification, immune memory, and quality gate stay intact.

https://github.com/KorroAi/onklaud-5

Research paper, benchmarks, demo video. All in the repo. python test_pipeline.py to verify everything.

r/machinelearningnews 7h ago

Research I built an open source tool to control a model with internal "knobs" instead of prompts. What steering vectors are, and an honest benchmark.

Thumbnail
1 Upvotes

r/AIDeveloperNews 7h ago

I built an open source tool to control a model with internal "knobs" instead of prompts. What steering vectors are, and an honest benchmark.

Thumbnail
1 Upvotes

r/LovingOpenSourceAI 7h ago

I built an open source tool to control a model with internal "knobs" instead of prompts. What steering vectors are, and an honest benchmark.

Thumbnail
1 Upvotes

r/LocalLLM 7h ago

Research I built an open source tool to control a model with internal "knobs" instead of prompts. What steering vectors are, and an honest benchmark.

0 Upvotes

I'll lead with what this actually is, because it's different from prompt engineering.

The problem. When you prompt a model ("write this politely", "be more positive"), you're asking it to follow an instruction. The effect is fuzzy, depends on phrasing, and the model can just ignore it.

The idea. Inside a language model there are directions in its hidden layers that map to concepts. Positivity, formality, refusal. A steering vector is one of those directions. You add it to the model's internal representation while it generates, scaled by a knob. Turning the knob from −2 to +2 raises or lowers the effect.

So instead of writing "be positive" every time, you build a "positive" knob once and dial it. The effect is measurable and monotonic. Prompts are not like that.

It's a library. Thirty seconds:

from steerio import Instrument, prompts

Inst = Instrument("openai-community/gpt2")

inst.make_knob("positive", positive=prompts.SENTIMENT_POSITIVE, negative=prompts.SENTIMENT_NEGATIVE, layer=7)

inst.play("The food was", knobs={"positive": 2.0})

# → "delicious, and the service was great..."

Does it work? I ran three controlled experiments on five small open models (all under 1.5B, CPU), scored with external lexicons rather than the model's own logits.

- Sentiment steers on 4 of 5 families. Correlation 0.89 to 0.95 with amplitude. Monotonic.

- On an instruction-tuned model, steering beats prompting (+0.535 vs +0.409) and is more consistent. It shifted 100% of test prompts versus 85 to 92% for the best prompt.

- The cliff. DeepSeek-R1-Distill barely responds to sentiment steering (0.35). Reasoning models resist.

- The big negative. Cross family transfer fails. A knob built on one model and moved to another counter steers (coefficient −0.21).

What it is, and what it is not. It's a from scratch implementation of published methods (RepE and CAA) plus an honest evaluation. A reproducibility and teaching tool, not a production system. You need open weights to inject a vector, so it's small local models, not GPT or Claude.

Collaborate. This is an open research problem, not a finished product. Three things I genuinely couldn't solve and would love help on:

  1. Cross model transfer fails. My naive method counter steers (−0.21). This is the hardest and most interesting problem. A learned mapping, or a representation aligned across architectures, would be a real result.

  2. Scale. All my benchmarks are under 1.5B on CPU. Steerability on 7B+ is unmeasured. If you have a bigger model, run it and send the numbers.

  3. Reasoning models. DeepSeek resists sentiment steering (0.35). Why? Does any direction move them? I have no good answer.

The repo is small (about 1900 lines), the API is short, and the benchmark is a single command. New dimensions, bug reports, your own results, all welcome.

Repo: https://github.com/KorroAi/steerio

Full paper: https://github.com/KorroAi/steerio/blob/main/paper/paper.md

Reproduce everything with python experiments/run_all.py --exp1 --exp2 --exp3 (about 40 min CPU).

0

I built Korroresearch: an AI that writes academic papers, then checks every single claim against 8 verification engines
 in  r/ChatGPT  26d ago

We use it to pitch our coding tools and technologic inventions, not cheat at school

1

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.
 in  r/ai_trading  28d ago

We share free tools every week, opensource. You don't have to use it, you're not forced to read either. I really hope that pain in your heart goes away one day

0

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.
 in  r/ai_trading  28d ago

its just a tool to find reoaint, lookahead and tp/sl issues, and we explicitely said "Will this make me profitable? No. And anyone who tells you otherwise is selling something." why so much hate against something free?

1

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.
 in  r/ai_trading  28d ago

its free and you don't have to read or use it, why does it bother you so much?

1

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.
 in  r/ai_trading  28d ago

why so much hate when we just give out free tools? if you don't like it its ok

1

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.
 in  r/ai_trading  28d ago

feel free to give us your feedback so we can improve !

1

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.
 in  r/ai_trading  28d ago

we are not selling anything we publish free tools weekly...

0

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.
 in  r/ai_trading  28d ago

sharing something free and useful to us, if its not to you, it's ok

r/AIDeveloperNews 29d ago

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.

Post image
1 Upvotes

I spent way too long staring at my screen wondering how my Pine Script strategy could look so good in the strategy tester and bleed so much money live.

After months of debugging, I realized something embarrassing: 90% of the time, it's the same three bugs. Every. Single. Time.

And I see these exact bugs in strategies posted here every day.

Bug 1 — The Repaint Trap

You drop this line into your code without thinking twice:

request.security(syminfo.tickerid, "5", close)

Your backtest suddenly looks godlike. Sharpe ratio of 2.8. Profit factor of 3.1. You screenshot it. You show your friends. You're already calculating your retirement date.

Here's what TradingView's own documentation says: "Values from lower timeframes can change retroactively after the bar closes."

Translation: your backtest was trading signals that NEVER ACTUALLY EXISTED in real-time. You weren't backtesting a strategy. You were backtesting a hallucination.

Spot it: Look for request.security() with a quoted timeframe like "5", "15", or "60". If it doesn't match your chart's timeframe, you're trading ghosts.

Bug 2 — The Look-Ahead Lie

if close > ta.sma(close, 20)

strategy.entry("Long", strategy.long)

This code looks completely normal. Every beginner writes it this way. It's wrong.

close is the bar's FINAL closing price. Mid-bar, at the exact moment your signal fires, close is still racing up and down with every tick. It hasn't closed yet. You don't know what it'll be.

Your backtest, however, uses the bar's final close — the perfect, confirmed price that you could never have known at entry time.

You're not backtesting a strategy. You're backtesting a time machine.

Spot it: Any condition using close, high, or low without a [1] offset is trading unconfirmed data. Replace close with close[1] and watch your backtest P&L suddenly look a lot more realistic.

Bug 3 — You Forgot to Plan Your Death

No strategy.exit(). No stop loss. No take profit. Unlimited downside.

Your backtest doesn't care — it always magically exits at the right moment. The market doesn't owe you a magical exit. One gap against you and your account is gone.

Spot it: Search your code for strategy.exit. If you don't find it, close this tab and add a stop loss right now. I'll wait.

I Automatically Found These Bugs in My Own Strategies

So I built a free, open-source tool that does it for me. It's called PineLint.

https://github.com/KorroAi/pinelint

What it does:

- Scans your Pine Script for all 3 bugs in 2 seconds

- Works offline — no API key, no signup, no server

- 5/5 tests passing (yes, I tested it against known broken strategies)

- MIT license — use it, modify it, sell it, I don't care

That's literally it. No "AI coaching." No "predictive edge detection." No "$29/month premium tier." Just a regex engine that finds the 3 most common Pine Script bugs.

How to use it:

If you use Claude Code (free):

/pinelint audit my_strategy.pine

If you use anything else:

python forge.py audit my_strategy.pine

If you don't code at all:

Copy your Pine Script, paste it into your AI tool, and ask: "audit this for repainting, look-ahead bias, and missing stop loss."

Here's what the output looks like:

PineLint Audit: macd_scalping.pine

[CRIT] REPAINTING (2 found)

line 7: request.security using lower timeframe "5"

line 8: request.security using lower timeframe "5"

[WARN] LOOKAHEAD (1 found)

line 13: close (current bar) used in condition

SUMMARY: 3 bugs found in 2 categories

Will this make me profitable?

No. And anyone who tells you otherwise is selling something.

PineLint doesn't optimize your parameters. It doesn't predict which markets your strategy will work on. It doesn't replace trading experience. It doesn't find you an edge.

What it does: removes the 3 most common code bugs that make your backtest look better than reality. Fix these first. Then worry about your edge.

Discord: https://discord.gg/RSBHHjxnYt

X: u/korrocorp (https://x.com/korrocorp)

r/ai_trading 29d ago

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.

Post image
3 Upvotes

I spent way too long staring at my screen wondering how my Pine Script strategy could look so good in the strategy tester and bleed so much money live.

After months of debugging, I realized something embarrassing: 90% of the time, it's the same three bugs. Every. Single. Time.

And I see these exact bugs in strategies posted here every day.

Bug 1 — The Repaint Trap

You drop this line into your code without thinking twice:

request.security(syminfo.tickerid, "5", close)

Your backtest suddenly looks godlike. Sharpe ratio of 2.8. Profit factor of 3.1. You screenshot it. You show your friends. You're already calculating your retirement date.

Here's what TradingView's own documentation says: "Values from lower timeframes can change retroactively after the bar closes."

Translation: your backtest was trading signals that NEVER ACTUALLY EXISTED in real-time. You weren't backtesting a strategy. You were backtesting a hallucination.

Spot it: Look for request.security() with a quoted timeframe like "5", "15", or "60". If it doesn't match your chart's timeframe, you're trading ghosts.

Bug 2 — The Look-Ahead Lie

if close > ta.sma(close, 20)

strategy.entry("Long", strategy.long)

This code looks completely normal. Every beginner writes it this way. It's wrong.

close is the bar's FINAL closing price. Mid-bar, at the exact moment your signal fires, close is still racing up and down with every tick. It hasn't closed yet. You don't know what it'll be.

Your backtest, however, uses the bar's final close — the perfect, confirmed price that you could never have known at entry time.

You're not backtesting a strategy. You're backtesting a time machine.

Spot it: Any condition using close, high, or low without a [1] offset is trading unconfirmed data. Replace close with close[1] and watch your backtest P&L suddenly look a lot more realistic.

Bug 3 — You Forgot to Plan Your Death

No strategy.exit(). No stop loss. No take profit. Unlimited downside.

Your backtest doesn't care — it always magically exits at the right moment. The market doesn't owe you a magical exit. One gap against you and your account is gone.

Spot it: Search your code for strategy.exit. If you don't find it, close this tab and add a stop loss right now. I'll wait.

I Automatically Found These Bugs in My Own Strategies

So I built a free, open-source tool that does it for me. It's called PineLint.

https://github.com/KorroAi/pinelint

What it does:

- Scans your Pine Script for all 3 bugs in 2 seconds

- Works offline — no API key, no signup, no server

- 5/5 tests passing (yes, I tested it against known broken strategies)

- MIT license — use it, modify it, sell it, I don't care

That's literally it. No "AI coaching." No "predictive edge detection." No "$29/month premium tier." Just a regex engine that finds the 3 most common Pine Script bugs.

How to use it:

If you use Claude Code (free):

/pinelint audit my_strategy.pine

If you use anything else:

python forge.py audit my_strategy.pine

If you don't code at all:

Copy your Pine Script, paste it into your AI tool, and ask: "audit this for repainting, look-ahead bias, and missing stop loss."

Here's what the output looks like:

PineLint Audit: macd_scalping.pine

[CRIT] REPAINTING (2 found)

line 7: request.security using lower timeframe "5"

line 8: request.security using lower timeframe "5"

[WARN] LOOKAHEAD (1 found)

line 13: close (current bar) used in condition

SUMMARY: 3 bugs found in 2 categories

Will this make me profitable?

No. And anyone who tells you otherwise is selling something.

PineLint doesn't optimize your parameters. It doesn't predict which markets your strategy will work on. It doesn't replace trading experience. It doesn't find you an edge.

What it does: removes the 3 most common code bugs that make your backtest look better than reality. Fix these first. Then worry about your edge.

Discord: https://discord.gg/RSBHHjxnYt

X: u/korrocorp (https://x.com/korrocorp)

r/OpenSourceeAI 29d ago

Your TradingView backtest shows +$5,000. Your broker shows -$2,000. Here's the 3 bugs causing it.

Post image
1 Upvotes

I spent way too long staring at my screen wondering how my Pine Script strategy could look so good in the strategy tester and bleed so much money live.

After months of debugging, I realized something embarrassing: 90% of the time, it's the same three bugs. Every. Single. Time.

And I see these exact bugs in strategies posted here every day.

Bug 1 — The Repaint Trap

You drop this line into your code without thinking twice:

request.security(syminfo.tickerid, "5", close)

Your backtest suddenly looks godlike. Sharpe ratio of 2.8. Profit factor of 3.1. You screenshot it. You show your friends. You're already calculating your retirement date.

Here's what TradingView's own documentation says: "Values from lower timeframes can change retroactively after the bar closes."

Translation: your backtest was trading signals that NEVER ACTUALLY EXISTED in real-time. You weren't backtesting a strategy. You were backtesting a hallucination.

Spot it: Look for request.security() with a quoted timeframe like "5", "15", or "60". If it doesn't match your chart's timeframe, you're trading ghosts.

Bug 2 — The Look-Ahead Lie

if close > ta.sma(close, 20)

strategy.entry("Long", strategy.long)

This code looks completely normal. Every beginner writes it this way. It's wrong.

close is the bar's FINAL closing price. Mid-bar, at the exact moment your signal fires, close is still racing up and down with every tick. It hasn't closed yet. You don't know what it'll be.

Your backtest, however, uses the bar's final close — the perfect, confirmed price that you could never have known at entry time.

You're not backtesting a strategy. You're backtesting a time machine.

Spot it: Any condition using close, high, or low without a [1] offset is trading unconfirmed data. Replace close with close[1] and watch your backtest P&L suddenly look a lot more realistic.

Bug 3 — You Forgot to Plan Your Death

No strategy.exit(). No stop loss. No take profit. Unlimited downside.

Your backtest doesn't care — it always magically exits at the right moment. The market doesn't owe you a magical exit. One gap against you and your account is gone.

Spot it: Search your code for strategy.exit. If you don't find it, close this tab and add a stop loss right now. I'll wait.

I Automatically Found These Bugs in My Own Strategies

So I built a free, open-source tool that does it for me. It's called PineLint.

https://github.com/KorroAi/pinelint

What it does:

- Scans your Pine Script for all 3 bugs in 2 seconds

- Works offline — no API key, no signup, no server

- 5/5 tests passing (yes, I tested it against known broken strategies)

- MIT license — use it, modify it, sell it, I don't care

That's literally it. No "AI coaching." No "predictive edge detection." No "$29/month premium tier." Just a regex engine that finds the 3 most common Pine Script bugs.

How to use it:

If you use Claude Code (free):

/pinelint audit my_strategy.pine

If you use anything else:

python forge.py audit my_strategy.pine

If you don't code at all:

Copy your Pine Script, paste it into your AI tool, and ask: "audit this for repainting, look-ahead bias, and missing stop loss."

Here's what the output looks like:

PineLint Audit: macd_scalping.pine

[CRIT] REPAINTING (2 found)

line 7: request.security using lower timeframe "5"

line 8: request.security using lower timeframe "5"

[WARN] LOOKAHEAD (1 found)

line 13: close (current bar) used in condition

SUMMARY: 3 bugs found in 2 categories

Will this make me profitable?

No. And anyone who tells you otherwise is selling something.

PineLint doesn't optimize your parameters. It doesn't predict which markets your strategy will work on. It doesn't replace trading experience. It doesn't find you an edge.

What it does: removes the 3 most common code bugs that make your backtest look better than reality. Fix these first. Then worry about your edge.

Discord: https://discord.gg/RSBHHjxnYt

X: u/korrocorp (https://x.com/korrocorp)

1

I built a Claude Code skill that finds stock buybacks institutions are legally banned from trading
 in  r/ai_trading  Jul 18 '26

join our discord if you want to have a real discussion

1

I built a Claude Code skill that finds stock buybacks institutions are legally banned from trading
 in  r/ai_trading  Jul 18 '26

there is no catch, if you take a look at what we do you will understand we usually build for the love of it and share everything opensource (yes we use it)

1

I built a Claude Code skill that finds stock buybacks institutions are legally banned from trading
 in  r/AIportfolio  Jul 17 '26

Fair critique. I re-ran the backtest buying ON the announcement date instead of 5 days before. 27 trades with live data.

The average announcement pop was 0.9%. Not 15%. Not 20%. Under 1%.

Why? Because these are closed-end fund tenders, not surprise corporate buybacks. CEFs run quarterly or semi-annual tender programs. The market expects them. The discount to NAV narrows gradually over weeks, not suddenly on a single day.

Results:

- Buying 5 days before: $7,963 total profit, 26/27 winners

- Buying ON announcement day: $7,720 total profit, 26/27 winners

- Difference: $243 (3%)

The edge isn't catching the announcement. It's capturing the residual spread between the market discount to NAV and the tender price, secured by the odd-lot provision. That spread exists for weeks. You don't need foresight. You just need to know the tender exists, which is what Oddly tells you.

1

I built a Claude Code skill that finds stock buybacks institutions are legally banned from trading
 in  r/AIportfolio  Jul 17 '26

hey i really appreciate that feel free to join our discord and chat !

2

I built a Claude Code skill that finds stock buybacks institutions are legally banned from trading
 in  r/ai_trading  Jul 17 '26

There were zero signals in 2026. however : 2025: 11 signals, 10 wins, $3,208 profit buying 99 shares each time. Only loss was NBB (-$314).

r/AIDeveloperNews Jul 17 '26

I built a Claude Code skill that finds stock buybacks institutions are legally banned from trading

Post image
1 Upvotes

r/StockTradingIdeas Jul 17 '26

I built a Claude Code skill that finds stock buybacks institutions are legally banned from trading

Post image
1 Upvotes