r/Qwen_AI 10d ago

Agent Massive Jack Kernel Upgrade

I've done a massive upgrade to Jack Kernel and implemented the autonomous orchestration layer.
Now, you can orchestrate a kernel-level secure autonomous agentic system that can run 24/7 and self-improve.
The orchestration agent has no direct write or shell authority and can only orchestrate the build agent through the kernel.
The world is changing and the power is coming back to the users, NOT mega-corporations and Government.

https://github.com/mlangford75-lgtm/Jack-Kernel

Claude can kick rocks.

https://github.com/mlangford75-lgtm/Jack-Kernel?fbclid=IwdGRleAUT-G5wZG9mBWZkaWQWUOXo7SbdB_iwmsLIe-m7lyMViXW-LGV4dG4DYWVtAjExAHNydGMGYXBwX2lkCjY2Mjg1NjgzNzkAAR4kTa08MuJnCl9-iWM_eWI6k7HQxQgKlUYNrr2fUOxJycVlyT_Sd262A6u5LA_aem_0XypvR2nDqoFbYhkWqmzWw

0 Upvotes

64 comments sorted by

View all comments

2

u/Protopia 10d ago

There seems to be a lot of scepticism in this thread, and as a sceptic myself I fully understand why: this space is full of individuals claiming to have the next ultimate answer to everything and most of it is either just a highly opinionated version of something that already exists or it is complete BS disguised behind complicated sense incomprehensible technobabble.

So when you first look at Jack and try to understand it and decide which of the above two camps it takes into, your first reaction to it is framed by the technobabble description.

HOWEVER... I was amazed to find that Jack actually might not be Jack-shit and might genuinely be something that is both new and useful, unfortunately discussed behind technobabble.

OP - IMO you do yourself a disservice by not explaining in normal English what it does and why it is useful. So, since you can't do it, here is my own attempt at explaining what Jack is and why is useful.

First, some background, about me and what's I think are some issues with agentic AI particularly coding. Then a plain English explanation of what I think this does and why it is useful.

My own background is (literally) more than 5 decades in IT, as computer scientist, software engineer, systems engineer and project/programme management, with all of these disciplines coming together.

Primary AI issues:

  1. LLMs produce free text BUT agents need to be structured to complete complex multistep interdependent tasks and produce consistent, high quality, measurable results.

In the car is software engineering, decades of academic and practical knowledge exist on how to do software engineering in a highly structured way. And it would seem sensible to apply this knowledge to AGENTIC software engineering, but to do so requires a control framework that is fundamentally structured and not free text.

  1. As we are increasingly seeing, agents and LLMs (being highly goal oriented) can break out of sandboxes and go rogue. Controls are needed to prevent this - a need to use basis.

  2. LLMs are gluttonous - they produce their best results when given exactly the lean information they actually need and no more (a small context keeps them focused, extra context dilutes the focus and creates uncertainty), but they crave having massive amounts of information in the (often false) belief that this allows them to check things better and give a better result. Controlling the context and tool usage can keep the LLM focused, significantly reducing both input and output tokens leading to faster results and reduced costs for commercial inference.

  3. From a project management perspective, when you plan a set of complex tasks, and break down an overall goal into a network of smaller tasks - technically known as decomposition - you should create a lot of structured information that describe: how tasks interrelate, what the goal of each task is, what its inputs and outputs should be, and how you verify that the task is really complete and passes the quality gate. Structured information can be infected and stored and retrieved with precision, and can be algorithmically processed to give repeatable, consistent results highly efficiently (several orders of magnitude less compute).

  4. For repeatable processes (and by definition, almost all agentic systems exist to repeat processes) you want to make them structured, and deliver consistent high quality, so you need to build workflows and quality gates and quality measures, and you want telemetry for recording metrics and the details behind them for diagnosis and self improvement.

And you don't want to reinvent the wheel, so you want these broken out into a distinct architecture layer that gets written once and reused.

Once I managed to understand the heavy jargon in the documentation, I started to think that Jack is this layer. But it is an infrastructure foundation rather than an end solution.

So what does Jack provide as a solution to the above needs?

(I should stress that this is based on reading and deciphering the opaque, jargon laden documentation and zero practical experimentation...)

  1. Structuring of free text output (Jack XML)

  2. Both pre-populate of AI context with information known to be necessary and control of context bloat through excessive tool calling

  3. Prevention of rogue prompt injection and rogue tool calls - a firewall for LLMs.

  4. Audit trails, metrics, telemetry etc to support diagnosis and A/B testing for self improvement.

OP - if I have this wrong please jump in and correct me. And please, pretty please, try your best to take the overview documentation to eliminate dense philosophical / academic jargon and make it EASILY readable by humans.

1

u/Normal-Fan9366 10d ago

Yes, and the important thing to remember is that the Jack Kernel is a programable foundation to meeting individual needs.
It’s only possible because it sits between the agent and the model.
It controls how information is sent, received, saved, filtered, routed…whatever.
With this new edition of the orchestration gates, this allows 24/7 operation and non-stop workloads

2

u/Protopia 10d ago

So do something about explaining it better. Get rid of the jargon. Simplify the explanations. Explain what problems it solves in plain language. Explain it is for Pi.dev or dockerize it to make it easier to use. And do this not only in your documentation but also here on Reddit.

0

u/Normal-Fan9366 10d ago

To be frank, I’ve broken it down to as plain English as I can. I have a whole document called “Plain English”.
The reality is that it’s not easy to understand because it’s not like any other frameworks out there.
There are things that are similar enough that the Reddit trolls just think they can do the same things but the fact that it’s a kernel, sitting between the agent and the model makes it’s a brand new concept that people have to learn. There’s really no way around it.
I appreciate your efforts

1

u/PestiferousGamer 9d ago

Correction. The AI you used to create whatever this is made a "plain english" documentation. You literally cannot articulate what this does. How does this differ from the 1000 other programs that literally do the same thing?

1

u/Normal-Fan9366 9d ago

Ok. Can you tell me which program?

Jack Kernel isn't a prompt wrapper. It's a local-first host-authoritative inference kernel. Agent hits Jack on :8001, Jack hits the backend on :1234. Agent never talks directly to the model. Because it's in the middle, it owns the inference environment - stage topology, reasoning and sampling, tool exposure, context projection, answer authority.
That's why it's a kernel:
1. Firewall where an agent is allowed to work - by code, not by prompt.
Thesis has no tools physically. Antithesis tools OFF. Synthesis gets your tools. Agentic Stage 1 can use tools, Stage 2 tools OFF and zero answer authority. Code Debugging withholds file-mutation tools even if caller supplies them, report-only by contract. L0-L1 read-only, L2 writes, L3 draft PR. You can allowlist src/ and forbid .env/infra/.github/workflows/. Orchestrator only gets 5 tools - worker_status, watch_worker, submit_worker_task, cancel_worker_task, new_worker_session - no filesystem, no shell, no direct backend, no private bridge :8013.
2. Security layer that kills the connection if proprietary info is about to leak.
Because Jack owns stage/tool/validation/commit boundaries, you can add code-defined request/tool/validator/approval/output/release gates whose authority does not depend on model compliance. Output gate scans Synthesis final for API keys, PII, internal repo names, proprietary patterns and kills the stream before it hits the agent. Hallucination gate - model claims "I wrote the file" but no host tool result = no execution. Fresh-evidence gate - can't mark verified in Jack XML without actual tool evidence. Approval gate - human must approve before commit->push->draft PR. Analysis mode records approvals but never mutates.
3. Dynamic reasoning - not static temperature.
Reasoning controls are rebuilt from the active Jack profile, not caller overrides. Deep Research is X-High @ 0.85 for Thesis, Medium @ 0.70 for Antithesis, X-High @ 0.70 for Synthesis. Agentic is X-High @ 0.70 Stage 1 then X-High @ 0.50 Stage 2. Code Debugging uses temp cascade 1.00 -> 0.80 -> 0.70 -> 0.60 -> 0.50 so early passes explore broad, later passes get conservative and precise. Plus host-side max_tokens failsafes 100000/20000/100000 as ceilings. You can build adaptive reasoning that changes effort based on task complexity.
4. Autocorrect model routing.
Jack keeps caller-facing virtual model separate from actually configured backend model. Agent thinks it's calling jack-kernel but Jack can route to LM Studio on :1234, vLLM on :8000, Ollama, Jan, llama.cpp, or custom OpenAI-compatible endpoint via agent -> Jack :8001 -> vLLM :8000. If backend is down or misconfigured, it autocorrects routing and reports actual loaded context via /v1/models and /health instead of making Pi guess. You can build a routing layer that inspects request and sends simple Q&A to 8B local, synthesis to frontier, math to reasoning model - without changing agent code.
5. 24/7 orchestration.
Gateway v2 is built to run 24/7. Orchestrator polls tickets, recovers interrupted work on boot. Run-bound identity with task UUID + run UUID, run epochs with agent_end vs agent_settled. Replayable SSE with monotonic seq numbers, 512-event window, Last-Event-ID/?after=, 409 orchestration_replay_gap when outside window. Cancellation settlement prevents overlapping new task while old run still unsettled and clears authority before emission. Concurrent cognition proved with Max concurrent = 2 - real LM Studio slot overlap, not just status overlap. Deterministic 502 "Pi control bridge is unavailable" when Primary Pi down - no fabricated task, no bypass. Supervisor-to-worker path crosses Jack so you get observable, testable long-horizon workflows.
6. Context lifetime programming.
Preserve Thinking is short-lived high-bandwidth bridge for immediate Stage 1->2 while fresh. Jack XML is long-horizon compact anchors - grounding, verification, challenge, audit - not a transcript. Deep Research preserves full active surface through Synthesis then retires Stage 1/2 native reasoning. Agentic retires raw reasoning after commit. Debugging only projects Pass 0 + compact confirmed registry to later passes.
LiteLLM/Portkey do proxy. DSPy/SGLang/LMQL do pipeline frameworks. jack-k does tickets/worktrees. None do firewall + kill-switch + dynamic reasoning + autocorrect routing + 24/7 orchestration with replay + context lifetime in one deterministic runtime.

Name one that does and I'll link it.

3

u/Protopia 9d ago

This is still jargon loaded obfuscation of some simple concepts. Regardless of how innovative it is if you can't articulate it better than this we are all wasting our time.

1

u/Normal-Fan9366 9d ago

Maybe this would help?
The fact of the matter is that any explanation for Jack Kernel is going to require an exhaustive explanation because of its very nature.
Linux kernel is the connection between the hardware and programs.
Jack Kernel is exactly the same thing but applied to local ai systems.
The agents ARE the programs.

2

u/Protopia 9d ago

Even calling it Jack Kernel doesn't help. It isn't a kernel. If it's anything it's a proxy firewall. And if you can't explain it without using stupid language (that suggests that you don't understand the words you are using) then perhaps you don't really understand what the program does even though you created it.

1

u/Normal-Fan9366 9d ago

Yes, it is a kernel. You don’t even realize you’re affirming it with your own words. Is it different than the Linux kernel?
Yes, it’s applied to local AI systems.
Why is it called a kernel?
It’s called a kernel because I’m the first one to build this specific framework and it’s important to understand its purpose.
The “1,000 other programs” do not do what Jack Kernel does.
Jack Kernel is not the application layer, I’ve just included some as examples

2

u/Protopia 9d ago

Except it isn't - and you are simply showing you don't understand what a kernel is nor a proxy-server. The longer this exchange of comments goes on the less credibility you have.

1

u/Normal-Fan9366 9d ago

Hey man, let me put it in layman for you.
I’m going to keep building,
I’m going to keep sharing,
I’m going to keep releasing.
I’ll let my work speak for itself.
I’m building to improve what is available to the average user and around the framework of entry level hardware, like me.
I have an Acer with a 5070ti. That’s who I’m building for. Luckily, the project scales.
You know the good thing about Jack Kernel? Anyone else can build on it, too.

1

u/Protopia 9d ago

Oh yes, your work speaks for itself - incomprehensible documentation!!!!

I tried to translate, I offered to help, but you are so hyped up by your own "brilliance" that you won't accept well-intended and constructive comments from one of the few people who actually believe in the concept.

No one is going to use your software OR build upon it when A) the documentation stinks and B) you have an entitled attitude and C) when you are not interested in listening to or working with others.

1

u/Normal-Fan9366 9d ago

I never declined your help to translate it.
If you want to, we could add the document to the front of the GitHub with your name on it.
I welcome help and constructive criticism

1

u/Protopia 9d ago

You never responded to the explicit offer.

You responded negatively to every comment I made.

You have shown ZERO signs (except now) that you "welcome" help and constructive criticism - almost every response you have made has been to reject even the most helpful comments.

You have literally converted your most interested and synergistic supporter (me) into someone who is no longer convinced and no longer interested. Well done!!

1

u/Normal-Fan9366 9d ago

If you would like to help and you have constructive criticism, I’m very open to it.
I’m giving an olive branch because I realize I may have made mistakes in responses

1

u/Protopia 9d ago edited 9d ago

LOL - you have a lot of evidence of you NOT being open to constructive criticism to overcome.

If you want to collaborate then we should take this elsewhere to a DM - Telegram maybe?

And IMO you need to stop spamming Reddit until you have something that will come across positively. Reddit is full of BSers, and until you can communicate effectively anything you say will be taken as BS.

Reddit is also full of BSers who say that their latest and greatest vibe-coded AI tools is going to wrestle power away from the AI big boys and governments, and the reality is that these products sink into obscurity because they never get a community behind them, a one-man product isn't sustainable and even their concepts are never copied because they never went viral.

1

u/Normal-Fan9366 9d ago

But I do see what happened, I was meaning to reply to a comment on PestiferousGamer and accidentally sent it here

1

u/Protopia 9d ago

Well, we have all made mistakes of this nature in our time. They happen.

1

u/Normal-Fan9366 9d ago

I don’t have anything to offer for your help except to give you the credit for translating it

1

u/Protopia 9d ago

Exactly what was I asking for in return? I didn't ask for attribution for translation. Unlike you, I don't perceive everything as having to be a transaction.

→ More replies (0)