Metadata-Version: 2.5
Name: docnevis
Version: 0.1.0
Summary: AI-maintained documentation that follows your code: finds docs a commit makes outdated and proposes fixes.
Project-URL: Homepage, https://github.com/docnevis/docnevis
Project-URL: Documentation, https://github.com/docnevis/docnevis/tree/main/docs
Project-URL: Changelog, https://github.com/docnevis/docnevis/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/docnevis/docnevis/issues
Author: Kazem Bigdeli
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: ai,docs,documentation,drift,git,llm
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Documentation
Classifier: Topic :: Software Development :: Documentation
Requires-Python: >=3.12
Requires-Dist: anthropic>=2.3
Requires-Dist: certifi>=2026.10.19
Requires-Dist: httpx2>=2.16
Requires-Dist: jinja2>=3.1.6
Requires-Dist: pydantic>=2.14
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: regex>=2026.9.29
Requires-Dist: rich>=13.7
Requires-Dist: typer>=0.27
Description-Content-Type: text/markdown

# 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](https://github.com/pypa/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:

```diff
+    - - ``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):

```bash
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`.

```bash
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](https://github.com/docnevis/docnevis/blob/main/docs/getting-started.md).

## Documentation

| Page | What it covers |
|---|---|
| [Getting started](https://github.com/docnevis/docnevis/blob/main/docs/getting-started.md) | Install, set up, first check and fix, the GitHub workflow |
| [Use cases](https://github.com/docnevis/docnevis/blob/main/docs/use-cases.md) | What DocNevis does in common situations |
| [Examples](https://github.com/docnevis/docnevis/blob/main/docs/examples.md) | Eight sample projects, in six languages, kept in sync by DocNevis |
| [How it works](https://github.com/docnevis/docnevis/blob/main/docs/how-it-works.md) | Facts, findings, recipes, run modes, and how it keeps AI honest |
| [Commands](https://github.com/docnevis/docnevis/blob/main/docs/commands.md) | Every command |
| [Configuration](https://github.com/docnevis/docnevis/blob/main/docs/configuration.md) | `.docnevis.yml`, generated sections, reST and AsciiDoc |
| [GitHub Action](https://github.com/docnevis/docnevis/blob/main/docs/github-action.md) | The workflow, its inputs, docs pull requests, docs in another repository, costs |
| [Docs for AI agents](https://github.com/docnevis/docnevis/blob/main/docs/ai-docs.md) | `AGENTS.md`, `CLAUDE.md`, `llms.txt`, context cards |
| [AI providers](https://github.com/docnevis/docnevis/blob/main/docs/providers.md) | Claude and local models, cost limits, privacy, secrets |
| [Comparison](https://github.com/docnevis/docnevis/blob/main/docs/comparison.md) | Against asking an AI assistant by hand, and similar tools |
| [Troubleshooting](https://github.com/docnevis/docnevis/blob/main/docs/troubleshooting.md) and [FAQ](https://github.com/docnevis/docnevis/blob/main/docs/faq.md) | Common problems and questions |
| [Development](https://github.com/docnevis/docnevis/blob/main/docs/development.md) | 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](https://github.com/docnevis/docnevis/blob/main/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](https://github.com/docnevis/docnevis/blob/main/CONTRIBUTING.md), the
[code of conduct](https://github.com/docnevis/docnevis/blob/main/CODE_OF_CONDUCT.md) and, for security problems, [SECURITY.md](https://github.com/docnevis/docnevis/blob/main/SECURITY.md).

## License

Apache-2.0. See [LICENSE](https://github.com/docnevis/docnevis/blob/main/LICENSE).
