Better HN
topnewbestaskshowjobs
Log inSign up

megadragon9

74 karma · joined Mar 13, 2014 (12y ago) · 51 submissions

Getting back on the right track.
Submissions

comment 4w ago · link · parent

i'm also wondering whether there are confounding factors like more domain experts and talents joining the AI research field because there are more interesting problems to be solved (or other 2nd order effects of AI models being more powerful).

comment 1mo ago · link · parent

This reminded me of a question I've been thinking about lately. 6 months ago, I was thinking this Forward Deployed Engineer (FDE) is a temporary thing until companies build enough expertise and this expertise fully permeate the job market. But now I have a weird feeling that this FDE job category is here to stay in the long-term. There seems to be some parallels to the system integration folks back in the 2000s when internet adoption just kicked off. OpenAI and other AI companies invested pretty heavily in their FDE efforts, that's along side their token business. Perhaps a lower risk & profitable strategy than starting companies themselves?

comment 3mo ago · link · parent

this makes me wonder, does having kids change the list of things on your list? and why?

comment 3mo ago · link · parent

I think it's more about the scar tissue (a.k.a. intuition) when building LLMs from scratch than whether it's transferable to job search. Maybe the person will decide they don't like LLMs and not develop that into a career, or maybe they become a researcher in another field because that's a better way to solve problems inherent in LLMs.

comment 3mo ago · link · parent

I did something similar but with smart home devices. I use the homebridge interface to connect my smart home devices to Apple's homekit protocol. Some homebridge plugins for my devices were outdated and no longer maintained, so I asked Codex/Claude to help me create a patch of it as a local fork, so my smart home devices can still run without problems.

It does feel magical when these agents can debug in the real-world, like turning on/off my living room lights and using another living room camera to take a snapshot of the living room to see whether it worked or not.

comment 3mo ago · link · parent

i created something similar a while back. Inspired by micrograd for showing the connection between math/calculus and code, then building along the way to a full NumPy deep learning library that I pretrained GPT-2 124M model with it. One way to learn is to trace through the PRs merged to the repo in chronological order.

The philosophy is the same: "What I cannot create, I do not understand." https://github.com/workofart/ml-by-hand

7.

Show HN: Auto-train the harness, not the LLM. cross-model, cross-benchmark gains(github.com ↗)

4 points · by megadragon9 · 3mo ago · discuss

comment 4mo ago · link · parent

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.

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.

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: https://www.henrypan.com/blog/2026-07-18-harness-training/

I packaged the training loop as a PyTorch-style framework. https://github.com/workofart/harness-training

9.

Freeze the model, train the harness: gains transfer across LLMs and benchmarks(henrypan.com ↗)

2 points · by megadragon9 · 4mo ago · discuss

10.

Training Agent Harness Like Training a ML Model(henrypan.com ↗)

2 points · by megadragon9 · 4mo ago · discuss

11.

Show HN: Freeze the Model, Train the Harness(github.com ↗)

4 points · by megadragon9 · 4mo ago · discuss

comment 4mo ago · link · parent

I worked on this project (https://github.com/workofart/harness-training) for the past few months to reframe "Agent-driven Self-improving Harness" to "Harness Training".

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.

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.

I wrote a blog post (https://www.henrypan.com/blog/2026-07-18-harness-training) on this journey, including (but not limited to):

- 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)

- how this framework is built

- learnings on what was missing in my initial version of the project (hint: determinism)

13.

Train a Harness to improve model/env-agnostic capabilities with PyTorch-like API(github.com ↗)

3 points · by megadragon9 · 4mo ago · discuss

comment 5mo ago · link · parent

Interesting project. Do you think manual memory management help understand computational graph lifecycle better, or does it distract from backprop itself?

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 (https://github.com/workofart/ml-by-hand). 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.

comment 5mo ago · link · parent

Model built and trained using a hand-built deep learning library (numpy primitives)

16.

GPT-2 124M checkpoint pre-trained on OpenWebText 27.5B tokens(github.com ↗)

1 points · by megadragon9 · 5mo ago · 1 comment

comment 5mo ago · link · parent

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".

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).

[1] https://github.com/workofart/ml-by-hand

[2] https://github.com/workofart/harness-experiment

[3] https://www.henrypan.com/blog/2026-05-25-self-improvement-ha...

18.

Self-Improving Harness Is an Experiment Design Problem(henrypan.com ↗)

3 points · by megadragon9 · 5mo ago · discuss

comment 6mo ago · link · parent

looks like elon web services (EWS) is the master plan all along :D

comment 6mo ago · link · parent

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]

[0]: https://www.owenmcgrann.com/p/the-dead-economy-theory

21.

Show HN: What 1k Harness Experiments Taught Me About Self-Improving Agents(henrypan.com ↗)

3 points · by megadragon9 · 6mo ago · discuss

comment 6mo ago · link · parent

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.

Turns out there's a lot of parallels to coding-agent customization (e.g. SKILLS.md etc..) too.

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.

https://www.henrypan.com/blog/2026-05-25-self-improvement-ha...

23.

What 1k Harness Experiments Taught Me About Self-Improving Agents(henrypan.com ↗)

2 points · by megadragon9 · 6mo ago · 1 comment

comment 6mo ago · link · parent

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" :)

1. https://github.com/workofart/ml-by-hand

2. https://github.com/workofart/ml-by-hand/blob/main/examples/s...

3. https://github.com/workofart/ml-by-hand/blob/main/examples/g...

25.

How a Deep Learning Library Enables Learning(henrypan.com ↗)

2 points · by megadragon9 · 8mo ago · discuss

26.

How A Deep Learning Library Enables Learning(henrypan.com ↗)

2 points · by megadragon9 · 8mo ago · discuss

comment 8mo ago · link · parent

Interesting to see more demand shaping mechanisms applied to LLM inference. Even though the "batch processing" feature is already available. I guess this "promotion" is to test the hypothesis of sliding along the spectrum towards more "real-time" demand shaping.

comment 11mo ago · link · parent

Thanks for sharing! It's inspiring to see more people "reinventing for insight" in the age of AI. This reminds me of my similar previous project a year ago when I built an entire PyTorch-style machine learning library [1] from scratch, using nothing but Python and NumPy. I started with a tiny autograd engine, then gradually created layer modules, optimizers, data loaders etc... I simply wanted to learn machine learning from first principles. Along the way I attempted to reproduce classical convnets [2] all the way to a toy GPT-2 [3] using the library I built. It definitely helped me understand how machine learning worked underneath the hood without all the fancy abstractions that PyTorch/TensorFlow provides. I eventually wrote a blog post [4] of this journey.

[1] https://github.com/workofart/ml-by-hand

[2] https://github.com/workofart/ml-by-hand/blob/main/examples/c...

[3] https://github.com/workofart/ml-by-hand/blob/main/examples/g...

[4] https://www.henrypan.com/blog/2025-02-06-ml-by-hand/

12