Metadata-Version: 2.5
Name: deskc
Version: 0.1.6
Summary: Local live board where an agent proposes design options and documents and people choose and move them
Project-URL: Homepage, https://gitlab.com/cardona-oss/deskc
Project-URL: Repository, https://gitlab.com/cardona-oss/deskc
Project-URL: Documentation, https://cardona-oss.gitlab.io/deskc/
Project-URL: Changelog, https://gitlab.com/cardona-oss/deskc/-/blob/main/CHANGELOG.md
Project-URL: Issues, https://gitlab.com/cardona-oss/deskc/-/issues
Author-email: Jorge Cardona <jorgeecardona@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: agent,canvas,design,live,mcp,whiteboard
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: markdown>=3.6
Requires-Dist: pyyaml>=6
Provides-Extra: docs
Requires-Dist: mkdocs-llmstxt>=0.5; extra == 'docs'
Requires-Dist: mkdocs-material>=9.5; extra == 'docs'
Requires-Dist: mkdocs>=1.6; extra == 'docs'
Requires-Dist: mkdocstrings[python]>=0.27; extra == 'docs'
Description-Content-Type: text/markdown

<h1 align="center">deskc</h1>

<p align="center"><strong>Open a local board, ask your agent for design options, then choose and move them yourself.</strong></p>

<p align="center">
  <a href="https://pypi.org/project/deskc/"><img alt="PyPI" src="https://img.shields.io/pypi/v/deskc?style=flat-square"></a>
  <a href="https://pypi.org/project/deskc/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/deskc?style=flat-square"></a>
  <a href="https://cardona-oss.gitlab.io/deskc/"><img alt="Docs" src="https://img.shields.io/badge/docs-cardona--oss.gitlab.io%2Fdeskc-blue?style=flat-square"></a>
  <a href="https://gitlab.com/cardona-oss/deskc/-/pipelines"><img alt="Pipeline" src="https://img.shields.io/gitlab/pipeline-status/cardona-oss%2Fdeskc?branch=main&style=flat-square"></a>
  <a href="https://gitlab.com/cardona-oss/deskc/-/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue?style=flat-square"></a>
</p>

<p align="center">
  <a href="https://cardona-oss.gitlab.io/deskc/">Docs</a> ·
  <a href="https://gitlab.com/cardona-oss/deskc/-/blob/main/CHANGELOG.md">Changelog</a>
</p>

---

## Overview

deskc shows design options and documents on one canvas in your browser. The files are the source of
truth: an agent writes them (through an MCP server or by editing files), and every open page
updates at once. You drag cards, zoom, and pick an option. Your pick is saved in the file.

Use it to compare alternative pages or visual designs side by side while an agent works.

Status: alpha. Design options and markdown documents work. Sheets and decks are not built.

## Install

```bash
uv tool install deskc
```

Python 3.12 or later. Linux, macOS, Windows (not tested on the last two).

## Quickstart

1. From a clone of this repo, copy the sample into a folder:

   ```bash
   cp -r examples/product ./product
   ```

2. Add the MCP server to the project. Run this in the folder that holds `product/`:

   ```bash
   uvx deskc install
   ```

   It writes `.mcp.json` and keeps the servers already there. Claude Code also accepts
   `claude mcp add --scope project deskc -- uvx deskc mcp`.
3. Start the agent. `deskc mcp` starts the board as its own background process.
4. Run `deskc open`. It prints the address of the board and opens it in your browser.
5. Drag a card by its header. Double-click a page to interact with it.
6. Ask the agent for a new option. It calls `propose_option` and the card appears on the page.

## The board process

Each project folder has one board. It is not part of an agent, so it keeps running when the
agent exits. Several agents in the same folder share it.

- The tools check the board before each call and start it again if it stopped.
- The port is the same every time for a folder (from 8765 up). A bookmark keeps working.
- `deskc open` prints the address and the log file. `deskc stop` stops the board.
- State and logs are in `~/.local/state/deskc/`.
- `deskc serve` runs the board in the terminal instead. `deskc mcp --no-board` serves only the
  tools.

If the board is down, the agent's work is not lost: the tools write the files, and the board
shows them when it starts.

## Files

```text
product/designs/<design>.yaml     view, title, chosen, options (id, file, note, state, x, y)
product/designs/<design>/<id>.html   one full HTML page per option
product/docs/<document>.md        markdown, optional front matter: title, x, y
```

`--root DIR` sets the folder that holds `product/` (default: the current folder).

## Agent tools

- `list_artifacts`: the designs, their options and the documents.
- `get_choices`: what a person chose, and the state of every option.
- `propose_option`: add or replace one option as a full HTML page.
- `read_document`, `write_document`: markdown documents.

There is no tool to choose an option. Only a person chooses.

## Key features

- Live updates: a changed file reaches every open page in under half a second.
- Live cursors and drags between people on the same server.
- Pan, zoom, fit, and a sandboxed frame for each page.
- Writes are atomic and names are checked, so an agent cannot write outside `product/`.

## Limits

- One server on `127.0.0.1`. Remote collaborators need a tunnel. There is no login.
- Saving a design rewrites its YAML file and drops its comments.
- Last write wins. No undo.
- Many live pages on screen at a low zoom can be slow.

## Links

- Docs: https://cardona-oss.gitlab.io/deskc/
- Source: https://gitlab.com/cardona-oss/deskc
- Changelog: https://gitlab.com/cardona-oss/deskc/-/blob/main/CHANGELOG.md

## Contributing

`uv sync && make install-hooks`, then `make check`. See [CONTRIBUTING.md](https://gitlab.com/cardona-oss/deskc/-/blob/main/CONTRIBUTING.md).

## License

MIT © 2026 Jorge Cardona (see [LICENSE](https://gitlab.com/cardona-oss/deskc/-/blob/main/LICENSE)).
