Skip to content

About

Showcase with measured results: agentic systems, offline RAG, numerical engineering. Screenshots and runbooks, no marketing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Open Space

Maxim Kukhto · @kukhtik

Agentic systems · Offline RAG · Tool-verification loops · Numerical engineering

Screenshots from working builds; every number from a measured run. Proprietary internals (medical documentation, licensing logic, numerical routines) stay private — interfaces, architectures and metrics are documented here.

🇷🇺 Русская версия


Hybrid harness — one frozen card, three machine gates

Problem. An agent that reports “done” is not evidence: a self-check runs in the same context as the mistake, so it confirms it. And a task that carries the expected answer measures copying, not capability.

Approach. The order is frozen into a card: the task in words, the model allowed to execute it, a different model allowed to verify it, a command that recomputes the answer from the project’s own source of record, a hidden expected value, and a negative command that must fail. The executor never sees the expected value; the verifier re-derives the answer in a fresh context; the oracle has no model at all. A gate that cannot go red is not a gate — a card missing a marker, or one whose verifier is its own executor, never starts.

Hybrid harness — schematic

Mechanism How it works
Frozen card Task text only at plan time; markers are machine-read, never prose
Clean room The expected value and the negative command stay outside the executor’s context
Source of record The oracle recomputes from the repository, not from a prompt or a hard-coded number
Two hands, one verdict Executor and verifier are different models; the verifier re-derives the result itself
Fail-closed A pin outside the allowlist, a self-verifying card or a mutated oracle stops the card instead of passing it
Final gate After acceptance an independent model reviews the whole bundle; a rejection reopens the card

Topologies measured before this

The hybrid is the fifth thing tried, not the first. Each row is a real campaign, not an opinion.

Topology How it ran Measured What it settled
a1 — monolith session one session: plan → code → self-review 61 sessions · 14 808 calls · 628 h · $10.39; $0.17 and 243 calls per session no independent verdict by construction: 0 defect classes found, main exposed — kept only as a control group
a2 — serial pipeline dispatcher → one executor in an isolated worktree → independent verifier $0.043 per card (24 calls, 8.2 min); $0.087 / 23.6 min for the full two-card cycle 2 real defects in the first hour that the session had missed; main stayed clean — became the default
a3 — competition + judge N equal executors on one goal → machine judge → synthesizer open goal: 21 outputs → 13 unique (38 % duplicates), $0.063, 5.0 min, judge REJECT; same cost with disjoint subtopics: 21/21 unique, 0 duplicates, 4.8 min, ACCEPT works only when the goal splits into non-overlapping parts and the judge is a machine metric
sp / sp2 — swarm variants parallel hands on the same card on the long handoff card sp was rejected and sp2 was the only arm that accepted it; on the snapshot card both accepted a swarm variant carries long cards, not short ones; 30 cards × 5 arms ran in the campaign at $0
hybrid v1 card contract + model-free oracle + independent verifier + swarm strip for independent zones + final gate 9 accepted cards on three boards; 7/7 independent passes; 8/8 oracle matches; 8/8 negative proofs; a two-zone card ran 27.0 s + 30.3 s in parallel what this section describes

Topologies — schematic

Why the hybrid, and not any of them alone

Two carriers were run on the same cards under the same rule. The contract frame alone closed 3/3 at 263.7k tokens in 24 steps (246.6 s); the docs-tree frame with a swarm strip closed 4/4 at 278.3k in 25 steps (173.2 s — 30 % faster, slightly dearer). Both had a verifier that was a different model from the executor. Neither is complete on its own: the frame cannot split one card between hands, and the docs frame has no independent acceptance of its own — its green comes from the frame's gates.

So the hybrid is not a fourth opinion, it is the union of the two things that survived: the contract's gates (frozen card, hidden expected value, source-based oracle, negative proof, independent verifier) and the docs frame's throughput (facts in git, swarm strip for the zones a card can be cut into), closed by a final gate. Everything below is measured on that union.

Measured on three private boards: 9 cards accepted, seven of them through the full executor → oracle → verifier cycle — 7/7 independent passes, 8/8 oracle matches, 8/8 negative proofs. Median cost of one execution step: ≈67k tokens / 42 s; of the independent verification: ≈32k tokens / 47 s — both on free model tiers, so what this loop spends is wall-clock, not money.

Known limits, stated as measured: executor legs are flaky under provider load (the largest observed leg ran 373 s, a 600 s timeout aborts a leg, two runs ended without a marker), and the loop closes only as fast as its slowest hand.

Methodology layer — a bootstrap that survives compaction

The harness decides whether work is accepted; it says nothing about how the agent works before that. On top of the same contour the methodology layer is built as a plugin rather than a folder of skills: a pre_llm_call hook injects the working method and the tool map before the model’s first move, a companion plugin re-injects it after context compaction (the stock bootstrap fires only on the first turn, and the compressor stops protecting the head after the first compression), and a block in the profile’s system prompt survives any resume. Fifteen skills load on demand; one clone serves the machine instead of twelve copies.

What is worth copying is not the skills but the self-test: twelve requirements, each with a proof, negative branches included — and one of them states that an injected bootstrap never reaches the transcript, so its proof is a dump of the outgoing request, not a database search. A check that cannot go red is decoration.

Status: research branch, not merged into daily use — installer and the twelve-requirement test exist, the rollout does not. Written here as an adoption study, not as a shipped feature.

Stack: Python · single-file runner · SQLite task boards holding frozen card bodies · two free model tiers as two independent hands · a model-free oracle · git as the carrier of results. (Source is local; internals stay private.)


Knowledge carrier — where an agent keeps project facts

Problem. Should project facts live in a skill the agent loads, or in a document tree inside the repository? The usual answer is a matter of taste. It is measurable.

Approach. Same facts, two carriers (a skill and a docs tree rooted at an auto-loaded context file), same models, balanced paired runs: 64 paired cells in a harness that loads context files by itself, then a second harness that only loads skills on request.

Knowledge carrier — schematic

Harness with auto-loaded context Harness with a skill loader
Carrier that wins docs tree skill
Tokens −37 % +100 % for the same facts
Wall-clock −53 % —
Quality unchanged (p = 0.125) unchanged

The result in one line: carrier cost = rounds to discover the fact + reads to extract it. The format is secondary; the harness decides. The docs tree is cheaper where the context file arrives by itself, and it doubles the cost where the agent must first go looking — an index command narrows that gap by 28 % but does not close it.

Stack: the same runner · request-size instrumentation that attributes tokens to system prompt, tool schemas and the skill index · paired non-parametric tests on joint cells (timeouts discarded, never silently compared).


Swarm — multi-agent orchestration with machine acceptance

Problem. LLM agents report “done” when the work is not done — they fail silently, leave stubs, loop. A single agent grading itself suffers confirmation bias.

Approach. Role isolation: the planner decomposes a task into verifiable steps, the executor does the work, and a verifier opens with a fresh context to judge execution — pytest, linter, dry-run — never the agent’s word.

Swarm — architecture

Mechanism How it works
Role isolation Planner / executor / verifier — separate personas and context windows
Closed tool loop Every tool output is checked deterministically before the next step
Boundary protection scope.protected files are SHA-256 pinned; editing one auto-fails the task — both edits and deletions are caught (verified mechanically)
Budget & escalation Bounded turns and attempts; after N failures the task escalates to a stronger model or a human, per the task package

Reference run (demo-calc-bugfix): oracle python test_calc.py → ALL TESTS PASSED, 11/11 checks green, 4 turns, 21 s wall, tamper false.

This is the v1 contour (October). v2 adds a frozen card with a hidden expected value, a model-free oracle, a verifier that is a different model, and a fail-closed start — see the section above.

Swarm — live kanban board

Code: the harness core is proprietary; the architecture, the measured runbook and the campaign numbers are in this page. Public code with tests: engineer-companion.

Stack: Python · Hermes Agent (kanban dispatcher, middleware) · pytest as the oracle · SHA-256 tamper checks · JSONL trajectories.


Engineer Companion — offline RAG over medical-equipment documentation

Problem. A field engineer servicing a clinical linear accelerator (Varian TrueBeam / VitalBeam) works in an RF-shielded bunker with zero internet, and needs the exact page of a specification in seconds — out of tens of thousands of pages.

Approach. Fully local hybrid retrieval with verifiable evidence links: document, page, drawing region. Runs on CPU.

Engineer Companion — chat with evidence

Metric Value
Fact-catalog quality 96 / 100 on the 100-case grounded-qa-100-v1 benchmark
Latency p50 130 ms · p95 1 193 ms
Scale 21 214 facts over a 71 862-row vector + BM25 index
Tests 768 / 775 passing

Public code: github.com/kukhtik/engineer-companion — the indexer, the hybrid retrieval core and the test suite.

Fact cloud
Fact cloud — the Clinac catalog as a node graph
Library
Document library & index statistics

Stack: Python · LanceDB (vector) + BM25 (hybrid) · multilingual-e5-small embeddings + mmarco cross-encoder reranker · Gemma-3-4B (GGUF, llama.cpp) · PySide6 desktop shell; Android shell via Compose + ONNX Runtime Mobile.


GeoConverter — numerical geodetic calibration

Problem. Converting coordinates between legacy local coordinate systems and modern global datums (WGS-84) requires sub-millimeter precision under strong non-linear distortions. (Exact local systems and zones in use are client-confidential.)

Approach. A four-stage numerical pipeline with a round-trip check: the closed route must come back within millimetres.

GeoConverter — main window

Reference points → Helmert 3D (SVD) → Levenberg–Marquardt → Nelder–Mead (tolerance 1e-12) → round-trip error validation.

GeoConverter — generated report

Shipped as a commercial desktop product (Windows 7/10): hardware-locked activation keys with no external server, a built-in license issuer, PyQt6 UI, and automated parsing of mixed data from AutoCAD, CSV and Excel.

Stack: Python · NumPy / SciPy (least_squares, SVD) · PyQt6 · PyInstaller / Nuitka.


VETKA_DWG — survey sketches → CAD drawings

Problem. A surveyor draws a field abris (a hand sketch with numbered points) and then spends hours transferring it into CAD.

Approach. Photo of the sketch → marker and text recognition → topographic DXF/DWG. 4 hours of manual drafting → 15 minutes. Sold to surveying companies in Belarus, source is proprietary.

VETKA_DWG — block library audit

The screenshot shows the block-library audit console: 444 / 444 blocks pass all five fidelity axes against the reference template (GUGK sign library, ШАБЛОН‑2025).

Stack: Python · custom CV pipeline (marker detection, OCR) · ezdxf · 444-block GUGK sign library · PySide6 / QML · CI with quality gates.

Source is private (commercial use); architecture and audit results are documented here.


PenaPivo / BeerLog — serverless Telegram bot + Mini App

What it is. A live Telegram product: a beer-tasting journal with write-ups, statistics, shareable profile cards and ratings.

Mini App
Mini App — tasting journal (demo data)
Profile card
Profile card produced by the bot's card module (SVG; demo data)

Architecture: Cloudflare Workers (edge) · D1 (SQL) · R2 (backups) · Telegram Mini App with i18n (ru/en/be) · CI: coverage gate ≥84% branches + mutation testing (Stryker).

Live bot: @PenaPivo_bot

Stack: JavaScript (ESM) · Cloudflare Workers / D1 / R2 · Node.js · resvg (card rasterization).


VTuber Rigger — AI auto-rigging: model or screenshots → VRM 1.0

Problem. Rigging a VTuber avatar — skeleton, skin weights, expressions, spring bones — takes hours of manual work in Blender, and screenshot-based reconstruction from a flat image is harder still.

Approach. Two paths, fully local (no paid APIs): Path A — a 3D model (GLB/GLTF/VRM/OBJ) → VRM 1.0; Path B — front/side/back screenshots → VRM 1.0. K-Means + curvature body segmentation, a 53-bone VRM skeleton predictor, RBF + Laplacian skin weights, 17 expressions, springs for hair/clothing, plus headless-VRM and LPIPS/CLIP perceptual QA gates.

VTuber Rigger — pipeline run

Reference run on a test mesh: GLB → VRM, exit 0, 54 nodes, 1 mesh, extensions VRMC_vrm + VRMC_springBone.

Stack: Python · trimesh · pygltflib · numpy / scipy / scikit-learn · OpenCV · pytest (unit + integration + property + perceptual suites). Public: github.com/kukhtik/RIGGER.


Neuro Property Trade — deterministic board-game engine + custom UI

Problem. A commercial board-game title can't be safely modded for AI play (anti-tamper, delisted versions, no clean state reads). To let an AI seat play fairly, the game itself must be built so the engine — not the AI — owns the state.

Approach. A standalone Godot 4 game with a deterministic rules engine: seeded RNG flows through one class, every action goes through an append-only event log (full replay), and AI seats (Neuro / Evil Neuro / human) submit intents that the engine validates and executes — the AI can never corrupt state. Original theme, no trademarked names. The UI is parametric (no 40 hardcoded tiles): it relayouts live to the window size, RU/EN, light/dark theme, seats panel and event journal.

In-game UI
Match at the table — parametric board, dice, journal, seats
Engine tests
Headless engine run — 161 tests green, then an ASCII board snapshot

Stack: Godot 4.7 (GDScript) · headless-testable core · Neuro SDK adapter (WS action protocol, action registry, per-turn context). Public: github.com/kukhtik/neuro-property-trade.


Razgon Quiz — live quiz-show platform (hall, remote, builder)

Problem. A quiz night is a live show: a projector in the hall, a host steering from a phone, teams answering, and a scoreboard that must be right in front of a paying audience. Off-the-shelf quiz apps assume every player has a stable connection and that the host can fix the score by hand — neither survives a real venue with bad Wi-Fi.

Approach. A single server owns the state and the score. The hall screen opens by a tokenised link (a plain game URL cannot control the show), one click unlocks the browser's AudioContext, and the host pages through questions with a keypress while each question's "fuse" timer runs itself. Because the hall answers on paper and only the host types, the server never has to hold hundreds of player sockets — the venue keeps working on a poor connection. The front end is a PWA with explicit precache (386 entries); every one of the 98 mp3 cues is cached by name, because a missed track is silence without an error.

Hall question with timer and live statistics
Hall — question with a 30-second fuse timer and live answer/accuracy stats
Scoreboard after a round
Scoreboard — the server scores it; places, round points, game points
Host remote on a phone
Host remote — controls the show from a phone
Player answering from a phone
Player — joins by game code, answers, sees points
Quiz builder
Builder — rounds, questions, per-question music and timing

Scope. 123 API routes · 14 SQL migrations with CHECK constraints · 320 backend tests, 161 frontend tests, 89 hard e2e specs (all green) · RBAC (owner / admin / city manager / host / DJ) · CRM for players and teams · online game from a phone.

Checks that refuse to pass vacuously. fresh-install-check.sh searches migrations recursively and fails when it finds none — an empty checklist means "nothing to check", not "all good". check-stand-fresh.sh compares commit time with stand timestamps so e2e never runs against a stale build. Stand migrations are idempotent (tracked in stand_migrations): a re-run yields 0 statements and 0 errors.

Stack: Node 20+ · Fastify 5 · Prisma 6 · PostgreSQL 17 · WebSocket relay · TypeScript 5 · Vite 6 · PWA (offline-first) · Playwright (system Chrome, --workers=1) · Docker Compose. (Repository is private; architecture and measured results are documented here.)

Razgon Quiz — public site


Hermes Viz — telemetry console for an agent farm

Problem. A multi-agent farm (21 agents, 9 models, async task board) is opaque at a glance: which agent is doing what, where a task is stuck, what the knowledge base actually serves.

Approach. One screen with three facets over live data: OPS — radial deck of the live team (status, model, current tool, activity); PIPELINE — task board with dependencies, runs and blocked states; KNOWLEDGE — repository graph (2,292 nodes, 839 edges) with retrieval flow.

OPS
OPS — the live team as a sensor deck
KNOWLEDGE
KNOWLEDGE — repository graph, 2,292 nodes
PIPELINE
PIPELINE — task board with runs and blocked states

Stack: JavaScript (canvas console) · WebSocket event feed · SQLite (kanban DB) · semantic graph with import + embedding edges.


Codebot — Telegram bridge to a coding-agent runtime

Problem. Coding agents run on a workstation, but steering them from a phone should not require opening a laptop.

Approach. A dependency-free Java 21 Telegram bot (63 classes, ~10.9k LOC, plain javac — no Maven/Gradle) bridging to a local coding-agent server over JSON-RPC/WebSocket: live turn states, approvals, session switch/import/archive, attachments, urgent steering; shared mode where each Telegram user pairs their own machine.

Codebot — headless build + self-test

Reference run: 63 sources compile with plain javac (0 errors) and the built-in headless self-test passes.

Stack: Java 21 (no build system) · Telegram Bot API (long polling + webhook) · JSON-RPC over WebSocket · Docker Compose + Playwright sidecar for browser tools. (Source is local-only; the architecture is documented here.)


Storybeam — AI video pipeline (active fork)

What it is. An active fork of MoneyPrinterTurbo rebuilt into a platform: React front-end over the REST API, long-form mode, cost governance, policy compliance.

What we changed (56 commits, +14,955 / −6,559 lines across 108 files):

Area Change
Long-form duration-driven chunked script; per-scene resume/idempotency; scene-count cap
Cost governance dosed image-to-video (hook + chapter beats) + per-task spend cap (LongFormCostGovernor)
Compliance AI-synthetic-content disclosure on upload; anti-misleading metadata guardrails; per-video structural variation (anti-templated output)
Product surface full React Create / Library / Settings UI with an API-key gate; full-parity Telegram bot (deny-by-default multiuser)
Security API auth on by default, bind 127.0.0.1, path-traversal fix, secret redaction in logs

Storybeam — Create screen

Stack: Python / FastAPI · React 18 + TypeScript + Vite + Tailwind · Redis task state · ffmpeg · Docker.


Trading research station — systematic strategy validation

Problem. Most "profitable" retail strategies die after fees and slippage; the standard backtest hides exactly that.

Approach. A research bench rather than a signal bot: walk-forward backtests with fees, slippage and funding; explicit look-ahead-bias checks (signals shifted one bar); CPCV (combinatorial purged CV) consistency; risk controls (position sizing, circuit breaker, kill-switch). Paper mode runs without keys.

Measured sweep — 33 strategies across 4 timeframes: only a handful stay above PF > 1.1 with p < 0.10 and ≥ 30 trades. E.g. one 4h strategy: PF 1.44, 2,526 trades, CPCV consistency 82%. Same-year comparison: breakout +6.4% vs buy & hold −52.7% — active risk management protected the capital of a micro-account.

Trading research — validation web UI

Stack: Python · CCXT · pandas / Parquet · FastAPI + Jinja2 web UI · systemd units. (Research bench — evaluation only, not signals.)


Streaming stateful prediction — a research problem

Problem. A model must predict one row at a time in a stream: every row depends on the full prior history, the window is tens of thousands of rows long, and the metric is block-wise correlation inside each sequence — not MSE. Standard recipes (window slicing, MSE loss) don't work here.

Approach. A stateful recurrent model (GRU, step-by-step ONNX export) with a strict state contract: single-row inference, hidden state carried between calls. The key is a metric-aligned loss — the official block-wise aggregate reimplemented in torch and verified against the scorer, with correlation accumulated over the whole sequence (not a short window where the target is near-constant and the signal drowns).

Engineering levers, verified in practice:

Lever Result
Metric-aligned loss a single model beat our best ensemble
Correlation horizon full-window signal is 4–5× stronger than on a short segment
Feature transform inside the ONNX graph naive recomputation blew the inference limit; in-graph fits with 1.38× headroom
Re-deriving the documented order-book layout the documented bid/ask layout was false — found by brute-forcing pairs over 500k rows

A separate layer was infrastructure resilience: training ran on a 4 GB GPU under WSL, which silently restarted under load (page-cache leak through the 9p bridge). The fix — posix_fadvise(DONTNEED) on every parquet row group — stabilised the cache.

Competition task: the approach and engineering lessons are described; the data, metrics and code are not published (platform rules).


Static websites — hand-built, no libraries

Problem. A business-card site on a website builder carries hundreds of KB of engine and gives no control over typography or responsive behaviour. But "hand-coded" too often means either a framework or a pile of hacks.

Approach. Two sites built by hand — HTML, CSS, a little SVG and JS, zero frameworks and zero third-party libraries. They use two different visual languages on purpose, to show range rather than one trick twice: "Sokratilin" — an engineering-drawing concept (graph paper, a side register, a sticky case strip); "Slava Shved" — 6 pages of poster typography, torn edges, a masonry gallery and filters.

Sokratilin
"Sokratilin" — the engineering-drawing concept
Slava Shved
"Slava Shved" — poster typography, 6 pages
Mobile
Mobile layout — 390 px, no horizontal scroll

Verified by measurement, not by eye (headless Chrome, DevTools protocol): horizontal scroll 0 px, broken images 0, JS errors 0, computed styles actually applied — at desktop 1440 and mobile 390, across 8 and 16 combinations.

Metric Sokratilin Shved (6 pages)
Third-party libraries 0 0
Images 0 (all visuals in CSS and SVG) 16 (proportion placeholders)
Horizontal scroll 0 px 0 px

Defects found and fixed — real ones, not hypothetical: two stray } in the CSS (the browser silently stopped parsing, :root never reached the page, the font fell back to Times New Roman — invisible to the eye, caught only by measuring how many rules reached the parser); overflow-x: clip on body broke position: sticky; a font declared under the wrong name; and the chosen font had no Cyrillic at all — verified by reading its cmap table.

A separate layer — a Tilda port: the same site packaged so the client edits content themselves, without a developer (markup → six T123 blocks, one path scheme that works across Tilda, GitHub Pages and local viewing).

Live showcase: kukhtik.github.io/site-concepts

Stack: plain HTML5 · CSS3 (grid, clamp, aspect-ratio, sticky, IntersectionObserver) · inline SVG · library-free JavaScript · a small Python page generator. Public: github.com/kukhtik/site-concepts.


Stack

Area Technologies
Languages Python (primary), JavaScript / TypeScript, Java 21, GDScript, SQL, Kotlin, Rust (basic)
AI / LLM llama.cpp / GGUF, ONNX Runtime, LanceDB, embeddings + cross-encoder reranking, agent harnesses (Hermes Agent, Claude Code, Codex)
3D / Game Godot 4 (headless-testable deterministic engines), VRM 1.0 / glTF, trimesh, Blender toolchain
Backend FastAPI, Redis, Cloudflare Workers, D1, R2, SQLite / PostgreSQL, Kafka / gRPC
Frontend React 18 + TypeScript (Vite, Tailwind), vanilla JS canvas, PySide6 / PyQt6 / QML, Telegram Mini Apps, Compose (Android)
Numerical NumPy / SciPy, Helmert / SVD, Levenberg–Marquardt, Nelder–Mead, walk-forward / CPCV backtesting
Infrastructure Docker, Linux / WSL, Git, GitHub Actions / GitLab CI, Cloudflare, systemd
Quality pytest, coverage gates, mutation testing, SHA-256 tamper checks, look-ahead-bias checks, JSONL trajectories

github.com/kukhtik · linkedin.com/in/max-kukhto-517091337 · maxkukhto@gmail.com · Mogilev, Belarus (remote)

Interface screenshots are captured from working builds; client-identifying data (site names, local coordinate systems, zone numbers, coordinate catalogs) is masked. The EC chat and BeerLog shots show demo content. Every metric is from a measured run.

About

Showcase with measured results: agentic systems, offline RAG, numerical engineering. Screenshots and runbooks, no marketing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors