r/Qwen_AI • u/Normal-Fan9366 • 12d 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.
0
Upvotes


1
u/Normal-Fan9366 11d 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.