Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.2 instead.
Reason given by maintainers: Withdrawn on its first day, before it was announced; use 0.1.2.

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.1

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.1
File Size Uploaded Provenance Actions
docnevis-0.1.1.tar.gz 527.7 kB With provenance Details for docnevis-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 819.5 kB

Release files / docnevis-0.1.1.tar.gz

Download URL docnevis-0.1.1.tar.gz
Size 527.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8798770929b535347effe57227a5afc8c4f8f73dbc3eadd33aab57f4038c622d
BLAKE2b-256 checksum
How to use checksums
73a4d46951f9816f4a5b65f25acb35e04ee61a367abeabfb4a72fd32789b4227
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.1-py3-none-any.whl

Download URL docnevis-0.1.1-py3-none-any.whl
Size 291.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a7fed3b3445a5115e198e0d20b73374439c30ba93743e2ff218fa53885a94f0
BLAKE2b-256 checksum
How to use checksums
34be37aab74a20f7f5551e7112348bceaccd20faa3a3a7f970063f6388176d3f
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.1

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.1.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.1 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