Metadata-Version: 2.5
Name: sententia-ai
Version: 0.6.3
Summary: Write down what you think before the AI answers, so you can see whether it changes your mind.
Project-URL: Homepage, https://being-and-thought.github.io/sententia/
Project-URL: Source, https://github.com/Being-and-Thought/sententia
Project-URL: Changelog, https://github.com/Being-and-Thought/sententia/blob/main/CHANGELOG.md
Author: Being and Thought
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: ai,automation-bias,claude-code,decision-making,human-oversight,llm,mcp
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Provides-Extra: mcp
Requires-Dist: mcp>=2; extra == 'mcp'
Description-Content-Type: text/markdown

# Sententia

[![PyPI](https://img.shields.io/pypi/v/sententia-ai?label=PyPI&color=000)](https://pypi.org/project/sententia-ai/) [![Tests](https://github.com/Being-and-Thought/sententia/actions/workflows/test.yml/badge.svg)](https://github.com/Being-and-Thought/sententia/actions/workflows/test.yml) [![Licence](https://img.shields.io/badge/licence-Apache%202.0-000)](https://github.com/Being-and-Thought/sententia/blob/main/LICENSE)

Sententia asks you to write down what you think before an AI answers, so you can see whether its answer changes your mind.

<p>
  <img src="https://raw.githubusercontent.com/Being-and-Thought/sententia/main/docs/screenshots/panel.png" alt="The browser panel asking for your view before the message is sent" width="49%">
  <img src="https://raw.githubusercontent.com/Being-and-Thought/sententia/main/docs/screenshots/terminal-home.png" alt="The sen home screen" width="49%">
</p>

## Why

Studies find that people move their decisions towards AI recommendations, including incorrect ones, and that checks shown after the recommendation, such as a prompt to reconsider, have little effect. Asking people to decide before they see the recommendation reduces this. The studies are summarised in [RESEARCH.md](https://github.com/Being-and-Thought/sententia/blob/main/RESEARCH.md).

## How it works

When a prompt looks like a decision or a choice between options, Sententia holds it until you write one line saying what you would do and why. Answers such as "not sure" are returned once for a definite view. The AI then answers. In the browser extension and the API proxy, the AI does not see your view; in Claude Code it does, because the view is part of your prompt.

After reading the answer, you record whether you kept your view, moved partway or switched to the AI's. Your record shows how often you wrote a view first and what you did when the AI disagreed. It does not score whether your view turned out right, since a sound judgement can still produce a poor result.

For work about to be sent or published, Sententia instead asks what a critical reader would object to, and asks the AI to review the work as that reader would.

Coding prompts are not held. `!skip` sends a prompt without the step, and `sen off` turns Sententia off.

`sen report` opens your record as a page, and `sen team` combines five or more people's counts into a team report. Both are shown here with made-up records.

<p>
  <img src="https://raw.githubusercontent.com/Being-and-Thought/sententia/main/docs/screenshots/report.png" alt="A personal report: the share of views written first, how often the view was kept when the AI disagreed, a weekly chart and the list of decisions" width="49%">
  <img src="https://raw.githubusercontent.com/Being-and-Thought/sententia/main/docs/screenshots/team-report.png" alt="A team report combining seven people's monthly counts: planted mistakes caught, switch and skip rates, and a month-by-month table" width="49%">
</p>

## Installation

```sh
pip install "sententia-ai[mcp]"
sen install          # adds the Claude Code hooks
```

- Browser extension (ChatGPT and Claude): download `sententia-chrome` or `sententia-firefox` from the [latest release](https://github.com/Being-and-Thought/sententia/releases/latest). In Chrome or Edge, unzip it and load the folder as an unpacked extension; in Firefox, load the zip as a temporary add-on from `about:debugging`.
- Any application: run `SENTENTIA_UPSTREAM=https://api.openai.com sententia-proxy` and set the application's API base URL to `http://127.0.0.1:8787/v1`.
- MCP clients: `claude mcp add sententia -- sententia-mcp`.

## Usage

In Claude Code, add your view on a line starting with `take:`. A confidence in brackets is optional.

```
should I accept the startup's offer or stay where I am?
take: stay, because the startup only has six months of runway (70%)
```

```sh
sen                                    # your record
sen final <id> kept|partway|switched   # what you did after the answer
sen report                             # your record as a web page
sen drill                              # practice cases with planted AI mistakes
sen help                               # all commands
```

## Data

Everything is stored on your own computer. See [PRIVACY.md](https://github.com/Being-and-Thought/sententia/blob/main/PRIVACY.md).

## Limitations

Judgement calls are detected with keyword rules, which will sometimes be wrong. There is not yet any evidence that Sententia improves decisions; [DIRECTION.md](https://github.com/Being-and-Thought/sententia/blob/main/DIRECTION.md) describes the trial that would test this.

## Licence

Apache License 2.0. Contributions are welcome; see [CONTRIBUTING.md](https://github.com/Being-and-Thought/sententia/blob/main/CONTRIBUTING.md).
