Repository navigation
Linux port: design doc + TDD implementation roadmap #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9f6fbb5
b17d7e0
bb1a38a
d69ddf6
289eb6a
3a875b3
2e7ccef
0427582
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,3 +47,4 @@ tests/visual_report.html | |
| # Local scratch (screenshots, etc.) | ||
| tmp/ | ||
| tmp-*/ | ||
| .claude/scheduled_tasks.lock | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -214,3 +214,210 @@ Notes: | |||||||
| - README download button points to `releases/latest/download/cmux-macos.dmg`. | ||||||||
| - Versioning: bump the minor version for updates unless explicitly asked otherwise. | ||||||||
| - Changelog: update `CHANGELOG.md`; docs changelog is rendered from it. | ||||||||
|
|
||||||||
| <!-- BEGIN BEADS INTEGRATION --> | ||||||||
| ## Issue Tracking with bd (beads) | ||||||||
|
|
||||||||
| **IMPORTANT**: This project uses **bd (beads)** for ALL issue tracking. Do NOT use markdown TODOs, task lists, or other tracking methods. | ||||||||
|
|
||||||||
| ### Why bd? | ||||||||
|
|
||||||||
| - Dependency-aware: Track blockers and relationships between issues | ||||||||
| - Git-friendly: Auto-syncs to JSONL for version control | ||||||||
| - Agent-optimized: JSON output, ready work detection, discovered-from links | ||||||||
| - Prevents duplicate tracking systems and confusion | ||||||||
|
|
||||||||
| ### Quick Start | ||||||||
|
|
||||||||
| **Check for ready work:** | ||||||||
|
|
||||||||
| ```bash | ||||||||
| bd ready --json | ||||||||
| ``` | ||||||||
|
|
||||||||
| **Create new issues:** | ||||||||
|
|
||||||||
| ```bash | ||||||||
| bd create "Issue title" --description="Detailed context" -t bug|feature|task -p 0-4 --json | ||||||||
| bd create "Issue title" --description="What this issue is about" -p 1 --deps discovered-from:bd-123 --json | ||||||||
| ``` | ||||||||
|
|
||||||||
| **Claim and update:** | ||||||||
|
|
||||||||
| ```bash | ||||||||
| bd update bd-42 --status in_progress --json | ||||||||
| bd update bd-42 --priority 1 --json | ||||||||
| ``` | ||||||||
|
|
||||||||
| **Complete work:** | ||||||||
|
|
||||||||
| ```bash | ||||||||
| bd close bd-42 --reason "Completed" --json | ||||||||
| ``` | ||||||||
|
|
||||||||
| ### Issue Types | ||||||||
|
|
||||||||
| - `bug` - Something broken | ||||||||
| - `feature` - New functionality | ||||||||
| - `task` - Work item (tests, docs, refactoring) | ||||||||
| - `epic` - Large feature with subtasks | ||||||||
| - `chore` - Maintenance (dependencies, tooling) | ||||||||
|
|
||||||||
| ### Priorities | ||||||||
|
|
||||||||
| - `0` - Critical (security, data loss, broken builds) | ||||||||
| - `1` - High (major features, important bugs) | ||||||||
| - `2` - Medium (default, nice-to-have) | ||||||||
| - `3` - Low (polish, optimization) | ||||||||
| - `4` - Backlog (future ideas) | ||||||||
|
|
||||||||
| ### Workflow for AI Agents | ||||||||
|
|
||||||||
| 1. **Check ready work**: `bd ready` shows unblocked issues | ||||||||
| 2. **Claim your task**: `bd update <id> --status in_progress` | ||||||||
| 3. **Work on it**: Implement, test, document | ||||||||
| 4. **Discover new work?** Create linked issue: | ||||||||
| - `bd create "Found bug" --description="Details about what was found" -p 1 --deps discovered-from:<parent-id>` | ||||||||
| 5. **Complete**: `bd close <id> --reason "Done"` | ||||||||
|
|
||||||||
| ### Auto-Sync | ||||||||
|
|
||||||||
| bd automatically syncs with git: | ||||||||
|
|
||||||||
| - Exports to `.beads/issues.jsonl` after changes (5s debounce) | ||||||||
| - Imports from JSONL when newer (e.g., after `git pull`) | ||||||||
| - No manual export/import needed! | ||||||||
|
|
||||||||
| ### Important Rules | ||||||||
|
|
||||||||
| - ✅ Use bd for ALL task tracking | ||||||||
| - ✅ Always use `--json` flag for programmatic use | ||||||||
| - ✅ Link discovered work with `discovered-from` dependencies | ||||||||
| - ✅ Check `bd ready` before asking "what should I work on?" | ||||||||
| - ❌ Do NOT create markdown TODO lists | ||||||||
| - ❌ Do NOT use external issue trackers | ||||||||
| - ❌ Do NOT duplicate tracking systems | ||||||||
|
|
||||||||
|
||||||||
| Note: Existing `TODO.md` / `*.todo.md` docs in this repo are legacy and are being migrated into bd issues or removed. Do not create new markdown TODO files or extend the existing ones; use bd instead. |
Copilot
AI
Mar 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This references docs/QUICKSTART.md and suggests “see README.md” for beads details, but neither appears to exist / mention beads in the repo right now. Either add the referenced docs (and a README section) or update these pointers to the actual location of bd/beads documentation.
| For more details, see README.md and docs/QUICKSTART.md. | |
| For more details on bd usage, run `bd --help` and consult your project’s documentation. |
Copilot
AI
Mar 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This markdown table uses || (double leading pipe), which renders an unintended empty first column on GitHub. If that’s not intended, switch to a single leading | for proper table formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded session-specific UUIDs in agent instructions
Medium Severity
The "Surface layout" section hardcodes ephemeral session-specific UUIDs (e.g., D267DC10-..., 87DB76A9-..., F05FCE84-...) as definitive facts in a version-controlled agent instructions file. These UUIDs are dynamically generated per session and will be stale/wrong after any restart, causing agents following these instructions to reference surfaces that no longer exist.
Additional Locations (1)
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| [workspace] | ||
| members = ["cmux-core", "cmux-gtk"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if cmux-gtk directory and Cargo.toml exist
echo "Checking for cmux-gtk crate..."
if [ -d "cmux-gtk" ] && [ -f "cmux-gtk/Cargo.toml" ]; then
echo "cmux-gtk exists:"
cat cmux-gtk/Cargo.toml
else
echo "cmux-gtk directory or Cargo.toml not found"
fd -t d "cmux-gtk" .
fiRepository: jleechanorg/cmux Length of output: 133 🏁 Script executed: echo "=== Root directory structure ==="
ls -la | head -20
echo -e "\n=== Full Cargo.toml ==="
cat -n Cargo.toml
echo -e "\n=== Checking for cmux-core ==="
if [ -d "cmux-core" ] && [ -f "cmux-core/Cargo.toml" ]; then
echo "cmux-core EXISTS"
else
echo "cmux-core NOT FOUND"
fiRepository: jleechanorg/cmux Length of output: 1651 🏁 Script executed: echo "=== .gitmodules content ==="
cat .gitmodules
echo -e "\n=== Git submodule status ==="
git config --file=.gitmodules --name-only --get-regexp path
echo -e "\n=== All directories in repo ==="
find . -maxdepth 1 -type d | sort
echo -e "\n=== Attempting cargo check to see actual error ==="
cargo metadata --format-version=1 2>&1 | grep -A 5 "cmux-gtk" || echo "No cmux-gtk error in metadata"Repository: jleechanorg/cmux Length of output: 886 Workspace member The Cargo.toml declares 🤖 Prompt for AI Agents |
||
| resolver = "2" | ||
|
|
||
| [workspace.package] | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
| authors = ["cmux team"] | ||
| license = "MIT" | ||
| repository = "https://github.com/manaflow-ai/cmux" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Repository URL may be inconsistent with actual repo. The 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| [package] | ||
| name = "cmux-core" | ||
| version.workspace = true | ||
| edition.workspace = true | ||
| authors.workspace = true | ||
| license.workspace = true | ||
| repository.workspace = true | ||
|
|
||
| [dependencies] | ||
| serde = { version = "1.0", features = ["derive"] } | ||
| serde_json = "1.0" | ||
| uuid = { version = "1.0", features = ["v4", "serde"] } | ||
| chrono = { version = "0.4", features = ["serde"] } | ||
| thiserror = "1.0" | ||
|
|
||
| [dev-dependencies] | ||
| tempfile = "3.8" |


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLAUDE.md states bd auto-syncs to
.beads/issues.jsonl, but there is no.beads/directory in the repo currently. If bd is being introduced, consider adding the directory (and documenting it) or adjusting this section to reflect the current on-disk location/config.