HackerLangs
TopNewTrendsCommentsPastAskShowJobs

cadamsdotcom

2,522 karmajoined قبل 12 سنة
github.com/cadamsdotcom linkedin.com/in/cadamsdotcom chris at cadams dot com

Submissions

Ask HN: Ever used non-AVP glasses as a virtual display? Which ones?

2 points·by cadamsdotcom·الشهر الماضي·0 comments

Show HN: Hacker News and Lobsters RSS, repackaged for offline reading

github.com
2 points·by cadamsdotcom·الشهر الماضي·0 comments

Show HN: CodeLeash: framework for quality agent development, NOT an orchestrator

codeleash.dev
12 points·by cadamsdotcom·قبل 4 أشهر·4 comments

comments

cadamsdotcom
·قبل 3 ساعات·discuss
Deny:

Bash(“git * commit *”)

And for bonus points you can have the agent write you a Pre Bash hook. Tell it to make the hook look in the command for anything that’s a git commit. The vaguer your instructions here the better. Let it pull some crazy regex out of its hat. You’ll be impressed.
cadamsdotcom
·قبل 3 ساعات·discuss
Somewhat out of date (it’s grown a lot!)

https://github.com/cadamsdotcom/CodeLeash/blob/main/.claude/...
cadamsdotcom
·قبل 3 ساعات·discuss
Yes, and, write custom linters for things you want to prevent forever. Have a look at https://github.com/cadamsdotcom/CodeLeash/blob/main/scripts/... for an example (enforced before all commits via https://github.com/cadamsdotcom/CodeLeash/blob/main/.pre-com...)

Basically I got sick of telling the agent to put dynamic imports at the top of the file so I made them into an error that blocks commits.

Now I don’t even need that in the review.md because it can’t make it though to /review.
cadamsdotcom
·قبل 3 ساعات·discuss
Humans pattern match against thousands upon thousands of criteria subconsciously.

AI is a different intelligence - a 200 point list shoved in its face all at once doesn’t overwhelm it. That’s only 5-10k tokens!

Bear in mind though, because I added all the items on the list I’ve seen the reasons they’re there & act as a backstop against it missing things. There’s always got to be a quality bar, it’s part of being a professional and signing your name on your work.
cadamsdotcom
·قبل 3 ساعات·discuss
Yes and this is a really important point.

I actually have no data on how other models do - feeling very spoiled by Claude to be honest.

Would love to hear how it goes if you try it with other models!
cadamsdotcom
·قبل 3 ساعات·discuss
> You know what it constantly does? Commits without permissions

You know what solves this? A deny rule. That’s right, you can solve it committing without permissions by.. not giving it permissions.

> it's quietly messing up on a lot of that list.

If only there was some way to know. But alas, code review won’t be invented until 50 years ago.
cadamsdotcom
·قبل 4 ساعات·discuss
There’s a saying for this - “don’t ship your first draft”.

Its first attempt WILL be crap. You can refine its output in the loop as a human, or let it go and then do a quality pass post-hoc.

The beauty of the latter is you can codify and automate a subset of the work, and the agent can loop until those bars are cleared then you get a higher quality work product to look at.
cadamsdotcom
·قبل 4 ساعات·discuss
This technique incrementally codifies the subset of my personal definition of code quality that can be codified. I’ve found a discovery based approach is better than anticipatory, because it forces everything you spend tokens to prove its worth.

I still do code review - how else would I know what to codify! But since starting this about a year ago, I don’t review menial dumb AI mistakes anymore.
cadamsdotcom
·قبل 4 ساعات·discuss
My review command isn’t an AI tool, it is is a text file.

You don’t need a SaaS when you can use a text file instead.

Just be incrementally aware of and closing gaps in the list of things you care about, and make it part of your day!
cadamsdotcom
·قبل 15 ساعة·discuss
Write yourself a /review command. That is an empty markdown file at `.claude/commands/review.md`. In it, put a checklist of things the agent should look for. When you’re ready to have your agent review the code, type `/review`. The checklist will be examined and it’ll plan out some findings to ask you if you want them fixed.

Mine starts with “Enter plan mode. Examine the differences on this branch vs. main. Consider: ...” and proceeds to a bullet list of things.

Any time I notice something in code review and have to get the agent to fix it.. I throw it on the list!

My list is like 200 items now. Know what? Agents don’t care that they just got a wall of generic feedback, they happily look into all the bullet points.

I added “ensure the new things aren’t duplicating code that already exists elsewhere” and it gave me such a surprise - it really truly started planning cleanups!

We are just scratching the surface. We have to give tools to our tools so they can use them to be better tools for us.
cadamsdotcom
·أمس·discuss
At whose prices?
cadamsdotcom
·أمس·discuss
Software has several unique properties on both ends of its production process that make assertions of progress based on the software use case invalid.

Software is easy to define as “working”: just run it. But - useful software requires an absolute truck worth of code - 100k loc before you’re talking about a real product, or else dozens of iterations of a toy you make for yourself before it’s useful enough to quit toying with and just use for what you wanted it for.

Sure, the success of software is hard to anticipate and what “good” UX is is hard to pin down - that’s not what I’m talking about. I’m talking just making the code and having no lint errors. That shit is a slog but it’s a slog with a clear goal amenable to hill climbing.

Through that lens software is mostly pattern matching. It’s very rare that an activity in software construction is out of distribution because even if the core of the thing is novel it needs a massive blanket of UI and a tech stack and a production environment to run in and observability and and and and. You get it I hope.

Meanwhile most work out there is a mess of undocumented, un-codifiable detail with no objective criteria for success, only a very wide gradient of “job well done” to “what is this garbage go and fix it”.

We are solving the easy parts of software and soon all that’s left will be the parts that are just like other work. And then we engineers will also be doing mostly squishy subjective judgment stuff.
cadamsdotcom
·أول أمس·discuss
This post could've been a tweet:

Agentic engineering is like Factorio: build factories that do the work, then watch; and in both, the factory-building never ends #micdroppp
cadamsdotcom
·قبل 3 أيام·discuss
70s thru 90s computing and even into the early 2000s every new bit of computer meant new capabilities.

Eventually it plateaued and now you can do a decent chunk of your computing on something from 2012.

People keep saying scaling will top out, for example. But scaling keeps stubbornly refusing. New techniques keep coming along too. It's really still exploding into existence and every new generation brings new capability. Eventually it'll clear a ceiling for your key use cases and you'll stop worrying about new models.

It always pays to look back at history and see if you can pattern match.
cadamsdotcom
·قبل 3 أيام·discuss
Since it’s so subjective let’s poll our engineers’ NPS!

“How likely are you to work in this codebase again?”

0 = Least likely 10 = Most likely
cadamsdotcom
·قبل 3 أيام·discuss
Wonder what the regulations have to say about a small, strategically placed piece of sticky tape.
cadamsdotcom
·قبل 5 أيام·discuss
It’s done using Claude Code.

I use hooks to enforce TDD but the agent has to use bash tool calls to call a script before the hooks allow it to do its job.

tdd_log.py is a short python file with a #! at the top to make it executable, that (due to other hooks) the agent must run to declare its intent to make some tests red or green.

Check the info I posted in a sibling comment: https://news.ycombinator.com/item?id=48790589
cadamsdotcom
·قبل 5 أيام·discuss
The problem with your post is you’re depending on an assumption that all types of intelligence are useful in every situation.

Being embodied will always be a huge advantage over a “country full of geniuses in a datacenter”.
cadamsdotcom
·قبل 6 أيام·discuss
Are we talking about the same thing?

If the agent uses the to incorrectly, validation fails.

If validation fails for ANY reason, print a message saying “here’s how to use it correctly”.

You don’t need to anticipate every misuse, just validate your inputs.
cadamsdotcom
·قبل 6 أيام·discuss
Okay, but I solved this with a print statement.