Claude Code reads AGENTS.md only when telemetry is on [fixed]
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Claude Code reads AGENTS.md only when telemetry is on [fixed]
Unofficial Hacker News client; not affiliated with Y Combinator.
mpoteat · · focus · HN ↗
The mod is source available here: <a href="https://github.com/anthropics/claude-code/tree/main/mods/agents-md" rel="nofollow">https://github.com/anthropics/claude-code/tree/main/mods/age...
Apologies again folks, this was a fully human error on my part - I should've found a better way to launch with a kill-switch.
mpoteat · · focus · HN ↗
If folks play around with it, I would love feedback on the relevant issue: <a href="https://github.com/anthropics/claude-code/issues/91870" rel="nofollow">https://github.com/anthropics/claude-code/issues/91870
Mods allow quite a bit more customizability and control. I really believe in the idea.
amluto · · focus · HN ↗
<a href="https://github.com/user-attachments/files/31802150/EXTERNAL.Function.Hooks.Core.Architecture.pdf" rel="nofollow">https://github.com/user-attachments/files/31802150/EXTERNAL....
Might I gently suggest that you have a model at least as capable as Opus 5.5 translate that from Claudish to English? Or, even better, have an actual human work on the docs a bit? As it stands, they are fairly egregious, and they seem to devote at least as much space to little AI-generated quips that convey no meaning than to actually explaining what’s going on.
Also, maybe a human should decide whether these are “function” hooks or “module” hooks. All of this marketing calls them “function” hooks, but the json config seems entirely unaware of this.
(Has anyone else noticed that half the sentences in Claudish aren’t merely weird: they are noun phrases and not sentences at all? I’m pretty sure that any decent pre-LLM NLP-based grammar checker would correctly flag half the sentences in Claudish. Also, whatever variant of Claude wrote this thing can’t even capitalize around semicolons consistently with itself, let alone consistently with how English has been written for at least a century.)
edit: Fixed the link. Thanks, kaszanka.
mpoteat · · focus · HN ↗
Rest assured I'll inject a bit less soul into the official docs once Mods are launched; re your feedback on the JSON key, what would you recommend?
amluto · · focus · HN ↗
Maybe "function_hook_modules" for the JSON key?
Does this finally fix the limitation that there is no supportable way to replace the implementation of a native tool in Claude Code? codex-rs has an (undocumented but likely supportable if kind of awkward) mechanism, and I’m part way through a project that needs this. I was going to release it with a recommendation not to use Claude Code, but it’s at least plausible that this will change my mind. (I’m not sure yet — the $ mechanism might be too restrictive. It’s a start at least.)
amluto · · focus · HN ↗
The point here is that there's a world adjacent to but not actually contained within Claude Code in which not everything blindly trusts everything else, and maybe it's time to start remembering some lessons from the 90's on. For example:
- Don't sniff content types and preferably don't infer them from filenames either.
- Don't trust your subresource to arrive intact. Pin those hashes and verify them!
- Leave some room for extensibility.
- Maybe don't require everyone to mix their code with the security policy that controls edits to that code? I realize that anyone cursed with GitHub Actions is forced to violate this rule in the most outrageous ways imaginable, but that doesn't mean that Claude Code needs to follow suit forever. Once there's subresource integrity, the actual subresource can be put somewhere else where it belongs better. If there's "source_file", in the future there can be "source_url" and such without trying to infer it from the formatting of the string.
(I've involved absolutely no AI in the preparation of this comment. I make plenty of use of AI, but I like my brain to stay exercised, and I like to think that I remain MUCH better at this kind of thing than even the best current models.)
hluska · · focus · HN ↗
xena · · focus · HN ↗
mpoteat · · focus · HN ↗
massagedpelican · · focus · HN ↗
<a href="https://www.pangram.com/history/93f9ec71-f7b3-4680-86b1-ff129549cb16?ucc=VlhV1svqmKk" rel="nofollow">https://www.pangram.com/history/93f9ec71-f7b3-4680-86b1-ff12...
KurtMueller · · focus · HN ↗
sebmellen · · focus · HN ↗
computomatic · · focus · HN ↗
sebmellen · · focus · HN ↗
The only thing that gets around that is StealthGPT, but it mangles your intent in the output so badly that it's easier to just write the thing yourself.
karagenit · · focus · HN ↗
> A hook is Koa-style middleware: it reifies an endomorphic continuation
> Five forms, each on tool.call;
But on the other hand uses distinctly human phrases like “one may” and “etc./e.g.” that I rarely see LLMs use. Not sure what to think.
echoangle · · focus · HN ↗
thinkingemote · · focus · HN ↗
I'd love to do some stylometry on this...
bmitc · · focus · HN ↗
arbot360 · · focus · HN ↗
SupLockDef · · focus · HN ↗
crooked-v · · focus · HN ↗
ipsi · · focus · HN ↗
I do notice that the more Claude-generated stuff I read, the more it creeps into my daily usage, and I suspect I don't read nearly as much of it as an Anthropic Employee would, so I could believe that. Though "much of" isn't the same as "written with zero AI generation/rephrasing/etc."
Anyway, that aside, something I would like to see is an example of something that's possible with this system that isn't, or isn't easily, possible with existing Claude hooks. Right now it reads like "Here's a cool thing! Here's how it works! And here's this other similar system we have! Here's how that works!" But there's no summary of the differences, why I'd use this over regular hooks, and so on. Or at least not that I saw on quick skim, and I'd be looking for that to be mentioned as early as possible, so I know if the rest is worth reading.
ApatheticCosmos · · focus · HN ↗
datadrivenangel · · focus · HN ↗
nextaccountic · · focus · HN ↗
hluska · · focus · HN ↗
iam-TJ · · focus · HN ↗
"Agent Skill to Force Docs in ASD-STE100 Simplified Technical English"
<a href="https://news.ycombinator.com/item?id=49114639">https://news.ycombinator.com/item?id=49114639