Skip to content
PRISM-GUIPublic

About

A code editor built on PRISM, where AI agents edit alongside you as peers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

97 Commits

Folders and files

Repository files navigation

Candide

A code editor built on 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, 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

Early, usable on its own code and PRISM's: candide [FOLDER|FILE] opens a folder with its file tree, files in movable tabs, Go to File, a command palette, find in files and a Python console. Meson projects build and test from the Build menu, with errors listed in Problems.

Languages: Python through basedpyright (a dependency), C and C++ through clangd with the active build folder's compile_commands.json. clangd is not bundled: install it with your system's packages (dnf install clang-tools-extra, apt install clangd, brew install llvm).

Run it

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

About

A code editor built on PRISM, where AI agents edit alongside you as peers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages