Metadata-Version: 2.5
Name: tancrede
Version: 0.1.0.dev1
Summary: Tancrède: a desktop assistant for notes, projects and cognitive load.
Project-URL: Repository, https://github.com/Skitourer/tancrede
Author: skitourer
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.13
Requires-Dist: defusedxml>=0.7
Requires-Dist: httpx>=0.28
Requires-Dist: platformdirs>=4.3
Requires-Dist: pydantic>=2.9
Requires-Dist: pypdf>=5.1
Description-Content-Type: text/markdown

# Tancrède

A desktop assistant for notes, projects and cognitive load.

> **Status: early design.** No usable release yet. The specification lives in [`docs/SPEC.md`](docs/SPEC.md).

## What it aims to be

- **Conversation first**: ask questions about your notes, documents and projects.
- **Sourced answers**: every claim points to a source the app actually retrieved; no invented citations.
- **Your notes are never rewritten**: versioned notes, project memory, visible contradictions.
- **Nothing happens without you**: actions are proposals you confirm.
- **Bring your own model**: any OpenAI-compatible endpoint (Ollama, llama.cpp, LM Studio, vLLM, cloud APIs) or a plugin.

## Two modes

- **`enclave`**: for sensitive environments. Only allowed endpoints can be reached, classification filtering is mandatory, no telemetry, no outbound network beyond your model.
- **`open`**: no restriction; you are clearly warned that data may leave your machine.

## Try it (waves W0–W1: model connection and indexing)

Works on Windows and Linux.

```
uv sync
uv run tancrede check-gateway                    # dev profile, mock model
uv run tancrede index                            # dev profile, synthetic corpus
```

To test your own model, copy [`docs/config.example.toml`](docs/config.example.toml) to
`config.toml` in your user data directory (`%LOCALAPPDATA%\Tancrede` on Windows,
`~/.local/share/Tancrede` on Linux), start your model server (e.g. Ollama), then from a plain
terminal (not VS Code):

```
uv run tancrede --profile real check-gateway
uv run tancrede --profile real index
```

## Development

```
uv sync
uv run pre-commit install
uv run pytest
```

The `dev` profile only reads `fixtures/synthetic/` and only uses mock models. The `real` profile
refuses to start from a VS Code or Claude Code terminal.

## License

[MIT](LICENSE)
