Trefon.
AI Systems Engineer AI from the tokenizer up

When the API isn’t enough.

I build custom inference, agent harnesses and fine-tuned models, from the tokenizer up. I write the code myself.

30-minute technical call with the engineer who builds it. No sales team, no slides.

years writing software
28
years writing software
open-source repos
7
open-source repos
where I train and benchmark
1× 4090
where I train and benchmark
$ git clone github.com/jtrefon/llama.cpp-turboq-mtp# fork of llama.cpp-turboq · TBQ4 KV · MTP# SWA stability in Gated DeltaNet · hot model loading  context      262K tokens  KV cache     4.125 bpv, TBQ4  hardware     1× RTX 4090✓ peak decode  82 tok/s

Open-source proof

§01 Three walls

Most teams start with an API. Some hit a wall.

wall_01 quality
demo your real cases with harness + evals pass rate

Not good enough.

The agent works in the demo and fails on your real cases. I build the harness around your domain (tools, memory, guardrails, evals) and fine-tune when prompting runs out.

→ Harnesses
wall_02 privacy
country network building data

Not private enough.

The data can’t leave your building, your country, or your customer’s network. I build inference that runs where the data lives: on-prem, in your cloud account, or air-gapped.

→ Private LLM
wall_03 cost
volume API bill own stack cost

Not cheap or fast enough.

The token bill grows faster than revenue, or latency kills the experience. I tune the serving stack, quantise, or train a smaller model that does your job at a fraction of the cost.

→ Inference

If the API works and the bill is fine, keep the API. I’ll tell you that on the call.

§03 Built in your stack

Not everything is Python.

I’ve shipped agents in PHP inside a live app, a multi-provider agent platform in .NET with Angular and React, a harness in C++, an IDE in Swift, and tooling in Rust. The AI fits your architecture, not the other way round.

~/jtrefon — languages in production 7
  • C++ llama.cpp fork · amber
  • Rust blt tokenizer · distiller
  • Swift compass IDE
  • Python training · llm-mini · lora
  • C# .NET off-plan agent platform
  • PHP inbound sales agents
  • TypeScript React chat agent · Angular back office
§04 Selected work

Built and handed over.

  1. Harness handed over

    Off-plan real estate, Dubai

    Agentic sales platform: .NET core and API, Angular back office, React chat agent, multiple LLM providers routed through OpenRouter.

    • .NET
    • Angular
    • React
    • OpenRouter
  2. Harness handed over

    Inbound sales agents, several markets

    Agents written in PHP and deployed inside the client’s own application, wired to local scripts, SOPs and domain knowledge, running on the Gemini API. Fast, cheap and reliable.

    • PHP
    • Gemini API
  3. Models ongoing · NDA

    Document extraction, regulated accounting client

    Vision-model extraction pipeline. Ongoing, under NDA.

    • vision model
    • Python
  4. Models training

    compass model (in progress, open source)

    A 4.5B agentic coding model: Qwen fine-tuned for terminal and agent work, then distilled and RL-tuned per language and stack, trained on one RTX 4090, to ship inside compass.

    • Qwen
    • RL
    • distillation
    • RTX 4090
Full write-up and benchmarks
§05 How I work

Teardown. Build. Hand over.

  1. 01 1–2 weeks

    Teardown

    One to two weeks. I profile your stack, run evals on your data, and hand you a written plan with numbers: what to build, what to keep, what to kill.

    out

    • profile
    • evals on your data
    • written plan
  2. 02 scoped

    Build

    I deliver the harness, inference stack or model, with evals, benchmarks, runbook and handover. We agree what success looks like in writing before I start.

    out

    • code
    • evals
    • benchmarks
    • runbook
  3. 03 on request

    Come back when needed

    Fixes and extensions after handover, on request.

    out

    • fixes
    • extensions

I build it, prove it, and hand it over. You own it, not a dependency on me.

Every build is different, so every quote is too. Fixed price or time and materials, scoped on the first call.

Jacek Trefon
fig. 01 — Jacek Trefon, Marbella 36.51°N 4.88°W
§06 Who builds it

I write the code.

I’m Jacek Trefon. 28 years writing software, years as CTO and Head of Engineering, and the last few building models, inference engines and harnesses. I work alone, on purpose: you talk to the person who writes the code.

years writing software
28
years writing software
engineers led at CAFU
100+
engineers led at CAFU
regions, one platform at Logiswift
4
regions, one platform at Logiswift
More about me
§07 articles

Written from first principles.

All articles

Bring the problem the API couldn’t solve.

Describe your problem

30-minute technical call with the engineer who builds it. No sales team, no slides.