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

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

https://tikz.dev/editor/
216•DominikPeters•3h ago•37 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

Show HN: Treedocs: Documentation that automatically checks for staleness

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

Show HN: Neural Particle Automata

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

Show HN: Shumai – open-source Frame.io alternative for creative work

https://github.com/shumaiOne/shumai
47•Yiling-J•7h ago•4 comments

Show HN: Your self, in every light - a local-first MCP self model for AI agents

https://github.com/almakit/alma
4•0set0set•1h ago•0 comments

Show HN: Caplets - Give your agent capabilities, not giant tool walls

https://caplets.dev
3•ianpascoe•1h ago•0 comments

Show HN: CUDA Profiler for Production Inference

https://github.com/graphsignal/graphsignal-profiler
6•npgraph•1h ago•0 comments

Show HN: I gave Claude Code the keys to the Visual Studio debugger

https://github.com/firish/claude_code_vs
2•firish•1h ago•1 comments

Show HN: Oak – Git alternative designed for agents

https://oak.space/oak/oak
206•zdgeier•1d ago•177 comments

Show HN: A pure ARM64 Assembly web server, now on Linux with CGI for no reason

https://github.com/imtomt/ymawky/tree/linux
46•imtomt•13h ago•17 comments

Show HN: Got sick of ads, so I made my own logic puzzle site

https://puzzlelair.com/
233•HaxleRose•1d ago•143 comments

Show HN: OpenUser: Self-hosted user-persona tester for AI coding agents

2•manalkaff•48m ago•0 comments

Show HN: CleverCrow: give tokens to your favorite projects

https://clevercrow.io
56•zhubert•1d ago•78 comments

Show HN: Transformer Primitives – A visual explainer you can send to anyone

https://understandgpt.xyz/
4•arzt•3h ago•0 comments

Show HN: AGI will not come from better models, it will come from meta harness

https://github.com/the-open-engine/zeroshot
2•covibes•4h ago•2 comments

Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages

https://github.com/Amal-David/pagecast
51•amaldavid•4d ago•14 comments

Show HN: FuckUI - AI hates your UI. Feed it the web text first

https://fuckui.com
4•keepamovin•4h ago•1 comments

Show HN: perl-lsp – annotation free static analysis for Perl

https://github.com/tree-sitter-perl/perl-lsp
3•rabbiveesh•4h ago•0 comments

Show HN: Parlel – run Redis, Postgres, S3 and SaaS APIs in ~1 MB each

https://github.com/dksingh1997/parlel
3•Dheerajiitr•4h ago•0 comments

Show HN: I built an online patch backup tool for vintage 80s synths

https://knob.monster/
4•halfradaition•4h ago•0 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app
187•olievans•3d ago•54 comments

Show HN: Cachet – A drop-in semantic cache for LLM APIs, 100% local, in Rust

https://github.com/abhix2112/Cachet
4•Abhi_2112•5h ago•0 comments

Show HN: Recall – Local project memory for Claude Code

https://github.com/raiyanyahya/recall
134•mateenah•1d ago•83 comments

Show HN: Aharness – Enforce coding-agent workflows as state machines on Codex

https://github.com/Alfredvc/aharness
4•alfredvc•6h ago•2 comments

Show HN: Selector Forge – browser extension for AI-generated resilient selectors

https://github.com/Intuned/selector-forge
35•ahmadilaiwi•1d ago•2 comments

Show HN: OpenTerm – A tiny, fast SSH client (no login, no cloud, free)

https://github.com/zhangshuo1991/openterm
3•zhangshuo1991•8h ago•0 comments

Show HN: HN Game Stories – mini-documentary of games that hit the front page

https://video.intellios.ai
15•coolwulf•2d ago•2 comments

Show HN: Teach your kids perfect pitch

https://github.com/paytonjjones/bsharp
207•paytonjjones•2d ago•145 comments

SHOW HN: Huskmail - A disposable email with private inboxes and trial library

https://huskmail.xyz
4•draggodra•9h ago•3 comments