<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: megadragon9</title><link>https://news.ycombinator.com/user?id=megadragon9</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 14 Aug 2026 08:18:55 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=megadragon9" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Show HN: Auto-train the harness, not the LLM. cross-model, cross-benchmark gains]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/workofart/harness-training">https://github.com/workofart/harness-training</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=49293267">https://news.ycombinator.com/item?id=49293267</a></p>
<p>Points: 4</p>
<p># Comments: 0</p>
]]></description><pubDate>Fri, 14 Aug 2026 00:05:34 +0000</pubDate><link>https://github.com/workofart/harness-training</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=49293267</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49293267</guid></item><item><title><![CDATA[New comment by megadragon9 in "Harness engineering for self-improvement"]]></title><description><![CDATA[
<p>I did something similar. It started off as a "self-improving agent" project, inspired by autoresearch, then later on I reframed it as "harness training" (discrete program search) borrowing the mental model from ML training.<p>I "trained" the harness on a subset of Terminal-Bench 2.0 tasks while keeping the LLM (local Qwen3.6-35B A3B) frozen. Making LLM inference and the task environments fully deterministic was necessary for clean credit assignment. I learned this the hard way after spending the initial 1 month on experiment noise.<p>My final results showed that on the full 89-task Terminal-Bench 2.0 suite, the trained harness matched or beat the official Terminus 2 harness for four LLMs that it never collaborated with during training (e.g. GPT-OSS-120B score increased from 18.7% to 36%, while using 55% fewer input tokens per solve). A harness trained only on SWE-bench improved Terminal-Bench scores too. Here's the write-up: <a href="https://www.henrypan.com/blog/2026-07-18-harness-training/" rel="nofollow">https://www.henrypan.com/blog/2026-07-18-harness-training/</a><p>I packaged the training loop as a PyTorch-style framework. <a href="https://github.com/workofart/harness-training" rel="nofollow">https://github.com/workofart/harness-training</a></p>
]]></description><pubDate>Wed, 05 Aug 2026 00:23:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=49177077</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=49177077</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49177077</guid></item><item><title><![CDATA[Freeze the model, train the harness: gains transfer across LLMs and benchmarks]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.henrypan.com/blog/2026-07-18-harness-training/">https://www.henrypan.com/blog/2026-07-18-harness-training/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=49130109">https://news.ycombinator.com/item?id=49130109</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Sat, 01 Aug 2026 00:52:55 +0000</pubDate><link>https://www.henrypan.com/blog/2026-07-18-harness-training/</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=49130109</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49130109</guid></item><item><title><![CDATA[Training Agent Harness Like Training a ML Model]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.henrypan.com/blog/2026-07-18-harness-training/">https://www.henrypan.com/blog/2026-07-18-harness-training/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=49014399">https://news.ycombinator.com/item?id=49014399</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 22 Jul 2026 22:34:15 +0000</pubDate><link>https://www.henrypan.com/blog/2026-07-18-harness-training/</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=49014399</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49014399</guid></item><item><title><![CDATA[Show HN: Freeze the Model, Train the Harness]]></title><description><![CDATA[
<p>The core idea is to keep the LLM frozen and train everything around it (e.g. prompts, context management, tools, repair loop). The harness is one editable Python file. In each epoch, an agent proposes one diff, the diff is measured against baseline on a task panel, and a strict Pareto criterion decides whether the commit gets promoted. optimizer.step() is literally a git fast-forward or stored as git ref if the commit was not promoted.<p>Evaluation results show transfer learning (e.g. harness trained on SWE-Bench tasks solving Terminal Bench tasks) and general capability improvements across multiple model families using the same trained harness that even improved over the official Terminus Harness on Terminal Bench 2.0 [1].<p>Since this was a general problem, I took the chance to create a general PyTorch-like training framework [2]. Right now, you can train with any OpenAI-compatible API for interfacing with the task LLM and train against Terminal-Bench or SWE-Bench tasks, but you can easily extend it to support any task environments.<p>[1]: <a href="https://www.henrypan.com/blog/2026-07-18-harness-training/#evaluation-results" rel="nofollow">https://www.henrypan.com/blog/2026-07-18-harness-training/#e...</a><p>[2]: <a href="https://www.henrypan.com/blog/2026-07-18-harness-training/#general-framework" rel="nofollow">https://www.henrypan.com/blog/2026-07-18-harness-training/#g...</a></p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48994752">https://news.ycombinator.com/item?id=48994752</a></p>
<p>Points: 4</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 21 Jul 2026 16:41:32 +0000</pubDate><link>https://github.com/workofart/harness-training</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48994752</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48994752</guid></item><item><title><![CDATA[New comment by megadragon9 in "Ask HN: What Are You Working On? (July 2026)"]]></title><description><![CDATA[
<p>I worked on this project (<a href="https://github.com/workofart/harness-training" rel="nofollow">https://github.com/workofart/harness-training</a>) for the past few months to reframe "Agent-driven Self-improving Harness" to "Harness Training".<p>The idea is simple, the harness is trained once with a frozen task LLM against a given task environment. Then you can then swap out the task LLM to any model and evaluate the "frozen trained harness" with any task LLM on any new task environment.<p>Since this was a general problem, I took the chance to create a general PyTorch-like training framework. Right now, you can train with any OpenAI-compatible API for interfacing with the task LLM and train against Terminal-Bench or SWE-Bench tasks, but you can easily extend it to support any task environments.<p>I wrote a blog post (<a href="https://www.henrypan.com/blog/2026-07-18-harness-training" rel="nofollow">https://www.henrypan.com/blog/2026-07-18-harness-training</a>) on this journey, including (but not limited to):<p>- results from using this harness training framework to improve general capabilities across many task LLMs to beat Terminal Bench 2.0 (Terminus Harness) and also transfer learnings towards better task-solving abilities in unseen task environments (e.g. harness trained on SWE-Bench tasks solving Terminal Bench tasks)<p>- how this framework is built<p>- learnings on what was missing in my initial version of the project (hint: determinism)</p>
]]></description><pubDate>Tue, 21 Jul 2026 01:36:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=48987085</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48987085</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48987085</guid></item><item><title><![CDATA[Train a Harness to improve model/env-agnostic capabilities with PyTorch-like API]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/workofart/harness-training">https://github.com/workofart/harness-training</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48981124">https://news.ycombinator.com/item?id=48981124</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Mon, 20 Jul 2026 16:31:22 +0000</pubDate><link>https://github.com/workofart/harness-training</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48981124</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48981124</guid></item><item><title><![CDATA[New comment by megadragon9 in "Show HN: Microcrad – Micrograd Reimplemented in C"]]></title><description><![CDATA[
<p>Interesting project. Do you think manual memory management help understand computational graph lifecycle better, or does it distract from backprop itself?<p>btw, I went down the micrograd path with numpy-primitives all the way to building a PyTorch clone that can pre-train and post-train LLMs (<a href="https://github.com/workofart/ml-by-hand" rel="nofollow">https://github.com/workofart/ml-by-hand</a>). My learning focus was on the math/calculus <-> high-level APIs, instead of efficiency. I'm glad to see more people tackling this problem from different angles.</p>
]]></description><pubDate>Sat, 20 Jun 2026 19:36:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=48612267</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48612267</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48612267</guid></item><item><title><![CDATA[New comment by megadragon9 in "GPT-2 124M checkpoint pre-trained on OpenWebText 27.5B tokens"]]></title><description><![CDATA[
<p>Model built and trained using a hand-built deep learning library (numpy primitives)</p>
]]></description><pubDate>Wed, 17 Jun 2026 04:51:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=48565831</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48565831</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48565831</guid></item><item><title><![CDATA[GPT-2 124M checkpoint pre-trained on OpenWebText 27.5B tokens]]></title><description><![CDATA[
<p>Article URL: <a href="https://github.com/workofart/ml-by-hand/releases/tag/gpt2-124m-openwebtext-56000">https://github.com/workofart/ml-by-hand/releases/tag/gpt2-124m-openwebtext-56000</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48565830">https://news.ycombinator.com/item?id=48565830</a></p>
<p>Points: 1</p>
<p># Comments: 1</p>
]]></description><pubDate>Wed, 17 Jun 2026 04:51:14 +0000</pubDate><link>https://github.com/workofart/ml-by-hand/releases/tag/gpt2-124m-openwebtext-56000</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48565830</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48565830</guid></item><item><title><![CDATA[New comment by megadragon9 in "Ask HN: What are you working on? (June 2026)"]]></title><description><![CDATA[
<p>I'm continuing to expand my own deep learning library [1] built with numpy-primitives to support LLM post-training techniques like supervised fine-tuning (SFT) and reinforcement learning with GRPO. It's a good learning experience to work without all the high-level abstractions to "build a wheel" and "use that wheel to build a car".<p>I'm also looking into coding harness self-improvement [2]. An inner LLM (raw LLM request) + harness solves coding tasks, an outer agent like Claude or Codex that proposes harness changes. I experimented with many things in the past few months that made me realize this self-improvement thing that everyone is talking about is just an experiment design problem. I wrote about it here [3]. I'm continuing to improve the infra around the self-improvement loop, to increase signal-to-noise ratio per experiment. I'm also generalizing the infra to expand beyond terminal bench tasks and to collect some data across different models (harness-bound vs model-bound).<p>[1] <a href="https://github.com/workofart/ml-by-hand" rel="nofollow">https://github.com/workofart/ml-by-hand</a><p>[2] <a href="https://github.com/workofart/harness-experiment" rel="nofollow">https://github.com/workofart/harness-experiment</a><p>[3] <a href="https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/" rel="nofollow">https://www.henrypan.com/blog/2026-05-25-self-improvement-ha...</a></p>
]]></description><pubDate>Sun, 14 Jun 2026 19:33:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=48531694</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48531694</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48531694</guid></item><item><title><![CDATA[Self-Improving Harness Is an Experiment Design Problem]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/">https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48511641">https://news.ycombinator.com/item?id=48511641</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Sat, 13 Jun 2026 01:50:26 +0000</pubDate><link>https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48511641</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48511641</guid></item><item><title><![CDATA[New comment by megadragon9 in "Google to pay SpaceX $920M a month for compute capacity at xAI data centers"]]></title><description><![CDATA[
<p>looks like elon web services (EWS) is the master plan all along :D</p>
]]></description><pubDate>Sat, 06 Jun 2026 20:11:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=48428540</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48428540</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48428540</guid></item><item><title><![CDATA[New comment by megadragon9 in "Can the stockmarket swallow Anthropic, SpaceX and OpenAI?"]]></title><description><![CDATA[
<p>I don't think the market will swallow the stock offerings until we see early signs of GDP growth attributable to these entities. But until then, I think the cost is higher than the benefit, which "The dead economy theory" essay covered it well [0]<p>[0]: <a href="https://www.owenmcgrann.com/p/the-dead-economy-theory" rel="nofollow">https://www.owenmcgrann.com/p/the-dead-economy-theory</a></p>
]]></description><pubDate>Tue, 02 Jun 2026 01:52:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=48364955</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48364955</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48364955</guid></item><item><title><![CDATA[Show HN: What 1k Harness Experiments Taught Me About Self-Improving Agents]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/">https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48303342">https://news.ycombinator.com/item?id=48303342</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Thu, 28 May 2026 01:47:27 +0000</pubDate><link>https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48303342</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48303342</guid></item><item><title><![CDATA[New comment by megadragon9 in "What 1k Harness Experiments Taught Me About Self-Improving Agents"]]></title><description><![CDATA[
<p>I recently wanted to see whether an AI agent could self-improve a harness to solve terminal bench tasks. It’s possible for an AI agent to propose a meaningful one-time change to the harness, but after experimenting with this for a couple of weeks, I think the continuous self-improvement is mostly an experiment-systems problem. The system needs a way to decide what kind of improvements can safely compound.<p>Turns out there's a lot of parallels to coding-agent customization (e.g. SKILLS.md etc..) too.<p>I wrote my experience of building such system here, including the successful and failure attempts during the process, and how I approached the self-improvement loop. It's not intended as a benchmark claim but more of a systems/research writeup.<p><a href="https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/" rel="nofollow">https://www.henrypan.com/blog/2026-05-25-self-improvement-ha...</a></p>
]]></description><pubDate>Wed, 27 May 2026 17:05:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=48297186</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48297186</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48297186</guid></item><item><title><![CDATA[What 1k Harness Experiments Taught Me About Self-Improving Agents]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/">https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=48297185">https://news.ycombinator.com/item?id=48297185</a></p>
<p>Points: 2</p>
<p># Comments: 1</p>
]]></description><pubDate>Wed, 27 May 2026 17:05:19 +0000</pubDate><link>https://www.henrypan.com/blog/2026-05-25-self-improvement-harness/</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48297185</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48297185</guid></item><item><title><![CDATA[New comment by megadragon9 in "Ask HN: What are you working on? (May 2026)"]]></title><description><![CDATA[
<p>I'm continuing to expand my own deep learning library [1] (PyTorch-clone built with Python and Numpy) to support LLM post-training techniques like supervised fine-tuning (SFT) [2] and reinforcement learning with GRPO [3] . It's a good learning experience to work without all the high-level abstractions to "build a wheel" and "use that wheel to build a car". Post-training results are still cooking, since training on my MacBookPro is quite slow with "unoptimized PyTorch" :)<p>1. <a href="https://github.com/workofart/ml-by-hand" rel="nofollow">https://github.com/workofart/ml-by-hand</a><p>2. <a href="https://github.com/workofart/ml-by-hand/blob/main/examples/sft_gpt_2.py" rel="nofollow">https://github.com/workofart/ml-by-hand/blob/main/examples/s...</a><p>3. <a href="https://github.com/workofart/ml-by-hand/blob/main/examples/grpo.py" rel="nofollow">https://github.com/workofart/ml-by-hand/blob/main/examples/g...</a></p>
]]></description><pubDate>Fri, 15 May 2026 06:50:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=48145343</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=48145343</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48145343</guid></item><item><title><![CDATA[How a Deep Learning Library Enables Learning]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.henrypan.com/blog/2026-03-14-how-deep-learning-library-enables-learning/">https://www.henrypan.com/blog/2026-03-14-how-deep-learning-library-enables-learning/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47406602">https://news.ycombinator.com/item?id=47406602</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Mon, 16 Mar 2026 23:40:59 +0000</pubDate><link>https://www.henrypan.com/blog/2026-03-14-how-deep-learning-library-enables-learning/</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=47406602</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47406602</guid></item><item><title><![CDATA[How A Deep Learning Library Enables Learning]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.henrypan.com/blog/2026-03-14-how-deep-learning-library-enables-learning/">https://www.henrypan.com/blog/2026-03-14-how-deep-learning-library-enables-learning/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47389887">https://news.ycombinator.com/item?id=47389887</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Sun, 15 Mar 2026 17:52:50 +0000</pubDate><link>https://www.henrypan.com/blog/2026-03-14-how-deep-learning-library-enables-learning/</link><dc:creator>megadragon9</dc:creator><comments>https://news.ycombinator.com/item?id=47389887</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47389887</guid></item></channel></rss>