Skip to content
bespexPublic

About

A lightweight AI coding deck for Linux. Not an IDE! CodeDeck puts a project directory, its changes and an AI assistant side by side, and leaves viewing files to small external tools.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CodeDeck icon

CodeDeck

AI session radar for Linux. Your co-deck for AI sessions: you and the AI, one deck. The command is codedeck.

CodeDeck runs beside your AI coding sessions (Claude Code and Codex): it shows what each session is doing and what it changed, keeps a snapshot before every turn to go back to, and gives you references to paste into the chat. CodeDeck shows, the chat steers: it never types into a session. Not an editor: files open in small external viewers.

Part of be spex – small, focused apps for Linux. Works together with the Qiew viewers (Marq, Dirq, Hyqe …). Manual: bespex.run/codedeck/manual.

Layout

One process, one window per project, columns from left to right:

Column What it is
Project bar The pinned projects with their sign and a short name; below a line, for a while, those where a session waits for you. A click switches, Ctrl+Tab goes back to the previous one, Ctrl+click opens a project in a window of its own. A right click on a free spot lists every project to pin or open. The logo opens the project management (Ctrl+Shift+P): all projects as group cards with their sessions, plans and what waits; the same page is the start page without a project. At the bottom the quick settings (do not disturb, notifications, language, all settings).
Sessions The AI sessions of the project in the order they started; one that asks or finished waits as a raised card with its question or closing words. New session starts one in tmux; Earlier holds what ended, to resume or tidy. A right click on a session's sign sets its colour and short name. Ready to start below holds prepared prompts (.scratch/prompts/), to start a session with or drag onto one. The usage of every account sums up in the foot.
Files The project tree with a Pinned group on top, search over the whole project and filters behind the funnel (what, by which session, marked, also ignored or hidden). Each row says which sessions changed it since the commit, whether you looked at it (the circle), its open @ai comments and a ⚑ hint. Below the tree the profile of the chosen file: its history, findings, preview and Copy reference. The bar on top holds the branch with the git actions and the log of every git command.
Deck Next up on top: the current stage of ROADMAP.md with its progress and the task that comes next. Three tabs: Changes, Workbench, Activity; the bell beside them lists recent events and tips.

Changes is a way with three stations per repository: Not committed, grouped by the session that wrote it, with Commit in its head; Committed, not pushed with Push; the remote with Earlier states, commits and snapshots by day, to compare two points or go back to one. A file opens its diff in place (or in Dirq); a comment on a line is written into the file as an @ai comment. Look at this (⚑) points at what deserves a second look, such as a changed test threshold.

Workbench holds the plan (the stage in progress from ROADMAP.md with its tasks from TODO.md; dragging reorders them in the roadmap) and the drafts: every folder in the scratch folder .scratch/ is a draft with its entry files, each opening in its viewer. Drafts can be pinned and moved into the project; handovers, loose files and Tidy up… sit in its foot. CodeDeck adds .scratch/ to .git/info/exclude (never .gitignore).

Activity looks back over 2 hours to 7 days: usage per account, your requests with the turns they started on a timeline, and how you worked with the AI.

Coding agents

CodeDeck does not run the AI; Claude Code or Codex does, in a terminal (or the desktop app). CodeDeck watches alongside through hooks: Connect (Settings → Coding agents) adds hooks that run codedeck hook to each configuration of the tool (~/.claude, ~/.claude-*, $CLAUDE_CONFIG_DIR; ~/.codex, ~/.codex-*, $CODEX_HOME). Every event goes, without file contents, to the socket the running CodeDeck keeps in $XDG_RUNTIME_DIR/codedeck/; each window only takes in what concerns its project. The file as it was is kept, and Disconnect takes the hooks out again. Without CodeDeck running the hook does nothing.

  • Waiting for you: a session that asks (a permission, a question) or finished its turn stands out in the sessions column, the window title, the taskbar icon and, while you look elsewhere, a desktop notification; Do not disturb pauses them for a while.
  • Where a session runs: tmux, a plain terminal, the desktop app; a sign shows when it is reachable over Remote Control. A click on the session's sign brings its terminal to the front or attaches to it.
  • Snapshots: before a session writes for the first time in a turn, and at its end, CodeDeck keeps the working tree, untracked files included, as a commit under refs/codedeck/snapshots/, through a copy of the index: your index, branches and what you push stay untouched. Go back to here puts the files back after keeping the present as a snapshot of its own. 50 per repository are kept, for 14 days.
  • Comments for the AI: a comment starting with @ai in any file (<!-- @ai …, // @ai …, # @ai …) is an instruction; CodeDeck counts them per file (open/all since the commit). Once the AI deletes one, or you tick it off in Marq or Hyqe, it counts as done. Reference with comments copies a line for the chat that names the file and its open comments.
  • Second opinion: at a session, a station or a file, another account (best another tool) reviews the work read-only, as a report in the background or as a conversation; its findings show at the files and can be passed back. Relay hands the work to another account when one runs short.
  • Start rules: a few short, fixed rules every new session gets when it starts (drafts into .scratch/, name a page published elsewhere, @ai comments are instructions, prompts for later into .scratch/prompts/). Shown word for word under Settings → Coding agents.

Language: the interface is in English or German, following the system; switch it in the quick settings or the settings. What the AI gets stays in English.

Git runs through the git command line, so your configuration, hooks and credentials apply, and every command CodeDeck ran is in the log with its output (Ctrl+Shift+G). A project may hold several repositories (the one it lies in and any found up to three folders below), each with its own way in Changes.

The right mouse button is kept for CodeDeck's own menus; Shift + right click opens the web view's menu (developer tools).

Build from source

Tauri 2 (Rust) with React, TypeScript, Vite and Tailwind CSS.

./run.sh                  # start from source, opens the directory you are in
./run.sh ~/projects/foo   # open another project
./run.sh --release        # optimized build without packaging, then start it
./run.sh --link           # once: makes `codedeck-dev` available in every directory

./run.sh installs dependencies when needed and starts with hot reload: frontend changes appear immediately, Rust changes rebuild and restart the window.

npm run tauri build    # .deb and AppImage

A package built locally only runs on systems with the same or a newer glibc. Releases are therefore built by GitHub Actions on Ubuntu 24.04 (.github/workflows/release.yml):

  1. Bump version in src-tauri/tauri.conf.json, src-tauri/Cargo.toml and package.json.
  2. Commit, then tag and push: git tag v0.2.0 && git push origin v0.2.0
  3. The workflow tests, builds the .deb and the signed AppImage and publishes a GitHub release with both, latest.json (read by the AppImage's updater; installed as .deb, APT keeps it current) and SHA256SUMS. It needs the repository secret TAURI_SIGNING_PRIVATE_KEY (the updater key, see plugins.updater.pubkey; a local tauri build needs it in the environment, too, because createUpdaterArtifacts signs the AppImage). Started by hand (Actions → Release → Run workflow) it only builds and keeps the packages as workflow artifacts.

Logo candidates: design/logos/index.html.

About

A lightweight AI coding deck for Linux. Not an IDE! CodeDeck puts a project directory, its changes and an AI assistant side by side, and leaves viewing files to small external tools.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages