Metadata-Version: 2.5
Name: candide
Version: 0.0.6
Summary: A code editor built on PRISM, where AI agents edit alongside you as peers.
Project-URL: Repository, https://github.com/PRISM-GUI/candide
Author: Alexis Jeandet
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: basedpyright
Requires-Dist: duckdb>=2
Requires-Dist: ipython>=9
Requires-Dist: lsprotocol
Requires-Dist: mcp>=2
Requires-Dist: pandas>=2
Requires-Dist: prism-gui>=0.1.7
Requires-Dist: pydantic>=2
Requires-Dist: pygls>=2
Requires-Dist: watchfiles>=1
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-timeout; extra == 'test'
Description-Content-Type: text/markdown

# Candide

A code editor built on [PRISM](https://github.com/PRISM-GUI/PRISM), where AI agents edit alongside
you as peers.

> *Il faut cultiver notre jardin.* -- Voltaire, *Candide*

## The name

The IDE is in the word: cand-IDE. In Voltaire's novel, Candide is the optimist who is taught that
all is for the best in the best of all possible worlds. An AI agent reporting that everything went
well is that kind of optimism, so Candide shows you exactly what the agent changed, and you decide.
The book ends with "we must tend our garden": your code is your garden.

## What it aims to be

- **Agents are peers.** An agent edits the same shared document as you, through
  [ycpp](https://github.com/PRISM-GUI/ycpp), PRISM's Yjs-compatible CRDT. Its edits show as
  tracked changes you accept or reject, and you both keep typing meanwhile.
- **Co-editing.** People join the same document over the same protocol, and any Yjs client can too.
- **Desktop and browser.** The same app runs natively and in a web page through Pyodide. Every
  integration (language servers, git, agents) sits behind a small interface with a desktop and a
  browser version; peers meet over the network either way.
- **Useful features, kept simple.** Python decides what happens; PRISM's C++ does the heavy work
  (the text buffer, layout, drawing, merging). Language servers, git, tree-sitter and AI SDKs come
  from Python packages instead of being rewritten.

## Status

A first window: `candide FILE` opens one file in a code editor with syntax highlighting, and Ctrl+S
saves it.

## Run it

```sh
pip install candide      # or: uv tool install candide
candide hello.py
```

PRISM comes as a dependency (`prism-gui` on PyPI, wheels for Linux and macOS). To work on Candide
against a local PRISM build instead: `pip install -e . --no-deps`, then run with
`PYTHONPATH=/path/to/PRISM/builddir/python`. Tests: `python -m pytest`.

## License

MIT
