frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Treedocs: Documentation that automatically checks for staleness

https://dandylyons.github.io/treedocs/
21•DandyLyons•2h ago

Comments

DandyLyons•2h ago
Hi HN,

I built treedocs, a CLI that shows a tree of your file structure, side-by-side with docs.

The idea is simple: your filesystem already tells you what exists, but not what each path is for. treedocs mirrors the file tree into a treedocs.yaml file and lets you define short descriptions, references, and links to files and folders. It can then render that back as a documented tree, detect drift when files move or disappear, and fail checks when descriptions are missing.

I originally wanted this for two related problems: 1. Helping humans acclimate to unfamiliar repositories faster. 2. Giving coding agents concise project context without forcing them to rediscover the repo structure over and over.

Some things it does: - treedocs init creates a treedocs.yaml - treedocs sync reconciles it with the filesystem - treedocs check catches stale entries and missing descriptions - treedocs explore implements progressive disclosure for efficient token usage. - Nested treedocs.yaml files act as documentation boundaries for delegated subtrees - The YAML format is backed by a public JSON Schema

I’d be interested in feedback on the file format, CLI ergonomics, and whether this kind of repo-level map is useful for your workflows.

gritzko•1h ago
The question is who maintains it. I think, LLM is the only practical option. In my agent rules, I tell it to maintain INDEX.md on each level. That takes 1 line of instruction and starting with an example file. Then, it self-maintains.
DandyLyons•33m ago
In practice, the LLM, treedocs and I all work together to maintain it. treedocs finds missing and extra paths, and missing descriptions. The LLM writes descriptions. git makes sure I never forget to run treedocs sync. And I always have the ability to easily correct incorrect descriptions by the LLM, or add my own special instructions.

Sure the LLM can do all of that but it's a waste of a lot of tokens, and in my experience it often makes incorrect assumptions or doesn't realize certain details.

tekacs•1h ago
This is lovely! I'd done something similar in my own setup.

I'm curious what your experience has been with fork/merge – why a monolithic file rather than something more diffuse?

DandyLyons•30m ago
treedocs already has the ability to read multiple treedocs.yaml files. (I should probably document this better.) treedocs.yaml files can be "nested". So you would have one at the top of your repo, and then you could optionally have one or more in subdirectories. Then your top treedocs.yaml is responsible for the repo, but the subdirectory treedocs.yaml files are responsible for their own subdirectory. The idea is that you might have situations where you install a dependency and it clones a subdirectory. Well that subdirectory could just define its own treedocs.yaml.

So it doesn't have to be monolithic.

moralestapia•2h ago
Why is @DandyLyons' comment flagged and dead?

Like ... what's wrong with what he posted?

I've seen thousands of Show HNs here, for like a decade. Very similar to this.

What rule did he break?

tekacs•1h ago
(In fairness to this poster, DandyLyons' post was in fact dead when we got here – I used vouch on it.) Probably just weird things that happen when making your first post on HN if it's heuristically not quite right / a Show HN / wordy?
blahaj•1h ago
Probably none, just got into HN's spam filter. When you have enough points you can vouche for it and if enough people do it gets reinstated, which is exactly what happened.
add-sub-mul-div•1h ago
Being here with zero activity other than self promotion.
DandyLyons•28m ago
Idk. I did make some edits right after posting (just rewording stuff). Maybe the forum didn't like that?
matneyx•1h ago
Maaan, this seems so great except it's MacOS only.
DandyLyons•38m ago
I only have a Mac to test on, but I am open to releasing on Linux or Windows if someone would help.
miketromba•45m ago
This is very good - I have found that well-designed progressive disclosure systems like this tend to be far more effective and performant than cookie-cutter semantic / encoding-based RAG systems. Agents seem to love tables of contents.
DandyLyons•40m ago
It definitely feels more correct from a first principles perspective. It always seemed crazy that we often just throw a bunch of data at an LLM and go figure it out. It's filled with irrelevant junk. That would slow us down so why wouldn't it slow down AI?

Though I will say it has been a challenge to get agents to reliably use tools like `treedocs explore`. They tend to default to using their built in tooling first or commands like grep. I'm still working on reliable prompts and skills that tell the agent when to use which approach.

tristanMatthias•12m ago
I made a similar kind of tool [0] to scratch this itch too. Hashes all your files and adds a short llm summary for each one so Claude/Codex can quickly explore rather than load all those files into context.

[0] https://github.com/tristanmatthias/llmdoc

DandyLyons•8m ago
Starred

F3

https://github.com/future-file-format/f3
164•tosh•57m ago•48 comments

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

https://tikz.dev/editor/
216•DominikPeters•3h ago•37 comments

San Diego Photologs from the 1970s

https://www.beautifulpublicdata.com/san-diego-photologs-from-the-1970s/
30•jonathanmkeegan•55m ago•5 comments

Unlimited OCR: One-Shot Long-Horizon Parsing

https://github.com/baidu/Unlimited-OCR
335•ingve•6h ago•84 comments

Lift4D: Harmonizing Single-View 3D Estimation for 4D Reconstruction In-the-Wild

https://lift4d.github.io/
65•ilreb•3h ago•5 comments

Five monitors on a Commodore 128 [video]

https://www.youtube.com/watch?v=ul5hC3PY1Yg
36•EvanAnderson•23h ago•8 comments

The Coming Loop

https://lucumr.pocoo.org/2026/6/23/the-coming-loop/
170•ingve•6h ago•142 comments

75% More Pedestrians Have Been Killed Since 2009. Giant Trucks and SUVs Are Why

https://www.thedrive.com/news/75-more-pedestrians-have-been-killed-since-2009-giant-trucks-and-su...
35•theanonymousone•19m ago•4 comments

Samsung Demonstrates 3D Stacked FETs with Triple Nanosheet Channels at 42nm

https://semiconductor.samsung.com/news-events/tech-blog/from-gaa-to-3d-stacked-fet-expanding-the-...
31•its_ajseven•4d ago•7 comments

Elevated error rate across multiple models

https://status.claude.com/incidents/jbhf20wjmzrf
173•rob•3h ago•208 comments

Mistral OCR 4

https://mistral.ai/news/ocr-4/
276•meetpateltech•3h ago•70 comments

Claude Tag

https://www.anthropic.com/news/introducing-claude-tag
45•adocomplete•41m ago•16 comments

Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

https://github.com/ilbertt/bun-sqlgen
42•ilbert•3h ago•18 comments

Plotnine

https://plotnine.org/
207•tosh•4d ago•64 comments

MSG Made Dossier on Activists Who Opposed Facial Recognition

https://www.404media.co/madison-square-garden-made-dossier-on-activists-who-opposed-facial-recogn...
208•cdrnsf•4h ago•55 comments

GLM-5.2 – How to Run Locally

https://unsloth.ai/docs/models/glm-5.2
543•TechTechTech•20h ago•261 comments

Show HN: Treedocs: Documentation that automatically checks for staleness

https://dandylyons.github.io/treedocs/
21•DandyLyons•2h ago•16 comments

Rethinking Modularity in Ruby Applications

https://noteflakes.com/articles/2026-06-18-syntropy-modules
7•ciconia•4d ago•0 comments

The Low-Tech AI of Elden Ring

https://nega.tv/posts/low-tech-ai-of-elden-ring.html
43•g0xA52A2A•6h ago•27 comments

Will It Mythos?

https://swelljoe.com/post/will-it-mythos/
264•mindingnever•13h ago•195 comments

Open Source for IBM Z and LinuxONE

https://community.ibm.com/community/user/blogs/elizabeth-k-joseph1/2026/06/18/linuxone-open-sourc...
33•ncruces•3d ago•5 comments

What we call "age verification" is actually mass surveillance

https://pluralistic.net/2026/06/23/destroy-the-village/
424•hn_acker•3h ago•274 comments

80386 Early Start Memory Access

https://nand2mario.github.io/posts/2026/80386_early_start/
27•nand2mario•5h ago•1 comments

Lossless GIF recompression via exhaustive search

https://blog.arusekk.pl/posts/lossless-gif-recompression/
38•ZacnyLos•4h ago•9 comments

VibeThinker: 3B param model that beats Opus 4.5 on reasoning with novel SFT+GRPO

https://arxiv.org/abs/2606.16140
330•timhigins•15h ago•174 comments

Pact: Anonymous Credentials for the Web

https://hacks.mozilla.org/2026/06/pact-anonymous-credentials-for-the-web/
32•kevincox•1h ago•1 comments

Steam Machine launches today

https://store.steampowered.com/news/group/45479024/view/685257114654870245
1837•theschwa•1d ago•1581 comments

Crypto in 2026: Oh, This Is the Bad Place

https://www.stephendiehl.com/posts/bad_place_2026/
328•ibobev•7h ago•415 comments

Show HN: Neural Particle Automata

https://selforg-npa.github.io/
71•esychology•9h ago•14 comments

In praise of memcached

https://jchri.st/blog/in-praise-of-memcached/
246•j03b•16h ago•100 comments