Trefon.
AI Systems Engineer AI from the tokenizer up

When the API isn’t enough.

I build custom AI: models, inference, agent harnesses and integrations. You work directly with the engineer who writes the code, measures the results and hands over what I build.

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

From an idea to a system that works for your needs.

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

Not good enough.

You need an AI system that handles your tasks, whether you are starting a new build or improving one. I develop the model, harness and evaluations the job calls for.

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.

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 measure the workload and explore serving, quantisation or smaller models where they make sense.

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 across projects 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

Selected builds and research.

  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. Built and handed over.

    • 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

    A paid, scoped investigation after access and data are ready. I measure the problem and deliver findings, options and a proposed next scope.

    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.

The first call establishes fit. If the scope is clear, I can quote a build directly; otherwise, we agree a teardown first.

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.