Readit News logoReadit News
dhorthy commented on Writing a good Claude.md   humanlayer.dev/blog/writi... · Posted by u/objcts
sothatsit · 13 days ago
I have also done this, but my results are very hit or miss. Claude rarely actually reads the other documentation files I point it to.
dhorthy · 13 days ago
I think the key here is “if X then Y syntax” - this seems to be quite effective at piercing through the “probably ignore this” system message by highlighting WHEN a given instruction is “highly relevant”
dhorthy commented on Writing a good Claude.md   humanlayer.dev/blog/writi... · Posted by u/objcts
fishmicrowaver · 13 days ago
Have you considered just asking claude? I'd wager you'd get up and running in <10 minutes.
dhorthy · 13 days ago
agree - i've had claude one-shot this for me at least 10 times at this point cause i'm too lazy to lug whatever code around. literally made a new one this morning
dhorthy commented on Writing a good Claude.md   humanlayer.dev/blog/writi... · Posted by u/objcts
_pdp_ · 13 days ago
There is far much easier way to do this and one that is perfectly aligned with how these tools work.

It is called documenting your code!

Just write what this file is supposed to do in a clear concise way. It acts as a prompt, it provides much needed context specific to the file and it is used only when necessary.

Another tip is to add README.md files where possible and where it helps. What is this folder for? Nobody knows! Write a README.md file. It is not a rocket science.

What people often forget about LLMs is that they are largely trained on public information which means that nothing new needs to be invented.

You don't have to "prompt it just the right way".

What you have to do is to use the same old good best practices.

dhorthy · 13 days ago
For the record I do think the AI community tries to unnecessarily reinvent the wheel on crap all the time.

sure, readme.md is a great place to put content. But there's things I'd put in a readme that I'd never put in a claude.md if we want to squeeze the most out of these models.

Further, claude/agents.md have special quality-of-life mechanics with the coding agent harnesses like e.g. `injecting this file into the context window whenever an agent touches this directory, no matter whether the model wants to read it or not`

> What people often forget about LLMs is that they are largely trained on public information which means that nothing new needs to be invented.

I don't think this is relevant at all - when you're working with coding agents, the more you can finesse and manage every token that goes into your model and how its presented, the better results you can get. And the public data that goes into the models is near useless if you're working in a complex codebase, compared to the results you can get if you invest time into how context is collected and presented to your agent.

dhorthy commented on Embracing the parallel coding agent lifestyle   simonwillison.net/2025/Oc... · Posted by u/jbredeche
dhorthy · 2 months ago
> If I tell them exactly how to build something the work needed to review the resulting changes is a whole lot less taxing.

Totally matches my experience- the act of planning the work, defining what you want and what you don’t, ordering the steps and declaring the verification workflows—-whether I write it or another engineer writes it, it makes the review step so much easier from a cognitive load perspective.

dhorthy commented on Getting AI to work in complex codebases   github.com/humanlayer/adv... · Posted by u/dhorthy
gloosx · 3 months ago
You do acknowledge this but this doesn't make the "spent 7 hours and shipped 35k LOC" claim factually correct or true. It sure sounds good but it's disingenuous, because shipping != making progress. Shipping code means deploying it to the end users.
dhorthy · 3 months ago
would "wrote" be more appropriate than "shipped"?
dhorthy commented on Getting AI to work in complex codebases   github.com/humanlayer/adv... · Posted by u/dhorthy
daxfohl · 3 months ago
FWIW I think your style is better and more honest than most advocates. But I'd really love to see some examples of things that completely failed. Because there have to be some, right? But you hardly ever see an article from an AI advocate about something that failed, nor from an AI skeptic about something that succeeded. Yet I think these would be the types of things that people would truly learn from. But maybe it's not in anyone's financial interest to cross borders like that, for those who are heavily vested in the ecosystem.
dhorthy · 3 months ago
there is a portion in the article where I talk about how our hadoop refactor completely failed
dhorthy commented on Getting AI to work in complex codebases   github.com/humanlayer/adv... · Posted by u/dhorthy
ath_ray · 3 months ago
I enjoyed the emphasis on optimising the context window itself. I think that's the most important bit.

An abstraction for this that seems promising to me for its completeness and size is a User Story paired with a research plan(?).

This works well for many kinds of applications and emphasizes shipping concrete business value for every unit of work.

I wrote about some of it here: https://blog.nilenso.com/blog/2025/09/15/ai-unit-of-work/

I also think a lot of coding benchmarks and perhaps even RL environments are not accounting for the messy back and forth of real world software development, which is why there's always a gap between the promise and reality.

dhorthy · 3 months ago
I have had a user story and a research plan and only realized deep in the implementation that a fundamental detail about how the code works was missing (specifically, that types and sdks are generated from OpenAPI spec) - this missing meant the plan was wrong (didn’t read carefully enough) and the implementation was a mess
dhorthy commented on Getting AI to work in complex codebases   github.com/humanlayer/adv... · Posted by u/dhorthy
spike021 · 3 months ago
I admittedly haven't tried this approach at work yet but at home while working on a side project, I'll make a new feature branch and give CLAUDE a prompt about what the feature is with as much detail as possible. i then have it generate a CLAUDE-feature.md and place an implementation plan along with any supporting information (things we have access to in the codebase, etc.).

i'll then prompt it for more based on if my interpretation of the file is missing anything or has confusing instructions or details.

usually in-between larger prompts I'll do a full /reset rather than /compact, have it reference the doc, and then iterate some more.

once it's time to try implementing I do one more /reset, then go phase by phase of the plan in increments /reset-ing between each and having it update the doc with its progress.

generally works well enough but not sure i'd trust it at work.

dhorthy · 3 months ago
My advice - never use compact, always stash your context to Md or a wordy git commit message and then clear context

You want control over and visibility into what’s being compacted, and /compact doesn’t do great on either

dhorthy commented on Getting AI to work in complex codebases   github.com/humanlayer/adv... · Posted by u/dhorthy
sothatsit · 3 months ago
I continue to write codebases in programming languages, not English. LLM agents just help me manipulate that code. They are tools that do work for me. That is delegation, not abstraction.

To write and review a good spec, you also need to understand your codebase. How are you going to do that without reading the code? We are not getting abstracted away from our codebases.

For it to be an abstraction, we would need our coding agents to not only write all of our code, they would also need to explain it all to us. I am very skeptical that this is how developers will work in the near future. Software development would become increasingly unreliable as we won't even understand what our codebases actually do. We would just interact with a squishy lossy English layer.

dhorthy · 3 months ago
You don’t think early c programmers spent a lot of time reading the assembly that was produced?

u/dhorthy

KarmaCake day641March 2, 2018
About
building the post-IDE IDE @ hlyr.dev
View Original