Metadata-Version: 2.4
Name: session-board
Version: 0.1.0
Summary: Local browser view of Claude Code and opencode sessions
Author: Maxime U Garcia
License-Expression: MIT
Project-URL: Homepage, https://github.com/maxulysse/session-board
Project-URL: Issues, https://github.com/maxulysse/session-board/issues
Project-URL: Changelog, https://github.com/maxulysse/session-board/blob/main/CHANGELOG.md
Keywords: claude-code,opencode,dashboard,sessions
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

<img src="https://raw.githubusercontent.com/maxulysse/session-board/main/logo.svg" width="96" alt="">

# session-board

Local browser view of Claude Code and opencode sessions on this machine: who is waiting on you, what is working, and what ran recently.

![Map view: projects with their running sessions; amber ones wait on you](https://raw.githubusercontent.com/maxulysse/session-board/main/docs/map.png)

## Install

Linux or macOS, Python 3.10 or newer. No dependencies.

Try it without installing, with [uv](https://docs.astral.sh/uv/):

```sh
uvx session-board
```

`uvx` reuses the copy it downloaded first; `uvx session-board@latest` gets the newest release.

Install the `session-board` command, with uv or [pipx](https://pipx.pypa.io/):

```sh
uv tool install session-board
pipx install session-board
```

Update with `uv tool upgrade session-board` or `pipx upgrade session-board`; uninstall with `uv tool uninstall session-board` or `pipx uninstall session-board`.

Unreleased changes: `uvx --from git+https://github.com/maxulysse/session-board session-board`, or from a clone, no install needed:

```sh
git clone https://github.com/maxulysse/session-board
cd session-board
python3 -m session_board
```

## Usage

```sh
session-board                                 # opens the board in your browser; Ctrl-C to stop
session-board --no-open --port 8765 --days 7
```

- `--port N`: port to listen on; default, a free one
- `--days N`: how far back History goes; default 14
- `--no-open`: print the URL instead of opening a browser

On a remote machine, run `session-board --no-open --port 8765` there and `ssh -L 8765:127.0.0.1:8765 <host>` locally, then open the printed URL.

## What it reads

It reads, never writes:

- running Claude Code sessions: `<config>/sessions/*.json` (`pid`, `procStart`, `startedAt`, `status`, `cwd`)
- recent Claude Code transcripts: `<config>/projects/*/*.jsonl` (`ai-title` records, first prompt, `cwd`) and `<config>/projects/*/*/subagents/*.meta.json`
- opencode sessions: `$XDG_DATA_HOME/opencode/opencode.db` (default `~/.local/share`), read-only

`<config>` is every `~/.claude*` folder and `$CLAUDE_CONFIG_DIR`.
These are Claude Code's internal files, last checked with Claude Code 2.1.334; a missing field shows less on the board but never stops it.
On macOS, a crashed session whose PID a new process reuses can show as running: the PID-reuse check needs Linux's `/proc`.

The server listens on `127.0.0.1` only. Every request needs the random key in the printed URL.

## The board

The page refreshes every 5 s while its tab is visible. Pick what to show (**Now** or **History**) and how (**Map** or **Kanban**); the URL hash keeps the choice, e.g. `#history/kanban`.

- **Now**: running sessions. Sessions that are not `busy` or running a shell command are waiting on you (amber, pulsing). Subagents show as small dots, blue while they run.
- **History**: sessions of the last `--days` that are no longer running, fading with age.
- **Map**: one graph of everything: projects (the outermost git work tree around the session's folder, so a checkout nested inside a repo joins it) on a ring, their sessions fanned out behind them. The side table lists projects: click a column to sort, again to reverse; click a project for its details.
- **Kanban**: one card per session. Now has columns waiting on you and working; History has today, yesterday, this week and older.

![Kanban view: sessions waiting on you and working](https://raw.githubusercontent.com/maxulysse/session-board/main/docs/kanban.png)

The tab icon counts the sessions waiting on you (amber), turns green when none wait, and grey on History.

The filter box keeps sessions whose title, project or folder contains its text. The sun/moon switch picks a light or dark theme; until you use it, the page follows the system.

## Configuration

Both files live in `$XDG_CONFIG_HOME/session-board/` (default `~/.config/session-board/`), are optional, and are read on every refresh.

Renamed a folder? Map the old path to the new one in `aliases.json`, and its old sessions join the new project:

```json
{ "~/workspace/old-name": "~/workspace/new-name" }
```

Hide sessions in `ignore.json`: folder patterns, matched after aliases (a folder includes its subfolders), and session ids, shown in each session's tooltip:

```json
{ "folders": ["~/workspace/tmp-*"], "sessions": ["<session id>"] }
```

Tests: `python3 -m unittest`
