Advanced Context Engineering for Coding Agents

A workflow that uses files to carry state between fresh agent contexts.

Author
Dex Horthy, HumanLayer
Published
29 August 2025
Kind
Company blog post, based on a talk
Original
www.humanlayer.dev/blog/advanced-context-engineering
Subject
File-based agent memory
Themes
What lasts, Handing over control

What it is

Dex Horthy's post describes a workflow for coding agents in large existing codebases. The post calls it frequent intentional compaction. Files carry state between fresh contexts, which is why it appears here. The post is about working context more than long-term memory.

What it says

What evidence it gives

The evidence is worked examples rather than controlled tests. Horthy reports a bug fix in BAML, a 300k-line Rust codebase, approved by its maintainer. Horthy and a collaborator then shipped 35k lines in seven hours. The collaborator estimated each resulting PR at three to five days of senior work. Horthy also reports a seven-hour attempt on parquet-java that did not go well.

Interests and limits

HumanLayer builds tools in this area, and the post announces its CodeLayer private beta. The post dates from August 2025, so its tool details may have aged.