frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Made this tool so your docs never get stale just in 2 simple steps

1•AYSgood•1h ago
Catch stale docs before they reach main.

DocDrift checks the code you changed against your README, docs, and examples, then flags documentation that is now wrong, incomplete, or missing.

What It Does

    Detects changed functions and classes from staged git diffs
    Finds related Markdown and RST docs with semantic search
    Uses AI to check whether the docs still match the code
    Suggests updated documentation and applies fixes interactively
    Flags undocumented new symbols
    Runs locally in the CLI and in GitHub Actions
Install

pip install docdrift

Quick Start

From inside your git repository:

git add . docdrift commit

That will:

    scan your staged code changes
    find related docs
    flag stale or missing documentation
    offer fixes interactively
    let you commit after review
AI Setup

For full documentation checks and autofixes, DocDrift needs an AI backend.

You have 2 options: Option 1: Groq

This is the easiest setup.

Set your API key:

export GROQ_API_KEY="your_key_here"

Then run:

git add . docdrift commit

Option 2: Local / Private AI

If you do not want to use a cloud API, you can use a local OpenAI-compatible endpoint such as:

    LM Studio
    Ollama-compatible OpenAI endpoint
On first run, DocDrift will ask for your endpoint and save it to:

.docdrift/config.json

Common endpoints:

    LM Studio: http://localhost:1234/v1/chat/completions
    Ollama-compatible endpoint: http://localhost:11434/v1/chat/completions
 
What Happens Without AI?

If you do not set GROQ_API_KEY and do not configure a local endpoint, DocDrift cannot run full AI consistency checks or generate fixes.

To get the real stale-doc detection and autofix workflow, you need one of:

    GROQ_API_KEY
    a local AI endpoint
Example

git add . docdrift commit

DocDrift scanning before commit...

Found 1 errors · 0 warnings · 1 undocumented

ERROR validate_token Docs: README.md:42 Docs still say the function returns bool, but the code now raises InvalidTokenError.

Fix this? (y/n): y Generating fix... README.md updated

Commit now? (y/n): y Committed

CLI

Check staged changes without committing:

docdrift check

Run the interactive commit flow:

docdrift commit

Rebuild the documentation index:

docdrift index

Run the pre-commit safety check manually:

docdrift precommit

How are teachers handling writing feedback at scale?

1•uuuAA•1m ago•0 comments

LiteLLM Supply Chain Attack: Defense in Depth Is the Only AI Security Strategy

https://www.runtimeai.io/blog-litellm-attack.html
2•roshanshaik•17m ago•0 comments

Zipcode specific inflation to understand local price changes

https://whatchanged.us/
1•ryan_j_naughton•22m ago•0 comments

Show HN: Spectator – A programming language for Cybersecurity and Hacking

1•CzaxTanmay•22m ago•0 comments

Spotting issues in DeFi with dimensional analysis

https://blog.trailofbits.com/2026/03/24/spotting-issues-in-defi-with-dimensional-analysis/
1•anitil•25m ago•1 comments

Iran rejects US proposal, lays out five conditions for ending war

https://www.presstv.ir/Detail/2026/03/25/765835/iran-rejects-us-proposal-lays-out-five-conditions...
1•Jimmc414•27m ago•0 comments

OmniWM – Niri and Dwindle tiling window manager for macOS

https://github.com/BarutSRB/OmniWM
1•gedy•37m ago•0 comments

Should Investors Demand Better Liquidation Terms for SAFEs?

https://natlawreview.com/article/should-investors-demand-better-liquidation-terms-safes
1•petethomas•39m ago•0 comments

Injecting Tracing the Hot Way

https://underjord.io/injecting-tracing-the-hot-way.html
1•lawik•43m ago•0 comments

The coming PLG to SLG apocalypse

https://www.withsahel.com/blog/plg-to-enterprise-timeline-compression
1•iajiboye•44m ago•1 comments

Ask HN: Can I somehow exit HN desktop view on mobile?

1•hxugufjfjf•46m ago•1 comments

Show HN: AutoSW-Like AutoResearch but for software:SW Systems that Builds itself

https://pub.towardsai.net/the-software-that-built-itself-well-defined-intents-are-all-you-need-06...
1•alexcpn•48m ago•1 comments

Show HN: Orloj – agent infrastructure as code (YAML and GitOps)

https://github.com/OrlojHQ/orloj
1•An0n_Jon•48m ago•0 comments

AI Arbitrator

https://www.adr.org/ai-arbitrator/
1•dqv•52m ago•0 comments

Show HN: Scope – a beautiful open-source web client for Stremio

https://github.com/scope-player/scope
1•judekim•54m ago•1 comments

Show HN: Agent Ruler new update v0.1.9

1•steadeepanda•58m ago•1 comments

Show HN: I built a lawyer game with AI

https://legalarena.app
1•divyanthj•59m ago•0 comments

Proactively Parasocial

https://nicklandolfi.com/posts/proactively-parasocial.html
1•jxmorris12•1h ago•0 comments

One man company is possible

https://mdalpha.ai/
1•sam890306•1h ago•1 comments

Show HN: Prompt Guard–MitM proxy that blocks secrets before they reach AI APIs

https://github.com/chaudharydeepak/prompt-guard
2•chaudharydeepak•1h ago•2 comments

I didn't understand TurboQuant, so I made this explainer

https://cyrusradfar.com/thoughts/turboquant-explainer
3•cyrusradfar•1h ago•0 comments

Terafab

https://en.wikipedia.org/wiki/Terafab
1•gnarlouse•1h ago•1 comments

My 1k Favorite Books

https://kylebenzle.com/bookreviews.php
1•hilliardfarmer•1h ago•0 comments

Show HN: Agent Kernel – Three Markdown files that make any AI agent stateful

https://agent-kernel.dev/?v=1.0.0
1•obilgic•1h ago•0 comments

HN: Surviving the litellm supply chain attack with a pure ctypes OS Vault

https://github.com/MACCRE-2026/MACCRE-Sovereign-Auth
2•MACCRE•1h ago•0 comments

Creating Readerly

https://nicoverbruggen.be/blog/creating-readerly
3•ganksalot•1h ago•0 comments

Squirrel seen 'vaping' in London park

https://www.telegraph.co.uk/news/2026/03/23/squirrel-seen-vaping-in-london-park/
18•walterbell•1h ago•3 comments

Research Shows Verbatim Recall of Copyrighted Books in LLMs

https://cauchy221.github.io/Alignment-Whack-a-Mole/
2•nsagent•1h ago•0 comments

Show HN: Send Love, Send Letters (at cost)

https://mappymail.com
2•pruetj•1h ago•0 comments

OpenAI backs AI "bot army" startup Isara ($94M, $650M valuation)

https://www.wsj.com/tech/ai/openai-backs-new-ai-startup-seeking-bot-army-breakthroughs-a0b1fedc
3•MoritzWall•1h ago•2 comments