Prudence
Prudence is a local-first, open-source growth coach for developers who build with AI coding agents. It records how you actually worked with your agent and links that record to what became of the code in git, so you get the feedback a colleague or a code review would normally give you.
Status
0.1.0, a recorder: it captures your sessions and links them to your commits. Outcomes and reviews come next.
Principles we build on
- The record is yours and stays on your machine.
- Capture is opt-in per repository, with a metadata-only mode.
- Secrets never leave the store.
- Findings, not scores.
- Sources on everything.
Platforms
macOS and Linux. Windows is untested.
Install
Prudence needs Python 3.12 or later and uv. If you don't have Python yet, uv can install it for you.
uv tool install --python 3.12 prudence-dev
Optional extras:
prudence-dev[mcp]adds theprudence mcpserver used by the Claude Code plugin.prudence-dev[menubar]adds the macOS menu-bar prototype (prudence menubar).
uv tool install --python 3.12 "prudence-dev[mcp,menubar]"
Quick start
prudence init --scan
prudence init --enable <repo> --level full
prudence ingest
prudence sessions --last 30d
prudence show --session <id>
prudence hooks install
prudence forget --session <id>
prudence export
init --scan lists the repositories found in your agent history without changing
anything. init --enable turns recording on for one repository at a time, at
full capture or metadata-only (use --level metadata-only for a repository whose
content you would rather not store). ingest reads what the agent recorded since the
last run. hooks install adds the git-state hooks Prudence uses to catch what happens
around each turn; it edits Claude Code's settings file, shows the diff first, and
prudence hooks uninstall reverses it.
Claude Code plugin
Prudence also ships a Claude Code plugin that brings your recorded history into a
session: a /prudence:sessions skill, a /prudence:recall skill, and an MCP server
an agent can query directly. See plugin/README.md. To try it from
this repository without installing it:
claude --plugin-dir ./plugin
What it records and what it never records
Raw session data (transcripts, tool results, file-history snapshots) is archived unmodified, byte for byte, in a local store with owner-only file permissions (mode 0600). Derived tables built from that archive hold counts, classes, and keyed line hashes, never message text: no prompt or response text is written to any derived table, at any capture level.
metadata-only withholds more: file paths and line hashes are not stored, so that
level records shape (how much changed, when, in which class of command) without a
fingerprint of the content itself.
Nothing Prudence records is uploaded anywhere. If you plan to enable it on a work repository, check your employer's policy first.
Contributing
See CONTRIBUTING.md.
License
Apache-2.0. See LICENSE.
Release files for prudence-dev 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prudence_dev-0.1.0.tar.gz | 159.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prudence_dev-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 262.2 kB
Release files / prudence_dev-0.1.0.tar.gz
| Download URL | prudence_dev-0.1.0.tar.gz |
|---|---|
| Size | 159.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
065b28bd68ffad1a10cb02e31a6ae2ead2b5d76ddc27aa64254f2164dd9c7b43
|
|
BLAKE2b-256 checksum How to use checksums |
daf48a4b11e7d2d7ccdecbd1ef4274d964d2116245d039177dcdf50ab6fe304c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency logRelease files / prudence_dev-0.1.0-py3-none-any.whl
| Download URL | prudence_dev-0.1.0-py3-none-any.whl |
|---|---|
| Size | 103.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c4d50ed3e884541235b771965c98f0a23b21416cb1f0e51cdc3706bd4ab746f
|
|
BLAKE2b-256 checksum How to use checksums |
cc34afe6afcda8f3f86f91068310d6323ba04492903b23d4a0d45f9ae83ae986
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency log