Metadata-Version: 2.5
Name: whykit
Version: 0.4.0
Summary: Keep decisions, their reasoning, and supporting sources together in Markdown
Project-URL: Homepage, https://github.com/CometWeb-io/whykit
Project-URL: Documentation, https://github.com/CometWeb-io/whykit#readme
Project-URL: Source, https://github.com/CometWeb-io/whykit
Project-URL: Changelog, https://github.com/CometWeb-io/whykit/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/CometWeb-io/whykit/issues
Project-URL: Security, https://github.com/CometWeb-io/whykit/blob/main/SECURITY.md
Author-email: Maciej Zmitrukiewicz <hello@cometweb.io>
Maintainer-email: Maciej Zmitrukiewicz <hello@cometweb.io>
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: adr,agents,audit-trail,decision-log,decision-records,evidence,git,knowledge-base,markdown,mcp,obsidian,provenance
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 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Documentation
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Version Control :: Git
Classifier: Typing :: Typed
Requires-Python: >=3.11
Provides-Extra: mcp
Requires-Dist: mcp<2.4,>=2.2; extra == 'mcp'
Requires-Dist: opentelemetry-api>=1.45.1; extra == 'mcp'
Requires-Dist: pyjwt>=2.15.0; extra == 'mcp'
Description-Content-Type: text/markdown

# WhyKit

**Remember why a decision was made.**

WhyKit helps you record decisions, link the sources behind them, and see what
needs review. Your records are Markdown files you can read, edit and keep in Git.
People can use them directly; AI tools can read the same context.

For example, your team chooses to ship SSO before audit logs because of support
tickets. Three months later, someone asks why. WhyKit can show the decision,
the source it cites and its review status.

![A source, a decision and a review, kept together in WhyKit.](https://raw.githubusercontent.com/CometWeb-io/whykit/v0.4.0/docs/media/overview.svg)

**Python 3.11+ · No runtime dependencies · Apache-2.0**

**Status:** public alpha. Source version: `0.4.0`. Check
[PyPI](https://pypi.org/project/whykit/) for the latest published version; it
may differ from this source. For an installed release, follow the documentation
links on its PyPI page.
Keep sensitive vaults private; WhyKit's filters are not access controls.
For version 0.4, see the [feature status](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/feature-status.md)
and the [upgrade and recovery guide](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/migration-0.4.md) before using 0.4 data.

[![CI](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml/badge.svg)](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml)

## Try it

Install [uv](https://docs.astral.sh/uv/getting-started/installation/) (0.13.4+)
and use Python 3.11+. This example works with the published 0.3.4 release and
uses a fictional source. It creates a
folder called a *vault*: just the Markdown files WhyKit works with.

<!-- quickstart:start -->
```bash
uv tool install whykit

# Create a vault.
whykit init my-ledger

# Record a source, then a draft decision that cites it.
whykit new --root my-ledger evidence \
  --source "Support ticket export, Q3" --type dataset \
  --location "https://example.com/exports/q3-tickets.csv" \
  --claims "Most onboarding tickets mention SSO"
whykit new --root my-ledger decision "Ship SSO before audit logs" \
  --owner Platform --status draft --source E-001

# See the connection, then check the vault.
whykit trace --root my-ledger --decision D-001
whykit lint --root my-ledger
whykit review --root my-ledger list --due-days 120
```
<!-- quickstart:end -->

The trace shows the decision and its source:

```text
D-001  06-decisions/d-001-ship-sso-before-audit-logs.md  (draft)
    E-001 active
```

`D-001` is the decision; `E-001` is the source it cites. The decision is
still a draft: open its Markdown file and replace the prompts with your actual
context, choice, reasons, alternatives and consequences before
[approving it](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md#approve-a-decision).

The lint check reports five expected warnings: one for the unfinished decision
and four for unanswered questions in the vault's `AGENTS.md`. Answer those
questions before letting an agent write to the vault or enabling the strict CI
gate. Replace the starter content before treating the vault as authoritative.
This draft is not yet listed for review, so the review list is empty.

If `whykit` is not found, run `uv tool update-shell` and open a new terminal.
Use `uv tool upgrade whykit` to update an existing installation. For development
or the optional Explorer, see [running from a checkout](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md#run-whykit-from-a-checkout).

## What would you like to do?

- **Record a decision and revisit it later:** [record, check and supersede a decision](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/tutorials/record-and-supersede.md).
- **Bring existing notes or ADRs:** [adopt existing Markdown](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md#already-have-a-pile-of-markdown).
- **Review a changed source and share a filtered export:** [import, review and export](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/tutorials/review-and-export.md).
- **Give an AI tool read-only context:** [connect the MCP server](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/mcp.md).
- **Check decisions in pull requests:** [set up a GitHub Actions gate](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/tutorials/gate-pull-requests.md).

## How it works

```text
source (E-001) → decision and reasons (D-001) → review
```

WhyKit connects the records, checks their structure and reports review dates.
When a decision changes, you can record a successor instead of overwriting the
accepted reasoning. An optional Git check can flag edits to accepted records.

WhyKit does **not** determine whether a source is true or a decision is right.
It does not check external sources for changes on its own. Sensitivity labels
and filtered outputs are not a substitute for repository access permissions.
[See when plain ADRs are a better fit](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/project-positioning.md).

## Documentation

- [Start here](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/README.md) · [Concepts](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/concepts.md) · [How-to guides](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md)
- [Command reference](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/cli.md) · [Configuration](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/configuration.md) · [Lint rules](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/rules.md)
- [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/ci.md) · [MCP server](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/mcp.md) · [Troubleshooting](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/troubleshooting.md)
- Example vaults: [tiny](https://github.com/CometWeb-io/whykit/blob/v0.4.0/examples/tiny/) and [Northline](https://github.com/CometWeb-io/whykit/blob/v0.4.0/examples/northline/)

[Contributing](https://github.com/CometWeb-io/whykit/blob/v0.4.0/CONTRIBUTING.md) · [Code of Conduct](https://github.com/CometWeb-io/whykit/blob/v0.4.0/CODE_OF_CONDUCT.md) ·
[Security policy](https://github.com/CometWeb-io/whykit/blob/v0.4.0/SECURITY.md) · [Release checklist](https://github.com/CometWeb-io/whykit/blob/v0.4.0/.github/RELEASE.md)

Copyright 2026 Maciej Zmitrukiewicz (hello@cometweb.io), licensed under
[Apache-2.0](https://github.com/CometWeb-io/whykit/blob/v0.4.0/LICENSE). [CometWeb](https://cometweb.io) is the product name, not
the copyright holder.
