Skip to main content

DocNevis

Keep your docs in sync with your code, with AI that has to prove what it writes.

DocNevis (doc + نویس, nevis, Persian for "writer") checks every pull request for docs the change made outdated, and opens a pull request that fixes them. A person reviews and merges.

  • Finds drift on every pull request. A new flag, a renamed command, a removed route: every place in the docs that no longer matches the code is reported on the pull request, on its line.
  • Fixes it. Tables and lists are rebuilt from the code; sentences get small AI edits that link to the code they come from; new items get sections in the style of their neighbours.
  • Keeps your docs, and keeps the AI honest. It edits the docs you already have (Markdown, reStructuredText, AsciiDoc, also in another repository), and every fact, name and link it writes must exist in the code.
  • Writes docs for AI agents too: AGENTS.md, llms.txt and a context card per module, from the same facts.
  • Any language, any model. No parsers to maintain per language. Claude, any OpenAI-compatible server, or free local models through Ollama for private code.

Example

In a copy of pipx that DocNevis looks after, a pull request adds a PIPX_OUTPUT environment variable and touches no docs. DocNevis comments on it:

pipx's environment variables page (lines 22-70): This table names 17 env_var items with kind settable but leaves out PIPX_OUTPUT (new) and USE_EMOJI, which also have kind settable.

After the merge, it opens a docs pull request with the missing row, its source in the code, and why:

+    - - ``PIPX_OUTPUT``
+      - Output format, ``human`` or ``json``; any other value falls back to ``human``. Default: ``human``.

A note right below that table already explains USE_EMOJI, so the fix leaves it out of the table on purpose and records why, instead of documenting it twice.

Quick start

Install it with one line; it needs nothing else (no Python):

curl -LsSf https://docnevis.dev/install.sh | sh

On Windows (PowerShell): irm https://docnevis.dev/install.ps1 | iex. With Python tools: uv tool install docnevis or pipx install docnevis.

export ANTHROPIC_API_KEY=sk-ant-...      # or run Ollama for local models

docnevis init path/to/repo               # propose what to keep in sync; asks before writing
docnevis check path/to/repo              # report outdated docs
docnevis run path/to/repo --mode write   # fix them; review with git diff

Then commit .docnevis.yml, .docnevis/ and the workflow files init added, run gh secret set ANTHROPIC_API_KEY, and turn on "Allow GitHub Actions to create and approve pull requests" in the repository's Actions settings. From then on every pull request is checked and every merge gets a docs pull request. The full walkthrough is in Getting started.

Documentation

Page What it covers
Getting started Install, set up, first check and fix, the GitHub workflow
Use cases What DocNevis does in common situations
Examples Eight sample projects, in six languages, kept in sync by DocNevis
How it works Facts, findings, recipes, run modes, and how it keeps AI honest
Commands Every command
Configuration .docnevis.yml, generated sections, reST and AsciiDoc
GitHub Action The workflow, its inputs, docs pull requests, docs in another repository, costs
Docs for AI agents AGENTS.md, CLAUDE.md, llms.txt, context cards
AI providers Claude and local models, cost limits, privacy, secrets
Comparison Against asking an AI assistant by hand, and similar tools
Troubleshooting and FAQ Common problems and questions
Development Tests, benchmarks, releases, roadmap

Status

Early (version 0.x): everything above works and is tested on eight sample projects in C, JavaScript, TypeScript, Python, Go and Rust, but settings may still change between minor versions; CHANGELOG.md says what changed. Next: an MCP server, a GitHub App, GitLab and Bitbucket.

Contributing

Issues and pull requests are welcome: see CONTRIBUTING.md, the code of conduct and, for security problems, SECURITY.md.

License

Apache-2.0. See LICENSE.

Metadata

Release files for docnevis 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docnevis 0.1.2
File Size Uploaded Provenance Actions
docnevis-0.1.2.tar.gz 529.4 kB With provenance Details for docnevis-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docnevis 0.1.2
File Interpreter ABI Platform Actions
docnevis-0.1.2-py3-none-any.whl Python 3 none any Details for docnevis-0.1.2-py3-none-any.whl

Total release size: 821.7 kB

Release files / docnevis-0.1.2.tar.gz

Download URL docnevis-0.1.2.tar.gz
Size 529.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bc31d6a4bd8b0ed13bf516894999f2e0455b2982fd596a98eb056c4990959b57
BLAKE2b-256 checksum
How to use checksums
82c0410e66c95cc3faaef782351842ccd4643b7741794d61efe46f8ca4a4668e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / docnevis-0.1.2-py3-none-any.whl

Download URL docnevis-0.1.2-py3-none-any.whl
Size 292.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28a69986edfaf12ea8ca48e5867db1413c1feffe6d6fb7dc8b2de9925bf468c0
BLAKE2b-256 checksum
How to use checksums
ebe0cd4fd29624e20d04349e43541f130c9f8500f3ec28b26450381f5495c311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for docnevis 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for docnevis-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page