mat@jakubczak:~$ cat agent.md
how the agent works
The pane on the left is an AI agent. It answers questions about my work, drives this website, and can help you write to me. This page explains exactly what it is — no magic.
What runs it
- Agent loop: pi (
pi-agent-core+pi-ai), running headless inside a Cloudflare Worker. For each question it calls the model, runs any tools the model asks for, feeds the results back, and repeats until it has an answer. - Model: DeepSeek V4.1 Flash on Cloudflare Workers AI. The model in use is shown at the bottom of the agent pane.
- The pane in your browser only renders what the agent streams back: text, tool calls, page changes and drafts.
What it knows
- Everything on this site: the About page, every project and blog post.
- A few extra notes I wrote for it (like how I prefer to be contacted).
- My public GitHub repositories, fetched live.
- A dated snapshot of my AI coding and GitHub activity (the stats page) — not live.
It’s instructed to answer only from those sources, and to say “I don’t know” instead of guessing.
What it can do
- Answer questions about my experience, skills, projects and talks.
- Search and read projects and posts, and quote them.
- Navigate this site for you: open a page on the right, and jump to a section.
- Run skills — packaged tasks like a CV overview, an honest fit check against a job description, a project deep
dive, a portfolio tour, or drafting an email to me. Type
/skillsto see them. - Draft an email to me from a few notes, and share links to book a call, LinkedIn or GitHub.
- Show charts of my Claude Code and Codex usage and my GitHub activity, right in the chat.
- Hand off to my AI representative — a separate, more capable agent that speaks for me on hiring, roles, rates,
availability and projects. Its answers appear in the pane, marked as the representative’s. Ask it directly with
/ask-mateusz, or continue by email with it at assistant@ai.jakubczak.dev. I read every conversation it has. - Host a capture-the-flag game about LLM security (
/ctf): break three AI guards, each protected by a real defence — a system-prompt instruction, an output filter, then layered defences with a second AI judging every reply. Beat the last one and you get my full CV, with my phone number, plus my rate as a bonus. The agent itself doesn’t know the passwords or the rate. The ideas behind it: Breaking an AI guard. - Send anything on its own. It can draft an email, but only you can press send.
- Make commitments. Neither this agent nor the representative can agree to anything binding for me.
- Browse the web or open other websites. It knows this site and my public GitHub, nothing else.
- Remember you. The conversation lives in your browser tab and is gone when you reload.
- Know what isn’t written down. If it’s not on the site or in its notes, it won’t know — ask me directly.
- Share private details like my phone number or address. (The only way to my phone number is beating the CTF.)
- Be perfect. It’s a language model: it can misread or misstate things. Anything important, check with me.
Limits and costs
- It runs within Cloudflare’s free daily allowance. A daily spending cap stops the AI when that’s used up; it resets at 00:00 UTC. Commands, navigation and email drafts keep working.
- Each question can use at most a few model calls and one minute. There’s also a per‑visitor rate limit.
- The CTF guards have their own, smaller share of the daily budget, so a busy game can’t take the agent down.
Privacy
Your messages are sent to the agent backend and the model to produce an answer, and the conversation is saved so I can read it (kept 12 months). Emails you send through the agent go to me, with your address as the reply‑to. Questions handed to the representative are processed by it and sent to me as a transcript. Details: privacy · terms.