# Ara Khan: full text of essays and project write-ups Source: https://arafatkatze.com. Profile: https://arafatkatze.com/ai.md. Index: https://arafatkatze.com/llms.txt # 11,840 TPS on a single GPU > Nearly doubling Nemotron throughput on one GB300, with interactive explainers for speculative decoding, scheduling, and self-tuning inference. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/nemotron-inference/ This is an interactive page; open it in a browser: https://arafatkatze.com/nemotron-inference/ --- More about the author: https://arafatkatze.com/ai.md # Computer Use Field Notes > Eval runs to improve computer-use UX — OSWorld experiments on smaller screenshots, running task notes, and batched GUI actions, with every trace public. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/computer-use-field-notes/ This is an interactive page; open it in a browser: https://arafatkatze.com/computer-use-field-notes/ --- More about the author: https://arafatkatze.com/ai.md # DeepSeek wins IMO Gold on 12 cents > DeepSeek V4 Flash scored 30/42 on IMO 2026 in Cline, clearing the gold cutoff for $0.12 — about 140 times cheaper than Claude Fable 5. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/projects/deepseek-wins-imo-gold-on-12-cents/ ![DeepSeek wins IMO Gold on 12 cents](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1788041687/site/deepseek-imo-gold/hero.png) _Published August 26, 2026 · Originally published on the [Cline Blog](https://cline.bot/blog/deepseek-wins-imo-gold-on-12-cents)._ We wanted to know the cheapest possible way to win an IMO gold medal, so we ran eight models against IMO 2026 problems in Cline and had the proofs graded blind. The answer was **12 cents**. Frontier models scoring perfect runs has been covered extensively. Our interesting find is that open-weight models now score gold too. Our DeepSeek V4 Flash run hit 30/42, clearing the 29-point gold cutoff. This was roughly 140 times cheaper than Claude Fable 5. In this post, we explore the problem setup and judging, and share all the traces from these runs. ![IMO 2026 scores and selected prices across eight models](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1788041688/site/deepseek-imo-gold/scores-and-selected-prices.webp) ## Problem Setup The original benchmark was an 8 × 6 matrix: eight models and six IMO 2026 problems, making a total of 48 effective cells. - GPT-5.6 Sol - Claude Fable 5 - Kimi K3 - DeepSeek V4 Flash - Qwen 3.6 35B A3B - DeepSeek V4 Pro - GLM 5.2 - MiMo V2.5 Pro Each model received the problem statement and one instruction to submit its strongest complete final solution. A submission tool was used to finish the run. After the original symmetric panel revealed some harness bugs, we fixed the tool-calling issues within the Cline harness to give every model its best shot at scoring, so that any lost points reflect actual model performance rather than tool-calling failures. ### Judging The proofs were graded anonymously on the IMO 0–7 scale. Two independent, model-blind graders, GPT‑5.5 and Claude Opus 5, scored each submission, and disagreements were resolved by Gemini 3.1 Pro. GPT-5.6 Sol remained the reference perfect scorer at 42/42. Other groups have independently reproduced that perfect score [here](https://www.linkedin.com/posts/akashnil-dutta-72894a100_imo-2026-performance-by-chatgpt-56-pro-activity-7483603460488273922-g1Yh/), [here](https://github.com/deedy/imo-2026), and [here](https://www.linkedin.com/posts/eugene-nazirov_the-headline-is-the-4242-imo-score-the-activity-7487441869992267776-OmY9/) (although their harness settings differ from ours). The gold medal score cutoff [this year was 29](https://www.imo-official.org/results/individual/year/2026/). Each candidate proof was placed into an immutable anonymous batch. The graders saw the problem, proof, rubric, and comparison reference (including Lean solutions), but not the candidate model's identity, to avoid bias. They checked that the IMO scoring rules were followed and that the final results passed validation. Reward-hacking guardrails included disabling internet use in the system prompt and exposing only the submit-solution tool. No prior context about the problems like Lean artifacts, rationales, etc. was provided, so each model had to rely on its own ability. We also checked traces to make sure no browser use was done. And since the IMO 2026 problems are new, they aren't in these models' training sets yet. One caveat is that IMO problems, unlike a traditional coding benchmark, are not a stable population estimate: small changes like prompt tweaks, retries, and provider issues (for open-weight models) can shift the scores a bit. We ran multiple attempts for all models and picked the best score on each problem rather than using standard measures like Pass@k. Note that the prices in the table below reflect the single best run for each model, not the net cost of all the exploration needed to work through tool-calling issues. In general, variance of results is always something to keep in mind with any benchmark. We used an LLM as a judge instead of unit tests (math olympiad problems often don’t come with unit tests) or a formal Lean grader. You can look at unofficial Lean solutions [here](https://github.com/AxiomMath/IMO2026). As promised, we have attached all the solution traces from the different models [here](https://gist.github.com/arafatkatze/fc08975b473205e52f272d4e7b2ad4b1); these traces include prices, generation costs, and the solutions offered by each model. ## Model Scores and Prices | Model | Best score | P1–P6 | Price | | ----------------------------------------------------------------------------------- | ---------- | --------------------- | ----------------------- | | GPT-5.6 Sol | **42/42** | 7 · 7 · 7 · 7 · 7 · 7 | **$3.2336** | | Claude Fable 5 | **41/42** | 7 · 7 · 6 · 7 · 7 · 7 | **$17.1956** | | Kimi K3 | **35/42** | 7 · 4 · 7 · 7 · 7 · 3 | **$5.1328** | | DeepSeek V4 Flash | **30/42** | 7 · 4 · 3 · 7 · 7 · 2 | **$0.1215** | | DeepSeek V4 Pro | **30/42** | 7 · 4 · 2 · 7 · 7 · 3 | **$0.4761** | | MiMo V2.5 Pro | **30/42** | 7 · 2 · 3 · 7 · 7 · 4 | **$1.0650** | | GLM 5.2 | **21/42** | 7 · 0 · 0 · 7 · 7 · 0 | **$2.3855** | | Qwen 3.6 35B A3B | **16/42** | 7 · 2 · 1 · 2 · 3 · 1 | **$0.2251** | | [IMO 2026 human median](https://www.imo-official.org/results/individual/year/2026/) | 16/42 | 7 · 1 · 0 · 7 · 2 · 0 | High school social life | The human row is two different medians: 16/42 is the median of contestants' total scores; P1–P6 are per-problem medians, which need not add up to the overall median. ![IMO 2026 score versus cost for each model](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1788041688/site/deepseek-imo-gold/score-vs-cost.webp) ### History of AI models in IMO Originally, in 2024, DeepMind's custom AlphaProof models (which were not released to the public) got an IMO silver, and back then the problems were converted to Lean. The models solved one problem within minutes and took up to three days to solve the others; note that humans solved the problems over two days, in sessions of 4.5 hours each. In 2025, an advanced version of Gemini Deep Think achieved a gold medal score working directly from the official natural-language problem descriptions. ![Gemini achieved gold medal level in the International Mathematical Olympiad](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1788041688/site/deepseek-imo-gold/gemini-imo-gold.jpg) [Post on X](https://x.com/demishassabis/status/1947337615054671882) In 2026, we have made great progress in IMO and other math olympiad problem solving. For starters, we have migrated to much better mathematical benchmarks like [Riemann bench](https://arxiv.org/abs/2604.06802), which are far more intricate and long-horizon, and models are now able to solve many [unsolved Erdos problems](https://openai.com/index/model-disproves-discrete-geometry-conjecture/). There are many other interesting solutions to math problems like [Hadamard matrices](https://x.com/__alpoge__/status/2087504785952182273) and the [Jacobian conjecture](https://x.com/__alpoge__/status/2079028340955197566) that were released this year, but there’s something very special that came from the open-weights community. ### What's unique about DeepSeek V4 Flash The most important part of the progress this year has been an order-of-magnitude improvement in the performance of open-weight models. Notably, DeepSeek V4 Flash isn’t post-trained specifically for Olympiad problems we hit the model endpoint directly and still got a gold medal. It has 284B total MoE parameters, with about 13B activated per token. While it's not exactly a small model, it's much, much smaller than the multi-trillion-parameter models used in previous years. DeepSeek V4 Flash is the only model (so far) that can be run on small local GPU setups and still win an IMO gold. This is a huge testament to the capacity of open-weight models, both pushing the frontier of intelligence and offering the best price point. We are calling it now that IMO 2027 problems will get solved by local LLMs running on your phone and the future of software and mathematics is [open-weight AI](https://cline.bot/cline-pass). ### Reference Links - [Official IMO 2026 problem page](https://www.imo-official.org/problems/2026/) - [Complete Cline Solutions trace index](https://gist.github.com/arafatkatze/fc08975b473205e52f272d4e7b2ad4b1) - [Complete 3.2 MB evidence archive](https://cline-imo-2026-public-traces-298579054527.s3.us-west-2.amazonaws.com/sdk-native-max-opt8-best-observed-v1/2026-08-24-r1/sdk-native-max-opt8-best-observed-v1-20260824-r1.tar.gz) - [IMO 2026 Lean Solutions](https://github.com/AxiomMath/IMO2026) You can read the original blog post at [cline.bot/blog/deepseek-wins-imo-gold-on-12-cents](https://cline.bot/blog/deepseek-wins-imo-gold-on-12-cents). --- More about the author: https://arafatkatze.com/ai.md # The Math of LLM Inference > How to save millions by self-hosting LLMs — the math of inference and the real dollars, grounded in production traffic. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.github.io/inference-math/ This is an interactive page; open it in a browser: https://arafatkatze.github.io/inference-math/ --- More about the author: https://arafatkatze.com/ai.md # LLM Visualization > A GPT drawn at full resolution — all 85,728 parameters, every activation, and a guided walkthrough from tokens to output probabilities. Runs the model live in your browser. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/llm-viz/ An interactive 3D visualization of a GPT language model, in the spirit of [Brendan Bycroft's llm-viz](https://bbycroft.net/llm) but rebuilt from scratch: original renderer, layout, walkthrough and weights. The model on screen is real. It is an 85,728-parameter GPT — 3 transformer blocks, 3 attention heads, 48 channels, an 11-token context — trained here on the six-letter sorting task from Karpathy's minGPT demo, and it gets all 729 possible inputs right. The forward pass runs in JavaScript in the page, so every square you can see is one of its actual numbers rather than a stand-in. **What is on screen.** The model is a tower you descend. Horizontal slabs are activations, one row per token and one column per channel; the vertical walls between them are the weight matrices, so a matmul reads as "the row above times the column of the wall lands in the cell below". Aggregates like layer-norm means and softmax denominators are the thin columns beside their slab, and the green beams running down the left are the residual stream skipping past each block. **What you can do.** - Follow the guided walkthrough: embedding, layer norm, self attention, projection, MLP, the transformer block, softmax, output. - Hover any cell to read its value together with the exact cells that produced it — hovering an output of a matmul lights up the input row and the weight column that were multiplied together. - Change the six input letters and watch the whole tower recompute. - Switch to GPT-2 small, GPT-2 XL or GPT-3 to see the identical structure at 124 million, 1.6 billion and 175 billion parameters, or put all four side by side at true relative scale. **How it is built.** No 3D library. A single instanced draw call renders every tensor as a cube whose fragment shader converts face-local position into a cell index, looks the number up in a float texture and colours it, dropping the grid once cells fall below a couple of pixels — which is what lets GPT-3's 175 billion parameters be laid out without the browser giving up. Connections are screen-space-thickened lines, labels are projected DOM, and a bright-pass and separable blur give the glow. Open the live demo: [/llm-viz/](/llm-viz/) --- More about the author: https://arafatkatze.com/ai.md # Open-sourcing evals for open-weight agents > The Hill Climber's Checklist for evaluating open-weight agents, with scores, tradeoffs, and public traces. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/projects/open-weight-agent-evals/ ![Open-sourcing evals for open-weight agents](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1788040939/open-weight-agent-evals/hero.png) _Published August 18, 2026 · Originally published on the [Cline Blog](https://cline.bot/blog/open-sourcing-evals-for-open-weight-agents)._ ## Preface With new model releases like Fable and Gpt-5.6 Sol, it's becoming increasingly clear that closed-weight models are becoming a very expensive commodity, leaving us at the mercy of frontier labs to tell us what to use and how much. [Post on X](https://x.com/i/status/2075530242186166519) Most coding-agent subscription plans lack pricing transparency, and the credit limits could have different token values depending on the day. Even the most pro-AI-usage, token-maxxing companies are now finding that their options are either to [default to open-weight models](https://x.com/brian_armstrong/status/2070670644577280109) or simply to [make their own harness for efficiency](https://www.glean.com/blog/enterprise-agent-harness). At Cline, we noticed an unusual rise in the token usage of open-weight models in the last few months for obvious reasons, such as price and quality improvements that make open-weight models on par with or better than closed-weight models. After stack-ranking our usage, we saw that the five most-used models in Cline right now are all open-weight models. ![Cline model usage ranking showing the five most-used models are open-weight](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786168010/open-weight-agent-evals/usage-ranking.png) So we started digging into how Cline performs on open-weight models. Most Cline users are spoiled SOTA token-maxxers who burn billions of tokens on the latest frontier models. But all of us are experimenting more with open-weight models, learning how to work with them and how to improve them. Our new SDK lets us measure the average token size of Cline requests, and the conclusion was damning: our requests ran 20–30% heavier than the publicly advertised averages of the most efficient harnesses. While we did have SOTA eval scores on most open-weight models, the extra token costs didn't make that acceptable. ## Promise of this blog I have read dozens of eval blogs and learned that they are mostly about self-congratulation and benchmark-maxxing. This will be a different blog. I will walk you through the Hill Climber's Checklist: five heuristics for hill climbing and how to approach them depending on your goals. In the end, I will leave you with over a thousand dollars worth of hill-climbing scores and traces. You can download and explore those traces to find nuanced findings by letting your agents go through them. ## How do we run evals? We use [Harbor](https://github.com/laude-institute/harbor). It is a widely adopted agent-evaluation framework built by the creators of [Terminal-Bench](https://www.tbench.ai/). It abstracts away sandbox management, the agent loop, and rollout monitoring to run evals. Harbor lets you run tons of parallelized evals using Modal on the same 89-problem coding dataset, [Terminal Bench](https://www.tbench.ai/), so you can do long eval runs across different coding agent harnesses and quickly figure out aggregate eval run metrics like input tokens, cached tokens, output tokens, net price, tool calls used, etc. ![Harbor evaluation flow and aggregate metrics](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786168012/open-weight-agent-evals/harbor-eval-flow.png) ## What do we optimize for evals? When doing eval runs, you must think of them as multi-objective optimization problems in which you are balancing different, conflicting axes. The goal is to figure out the right mix of targets to optimize for. Here are a few examples of conflicting targets: 1. Cost vs Intelligence 2. Thinking level vs Token Efficiency 3. Time to Solve vs Eval score 4. Token efficiency vs Eval score All the above are scenarios in which you would like to optimize both parts of a conflicting goal, but you must pick the right balance. I can easily score 91% on Terminal Bench if I use Fable's max mode, but it will cost 10 times as much as Kimi K3. So, is an extra 3% really worth 10 times the net run cost? ![Evaluation score and cost tradeoffs across open-weight models](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786168013/open-weight-agent-evals/optimization-tradeoffs.png) Most eval optimizations involve this type of conflict, in which you can pick your battles. Sometimes you are improving one thing at the expense of another, and you must diligently choose what works best for your use case. For us at Cline, SOTA performance is always a very high priority, but right after that, we care about giving our users the best value for money so they can solve the maximum number of problems with the minimum amount of money. We do things like caching and token-management optimizations, as well as bulk deals like Cline Pass, where [we offer you bundled inference](https://cline.bot/cline-pass) at a cheap cost. Now for the heuristics. There are five, and together they make up the Hill Climber's Checklist. ## Get a North Star metric A North Star metric protects you from two main failure modes of hill climbing: 1. **Doing too much:** There's only so much you can squeeze out of a model, and beyond that point you are just running in circles. 2. **Doing too little:** You left improvement on the table because your harness was limiting the model. The purpose of a North Star metric is to find the sweet spot: a score that's reasonably high without spending too much time and effort on over-optimization. Most models perform best in their own harness because the model and the harness are intertwined through both tool-call usage and post-training optimizations. Cline is building a common harness for everyone, and if you are reading this, you are probably building an agent that works with any model. So when a new model's eval score comes in far below the number in its system card, we need to optimize. If it's off by 1–3%, it's usually not worth chasing a better score. But if it's far below SOTA, you know it's time to get to work. We generally aim to score as high as the best publicly available harness for that model. ## Quantify the noise One measure of a good eval is variance. For meaningful problems, the same model, harness, and configuration should show some variance in the number of eval tests passed. Hard, well-posed tasks put models near the pass/fail boundary, so identical reruns show a real score spread. That spread is what makes the eval discriminative and what gives [GRPO-style RL a training signal](https://en.wikipedia.org/wiki/Policy_gradient_method). But you must first rule out flakiness as the source, which is why we often rerun the eval and report the distribution. ### Here are a few examples of variance on Cline's end | Model | Setup | Spread | | ----------------- | ----------------------- | --------------------------------------------------------------------------------- | | minimax-m3 | Same build, 5 reruns | 43.8% to 56.2% (±11 tasks); two back-to-back runs flipped 11 tasks up and 18 down | | deepseek-v4-pro | Same build, 2 runs | 44.9% vs 53.9% (22 tasks flipped, some positive and some negative) | | glm-5.1 | Same build, 3 reruns | 46.1% / 47.2% / 49.4% (24% of tasks flipped) | | deepseek-v4-flash | Same build, 3 reruns | 38.2% / 44.9% / 48.3% (±5 tasks, error count went 20/17/9) | | glm-5.2 | Same build, many reruns | 56.2% to 74.2% (~16 tasks) | Note that the cause of variance must be identified. If there's infrastructure flakiness on your end, that's a problem you must solve. It could be anything from using a low-performance provider to flaky VMs. You must do everything possible to iron out variance in the eval runs and be confident that identical configuration values are respected. ## Break down the failure mode When the net eval score looks wrong, you must slice and dice it until you find where the problem lies. In Terminal-Bench, which has 89 tasks, you can often narrow down potential improvements by breaking down the problem in certain ways. There are three ways to break it down, in order of priority: task, model, and provider. ### Task The best first method for breaking down failure patterns is by task. We had a token-bloat problem where some models were using a ridiculous number of tokens, and the first instinct was to treat it like a global problem where Cline uses too many tokens, so we need to fix token usage everywhere. In hindsight, that was the wrong frame. When we compared our traces with those of agents that did not have the same bloat, the gap was not spread evenly across the benchmark. It was confined to a small set of tasks. In one run, about 250K tokens came from just 15 of 89 tasks, and the net token total was 450 million tokens, so roughly 55% of the tokens came from just 17% of the tasks. ![Token usage concentrated in a small subset of Terminal-Bench tasks](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786168014/open-weight-agent-evals/token-bloat-tasks.png) It's often very hard to figure out what is wrong with only a certain set of tasks and not others. Aside from looking at tokens, you can also specifically examine their failures. Instead of manually looking at them, you can ask your agentic harness to go through the traces with different subagents and then give you a summary. I think that is much better than looking at traces with your own eyes. So, instead of trying to fix token bloat across all 89 tasks, we could isolate those tasks, inspect what the agent was doing differently, and then, once the fixes were made, do a final sanity check across all tasks. So the way to go about this is: 1. Begin by identifying problematic tasks. 2. Selectively improve and rerun your fixes on the selected tasks. 3. Once improvement is confirmed, do a full-scale run as a sanity check to make sure the fix doesn't break other tasks. ### Model If you are building a common harness, you are not going to maintain a completely different code path and system-prompt flow for every model. Most of the harness is shared: compaction logic, tool calls, context handling, computer use, and subagents usually work using similar logic. The tradeoff that comes with a common harness is that improvements for one model can make other models worse. A classic example was an experiment in which we added tool-bloat truncation to solve token bloat in MiniMax models. | Model | Before → with the fix → final stack | Direction | | ----------------- | ----------------------------------- | -------------- | | minimax-m2.7 | 32.6% → 41.6% → 46.1% | +13.5 points ▲ | | glm-5.1 | 48.3% → 52.8% → 57.3% | +9.0 points ▲ | | deepseek-v4-pro | 47.2% → 47.2% → 42.7% | −4.5 points ▼ | | deepseek-v4-flash | 48.3% → 43.8% → 41.6% | −6.7 points ▼ | With one truncation clamp, we saw that it improved MiniMax M2.7 by 13.5 points and GLM-5.1 by 9 points. But it also hurt DeepSeek Flash by 6.7 points and DeepSeek Pro by 4.5. So the same change had opposite effects on different models. ![Open-weight model score changes after adding tool-output truncation](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786168015/open-weight-agent-evals/truncation-results.png) The cut itself was simple: any tool output over 50K got clamped to 8K by keeping the head and tail and deleting the middle. That was pure deletion without compression, so nothing summarized what was removed. Rereading the same file returned the same truncated view, so the model had no way to recover the missing middle. It still helped because an agent resends its entire history on every turn. One giant observation gets paid for on every future request, so trimming it kept the conversation shape sane, preserved cache locality, and cut the cost. Whether it helps a specific model depends on how that model reads long context. GLM and MiniMax get lost in the middle of long noisy output, so deleting the middle sharpened them: +13.5 and +9 points. DeepSeek reasons over the body and tail of long tool outputs, so the deleted middle held state it was still using, and with no way to get it back it dropped 6.7 and 4.5 points. So it turns out that the same knob had opposite effects depending on the model. To fix this, you have two options: A. Make changes comprehensive enough to work generically for most models. B. Use completely different algorithmic routes for different models. This comes with the drawback of having to maintain mappings between models and mechanisms indefinitely. We have pursued option B in many ways, using prompt families for different models to optimize for the best parts of different model families, but only after a carefully considered refactor. In your case, you are looking for the tradeoff. Which models got better? Which ones got worse? And is the regression acceptable for the use case you actually care about? There is no universally better harness. There is only what is better for a particular model, provider, and use case, and you must find that out for yourself. ### Providers Believe it or not, the same model is not the same model on every provider. Many frontier open-weight models are served by multiple providers, such as CoreWeave, Baseten, and Fireworks. People assume the difference between providers is just quantization, but that is only a small part of the story. Different providers differ in cache hit ratios, quantization, TTFT, latency, and pricing, and every one of those moves your eval metrics. Whenever we onboard a new provider to route traffic to, we make sure its eval score is on par with the others. You can have a good eval score and a bad cache hit rate at the same time. If you don't run evals, you won't know what went wrong. Here is one concrete example from our GLM-5.2 runs using the same build on two providers: - CoreWeave at medium reasoning: 66/89 tasks, 74.2%. - OpenRouter general routing at medium reasoning: 55/89 tasks, 61.8%. ![GLM-5.2 evaluation comparison across providers](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786168016/open-weight-agent-evals/provider-comparison.png) The route alone was worth 11 tasks, so we learned to track each provider route as its own entry. We have also observed up to a 2x difference in net tokens and cache hit rates between providers, which can turn a $20 run into a $43 run for the same eval. The moral of the story is that you must be careful when dealing with different open-weight providers and test them with evals before shifting traffic. ## More thinking is not automatically better When it comes to thinking, the general belief is that more is better. This is not necessarily true. Reasoning effort is not a free intelligence knob. It costs more, and sometimes it lowers the score. Opus 5's FrontierCode result is a classic counterexample to the idea that more thinking leads to better results. ![Opus 5 FrontierCode results by reasoning effort](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786168017/open-weight-agent-evals/frontiercode-reasoning.png) You can see that medium thinking outperformed high, extra-high, and maximum on the main split. This means you have to run the matrix. The model, provider, harness, and task distribution decide where the useful reasoning budget is. More thinking can be more expensive and less effective, and sometimes the extra score gains from more thinking don't justify the increase in price because thinking tokens are very expensive output tokens. ## Keep a private set Tons of companies are making their own evals, and you should make them too if you can. Many eval methods suffer from reward-hacking behaviors in which models simply [look up the answers on the internet](https://cursor.com/blog/reward-hacking-coding-benchmarks); alternatively, eval sets “accidentally” enter the [training set](https://cursor.com/blog/grok-4-5). Having a private set of worthwhile problems with good verifiers is the best way to test models. If you would like to make a good benchmark yourself, this is an incredible blog post [from the Terminal-Bench team](https://x.com/neversupervised/article/2035455298417430911). ## Parting Note There's no better applied AI exercise than working through evals. It will help you understand why your agents are going wrong and how to squeeze the best possible performance out of a model and expose you to the tradeoffs that align with your teams goals. Evals are ultimately a trial-and-error mechanism. Unless you try, iterate, and make plenty of mistakes, you'll never really learn how to do it well. As promised, I am attaching [dozens of eval run traces](https://app.notion.com/p/1c5bce3254df803cb959c1967e17113b) so that you can see how Cline’s runs on different models, you are welcome to run agents on these runs to see the failure modes and learn from that. Evals are hard and these heuristics are a great place to start. If you do it enough, you might even be able to write [recursive self-improving prompts](https://cline.bot/blog/recursive-self-improvement-for-coding-agents) to automate yourself out of the eval improvement loop altogether. --- More about the author: https://arafatkatze.com/ai.md # Public Speaking > Talks and conference videos on AI agents, evals, and machine learning - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/projects/publicSpeaking/ I love getting on stage to share lessons from building production AI systems and open-source machine learning tools. These are my talks over the years, from AI agents and evals to bringing machine learning to the Ruby and Go communities. ## AI Engineer: Pick Problems That Survive When AI Solves Coding (2026) My most recent talk asks what to work on once frontier labs solve coding. I trace how coding agents got here and where recursive self-improvement takes them next, connecting the feedback loops across evals, agent harnesses, inference and training, and separate measured progress from hype so you can find the real bottlenecks and pick problems that will last. [Video: Pick Problems That Survive When AI Solves Coding - Ara Khan, Cline](https://www.youtube.com/watch?v=iK9gmxXyBR0) ## AI Engineer World's Fair: Evals Are Broken, Use Them Anyway (2026) This talk argues that benchmark numbers deserve skepticism, and so does judging models on "vibes" alone. I walk through a three-zone failure-analysis framework for pulling concrete improvements out of broken benchmarks. Cline climbed from 43% to 57% on Terminal Bench through harness fixes and prompt engineering, all while keeping the same model. [Video: Evals Are Broken, Use Them Anyway - Ara Khan, Cline](https://www.youtube.com/watch?v=QuuIywMG4s8) ## AI Engineer (Europe): Don't Build Slop, 4 Levels of AI Agent Maturity (2026) A talk on why most teams over-engineer their agents. I lay out four levels of agent maturity and five rules for writing your own agent code, argue that the best agents are simple state machines with pruned prompts, and make the case for Kanban boards as the right UX for managing many parallel, inference-bound agents. [Video: Don't Build Slop (4 Levels of AI Agent Maturity) - Ara Khan, Cline](https://www.youtube.com/watch?v=yUmS-F9IX90) ## EuRuKo Ruby Conf: Introducing Tensorflow Ruby API (2017) At Europe's largest Ruby conference in Budapest, I introduced [tensorflow.rb](https://github.com/somaticio/tensorflow.rb), the Ruby API for TensorFlow that I built with support from Somatic.io and the SciRuby foundation. The talk covers the core TensorFlow classes, image recognition with Inception v3, and visualization with TensorBoard, all from Ruby. - Watch on [RubyEvents](https://www.rubyevents.org/talks/introducing-tensorflow-ruby-api) ## More Talks & Workshops Over the years I've spoken at conferences across Europe and North America on machine learning, algorithm visualization, and life as a digital nomad in tech: - **ODSC AI West (2026):** Recursive self-improvement for coding agents: the agent that fixed its own harness, [talk](https://odsc.ai/speakers-portfolio/recursive-self-improvement-for-coding-agents-the-agent-that-fixed-its-own-harness/) - **AI Dev 26 x SF, DeepLearning.AI (2026):** Evals are broken, use them anyway, [video](https://www.youtube.com/watch?v=fAfuQN0WwFE) - **DevOpsDays Recife (2022):** Digital nomading in tech, [talk](https://devopsdays.org/events/2022-recife/program/arafat-khan/) - **GopherCon India (2019):** Algorithm visualizations in Go, [project](https://github.com/Arafatk/DataViz) - **Google Developers Windsor (2019):** TensorFlow Ruby, [event](https://gdg.community.dev/events/details/google-gdg-windsor-presents-the-windsor-essex-devfest-sold-out/) - **GoWayFest Belarus (2018):** Visualizations in Go, [project](https://github.com/Arafatk/DataViz) - **Ruby on Ice, Germany (2018):** TensorFlow for Rubyists ML workshop, [talk](http://2018.rubyonice.com/speakers/arafat_khan) If you'd like me to speak at your event, reach out on X ([@arafatkatze](https://x.com/arafatkatze)). --- More about the author: https://arafatkatze.com/ai.md # Recursive Self Improvement for Coding Agents > How one prompt turned a 17-hour autonomous hill climb into an 88.8% state-of-the-art Terminal-Bench 2.1 score. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/projects/recursiveSelfImprovement/ ![A coding agent reaching toward recursive self-improvement](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786167515/site/recursive-self-improvement/hero.png) *Published July 24, 2026 · Originally published on the [Cline Blog](https://cline.bot/blog/recursive-self-improvement-for-coding-agents).* ## Preface [Recursive self-improvement](https://en.wikipedia.org/wiki/Recursive_self-improvement) is the idea that models can iterate and improve on themselves to unlock singularity. We have achieved a [version of that](https://www.anthropic.com/institute/recursive-self-improvement) at Cline. In the past few days, the response to Kimi K3 has been incredible. Building on that momentum, we optimized its performance with Cline and achieved SOTA results on Terminal-Bench 2.1 using one-shot recursive self-improvement. **We got an 88.8% score with the run costing $49.8.** That surpasses Fable 5 at less than a tenth of the price: Fable spent $552, and even GPT 5.6 Terra spent $400 on Tbench2.1. ![Terminal-Bench 2.1 leaderboard comparing coding agents](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786167516/site/recursive-self-improvement/terminal-bench-comparison.png) Aside from the system prompt + a few nudges, this was entirely self-contained. A single prompt kicked off 17 hours of continuous coding agent run with GPT-5.6-Sol as the leader model. One billion tokens total: 400 million spent by the coding agent, 600 million by repeated eval runs. See the prompt [used here](https://gist.github.com/arafatkatze/fe7d3743315c80d5e3e8ab1bdef39903). We could have done the [normal hill climbing we always do](https://cline.bot/blog/a-practical-guide-to-hill-climbing). Instead, the model made a PR on its own, a first-of-its-kind hill climb that turned a good score into a SOTA score. Note: We tried this experiment with Fable 5 too but its AI safety filter kept downgrading the model to Opus-4.8, and we simply gave up. ## Cline’s hill climbing experiences Hill climbing isn't new to us as we've been doing evals and hill climbing at Cline for a while now. Back in January, we took Opus 4.5 from 47% to 57% on Terminal-Bench. That took a couple weeks of human work reading model traces, forming hypotheses, testing fixes, staring at failure logs until your eyes bled. In February we [published the playbook](https://cline.bot/blog/a-practical-guide-to-hill-climbing). It was a joint effort from 4 people on our engineering team. Six months later, the harness and the models have both improved so much that this run was done by a single prompt from one engineer. Weeks of human work got converted into 17 hours of long running agent work. The trace-reading, the hypothesis-forming, the fix-testing all of it, covered by agents with a fixed goal and adaptable context window. At this point it's very clear to us that **the bottleneck isn't models but the humans using them.** And our score isn't a consolation prize as Moonshot's own vendor-reported SOTA on Terminal-Bench 2.1 is 88.3%. We matched it with a general-purpose harness, on the first recursive campaign. The cost math and proof traces are attached [here](https://gist.github.com/arafatkatze/8ef2e3d452703fc2978715b40dff97fe). First, we'll walk you through the step-by-step procedure of how the recursive run worked: ## The actual hill climb Everything below ran off one prompt. **We started with a baseline.** One full Terminal-Bench 2.1 run on stock Cline harness, Kimi K3 through OpenRouter and it costed **69/89 (77.5%) for $79.** Instead of hill climbing by hand, we asked GPT-5.6 to write the prompt for us. We described how we normally climb this hill, and it turned that into a recursive self-improvement brief. The first draft was already comprehensive. We tightened it to cover the edge cases and pinned down a well-defined end state. The goal was modest: let it run for a while and see what happens. We had no expectation it would perform this well, yet here we are at a SOTA score. You can read the full prompt in this [github gist](https://gist.github.com/arafatkatze/fe7d3743315c80d5e3e8ab1bdef39903). The agent worked in different experiments and tried them one by one, maintaining a record of what it had accomplished in a massive file so that it wouldn't run in circles: **Experiment 0: max reasoning.** First finding: Cline didn’t represent K3's `max` reasoning effort as the harness silently collapsed it to `high`. The model fixed the abstraction. Not a score change, but a correctness fix that unblocked everything downstream. Commit `d1bc440`. **Experiment 1: retry the 429s.** Five baseline failures were the same story: OpenRouter returned a 429 and Cline just gave up. Healthy sessions, killed by a single rate limit, since at the time there was a single provider serving Kimi K3 and capacity was tight. This was a boring fix of raising the number of retries with exponential backoff. On the diagnostic slice, all five losses flipped to passes. Commit `cabfa9e`. **Experiment 2: smarter loop detection.** Two tasks died because Cline's loop detector killed agents that were *legitimately* polling long-running background work. Same command, but the output was changing so that's actual progress, not a loop. The model made the detector output-aware. Both tasks flipped. Commit `dbcdba8`. **Experiment 3: the 7.6-second ghost failure.** One task exited in 7.6 seconds with zero tokens and no session. The model reduced it to a wild root cause: any prompt containing `@a`-style tokens triggered a file-mention lookup on an unreferenced async worker, and the process legally exited before the model was ever called. This was a one-line liveness fix leading to a deterministic flip. Commit `289cb82`. **Experiment 4: stopping task suicides.** Two tasks failed because the agent ran `pkill -f` with a pattern that matched *its own harness command line*, so it terminated itself mid-task. The fix: tool guidance to track PIDs instead of broad pattern-kills. Both flipped. Commit `23d5970`. **Then the full runs:** The combined candidate scored **77/89 (86.5%) at $65** now up 8 tasks from baseline. The confirmation run landed **79/89 (88.8%) at $49.8**. So we had a higher score and lower cost, with fewer wasted tokens on doomed retries and self-kills. ![Kimi K3 and Cline score progression on Terminal-Bench 2.1](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1786167517/site/recursive-self-improvement/score-progression.png) **What worked:** retries, output-aware loop detection, the indexing liveness fix, process-kill work to improve the score. Every fix was a general harness improvement, nothing necessarily benchmark-specific or fake reward hacking. **What didn't work:** the max-reasoning fix never got causal credit (OpenRouter was already mapping to K3's only supported effort). The pkill guidance reduced but didn't eliminate broad-match commands. Two confirmation runs got invalidated and thrown away when we accidentally terminated the orchestrator: reported, excluded, rerun. There were other experiments where it was clear that the model's low score was a genuine model limitation. **Human intervention was nearly zero.** The whole campaign ran ~17 hours off a single prompt. Our job was mostly babysitting the agent every couple of hours and pressing continue when the agent stopped by accident. We ran this on a cloud VM to keep the agent running forever. **Reward hacking was avoided by design:** The first result was good enough that our immediate suspicion was reward hacking, It wasn't. The prompt banned it explicitly as there were no verifier edits, task-name detection or timeout inflation. To our surprise, the guardrails from the prompt held. The model even policed itself, recording attribution guards and excluding invalidated runs from its own scores. The final backstop is fully human: we reviewed the [full PR](https://github.com/cline/cline/pull/12465) before merging. ## Costs and traces Overall we spent roughly a billion tokens and $680 for this experiment. This is still a lot cheaper than weeks of an engineer's time and the opportunity cost. This is why we still think spending real money on frontier models like Kimi K3 is an investment that's absolutely worth it for certain kinds of tasks. In this case the leader was GPT-5.6-Sol. We wish we could have used Fable, but as mentioned above, its safety filter repeatedly blocked us from doing AI evals research. It's also likely we would have spent a lot more money using Fable. You can view all the traces, code and the entire cost breakdown on this [github gist](https://gist.github.com/arafatkatze/8ef2e3d452703fc2978715b40dff97fe). Cline is the best harness to run Kimi K3. We matched the SOTA score from Moonshot's official Kimi harness. With [ClinePass](https://cline.bot/cline-pass) you get subsidized inference on it: $9.99/month for curated open-weight models (Kimi K3, DeepSeek, GLM, MiniMax, Qwen) with 2–5x standard API rate limits and no separate provider keys. Give it a go. ## What happens next Recursive self-improvement is no longer a sci-fi experiment, and we are very glad that frontier models are making it possible for something as intricate and time-consuming as AI evals. We are now making it a standard process for new model releases at Cline: an immediate baseline run, then RSI-styled prompts to get the best out of every model. We encourage everyone to push the models with more and more long-running tasks. --- More about the author: https://arafatkatze.com/ai.md # A Practical Guide to Hill Climbing > Iterative improvement for AI coding agents - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/projects/HillClimbing/ ![A practical guide to hill climbing](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1794860189/site/hill-climbing/hero.png) A potential partner asked for Cline's benchmark numbers. At the time, third-party benchmarking had us behind Cursor, Claude Code, and other agents. We didn't have a systematic way to measure or improve our performance. Over a weekend, three of us ran Cline against Terminal Bench's 89 real-world coding tasks, diagnosed every failure, and shipped targeted fixes. We improved our score from **47% to 57%**, putting us ahead of Claude Code, OpenHands, and OpenCode. This guide outlines the process of hill climbing that we used to benchmark model/agent combo and improve its score. While this was built for Cline, the process works with Claude Code, Codex, OpenHands, Cursor, Gemini CLI, or any other model/agent combo you like. ## What is Hill Climbing? Hill climbing is an iterative improvement process for AI agents/models. You run an AI coding agent on a standardized set of coding tasks, measure the score, change one thing (a prompt tweak, a bug fix, a config flag), run again, and keep the change if the score goes up. Revert if it goes down. Repeat. Most coding agent evaluations are either single-turn or too saturated. However, [Terminal Bench](https://www.tbench.ai/) has created problems and verifiers that test the entire agentic flow, allowing you to test the full range of tasks your coding agent could do and grade the entire set of steps it performs. There's a ton that's been written about building high quality evals for AI agents and Anthropic's [Demystifying evals](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) blog dives into how to design and run high-quality evals. ![Comparison: Single-Turn vs Agent Evaluations](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1794860189/site/hill-climbing/figure-1.png) ## Prerequisites There are some pre-requisites to make the infra+model+inference setup, but once you're done you have an active pipeline that can easily run dozens of eval tests in parallel really fast. These instructions assume you already have Python, Docker (optionally Modal/Daytona) and uv installed on your machine. For this guide the main tool we use is [Harbor](https://github.com/cline/harbor). Harbor is a widely-adopted agent evaluation framework, built by the creators of Terminal-Bench. It abstracts away sandbox management, agent loop, and rollout monitoring for evals. A Harbor task is a simple directory. Harbor handles the full trial lifecycle: spinning up the sandbox, running the agent, verifying the result, and tearing everything down. It also supports different datasets so you can swap between them if you have different goals to optimize for. The primary evaluation dataset utilized in this repository is the Terminal Bench, a benchmark designed for AI agents operating within terminal environments. This benchmark comprises 89 diverse tasks, each varying in complexity and objective. The goal of this evaluation is to run the Cline CLI across all 89 tasks and determine the overall success rate, presented as an aggregate percentage score. We run harbor locally which downloads the entire terminal bench dataset then spins up 89 different containers on Modal that handle each individual task of the terminal bench. This helps make the evals run much faster as all the tasks are parallelized. ![Harbor architecture: dataset download, parallel container runs on Modal](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1794860189/site/hill-climbing/figure-2.png) **1. Install Harbor** ```bash pip install harbor # or uv tool install harbor ``` **2. Get API Keys** You need at least one provider API key. [OpenRouter](https://openrouter.ai/) is recommended — it's been the most reliable for evals (other providers have been unreliable for local runs because of infra/rate limiting issues). Ideally your .env file should look like this: ```bash export CPUS=14 export MEMORY_MB=8192 export OPENROUTER_API_KEY="sk-or-v1-someotherwords" export API_KEY=$OPENROUTER_API_KEY ``` We set a higher CPU and memory here because when harbor runs the tasks it runs each task. Harbor uses API_KEY as the main variable to pull the API key of any provider. ### 3. Set Up Modal (for parallel cloud runs) Modal lets you run 89+ tasks in parallel instead of sequentially. This is critical for fast iteration. ```bash pip install modal modal setup # Follow the auth flow ``` Without Modal, you can run locally with Docker (`--env docker`) but it will be much slower as your own machine has to run these tasks sequentially which can easily take many hours for a single eval run. Whereas with Modal you can get a whole eval run done in 35-45 minutes. We are very thankful to Modal platform for supporting us through this whole process. --- ## Verify your setup ```bash source ~/.env harbor run \ -d terminal-bench@2.0 \ -a cline-cli \ -m openrouter:anthropic/claude-opus-4.5 \ --env modal \ -n 3 \ -l 3 ``` To ensure that your setup works correctly, make sure the quick test passes. This will just run 3 tasks in parallel, but since Harbor setup takes time, each task itself would take roughly 15 minutes and then they will all finish together. If this finishes correctly without errors, you can be certain that your setup is working. ### Understanding the output ``` 89/89 Mean: 0.573 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:45:05 0:00:00 ``` - **Mean** = pass rate (0.573 = 57.3%) - **reward = 1.0** = tasks passed - **reward = 0.0** = tasks failed - **AgentTimeoutError** = Cline ran out of time before completing the task - **VerifierTimeoutError** = the verifier timed out checking the result --- ## The Knobs You Can Turn These are all passed via `--ak` (agent kwargs) flags to Harbor. They map to the Cline CLI adapter in our Harbor PR (#585). There are many knobs you can turn while you work with Cline, and they are all somewhat necessary as they help you tweak the agent and get a better feel for how to work with it, you can read documentation of agent kwargs. ## The Hill Climbing Playbook ### Step 1: Establish a Baseline Run a full 89-task sweep with your current best config. Record the score. This is what you're trying to beat. ```bash source ~/.env && export API_KEY=$OPENROUTER_API_KEY harbor run \ -d terminal-bench@2.0 \ -a cline-cli \ -m openrouter:anthropic/claude-opus-4.6 \ --env modal \ --ak thinking=6000 \ --ak timeout=2400 \ -n 89 -l 89 \ --override-cpus $CPUS --override-memory-mb $MEMORY_MB ``` This command will run the entire harbor eval run with a timeout of 40 minutes (2400 seconds) for each task and then all the 89 tasks of terminal bench 2 in parallel. The total run should take roughly 40-50 minutes because of Modal setup time, task setup, CLI run etc. ### Step 2: Analyze Failures ```bash harbor jobs summarize ./jobs/LATEST --failed -m haiku ``` This command categorizes _why_ tasks failed. Common failure patterns we found: - **AgentTimeoutError** — Cline CLI's default 600s timeout was too short. Fix: `--ak timeout=2400` - **Missing expected files** — Cline assumed success without verifying. Fix: [PR #9154](https://github.com/cline/cline/pull/9154) (require verification before completion) - **Command exit codes not surfaced** — Cline didn't know commands failed. Fix: [PR #9156](https://github.com/cline/cline/pull/9156) - **Long-running commands cut off** — Build/test/train commands killed early. Fix: [PR #9159](https://github.com/cline/cline/pull/9159) - **Inference errors** like: rate limits from providers, insufficient balance on the API provider etc Your goal with any set of failures is to portfolio allocate them in a category and then bucket them. There are some failures that won't be able to cover no matter how much you tweak the params etc. At least 25% of the failures are supposed to be this way. Those would need an actual step function improvement in the model itself but for the rest of the failures you would have to look at both the model doing something stupid or alternatively the model being configured the wrong way and missing some prompt/algorithmic logic. To be able to differentiate and bucket the kind of failures you get is the real magic sauce of evals and is a question of your taste. If you are good at figuring out where your model went wrong you can take those lessons to post training and other AI steps as well. ### Step 3: A/B Test Code Changes This is where the real hill climbing happens — improving Cline itself: ```bash # Test main branch harbor run -d terminal-bench@2.0 -a cline-cli \ -m openrouter:anthropic/claude-opus-4.5 \ --ak github_user=cline --ak commit_hash=main \ --ak thinking=6000 --ak timeout=2400 \ --env modal -n 89 \ --override-cpus $CPUS --override-memory-mb $MEMORY_MB # Test a PR branch harbor run -d terminal-bench@2.0 -a cline-cli \ -m openrouter:anthropic/claude-opus-4.5 \ --ak github_user=cline --ak commit_hash=saoud/fix-exit-codes \ --ak thinking=6000 --ak timeout=2400 \ --env modal -n 89 \ --override-cpus $CPUS --override-memory-mb $MEMORY_MB ``` Compare scores. If the PR improves the score you can consider it a success. ### Step 4: Use Pass@k When Results Are Noisy Single runs can be noisy, scores vary by several percentage points run to run. If a change looks like a close call, run the same config 3–6 times and average to get a reliable signal. Use this whenever you need confidence in Steps 1–3, especially when comparing two configs that score within a few points of each other. Our Feb 8 data for Opus 4.5 + thinking 6000 + double-check across 6 runs (this was before any changes): 0.49, 0.43, 0.45, 0.44, 0.48, 0.46 → **Avg 0.458, Median 0.455** Because you are using harbor with Modal in this guide it doesn't actually take much processing power on your machine so you can run many eval runs in parallel with nohup linux command. We realize that sometimes you have a few guesses as to what tiny tweak can make the model and that you might want to try a few different version of cline and run evals on them simultaneously. For this Cline supports `--ak github_user=cline` and `--ak commit_hash=main` as flags as that helps you test between different commits (without necessarily merging them into cline). The infra for this is not cheap but if you have read this far you are probably working at a company that can afford this. ### Step 5: Iterate Iterate Iterate Most of the above steps are fairly good at having a mental model of how large scale evals work, it will teach you basic failure modes of your agent and you can easily spend a couple days just working through those failure modes of the agent+model convo. As an example we followed the steps above and our scores for Opus 4.5 out of the box started at 47% and then rose up to 57% by making tweaks to the eval harness, which is a borderline SOTA score and 5% above Claude Code. ![Cline Evals score on Terminal Bench (Opus 4.5): progression from 43% to 57%](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1794860189/site/hill-climbing/figure-3.png) ### What's next We're still climbing and exploring hill climbing and are automating runs on every new model drop so results publish within hours, expanding to other eval frameworks and other Harbor-compatible datasets. If you want to hill climb with us or run your model through our pipeline, reach out to Ara on X ([@arafatkatze](https://x.com/arafatkatze)). ### Related Links - [Demystifying evals for AI agents — Anthropic](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) - [SkyRL Harbor — NovaSky](https://novasky-ai.notion.site/skyrl-harbor) - [Prime Intellect Lab](https://www.primeintellect.ai/blog/lab) You can read the original blog post at [cline.bot/blog/a-practical-guide-to-hill-climbing](https://cline.bot/blog/a-practical-guide-to-hill-climbing). --- More about the author: https://arafatkatze.com/ai.md # Ruby TensorFlow > Porting TensorFlow to Ruby with the tensorflow.rb gem — the Ruby API, how Google Protobuf drives the graph internals, and Inception-v3 image recognition in Ruby. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/projects/rubyTensorflow/ Back in 2016 I spent a good chunk of my time porting TensorFlow to Ruby with the [tensorflow.rb](https://github.com/somaticio/tensorflow.rb) gem. I wrote three separate blog posts about it back then — an introduction to the Ruby API, a developer deep-dive into how Google Protobuf drives the graph internals, and a hands-on image recognition tutorial. This project stitches all three together into one, so the whole story lives in a single place. ## Part 1 — Introducing the TensorFlow Ruby API TensorFlow is an extraordinary open source software library for numerical computation using data flow graphs. It was originally developed by researchers and engineers working on the Google Brain Team within Google's Machine Intelligence research organisation for the purpose of conducting machine learning and deep neural networks research, but the system is general enough to be applicable in a wide variety of other domains as well. TensorFlow comes with an easy to use Python interface and a C++ interface to build and execute your computational graphs. However, TensorFlow was available only in Python, and due to the strong interest from the Ruby community, I took an interest in porting it. I started working on the Ruby API with support from Somatic.io and the SciRuby foundation and came across some cool things that I would like to share with you. At the time I was a student at the Indian Institute of Technology, Kharagpur. I was extremely fascinated with open source and machine learning and decided to take on this project for fun. ### The project I developed a simple gem, `tensorflow.rb`, and started with making use of SWIG. I tried countless different wrapper gems and different ideas in many permutations and combinations to finally come up with something that works. I'll start with a few introductory examples to give people an idea about what is possible currently, and soon enough it would be easy for users to make extensive use of TensorFlow to accomplish extraordinary tasks such as image recognition or basic neural networks and much more. ### Creating and running the graph in Ruby Here is a small example that adds two tensors. This program prints the output `[[6.0, 5.5], [57.0, 7.4]]`, which is the result of adding two tensors. The simplest explanation for this is: ```ruby graph = Tensorflow::Graph.new tensor_1 = Tensorflow::Tensor.new([[2, 2.3], [10, 6.2]]) tensor_2 = Tensorflow::Tensor.new([[4, 3.2], [47, 1.2]]) placeholder_1 = graph.placeholder('tensor1', tensor_1.type_num) placeholder_2 = graph.placeholder('tensor2', tensor_2.type_num) ``` Here we define two tensors and then we define two placeholders corresponding to those tensors. ```ruby opspec = Tensorflow::OpSpec.new('Addition_of_tensors', 'Add', nil, [placeholder_1, placeholder_2]) op = graph.AddOperation(opspec) ``` Then we specify an operation to add the two placeholders. ```ruby session_op = Tensorflow::Session_options.new session = Tensorflow::Session.new(graph, session_op) ``` Then start a new TensorFlow session. ```ruby hash = {} hash[placeholder_1] = tensor_1 hash[placeholder_2] = tensor_2 result = session.run(hash, [op.output(0)], []) ``` Then we define a new hash in Ruby with the key as the placeholder corresponding to the tensor and the value as the tensor, and then run the session to get results. The syntax is very easy to understand and produces the right result, so anybody can use it with basic knowledge of Ruby and TensorFlow. ### Is that all? Almost everyone can see that the above example simply didn't live up to the hype I had been talking about for a while, so here is another interesting example of Ruby TensorFlow. This example shows you how to get the determinant of a batch of matrices. If you look closely, this is very similar to the previous example, with the difference being that I only have a single input and the op used is `BatchMatrixDeterminant`. The result is `[[-45.0, -513.0, 1.0]]`, which is the determinant for the first, second, and third matrix. Actually you can do a LOT of good things such as: 1. **Arithmetic operators** — addition, subtraction, element-wise multiplication, element-wise mod, etc. 2. **Basic math functions** — element-wise exponent, element-wise power, element-wise log, trigonometric operations like tan, sin, cos, etc. 3. **Matrix functions (these are the best)** — matrix inversion, matrix multiplication, determinants, diagonal, trace, solving a system of linear equations, cholesky decomposition, etc. You can also do complex number functions too (like multiplying complex matrices). ### A note for developers I researched how the Python libs work internally, and basically the plan to generate the graph and plan how to execute it is managed from Python, which sends all the graph to be executed to the C++ libraries. These libs take the graph and execute all the nodes of the graph. Therefore, what we need to do is port the graph generation and planning code from Python to Ruby, and rely on the same C++ libraries for execution. ## Part 2 — Ruby TensorFlow for developers In this part I dwell upon simple and useful ideas that will help developers understand how Google Protobuf is used in Ruby TensorFlow. Even though the primary purpose is to explain the Ruby API, I am sure that developers specializing in different languages can greatly benefit from the ideas here. ### Google Protobuf Protocol buffers are a language-neutral, platform-neutral, extensible mechanism for serializing structured data. The method involves an interface description language that describes the structure of some data and a program that generates source code from that description for generating or parsing a stream of bytes that represents the structured data. It helps define data structures in text files, and the protobuf tools generate classes in Ruby, C, Python, and other languages that can load, save, and access the data in a friendly way. Google developed Protocol Buffers for use internally and has provided a code generator for multiple languages. In this section I focus on Ruby protobuf, so to start it's worth getting familiar with how they work. ### GraphDef The foundation of computation in TensorFlow is the Graph object. This holds a network of nodes, each representing one operation, connected to each other as inputs and outputs. The `GraphDef` class is an object created by the ProtoBuf library from the definition in `tensorflow/core/framework/graph.proto`. The protobuf tools parse this text file and generate the code to load, store, and manipulate graph definitions. If you see a standalone TensorFlow file representing a model, it's likely to contain a serialized version of one of these `GraphDef` objects saved out by the protobuf code. This generated code is used to save and load the `GraphDef` files from disk. The code that actually loads the model looks like this: ```ruby require 'tensorflow' graph_def = Tensorflow::GraphDef.new ``` This line creates an empty `GraphDef` object, the class that's been created from the textual definition in `graph.proto`. This is the object we're going to populate with the data from our file in irb. ```ruby reader = File.read('graph.pb') graph_def = Tensorflow::GraphDef.parse(reader) graph_def.node[0].name # => "input1" graph_def.node[1].name # => "input2" graph_def.node[2] # => ##}> ``` ### Nodes Once you've loaded a file into the `graph_def` variable, you can now access the data inside it. For most practical purposes, the important section is the list of nodes stored in the `node` member. Each node is a `NodeDef` object, also defined in `graph.proto`. These are the fundamental building blocks of TensorFlow graphs, with each one defining a single operation along with its input connections. Here are the members of a `NodeDef` and what they mean: - **Name** — every node should have a unique identifier that's not used by any other node in the graph. The name is used when defining the connections between nodes, and when setting inputs and outputs for the whole graph when it's run. - **op** — this defines what operation to run, for example "Add", "MatMul", or "Conv2D". When a graph is run, this op name is looked up in a registry to find an implementation. - **input** — a list of strings, each one of which is the name of another node, optionally followed by a colon and an output port number. - **attr** — a key/value store holding all the attributes of a node. These are the permanent properties of nodes, things that don't change at runtime such as the size of filters for convolutions, or the values of constant ops. Because there can be so many different types of attribute values, there's a separate protobuf file defining the data structure that holds them, in `tensorflow/core/framework/attr_value.proto`. Each attribute has a unique name string, and the expected attributes are listed when the operation is defined. If an attribute isn't present in a node, but it has a default listed in the operation definition, that default is used when the graph is created. ### Text or binary? There are actually two different formats that a ProtoBuf can be saved in. Text Format is a human-readable form, which makes it nice for debugging and editing, but can get large when there's numerical data like weights stored in it. Binary format files are a lot smaller than their text equivalents, even though they're not as readable for us. You can find an example of a large binary file inside the `inception_dec_2015.zip` archive, as `tensorflow_inception_graph.pb` (this is the file used in the image recognition tutorial below). In Ruby protobuf only the binary format is supported, which makes it a little more difficult for developers to use, but I added a simple way to achieve back-and-forth conversion from binary to human-readable format. A handy trick to generate and inspect graphs: go to the specs (for example the math spec) and, just after `session.extend_graph(graph)`, add another line: ```ruby File.open('graph.pb', 'w') { |file| file.write(graph.graph_def_raw) } ``` And run the specs again. This will save the graph definition in a `graph.pb` file, and then you can convert it using the `pb_to_pbtxt` Python file to read it in human-readable form. ## Part 3 — Image recognition in Ruby TensorFlow Developers for tensorflow.rb had been having a long discussion about developing something really cool with Ruby TensorFlow, and so we decided to work on the image recognition tutorial and got some really interesting results that I'd like to share. Our main source of inspiration was the TensorFlow image recognition tutorial. ### Image recognition Our brains make vision seem easy. It doesn't take any effort for humans to tell apart a lion and a jaguar, read a sign, or recognize a human's face. But these are actually hard problems to solve with a computer: they only seem easy because our brains are incredibly good at understanding images. In the last few years the field of machine learning has made tremendous progress on addressing these difficult problems. In particular, a kind of model called a deep convolutional neural network can achieve reasonable performance on hard visual recognition tasks — matching or exceeding human performance in some domains. Researchers have demonstrated steady progress in computer vision by validating their work against ImageNet — an academic benchmark for computer vision. Google took this to the next step by releasing code for running image recognition on their latest model, Inception-v3. Inception-v3 is trained for the ImageNet Large Visual Recognition Challenge using the data from 2012. This is a standard task in computer vision, where models try to classify entire images into 1000 classes, like "Zebra", "Dalmatian", and "Dishwasher". Inception-v3 reaches a 3.46% error rate for top-5 results. This tutorial will teach you how to use Inception-v3 in tensorflow.rb. You'll learn how to classify images into 1000 classes in Ruby. ### Steps - Clone and install tensorflow.rb - Go to the image directory - Download the `inception_dec_2015.zip` file from Google - Extract the file `tensorflow_inception_graph.pb` into this directory - Run `ruby classify_image.rb` (this will work on the default image of the Mysore palace) - To try this out on your own images you can add the image to this directory and then change the file name on line 31 of `classify_image.rb` ### Examples A few cool examples of using the image recognition tutorial. First let's try this out on a cute puppy. A palace? Winter Palace, St. Petersburg A library? Or a bridge? Széchenyi Chain Bridge, Hungary The results are interesting, and I encourage you to play with tensorflow.rb and try it out on your own images. The deep learning model in Inception-v3 is described in the arXiv preprint "Rethinking the Inception Architecture for Computer Vision" and can be visualized with this schematic diagram: As described in the preprint, this model achieves a 5.64% top-5 error while an ensemble of four of these models achieves a 3.58% top-5 error on the validation set of the ImageNet whole-image ILSVRC 2012 classification task. Furthermore, in the 2015 ImageNet Challenge, an ensemble of 4 of these models came in 2nd in the image classification task. ## Acknowledgements Special thanks to Jason Toy (Founder, Somatic), Soon Hin Khor (PhD, Univ. of Tokyo), and Sameer Deshmukh (Founder of Daru and member of SciRuby) for being the mentors for this project. They were very supportive with everything, and I am very grateful to them. --- More about the author: https://arafatkatze.com/ai.md # Agentic AI writings - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: work - Canonical page: https://arafatkatze.com/projects/AgenticAi/ I love getting to share counterintuitive ideas about building agentic AI with other people, and I mostly stick to Twitter when I write about it. Here's a small collection of my writings, but you can find a lot more if you [follow me on Twitter](https://x.com/arafatkatze). ### Traps in building agents This thread is about some seductive ideas that sound very smart but are actually a massive waste of time when building agentic AI. You can read through a large discussion that happened on Twitter about this. [Post on X](https://x.com/arafatkatze/status/1957850152909119955) ## Agentic search Agentic search is a very difficult unsolved problem and has historically had all different kinds of strategies. The most common ones are grep and vector search, but each has its pitfalls. It's still unclear to me what the actual answers are here. [Post on X](https://x.com/arafatkatze/status/1988524692832235899) ## Self hosting inference mini book A mini book on self-hosting inference, covering the practical details of running your own inference stack. [Post on X](https://x.com/arafatkatze/status/2084668541270397223) ## Recursive self improvement A striking example of recursive self improvement in action: an agent improving its own harness to boost its performance and cut its run cost. [Post on X](https://x.com/cline/status/2082544250148057240) ## Open source model labs This post is about how open source model labs like MiniMax are actually doing extraordinary work with smaller models, which are just as good as the larger ones. [Post on X](https://x.com/arafatkatze/status/2003367582896914686) ## Doing things and telling people Many of us are just lurking through the internet and not sharing, thinking our ideas are not worth sharing, and this post explains why sharing ideas is critical not just for yourself but for the world. [Post on X](https://x.com/arafatkatze/status/2003526045069386145) --- More about the author: https://arafatkatze.com/ai.md # Skiing > How learning to ski taught me to love the discomfort of learning anything. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2026-06-19 - Tags: philosophy, skiing, travel - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2026/06/19/skiing.html Many moons ago I was doomscrolling on youtube when I came across this video Something about this hypnotized me so much that I couldn't resist wanting to DO whatever it is that these people were doing. It took me a few years to get myself the finances to get to a point where I could actually afford to go skiing but the wait was well worth it. As I learnt the sport, during the first few days, I would fall a zillion times in my attempts to learn it. I am almost surprised I didn't break all my bones in trying to learn skiing (perhaps it's my overcautious brain that stopped me anytime I got too fast, so I erred on the side of overprotection). The learning curve/fun of skiing looks a lot like this It's incredibly difficult and challenging at start but as you get the hang of this you will get to a point where the joy of learning overpowers the fear of hurting yourself and the extra mental precaution. As you get closer and closer to skiing the joy grows on you. There's something so deeply primitive and freeing about skiing that it fundamentally changes the psych of every avid skier(Love can do that to you). I have had countless trips, close encounters with death, some life long friends, some short term friends but mostly an incredible transformation: I am almost at a point in my life where given the circumstantial nature of my goal and commitments I might not be able to ski for a couple of years(but who knows). I know deep down the love I feel for it remains strong and the heroes I found in this community will direct the course of my life no matter where I go. One of my favorite backcountry skiing trips And yes I also do snowboarding(coz why not!!) I honestly don't know if and when I get back to snowboarding/skiing, maybe it's this year maybe the next one(who really knows) but I do know the impact it had on me and how I approach and learn anything that challenges me whether its surfing, hiking or just about anything challenging. Update: I was able to go snowboarding 2 years after I wrote this and had one of the best trips of my life. In my journey as a skier and snowboarder, I've discovered a passion for outdoor sports. There are a few more activities I'm eager to learn: 1. **Ski Scooting:** This is a fun and exciting variation of skiing that I can't wait to try. 2. **Surfing:** The waves are calling, and I must go. Surfing is next on my list. 3. **Kite Surfing:** Combining the thrill of surfing with the power of the wind, kite surfing promises to be an exhilarating experience. Don't they all look really cool My favourite ski quote is from a video by Chris Benchetler, where he says: **There is a limit to how many flips and turns you can do in the air, but beauty and skill are boundless** If you ever want a decent skier to take you out on a lesson hit me up(You can see my socials in the about page). --- More about the author: https://arafatkatze.com/ai.md # Art > On graffiti, paintings, and why art might be our best defense against cynicism. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2026-06-19 - Tags: philosophy, art, travel - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2026/06/19/art.html I have always been a huge fan of art in all its forms, whether contemporary/ancient/modern or just about a random tiktoker with a beautiful outlook on life. The only thing I truly despise is the post modern stuff(Seems too glim, despondent and cynical). **Let's start with Graffiti** Graffiti has always been inspiring to me because it is a method of using art as a force of resistance; it's quite in-your-face and irreverent. When graffiti is good, it adds so much to the vibe of a city; it's almost as if the architecture has a soul that is speaking to you. I have seen a lot of great social commentary through graffiti about things that can't be said by people in person coz we usually tend to be so afraid of the societal rebuttal. My favourite Skater graffiti This one has to be my favourite one ever, I like the myriad of colors and the complete irreverence of a skater under a bridge. The skater community has a ton of really incredible people who never cared about anything but the love of Skating and the joy. The thousands of hours spent in the park to get good at this extremely challenging sport give you so much grit, wisdom and most of all the fun of living. This reminds me of one of my favourite movies of all time(Concrete circus). Check it out if you wanna see the perfect mix of art, dance, skating and urban freeride biking. ## Paintings I also really love paintings I have 100s of them on my phone but let's just share my favourite ones Both of these are from Guatemala(One of my favourite places to live) I have very many thoughts on how art is very important for a functioning society and perhaps our only battle tool against the raging cynicism that plagues contemporary culture, but in the interest of time I will keep them in my head for now. --- More about the author: https://arafatkatze.com/ai.md # The gift of an agonizing limerence > The gift of an agonizing limerence - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2026-04-26 - Tags: philosophy, skiing, travel - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2026/04/26/limerance.html I am very fond of her, a little too fond. The kind of fond where you can’t read her name without feeling a lump in your chest, the kind of fond where every time you see someone with THAT hair color, a part of you wishes it’s her so you get to see her, and part of you wishes it ain’t her, to spare yourself the agony of meeting her and then not being with her. I have been told that this is unhealthy. I have been told that limerence is a bad thing, that maniacally obsessing over someone implies you don’t have ambition, or not enough of it. If you want to be loved, find something you love. People can sense it when you have something you’re dedicated to. No one wants the burden of being the answer to your dissatisfaction. To feel too much for someone is unsettling, and love is supposed to “feel safe.” If I am actively hurting from feeling too much, maybe I need to regulate myself. Maybe I need to slice off all these edges and kinks in the feelings that explode out of me in every direction, as the mind literally just needs any excuse to replay thinking of her and how much I miss her. I hate squeezing my love to make it more palatable; I hate showing restraint. I’m in agony, the agony of missing someone, the agony of holding back my spirit. I am aware that there’s a thread of unreasonableness running through me. I am opening myself up to a horror show of misery that comes from wanting someone too much for no justifiable reason. It’s the risk of giving someone power over me, of handing someone ownership of my depths that they don’t quite deserve. All the advice out there is from therapy-adjusted people who have learned so well to curb and manage their emotions that they can hardly know the mania that actually comes with truly loving and caring for someone. I wonder if it’s a good idea to spend so much time focused on doing things the right way. Is there a space for mania? Is there a space for confession riddled with the shame of wanting someone too much? Is it really bad to yearn in a way that turns you physically sick from the agony? Do they know the sheer joy of your heart exploding at a small brush of hands? They are all so well adjusted that I wonder if they feel things as deeply, or at all. I wonder if people are so busy protecting their hearts that they’ve forgotten how to use them. What if they are all wrong? What if all the reasonable people are wrong? Do you really think a great story or a great tragedy was ever started by reasonable people doing reasonable things: communicating well, expressing boundaries, and taking it slow? Do you really think a great, soul-moving love comes from this “safety”? It’s all cope, all of it. I don’t buy it. I am a little crazy. I feel a little too much, and I can’t hold it in. I’m not gonna use that as an excuse to lash out at people, but I will not deny that there’s a storm inside of me that can’t be calmed by words. This is my life, if I don’t live and emote, the hell am I doing? What the heck am I doing playing it safe and playing it right? Why learn a lesson from my misery? Why not make the same mistake again, but differently this time? --- More about the author: https://arafatkatze.com/ai.md # To My Future Son - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2026-01-21 - Tags: philosophy - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2026/01/21/son.html I imagine myself sitting on a chair, working. You come running towards me, curve your tiny hand around my right hand, and squeal: _"Daddy, I wanna fly!"_ I hold you up by the arms, lift you up, and make you fly like one of those dad planes that parents do. It's such a mundane thing. And yet in these tiny moments of mundanity, my entire universe is contained. I spent so many days and so many nights fantasizing about all the fun games we'll play when you come here, my future son. --- When I was in my twenties, I wanted to protect my freedom and autonomy, my weekends and the time I spent with people I loved. I was trying to optimize everything down to the last hour. Now I think of you. And how horribly inefficient my life is going to be: ruled not by my autonomy, but by your whims, your desires and your peculiar interests. I am already thinking how I will teach you snowboarding. I imagine your first day of school, and how you kind of don't want to go. I keep looking at you teary eyed as you try to walk away. I imagine looking at your mother and just melting, it's almost as if God put her on earth just for us and absolutely nothing else. I don't know who she is yet. But I know she's out there. Life used to be so selfish. It still is. But when I started thinking of you, I am not the same man. I now see love for what it is, it is the greatest responsibility in the world. It doesn't happen often. It is incredibly rare. In tiny slivers, love is everywhere if you look for it. --- I spend many days and nights thinking of you, its a strange kind of loneliness filled with hope and not dismay. I know you are going to come. You're not even here yet and I you have changed me in so many ways. I can only imagine all the things you'll do when you do come. There is no rhyme or reason to this. I cannot justify this. --- Some people say I am suffering from baby fever. But I've had fevers before. I know what it's like to like something for a few months. Fevers come and go. This one hasn't gone for years. I don't think this is a fever. I always thought babies were cute. But I just never knew how much they could overwhelm you and for how long. Something inside of me changed so deeply. I feel like I'm not in a fever. I feel like I'm in a coma. I feel like I got hit by a truck and then fell into a coma. A coma of love. And this coma, I can never get out of. --- I spend many parts of my lonely days fantasizing about you running around me, being giggly and giddy without a care in the world, just wanting to be with me. You're looking at me. I'm your whole universe because that’s all you know. And I look at you, you're two years old. I have seen so many things. I have seen the world. I've traveled everywhere. And yet when I look at you and mommy in this tiny little room that I'm in, I know for sure in my heart: You are my whole universe. --- More about the author: https://arafatkatze.com/ai.md # Lessons from Traveling to 30 Countries > Lessons from traveling to 30 countries - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2026-01-05 - Tags: philosophy, skiing, travel - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2026/01/05/travelling.html I originally wanted to write [30 lessons for 30 countries](https://arafatkatze.github.io/travel/), but that felt like a stupid flex. Why does it have to be 30? These are just the handful of things I think might actually help people travel better. --- ### 1. Passport privilege is real As a Canadian, it's easier to travel to most countries. I flash my passport and walk through. But I've watched people with certain passports get pulled into inspection every single time. Having to justify their entire existence just to cross a border is stupid, but you can't do much rather than acknowledge it and plan ahead. ### 2. Financial privilege is real, but it's not the blocker you think it is Most Westerners spend way more money living in North American cities than they would traveling. If you saved 50-60% of your salary for a few months and quit your lease, you could travel for a while(I mean months). Your rent plus food for two months in SF or NYC is far far more expensive than three months in a cheaper country. Paying $600-700/month for a hostel+food is possible in many many different countries. Money is never really the blocker given the stupid shit people waste their money on, it's mostly just a matter of priorities. Now that I've acknowledged my privileges, can I please shut the fuck up and say what I actually wanted to say? ### 3. Discomfort is often proportional to the fun The more physically inconvenient and taxing the travel, the more fun it's likely going to be. You can stay in fancy resorts. But I don't think that's actually fun. You'll have way more fun in a €15-20/night hostel, meeting people who are different from you, people without a lot of money, people with a whacky personality are waaaaaay more fun. Their limitations/mental illnesses make them creative. I've gotten scabies from shitty hostels. I've had someone sleepwalk and pee on my friend. I've witnessed all kinds of loud, chaotic, barbaric incidents. Despite all of that, I still think the whackiness and craziness of hostel life makes for better stories than any resort ever could. ### 4. Travel reflects your energy back at you If you're a happy person at the hostel, you'll somehow find happy people, if you smile at people, then people will usually be receptive (even in Eastern Europe). Every now and then you'll meet a total fucking dickhead, and that's just life. ### 5. The "Fuck Yes" rule The true joy is in your whims. If you talk to someone and they seem interesting, ask them: _"What's your favorite thing about this place?"_ And just go there. Don't look it up or check reviews. Just go, even if it truly sucks it will make up for a great story. You're probably better off _not_ going to the places considered "must-sees." Most places you find from internet search results are riddled with TikTok tourists. ### 6. Cluster your countries If you tie your self-esteem to the number of countries you've traveled to, you might as well be efficient about it. If you go to one country, you can easily hit 5 nearby: - **Vietnam** → Cambodia, Thailand, Laos - **Singapore** → Malaysia, Indonesia - **New Zealand** → Australia, Fiji - **Guatemala** → Honduras, El Salvador, Belize Western Europe is the best place to abuse if you want to raise your country count. You can do Germany, Austria, and Hungary in a 4-day trip if you're broke and ambitious enough. ### 7. Don't dismiss travel romances My controversial opinion is travel romances shouldn't be taken lightly. Most people think they're stupid and silly as those flings that don't mean anything. And that might be true. But it's also possible you meet someone who changes your life. I'm not saying travel to find your romantic partner. I'm saying keep an open mind. Who knows what might happen? I have met people who met while traveling together in their 20s and they have been together for decades. I'd bet marriages between people who met traveling and chose to stay together against all odds have a much higher success rate. ### 8. You're carrying way more stuff than you need You really don't need much. Truly, you don't. You can live out of a small backpack and a suitcase. Here's my rule: if I'm traveling and I don't use something at least once in three days, it doesn't belong in my backpack. I don't care how "necessary" it seems. If I'm not using it once every three days, I don't need it. ### 9. Travel has karmic debt When you travel, inevitably things will get fucked. You'll be out in the middle of nowhere with no one looking out for you. If you can be that person for someone else, help them when their phone gets stolen, when they twist their ankle, when they're stranded, they'll remember you for the rest of their life. I've spent a lot of time helping friends through injuries, disasters, theft and heartbreaks. I don't regret any of it. A lot of you are young. A lot of you don't have money. But a little generosity and compassion will always pay back. I've been lost in the middle of nowhere and had strangers who barely spoke English drive me to where I needed to go. These moments are isolated, but they add up. Your kindness will come back to you. Don't ever worry about it. Lastly, I think there really is no justification or point of traveling. The point of traveling is to do stupid things with fun people. Some of which you end up regretting. And that's okay, you can do whatever you like. --- More about the author: https://arafatkatze.com/ai.md # Mountain of Spirits > Finding transcendence on the slopes of Mont Tremblant - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2025-12-15 - Tags: philosophy, skiing, travel - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2025/12/15/mountain-of-spirits.html I'm not a woo-woo person. I don't really believe in spirits or mysticism in general. I walked into a hostel here in Mont tremblant and it read that the ancient Algonquin tribe called this place _Manitonga Soutana,_ "The Mountain of Spirits." After living here for a couple of weeks, I'm starting to believe it. I don't know what happens up there. I don't know what it is about being in the snow, moving down a fucking hill, that makes you feel like humanity loves you. Like anything is possible. But I know it happens. And at this point, I don't even know if I want to find out why if I try too hard, who knows, I might jinx the mystery, and then it stops working. Is it actually a mountain of spirits? Am I talking to them? Is this some heroic dose of ayahuasca disguised as a ski lift? I'll never know. But I had the time of my life here. All year, my life felt like a race. And even at the ski hill the race didn't stop. I was still working hard, I remember texting my colleagues in between runs and I had to force myself to not check slack too often but something was really different . The common phrase I hear is "I pulled out of my mind into my body," a phrase used by a lot of health freaks. That was probably true, but I think I remember something else. I'm not quite sure how to describe it other than this odd sense of feeling that everything is complete and I want nothing more. This is it, it's a good life, this is the best time, I want to be here, I'm happy. But if it all ends, that's great, and if it all goes on forever, that's great too. Everything happening is fine, and the other things that could happen like for example, this chairlift falling down and me coming to my end are also perfectly fine. Maybe I didn't learn anything here. Maybe that's the point. All this rumination, trying to figure out what it _means_, what I should _take away_ it's counterproductive. When you're really in love with something, it pulls you so fucking hard you forget who you are. You stop asking what you're learning. You stop asking anything. Maybe that's the transcendence. That reversed the causality. I was trying to _become_ a certain kind of person in order to be happy. I had the order backward. Happiness could shape the person I became. When you're happy, you don't even think about it. Joy shifts your worldview. The rumination stops because there's no space for it. You're too busy _living_. So I'm done trying to earn joy. I'm just going to live it. Me, so happy I'm literally in tears --- More about the author: https://arafatkatze.com/ai.md # I Hope It Happens For You > On matchmaking, love, and the magic of bringing people together - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2025-08-10 - Tags: philosophy, relationships, love - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2025/08/10/i-hope-it-happens-for-you.html I want to fall in love again, but this time I want to do it once for the rest of my life with the right person. _"Speak now or forever hold your peace"_ kinda thing. There are very few things that fascinate me as much as the idea of people falling in love. This mystery has perplexed me for most of my 20s. I wish I had an easy answer but since I'm not selling you a course, I might as well admit I'm lost and share my confusion with you. If you asked me what made me love each person in my life, I wouldn't have a good answer. I can never chalk it up to a fixed set of traits because its not that easy. Sometimes it was the love of art, sometimes it was the love of skiing and sometimes it was just being stuck together in a horrible situation. I never saw it coming, one day I just woke up thinking this person's so fucking cool, and I have no idea how it happened but I'm glad it did. I want to find "My person", I really want to. I was looking so hard that it actually made it harder to find. I was trying too hard. I figured that if I could take myself out of it the fear, the anxiety, the rush, the yearning might make it easier. As I write this, I see how unfair it is to put so much burden on another person, the burden of all your hidden desires and yearning. But somehow the twisted machinery of your psyche and your angst can do wonders on you. I accidentally stumbled upon a post from one of my favorite authors, Ava from [BookBear Express](https://www.avabear.xyz/): [BookBear Express](https://www.avabear.xyz/) has been one of my favorite blogs for many years. The ideas from it have helped me tremendously in my relationships and how I lived and how I met people with grace and love. I also think that it taught me a lot of self-compassion and made me slightly more self-adjusted both romantically and career-wise in other ways. The purpose of this event was to find a ton of readers of [BookBear Express](https://www.avabear.xyz/) and then try to pair them with each other. Hopefully some of them get married, and I get invited to a wedding. So I just DM'd her to become a self-appointed tech support for this. To make this event more fun, our idea was to gather a lot of data from people. We asked everyone 26 questions to figure out who they were, what their preferences were, and then do a very comprehensive analysis of figuring out the kind of person they are. We gathered roughly 105 people and 80 of them showed up to the event which was incredible. We had cards built out for all of them The cards looked like this(name changed). The idea was that everyone was going to be matched with: Two people they really liked and were highly compatible with One person they were least compatible with We were now going to tell you which is which. The truth is, what people say they want and what they actually want are very different things. Matchmaking, like everything else here, is a little bit of math and a lot of magic. By keeping this element of surprise, we added that magic. I think people come to these events and see someone they like and immediately feel this anxiety: Will this person like me? Do I want to take the leap of approaching them? What if they say no? And if they do, am I an incessant botherer doomed to a lifetime of loneliness? duhhhhh… maybe I should check my phone for the 5th time. The whole point of making these cards was to make that anxiety go away. To give people a valid excuse to approach someone they liked, so the magic of introduction could finally happen. The math behind all these cards is in another blog post for nerds. This one is just about philosophy. Right before the event, a friend of mine(Mrs X) said, 'What you're doing is nothing serious; it's only my life that's in your hands.' I know she said it as a joke, but at that moment, it hit me that a few lines of code I've written could potentially decide the course of someone's lifetime. There's a deep part of me that believes that at least a few people in the matchmaking event could end up dating, and I really hope that it does happen. It will make me very happy, and more importantly, two people with a similar background who are enamored by similar ideas get to be together. What could be more beautiful than this? At the same time, it hit me that so many people in this discourse of matchmaking have perverse incentives. Every single day, yet another dating app just wants you to pay more to keep coming back. They have very little interest in you actually getting married. I made a vow to get nothing out of it, that's the only way this could ever really work. I want to do it right. A few magical things that happened: - Mrs X met Mr H(another guy we know) matched with each other. I knew both of them and they know each other. The sheer surprise of this boggles my brain. We live in a small world. - A guy got there late, so he couldn't pick his card in time. Later, when I showed him matches with the card of his name, one match was actually his friend and she was hanging out with him the whole time. - The whole system ran on algorithms and weighted matching—a blend of hard filters, compatibility scores, and a bit of LLM magic to parse personalities. If you're curious about how we actually built the matching system (or want to geek out on the math), I wrote a technical deep-dive [here](https://arafatkatze.github.io/projects/mathmaking/). I really hope that everyone had a good time. Overall the intent of this event was to get the room "popping" just get people to talk to each feel their "vibes" and then people get each other's numbers and hopefully they talk and feel some spark. You can't really have a heart to heart conversation in a long event like this, there's too many people around you, there's so much pressure, there's so much yearning and pent up trauma when the intent is so clear. How much of you should you expose to this stranger? How much is too much and how much is too little? Am I too proud by holding back or too desperate by showing all my cards? We encourage people to spend 10-15 minutes "feeling it out". Just have a conversation, say a hello to your "match" person: say what you like, what excites you. You both read this blog on love and relationships, its not the most eccentric niche in the world but it is like a twisted 4d space where the more you try to go in the further you go out. Where you are in this 4d space doesn't matter as much as your intention of where you want to go. Perhaps the person you matched with also wants to go "there" and hopefully with you. But let's not get ahead of ourselves, let's be nimble, why don't you just exchange numbers/insta/snap(uggh genZ)? You are both nice to each other(you kinda have to be) some of your friends are here(And Ava who you love very much). You go home, and get something to eat, your mind comes out of this strange social "rush" feeling, you want it to quiet down. Maybe then you "look each other up", maybe you like what you see, maybe you want to know more and maybe just maybe, you like them enough that you want more of this person. I hope it happens for you, I really do. --- More about the author: https://arafatkatze.com/ai.md # Messages to 24 People I Know > Anonymous letters to people who shaped my life - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2025-03-05 - Tags: philosophy, relationships, personal - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2025/03/05/messages-to-24-people.html These are messages to people I've known, loved, disappointed, or been shaped by. Names are omitted intentionally, because perhaps you've known these people too. > ✨ **There's an interactive version of this.** Read these as [Stories from my night sky](https://arafatkatze.com/nightsky/): every message becomes a real star, one of twenty-four. Hover a star to glimpse its message; click to read the whole thing. 1. You are a good dude and I see so much potential in you, please prove me right by doing something really cool and awesome with your life. 2. You changed my life upside down for the better but my own shame got in between us, I am so sorry for disappointing you in all the ways that I did and hopefully someday you will be able to forgive me. 3. I don't think you believe a word of what you are saying even when you claim to be a believer. You are more interested in making people feel that you believe in something rather than actually believing in something yourself which is sad because if you were just honest people would like you a lot. 4. I have never loved someone more and been disappointed by them more than I was by you. I still wish you well and I hope you find your bliss after all these years. 5. Your love has shown me that just about anything is possible, I wish you loved yourself just as much as you loved me. 6. Depending on the day and the time I think of you, I oscillate between calling you a monster or perhaps a troubled soul. No matter how many years pass, I suppose I will never know. 7. You made it so so hard to love you but I still kept choosing you until one day it became clear that you wanted me to stop and I did. 8. You have a long way to go my man, keep moving and exploring. 9. You're the smartest unfinished person I know, don't let potential be written on your tombstone. 10. If you knew how many nights I have laid in bed thinking of you, you would see me very differently. Let's be friends again(not that we aren't friends, but I mean like really be friends like we used to be). 11. The amount of love in your heart is so big that flows out of you into the people you meet, there's a calmness in your presence that kept me grounded. 12. I knew you had to do what you had to do, I get it, but it was still really cruel. Fuck you! 13. I know we were just colleagues but you are so much more than that to me, I am really really gonna miss you, nerd, you are my favourite nerd in the world. Your strange voice is something I won't forget. 14. I don't know how different life would have been if I hadn't met you. Unbeknownst to you, I try to be extra nice to strangers in distress in hopes that somehow the grace you showed me can be paid back in an odd sort of universal karmic calculus. 15. You are a funny dude but also a kind of a psychopath from time to time. But then again, youth can justify a lot of things. 16. Was it you? really just tell me the truth, if it was you or was it somebody else? 17. I see so much light in you but I don't know why that is, I hope you make the best of your 20s. 18. Your life can literally be a movie and it would still be underwhelming. You made me want to be a better person, I wish we were friends in real life and not just online talking every few weeks. 19. I can't believe how your real life and professional life are so different. And as much as I like to troll whenever I am around you, I really respect and look up to you. 20. I really like you a lot you know, I know I am not allowed to say it because we have a mutual pact of playful rivalry but you are so pretty and funny and I wish to see you more. 21. You are the reason I like sophisticated English people. 22. What the fuck bro, you were so so cool? What happened? Can't believe you became like the rest of them. 23. You have such a deep moral compass, I really admire that about you. I wish I had matured as fast as you did but knowing you, I know it's not too late, I can still do it. 24. You taught me how to be a good man, I will never be able to repay you for that but I will try to be a good person and hope that works out. --- More about the author: https://arafatkatze.com/ai.md # With or Without You > Finding your tribe by seeking those who do weird shit with or without you - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2025-01-10 - Tags: philosophy, relationships, life - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2025/01/10/with-or-without-you.html [Post on X](https://x.com/bluewmist/status/2006044097845350754) People always find it strange that I'm at the intersection of many different circles. A question I often get, "How do you enter this circle of people who do something completely antithetical to how you've lived so far?" Or more bluntly "How do you end up with people who do this shit?" My answer to finding the people to do weird shit with is always: **Find the people who do weird shit with or without you.** I personally think this is the greatest recruiting and selection technique for just about anything. There are two mental models for searching friends, partners, lovers this way: - Try to get the people you know to do the things that you actually like doing. This might be climbing, reading, art, philosophy, coding that kind of stuff. - Or find the people who already do those things with or without you and drop expectations about how they should be. Sketch a Venn diagram of your circles X, Y, and Z and notice where they overlap. So for my case: One circle is the dirtbag travelers who spend every spare dollar getting to the middle of nowhere. The second circle is a circle of skiers and snowboarders. The third circle is the people who spend 14 hours a day grinding to optimize AI models. Maybe there's a fourth circle for gym bros, and a fifth for philosophy/art nerds who obsess about why brutalist architecture is a crime against humanity. I don't necessarily think that any of those circles, taken alone, are unique. Being in two or maybe three of those groups simultaneously is very plausible. But being present in all of them together is very unlikely. Quite often, people in one of these circles are gonna think the people in the other circles are fucking insane. And they're probably totally okay with thinking that way. Most of my friends think everyone else's circle is pretty weird. Any individual slice of your friend group probably wouldn't vibe with another. Therefore, you have to be a person who is: A) Individually willing to do all those things, and B) Ready to do it with people who will do it with or without you. Does this mean you can't entice people to do new stuff? No, that's definitely not what I'm saying. I'm sure you can get people interested in things you love(I've gotten many people to try AI in different ways and skiing). But to me? You want to find people who just _do_ weird shit with or without you and ideally before you even asked them. Respect people's autonomy, respect their desire, because trying to "rah-rah" people past a certain age(say 29) is much harder and I like to think that if you haven't figured out a genuine love for something are you only doing it to make someone happy or do you actually love it? One of my best life habits has just been being able to hang out with people who are nothing like me. For me, if I am really into something I'll even step away from my usual friend group without neglecting them if that's what it takes. If that means moving to a new city, I'm open. Even if I have to do it alone, as long as I'm with people who would do it anyway, I'm good. **With or without you** is also a hiring metric, a relationship filter, a friendship test, a way to find collaborators. It takes away the friction of needing to be nice, to charm, to entice as it self-selects! You really can find community anywhere, It may not be how you would have imagined it to be but you can find it. Of course, this isn't always possible. Sometimes the people you want to join just aren't interested in doing it with you. And that's totally fine, you either learn to look harder or learn to love your own company as life goes on. --- More about the author: https://arafatkatze.com/ai.md # The Bike Trip that Never Was > Choosing between a cross-continental bike trip and building AGI - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2024-12-20 - Tags: philosophy, ai, career, travel - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2024/12/20/bike-trip-that-never-was.html People always say you're the average of the five people you spend your time with. That assumes those five people are remotely similar. It becomes a problem when they're mutually exclusive in every sense of the word. I have two types of friends. The first type makes $300k a year and say things like "I'm comfortable" this is a rich people code for "I'm rich, fuck you." The second type sleeps in hostels that sometimes have bed bugs and believe that showering is optional. Somehow I'm both of them. Somehow I'm neither. I was working at a decent remote gig this past year. Got to travel to something like eight(or maybe 10) different countries, got to build some of the coolest AI stuff, until the coolness factor kind of ran away. Knowing that people who work there will read this, it's kind of disappointing because in many ways I really loved the gig and I'm very thankful for it. In other ways, something didn't feel right (that's a nice way to put it). The thing about life is your heart always knows the truth before your mind. Your consciousness can't necessarily verbalize the depth of your emotion, but your heart and your body embody the direction of your spirit. I started waking up at 3am, anxious about nothing while everything else was supposedly going perfectly. My body was trying to quit while my mind was still trying to update my LinkedIn. I knew something was off. Couldn't quite put a finger on it. I probably didn't enjoy things as much anymore. That itch, the genuine desire it kind of faded away. For many reasons, right? It's always easy to blame one thing(or a person). So maybe it was being around people who weren't right for me, or maybe my heart just wasn't in it anymore. So I quit. Figured I had enough savings to travel for a couple years without working. The plan was to do something wild like bike from the UK to Turkey, or maybe Argentina to Alaska. My old landlord had done the South America route and it sounded perfect. Young enough, restless enough, why not? I have done multi day hikes in western Canada and never regretted them. Then some recruiter messaged me on LinkedIn. Now, knowing recruiters, I thought they were all sleazy idiots who had to portray every startup as the next billion dollar thing, regardless of how stupid or fraudulent it was. But this guy seemed nice enough, and the product was in the AI space where my expertise was. I figured, what's the worst that could happen? I don't need a job. I'll just try the product. I tried it for five minutes and felt something I hadn't felt since I was 18 writing my first for-loop was pure fucking delight. Like watching magic happen. Within minutes I was like, "I don't even care about the job, I'll do this for free". And that's when I realized I was caught. My twenties are ending. There are certain things you can only do once that cross-continental bike trip being one of them. I've traveled to 30 countries but my stomach and soul still have this endless desire to explore more. Like something's missing and I need to see more of the world to fill it. AGI is coming. For my non-tech friends, I mean a computer like Samantha from "Her" that can do anything a human can do, only faster and smarter. Within the next one or two years, the world as we know it will fundamentally change. You'll say things and magic will come to life. Every time I tell my hippie friends this, they roll their eyes like I'm fucking insane. And every single day, this vision gets closer to reality(While I am not waiting for an "I told you so moment", I do know that it will come). So here I am, 29 years old, choosing between two things that will only happen once: being young and free on a bike crossing continents, or watching AGI transform everything from the front row. The AGI pulled me harder. It pulled me so fucking hard I couldn't think of doing anything else. Which brings me to the absurd part: I'm actively working to make my own career obsolete. I am working at [cline.bot](http://cline.bot) and this AI coding agent I'm building? If it works and it will the world of software as we know it will cease to exist. Or become so different it'll never feel the same again. I am ending my biking trip to end my career. And it seems like every line of code I write is a eulogy. Every feature I ship brings us closer to not needing me anymore. It's a personal crusade to basically make myself irrelevant. My hippie friends think I'm insane for caring about AGI. My tech friends think I'm insane for wanting to bike across continents instead of building the future. And I think they're both right. --- More about the author: https://arafatkatze.com/ai.md # Faith is All You Need > Why belief in your work transforms everything - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2024-12-15 - Tags: philosophy, work, motivation - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2024/12/15/faith-is-all-you-need.html A famous line, echoing Stoic thought, says "The mind can make a heaven of hell and a hell of heaven". Underneath that phrase is the idea that it's not really about the external situation you're in, but the internal experience of your consciousness that really counts. Back in university, I struggled to keep up and couldn't seem to perform the mental gymnastics required to become a good student. I even blamed myself until a professor straight up told me, "Your grades reflect your belief in the system." At first I thought this was supposed to motivate me, but after a few days I realized he was right, I simply didn't believe in the system, and that pattern kept repeating itself in my life: like, later at my dream job, I'd work weekends, grind late into Friday nights, and it felt joyful and fine for a while until one day I woke up and something inside me died, and no matter how much I tried to blame external factors like sleep or health, deep down I knew I'd lost faith. My natural instinct is to blame myself and "try to make it work" but I don't think that's always right, if there's something deep knawing at you constantly why fight yourself every step of the way, why not just accept the wisdom of my emotions to accept that I used to love this but this is not for me any more(a graceful breakup maybe?). When I moved on to my next gig, though, that faith was back, and I worked harder than ever. (It was easier to work harder but harder to work less). It still felt effortless. It seems like the Stoics (or perhaps Milton) had it right: the mind really does shape your reality, or perhaps it's not the mind but your faith (and more precisely, the degree of faith you have in your work). Next time I find a job, faith is literally the only thing I'm optimizing for. I've made enough money, I don't care anymore. If I force myself to work on something I don't believe in, then that's a total waste of my time. Faith single handedly transforms your internal experience. That's why people willingly go barefoot on epic religious pilgrimages but take the car to a grocery store two blocks away. You can't trick yourself into believing, so the real move is finding something worth believing in something that genuinely pulls you instead of something you have to keep dragging yourself toward. Because that subtle shift in motivation is literally everything. --- More about the author: https://arafatkatze.com/ai.md # On Looking Inwards - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Essay - Date: 2024-05-06 - Tags: philosophy - Category: philosophy - Canonical page: https://arafatkatze.com/philosophy/2024/05/06/inwards.html I think that there's so much inside of us, in our soul, in our bodies, that needs to be heard, that cannot be heard, because we distract ourselves from external sources. And I think it's possible that we're generally afraid of what it is that is inside of us, so much so that we drown ourselves with our phones. Who knows if there is a castle full of mysteries and easter eggs only if you bother looking. And I wasn't happy with the amount of phone uses that I was doing, or having conversations that were not necessarily the most fulfilling or joyful. And I started to introspect and ask myself this question that, should I keep doing this, or should I turn around? I figured one way to test myself and to test my faith to introspection was to give up any external stimulation, except journaling and coding. I did that being heading out to a rural bulgarian village in the middle of nowhere with serene mountains to look at and not much else. I think this experiment entailed a few things: I wasn’t allowed to use my phone till 8 PM except maybe 1-3 times to respond to messages from friends/family who wanted to be certain that I wasn’t kidnapped. I didn’t really have anyone to talk to besides my landlady Tsvetina who is an awesome person and really fun but ideally I aimed at just looking inwards to find out some deeper truths about my being. I also didn’t really want to be memetically influenced by the life that I came from, so over time I curbed the usage of Reddit and Instagram to less than 20 minutes. I did that by using an app on my browser, and it worked surprisingly well. I replaced all the extra time I had with work and with staring at the mountains and lying down, watching the sky while the warm sunlight hit my face. Somehow, this was cathartic and far more satisfying than doomscrolling Instagram. One of the main things I learned is that now I could sleep well and was very relaxed physically and emotionally. I could sleep for 8 hours straight for multiple days without using any sleep supplement and I think that was just such a surprising revelation. To be able to sleep so peacefully for so many nights back to back was just unreal. I had many years of insomnia and that was cured. I felt very relaxed from that one. I realized I didn't need my phone and I didn't need external information from other sources to entertain myself. I felt like I wasn't exactly gaining any knowledge from external sources that I used to frequent most of it was just an escape from my inner voice waiting to be heard. And Just like that, I think I ended my many years of Insomnia. --- More about the author: https://arafatkatze.com/ai.md # Scroll-Inside Effect > A cross-device homage to the html review 04 "scroll to fly through" 3D tunnel — rebuilt to run on phones too. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/html-review-replica/ A self-contained rebuild of the 3D "scroll to get inside" tunnel effect from [the html review issue 04](https://thehtml.review/04/) (original design and code by shelby wilson). The original gates the effect to desktop; this version runs the fly-through on phones too — a `requestAnimationFrame` easing loop keeps motion smooth during mobile momentum scrolling, `dvh` units handle the dynamic address bar, and off-screen panels are culled so it stays within mobile memory limits. Open the live demo: [/html-review-replica/](/html-review-replica/) --- More about the author: https://arafatkatze.com/ai.md # My room, scanned > iPhone LiDAR → interactive photoreal 3D room, LiteReality-style - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: fun - Canonical page: https://arafatkatze.com/room/ I scanned my bedroom with an iPhone LiDAR scanner and rebuilt it three ways, following the [LiteReality](https://litereality.github.io/) pipeline: a photoreal fused mesh, a graphics-ready dollhouse with the real photos projected onto its walls and floor, and the raw colored point cloud — all in an interactive viewer with a fly-through of the actual scan trajectory. [Explore the room →](/room/) --- More about the author: https://arafatkatze.com/ai.md # The Reading Map > An interactive galaxy of 10,000+ reading highlights, placed by meaning (sentence embeddings → UMAP) and clustered into themes like love, money, fear, and writing. Hover a point to read the quote and where it's from; zoom, pan, and isolate a theme. Fast, self-contained, and mobile-friendly — with a banner back to the full quotes list and flashcards. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/reading-highlights/ A fast, self-contained embedding map of years of reading highlights. Every highlight is embedded (MiniLM sentence embeddings), projected to 2-D with UMAP, and clustered into themes (love, money, fear & anxiety, writing, the mind, relationships, …). The whole layout ships as a tiny pre-gzipped file so it loads almost instantly, then renders on a plain Canvas — hover (or tap) any point to read the quote and the book it came from, zoom and pan the galaxy, or click a theme to isolate it. A banner links back to [the full, searchable quotes list and flashcards](/reading-quotes/). Open the live map: [/reading-highlights/](/reading-highlights/) --- More about the author: https://arafatkatze.com/ai.md # Open-sourcing my health > Eight years of my own health data, from genome to blood tests to sleep, drawn as three interactive pages, with a short film and the data behind each one. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/open-health/ Three interactive pages drawn from my own health data: a genome portrait, a timeline of blood tests and daily activity since 2018, and a blanket knitted from 834 nights of sleep. The data behind each page is published as JSON. [See the pages and the film →](/open-health/) --- More about the author: https://arafatkatze.com/ai.md # Stories from my night sky > a small constellation of the people who shaped me — hover any star, read their story. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/nightsky/ This is an interactive page; open it in a browser: https://arafatkatze.com/nightsky/ --- More about the author: https://arafatkatze.com/ai.md # Navigation queues | Navigation cues > A scroll-driven web essay about scrollbars, infinite scroll, and the fear of getting lost — replica for future customization. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/navigation-cues/ This is an interactive page; open it in a browser: https://arafatkatze.com/navigation-cues/ --- More about the author: https://arafatkatze.com/ai.md # Mathematics of Love - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/projects/mathmaking/ Love is a divine endeavor and perhaps some would say the same thing about mathematics, maybe they're right. In this post I want to reflect on the mathematics behind the in-person matchmaking experience from [Book Bear Express](https://www.avabear.xyz/), organized by Ava. To explore the emotional and philosophical reasons behind this experiment, [read another post here](https://arafatkatze.com/philosophy/2025/08/10/i-hope-it-happens-for-you.html). [BookBear Express](https://www.avabear.xyz/) has been one of my favorite blogs for many years. I have read Ava's work for four years and the ideas there have helped me tremendously in how I meet people with grace and love. Ava wanted to organize a matchmaking event where you find the readers of [BookBear Express](https://www.avabear.xyz/) and then try to pair them with each other. Hopefully some of them get married, and I get invited to a wedding. To make this event more fun, our idea was to gather a lot of data from people. We asked everyone 26 questions to figure out who they were, what their preferences were, and then do a very comprehensive analysis of figuring out the kind of person they are, what kind of books/blogs they read and generally try to model their personality in the least number of questions. Based on the results we invite a lot of people to the event and then give them a pair wise matching between each other. In the event, we had mainly people looking for romantic relationships and then a few people were looking for platonic relationships. Let's analyze some data to figure out how that works. Lets start with some simple facts like gender distribution This was a complete surprise for me. Knowing that the Bay Area is HEAVILY Male dominated, having such a high volume of women was very surprising for me, although I suppose this may have something to do with the fact that people here are readers of BookBear Express. Overall, this was very delightful because we were able to pair more people in a graceful way and made people feel welcome. This part wasn't exactly a surprise because it would make sense that most people in a matchmaking event are looking for a romantic partner. It's just how it works. This was somewhat surprising given the Bay Area's typically diverse representation of sexual orientations. However, our data was limited by technical constraints. We had to restrict the form to single-choice selections because Typeform's multi-selection export format makes data analysis extremely difficult(Ava wanted to offer multiple selections but I had to force things this way as typeform parsing gets totally messed up). This unfortunately skewed our results. I later learned many bisexual attendees selected single options rather than accurately representing their orientation. I sincerely apologize for this limitation, it's clearly an area I need to improve. I appreciate the feedback and we are committed to finding better solutions for future events. The age distribution was slightly skewed in some ways but not as much as I would have hoped. Overall I am actually happy with this. We evaluate people on different kinds of preferences that they have. This is how that looks roughly(There’s many other preferences that are hidden on purpose here). The most surprising part of this was the children's preference, so many people actually wanted to have children. I was hoping that this will probably be lower given that this is the bay area. The least surprising part of this is the religious affiliation. There are only roughly 30% of people who are actively religious. The Algorithms How did we do it? The first part of the algorithm was just like having a hard filtration of different kinds of people based on their hard criteria. You have to take care that gender, children, and religious filters and other non-negotiable filters are handled carefully. It looks something like this. The second part of the algorithm was the weighted matching. So you wanted to be able to take different parameters, apply different features on them, and then get an aggregate of them. This would also involve calling LLM and figuring out more information about a person through the links they had mentioned about themselves, through their preferences of books and stuff, and other information. So that would give us a more comprehensive idea of their preferences around different dimensions. And then at the end, if the net score was above a certain threshold, we would just consider those two people matched. This was the whole algorithm. The consequences of the algorithm This algorithm led to everyone getting a matching score, which would define how close of a match two people are. If they're not much of a match, then we just let them not be a match. This score is for people who have already passed the hard filters. Total → 730 Pairs of Matches In terms of algorithmic complexity, this was fine so far. If we look at the score distribution of the people who matched, it turns out, given the algorithm, most people who matched were only 60-65% compatible. On a philosophical level, what this means is that, it was basically impossible to find your near perfect opposite pair. I think that what this broadly means is that, don't assume you know what you're looking for. Who knows what magical thing, you might find in another person as long as you're matching on most things. ### The Final Match Making The craziest part of the whole endeavor was that while it is true that there were 700+ pairs of matches between people, we couldn't overwhelm people with all of their matches. The idea was to give every one three matches: Two people were their best matches One person was their match that was the least compatible We were not going to tell them which was which, There were many people who had multiple matches. Some had up to 8, 6, or 7 matches, but we couldn't overwhelm them with all their matches, so we had to restrict the number of matches people had because we didn't want to overwhelm them with the choice of having to talk to too many people. ## Formal Mathematics to find best pairs of matches This was the hardest part of matching people. The algorithm would often lead to some people with three matches, but often a lot of people with just two matches and then some people with one match. This led to a few issues that had to be manually fixed for every person. Because every person is special and I think I spent a lot of time on making sure that everyone got three matches. In the future, we want to do a situation where we give people more matches so that they have more people that they could pair with. In the end we had 60 people with 3 matches, 27 with 2 matches and the rest with 1 match. I'm strongly considering putting a $500 bounty on this matchmaking problem. I have no hopes that someone would solve an NP-hard problem on $500, but I do think that people can come up with a better solution than I did if I incentivize them with some money. I still have all the code for this, and the code is very modular, so this problem can be extended, improved, and iterated upon. My current solution led to a lot of manual scrambling and just actually talking to people and trying to set them up. Overall, I think that with some math, data analysis, and due diligence, I think that we were able to pair a lot of people together and handle the logistical aspect of things. I have many other feelings. I have many thoughts about this event, about the philosophy behind this, but I will keep that in a separate post. --- More about the author: https://arafatkatze.com/ai.md # If we could just > An interactive boil-text experience. It opens with the "you didn't know that" confessions, then asks if we could just — pick a path (be lovers, be friends, stop talking) and watch it unravel phrase by phrase behind accreting frames, ending in a screen that keeps splitting into "love you". - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/you-didnt-know-that/ This is an interactive page; open it in a browser: https://arafatkatze.com/you-didnt-know-that/ --- More about the author: https://arafatkatze.com/ai.md # Scroll-to-Fly Effect > An homage to fab2.com's flying camera — scroll and the page lifts off, twists, glides, and dives to the next stop. Rebuilt from scratch, phones included; content is placeholder for now. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/fab2-replica/ A self-contained rebuild of the "scroll to fly" camera from [fab2.com](https://fab2.com/) (original design by the fab2 team). Nothing on the page ever moves — the sections are pinned to one big flat "wafer" at fixed positions and rotations, and a camera of four numbers (x, y, view width, roll) is the only thing animating. Scrolling scrubs the camera along a path whose every leg is walked in phases: **lift** out until both stops fit, **twist** to the next stop's bearing, **glide** across the surface, **dive** back in. That's why it never feels like a circle — each move flies off in its own direction. This version also runs on phones: swipe to fly, pinch to zoom out to the whole wafer, tap a stop to fly there. The words on it are placeholder copy, meant to be swapped for real content later. Open the live demo: [/fab2-replica/](/fab2-replica/) --- More about the author: https://arafatkatze.com/ai.md # White Shirt Project - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/projects/communalArt/ I always admired art as a lurker, but the act of creation didn't seem like "my thing". I was horrible at painting while growing up and it seemed like a chore and a waste of time. I begrudgingly did it a few times but it never appealed to me. Somewhere in my early twenties, a small mix of sophistication, along with just a general sense of taste, got me into art. The first time I went to Europe, I remember walking for hours listening to music, looking around the city, and just being happy. Everything felt so much more colorful and precise and just how it should be. You felt a genuine delight when you looked at architecture and nature. I then started to go to museums and I started looking at paintings and I think intentionally or unintentionally, strong feelings of judgment started to come in. Some pieces were really pretty, and then other things were just bland and ugly and repulsive (Cough Modern Cough). For me, the first dimension of art is looking at something that inspires a visceral feeling inside of me. The second dimension is the story of what made it what it is (Think of Van Gogh losing his fucking mind in a mental asylum to make one of the greatest works of art). --- I liked consuming but I wanted more, so the only way to be a genuine admirer of beauty is to partake in the act of creation. So I took out this white shirt and planned a special date night with M. I really liked her, so the long-term goal was to finish the shirt and gift it to her. Sadly that couldn't work out as we stopped dating eventually(our hearts were elsewhere). So now I have this shirt that's a memory of someone that I really cared about at one point in time (and still do) and there's not much I can do with it. Dostoevsky said "hell is the suffering of being unable to love" and it's one of those things that sounds like a twisty philosopher one-liner to make misery sound fancy to craft a sad boy aesthetic, but I get it, I do get it. I was mopey but I wouldn't want to be too mopey. Maybe I could turn this around. So when life gives you a pretty half-painted T-shirt, what do you do? You either work on a relationship eulogy or you just find other cool people and start painting on it with them. So I kept painting this T-shirt and made it full of many easter eggs and people I know. I would just hang with people and ask them to paint it with me. --- ## The Artists Currently this painting has **6 painters**: 1. ME 2. Lady M (duhh) 3. A thoughtful friend from the commons 4. A founder who wanted to hire me lol 5. Tech bro who just wanted to tech bro on my shirt 6. A friend from Guatemala/SF We made this shirt and it has many easter eggs like: 1. Coffee addiction 2. My friend painted as a panda 3. Work projects 4. Russian Cyrillic + Urdu words 5. Flags of multiple countries 6. Birthday wishes for friends I don't know what's going to come of this shirt in the future. I think it's an interesting shirt but I don't think it's pretty (not even close), but it's still cool. If you would like to leave a mark on this work of communal art, just DM me and if we meet each other we will spend some time painting on this together. I want this to be a compendium of memories, some good and some BAAAD but that's kinda what life's all about. **Cheers!!** --- This project grew: ![image](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1768106230/2026-01-02_09-29-08_347_2_dmmlfc.png) ![image](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1768106232/2026-01-02_09-30-48_642_2_rrey1r.png) ![image](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1768106227/2025-12-30_09-09-11_765_2_vn9drv.png) ![image](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1770797412/2026-01-19_19-50-16_763_mgvxvq.png) --- I also learned that you can draw cute if you really really tried ![image](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1770797231/2026-02-10_21-37-17_079_jsgss7.png) ![image](https://res.cloudinary.com/dozxd4znm/image/upload/q_auto,f_auto/v1770797226/2026-01-01_18-20-24_194_xtqb79.png) Beauty is what makes life worth living! --- More about the author: https://arafatkatze.com/ai.md # arOS > my whole website, reimagined as a tiny desktop operating system. drag the windows around. - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/desktop/ This is an interactive page; open it in a browser: https://arafatkatze.com/desktop/ --- More about the author: https://arafatkatze.com/ai.md # Cline's Analog Art > On loneliness, soulfulness, and making beautiful things with your hands while building the future - Author: Ara Khan (Arafat Khan, @arafatkatze) - Type: Project - Category: art - Canonical page: https://arafatkatze.com/projects/ClineAnalogArt/ Some days, I lay in bed at night and feel this odd tinge of loneliness and I ask myself why did I do all of this? Why am I doing this and who am I doing this for? I do love working in AI. It's one of the most joyful endeavors I have ever pursued and I have given up many of my comforts, my home country, my undying love for traveling and snowboarding. But sometimes I deeply relate to this guy, who left his AI safety job at Anthropic to work on poetry and I can see how pursuing poetry can be a deeply soulful decision. For me, I don't want to leave AI just because of a few bad moments, but I do think that the answer to my angst is somewhere else. I like to think that the missing puzzle piece of doing great work in AI is to both be relentless in effort and execution and even more importantly not lose our humanity as everything we know about intelligence and humanity is going to change very fast. I wrestle with this question a lot and while I don't have a great answer here, I like to believe that observing beauty and making beautiful things in the analog world will bring our souls back. I like to make things with my own hands and feel the textures of a physical creation on my skin. When I stop looking at the screen for a blissful minute, beauty still abounds. I remember painting a shirt for the first time and it felt so jarring as it wasn't like code where you could race through it and ask Opus 4.6 to fix your mistakes. It felt so consequential and real. I am sharing some of my artwork partly because I like validation and fake social media points and partly because I want to encourage other people to make art in their own ways and fall in love with the process of making things. Here's some of the analog art that's come out of [@cline](https://x.com/clooi): some from me, most from others: These next ones were drawn by a the kid of one of our teammates. He reimagined the Cline mascot as different characters, and they're some of my favorites: I really enjoyed doing this. I loved gossiping with friends for hours while using "creating artwork time" as an excuse. I gave away most of the art here anyway. I just wanted people to have something cool to wear and show around. How often do you get to wear a shirt you painted yourself? Its also just a deep joy to feel so soulfully connected with the physical world. I think soulfulness is deeply lacking in the AI space and we must do what we can to stay in touch with our humanity as we spend more time building in this space. I truly believe the world will be a better place if poets, philosophers and artists get into the AI space and if working at some company doesn't feel right its perfectly okay to leave as well. I want to stay "locked in". I don't regret all the things that I have given up to pursue the most amazing rush of my life but I want to do it the right soulful way. --- More about the author: https://arafatkatze.com/ai.md