workdash 0.4.0__tar.gz → 0.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. {workdash-0.4.0 → workdash-0.6.0}/PKG-INFO +176 -280
  2. workdash-0.6.0/README.md +201 -0
  3. {workdash-0.4.0 → workdash-0.6.0}/pyproject.toml +11 -2
  4. workdash-0.6.0/src/workdash/agent_context.py +134 -0
  5. workdash-0.6.0/src/workdash/agent_execution.py +135 -0
  6. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/analysis_cache.py +8 -0
  7. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/analyzer.py +57 -59
  8. workdash-0.6.0/src/workdash/autoclose.py +438 -0
  9. workdash-0.6.0/src/workdash/autodispatch.py +343 -0
  10. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/backend.py +109 -75
  11. workdash-0.6.0/src/workdash/birdview.py +142 -0
  12. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/branchdiff.py +25 -186
  13. workdash-0.6.0/src/workdash/branchinfo.py +85 -0
  14. workdash-0.6.0/src/workdash/config.py +997 -0
  15. workdash-0.6.0/src/workdash/control.py +3138 -0
  16. workdash-0.6.0/src/workdash/dashboard_record.py +95 -0
  17. workdash-0.6.0/src/workdash/editors.py +125 -0
  18. workdash-0.6.0/src/workdash/git.py +733 -0
  19. workdash-0.6.0/src/workdash/github_client.py +3648 -0
  20. workdash-0.6.0/src/workdash/launcher.py +1548 -0
  21. workdash-0.6.0/src/workdash/log_diagnostics.py +38 -0
  22. workdash-0.6.0/src/workdash/models.py +168 -0
  23. workdash-0.6.0/src/workdash/prompt_templates.py +24 -0
  24. workdash-0.6.0/src/workdash/prompts/action_block.txt +32 -0
  25. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/prompts/analyze_issue.txt +36 -29
  26. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/prompts/analyze_pr.txt +20 -16
  27. workdash-0.6.0/src/workdash/prompts/autostart_implement.txt +75 -0
  28. workdash-0.6.0/src/workdash/prompts/launch_issue.txt +107 -0
  29. workdash-0.6.0/src/workdash/prompts/launch_review.txt +48 -0
  30. workdash-0.6.0/src/workdash/prompts/nudge.txt +3 -0
  31. workdash-0.6.0/src/workdash/prompts/review_pull_request.txt +4 -0
  32. workdash-0.6.0/src/workdash/prompts/section_merge_base.txt +2 -0
  33. workdash-0.6.0/src/workdash/prompts/section_previous_analysis.txt +4 -0
  34. workdash-0.6.0/src/workdash/prompts/section_review_context.txt +2 -0
  35. workdash-0.6.0/src/workdash/prompts/section_review_retry.txt +2 -0
  36. workdash-0.6.0/src/workdash/repo_resolver.py +77 -0
  37. workdash-0.6.0/src/workdash/repo_worktree.py +374 -0
  38. workdash-0.6.0/src/workdash/review.py +103 -0
  39. workdash-0.6.0/src/workdash/tui.py +1835 -0
  40. workdash-0.6.0/src/workdash/view.py +1072 -0
  41. workdash-0.6.0/src/workdash/work_instruction.py +103 -0
  42. workdash-0.6.0/src/workdash/work_state.py +248 -0
  43. workdash-0.6.0/src/workdash/workdash.py +1584 -0
  44. {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/PKG-INFO +176 -280
  45. workdash-0.6.0/src/workdash.egg-info/SOURCES.txt +90 -0
  46. {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/requires.txt +5 -1
  47. workdash-0.6.0/tests/test_agent_context.py +265 -0
  48. workdash-0.6.0/tests/test_analysis_browser.py +157 -0
  49. workdash-0.6.0/tests/test_analysis_viewer.py +875 -0
  50. workdash-0.6.0/tests/test_analyzer.py +623 -0
  51. workdash-0.6.0/tests/test_autoclose.py +1291 -0
  52. workdash-0.6.0/tests/test_autodispatch.py +4355 -0
  53. workdash-0.6.0/tests/test_backend.py +1670 -0
  54. workdash-0.6.0/tests/test_birdview.py +331 -0
  55. {workdash-0.4.0 → workdash-0.6.0}/tests/test_branchdiff.py +133 -86
  56. workdash-0.6.0/tests/test_branchinfo.py +359 -0
  57. workdash-0.6.0/tests/test_config.py +2269 -0
  58. workdash-0.6.0/tests/test_control.py +8912 -0
  59. workdash-0.6.0/tests/test_dashboard_record.py +84 -0
  60. workdash-0.6.0/tests/test_editors.py +72 -0
  61. workdash-0.6.0/tests/test_git.py +223 -0
  62. workdash-0.6.0/tests/test_github.py +152 -0
  63. workdash-0.6.0/tests/test_github_boundary_stage2.py +101 -0
  64. workdash-0.6.0/tests/test_github_client.py +2749 -0
  65. workdash-0.6.0/tests/test_launcher.py +2469 -0
  66. {workdash-0.4.0 → workdash-0.6.0}/tests/test_normalization.py +17 -1
  67. workdash-0.6.0/tests/test_persistent_startup.py +410 -0
  68. workdash-0.6.0/tests/test_prompts.py +470 -0
  69. workdash-0.6.0/tests/test_repo_resolver.py +68 -0
  70. {workdash-0.4.0 → workdash-0.6.0}/tests/test_repo_worktree.py +1115 -85
  71. workdash-0.6.0/tests/test_review.py +1427 -0
  72. {workdash-0.4.0 → workdash-0.6.0}/tests/test_todo.py +90 -10
  73. workdash-0.6.0/tests/test_tui.py +4942 -0
  74. workdash-0.6.0/tests/test_view.py +1706 -0
  75. workdash-0.6.0/tests/test_viewer_terminal.py +90 -0
  76. workdash-0.6.0/tests/test_work_instruction.py +350 -0
  77. workdash-0.6.0/tests/test_work_state.py +1027 -0
  78. workdash-0.6.0/tests/test_workdash.py +4070 -0
  79. workdash-0.6.0/tests/test_zellij_integration.py +1900 -0
  80. workdash-0.6.0/tests/test_zellij_server_lifecycle.py +526 -0
  81. workdash-0.6.0/tests/test_zellij_update_workflow.py +239 -0
  82. workdash-0.4.0/README.md +0 -309
  83. workdash-0.4.0/src/workdash/config.py +0 -628
  84. workdash-0.4.0/src/workdash/control.py +0 -839
  85. workdash-0.4.0/src/workdash/git.py +0 -315
  86. workdash-0.4.0/src/workdash/github.py +0 -201
  87. workdash-0.4.0/src/workdash/github_client.py +0 -1562
  88. workdash-0.4.0/src/workdash/launcher.py +0 -636
  89. workdash-0.4.0/src/workdash/models.py +0 -103
  90. workdash-0.4.0/src/workdash/prompts/launch_issue.txt +0 -20
  91. workdash-0.4.0/src/workdash/prompts/launch_review.txt +0 -20
  92. workdash-0.4.0/src/workdash/repo_resolver.py +0 -112
  93. workdash-0.4.0/src/workdash/repo_worktree.py +0 -156
  94. workdash-0.4.0/src/workdash/todo.py +0 -173
  95. workdash-0.4.0/src/workdash/tui.py +0 -952
  96. workdash-0.4.0/src/workdash/workdash.py +0 -790
  97. workdash-0.4.0/src/workdash.egg-info/SOURCES.txt +0 -50
  98. workdash-0.4.0/tests/test_analyzer.py +0 -392
  99. workdash-0.4.0/tests/test_backend.py +0 -1081
  100. workdash-0.4.0/tests/test_config.py +0 -708
  101. workdash-0.4.0/tests/test_control.py +0 -266
  102. workdash-0.4.0/tests/test_git.py +0 -100
  103. workdash-0.4.0/tests/test_github.py +0 -91
  104. workdash-0.4.0/tests/test_github_client.py +0 -2023
  105. workdash-0.4.0/tests/test_launcher.py +0 -1137
  106. workdash-0.4.0/tests/test_repo_resolver.py +0 -125
  107. workdash-0.4.0/tests/test_tui.py +0 -1720
  108. workdash-0.4.0/tests/test_workdash.py +0 -1329
  109. {workdash-0.4.0 → workdash-0.6.0}/LICENSE +0 -0
  110. {workdash-0.4.0 → workdash-0.6.0}/setup.cfg +0 -0
  111. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/__init__.py +0 -0
  112. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/__main__.py +0 -0
  113. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/included_items.py +0 -0
  114. {workdash-0.4.0 → workdash-0.6.0}/src/workdash/prompts/__init__.py +0 -0
  115. {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/dependency_links.txt +0 -0
  116. {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/entry_points.txt +0 -0
  117. {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/top_level.txt +0 -0
  118. {workdash-0.4.0 → workdash-0.6.0}/tests/test_analysis_cache.py +0 -0
  119. {workdash-0.4.0 → workdash-0.6.0}/tests/test_included_items.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workdash
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: Text-based GitHub work triage dashboard.
5
5
  Author-email: Alessandro Molina <alessandro@molina.fyi>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -697,13 +697,17 @@ Classifier: Topic :: Terminals
697
697
  Requires-Python: >=3.12
698
698
  Description-Content-Type: text/markdown
699
699
  License-File: LICENSE
700
+ Requires-Dist: kajiki>=1.0.3
700
701
  Requires-Dist: markdown>=3.6
702
+ Requires-Dist: nh3>=0.3.0
701
703
  Requires-Dist: TurboGears2>=2.5.0
702
704
  Requires-Dist: textual>=0.58
703
705
  Requires-Dist: textual-diff-view>=0.1.0
704
706
  Provides-Extra: test
705
707
  Requires-Dist: pytest>=8; extra == "test"
706
- Requires-Dist: pytest-bdd>=7; extra == "test"
708
+ Requires-Dist: pytest-bdd>=9.0.1; extra == "test"
709
+ Requires-Dist: pytest-xdist>=3; extra == "test"
710
+ Requires-Dist: PyYAML>=6; extra == "test"
707
711
  Dynamic: license-file
708
712
 
709
713
  # workdash
@@ -712,306 +716,198 @@ Text-based GitHub work triage dashboard ( <https://alessandro.molina.fyi/workdas
712
716
 
713
717
  `workdash` pulls together the issues and pull requests that matter to you across
714
718
  your GitHub repositories, suggests what to pick up next, and makes it easy to
715
- jump into a work item — either for a quick review, a deeper AI-assisted
716
- analysis, or a full coding session in a dedicated worktree.
719
+ jump into a work item — for a quick review, a deeper AI-assisted analysis, or a
720
+ full coding session in a dedicated worktree.
717
721
 
718
- ![workdash screenshot](site/workdash.png)
722
+ ![workdash screenshot](site/img/dashboard.gif)
719
723
 
720
- ## Platform
724
+ Linux and macOS (not tested on Windows). Requires Python `>=3.12`, an
725
+ authenticated [`gh`](https://cli.github.com/), `zellij`, a viewer command for
726
+ opening links, and at least one agent CLI tool (for example `claude`, `codex`,
727
+ `pi`, or `vibe`).
721
728
 
722
- Linux and macOS. `workdash` relies on `xdg-open` or `open` and expects `zellij`
723
- for the interactive dashboard and terminal-backed work actions. It has not
724
- been tested on Windows.
729
+ ## Installing workdash
725
730
 
726
- ## Requirements
727
-
728
- - Python `>=3.12`.
729
- - Authenticated [`gh`](https://cli.github.com/) for GitHub access.
730
- `workdash --configure` installs a local copy when `gh` is not available.
731
- - `xdg-open` or `open` for opening links and rendered analyses in your browser.
732
- - `zellij` for the interactive dashboard, terminal panes, and agent sessions.
733
- `workdash --configure` installs a local copy when `zellij` is not available.
734
- - Global `gh` and `zellij` binaries are preferred; configured local copies are
735
- used as fallbacks.
736
- - Optional, depending on which actions you use from the TUI:
737
- - `claude` — to analyze or launch a Claude coding session.
738
- - `codex` — to analyze or launch a ChatGPT Codex session.
739
- - `code` — to launch a VSCode + Copilot coding session.
740
- - `pi` — to launch a pi coding agent session.
741
-
742
- ## Installation
743
-
744
- With [`uv`](https://docs.astral.sh/uv/) — one isolated install, `workdash` on
745
- your `PATH`:
731
+ With [`uv`](https://docs.astral.sh/uv/):
746
732
 
747
733
  ```bash
748
734
  uv tool install workdash
749
735
  ```
750
736
 
751
- For development install:
752
-
753
- ```bash
754
- pip install -e '.[test]'
737
+ ### First run
738
+
739
+ On the first run, `workdash` starts an interactive setup wizard. If `gh` or
740
+ `zellij` are not on your `PATH`, it downloads local copies automatically (run
741
+ `gh auth login` to authenticate). A typical first run looks like this
742
+ (user input shown after the prompts):
743
+
744
+ ```text
745
+ $ workdash
746
+ Zellij is not on PATH. Installing a local Zellij binary from https://.../zellij-x86_64-unknown-linux-musl.tar.gz.
747
+ Installed Zellij to: /home/octocat/.config/workdash/bin/zellij
748
+
749
+ GitHub CLI is not on PATH. Installing a local GitHub CLI binary from https://.../latest.
750
+ Installed GitHub CLI to: /home/octocat/.config/workdash/bin/gh
751
+
752
+ Open command [xdg-open] (Enter to accept):
753
+ Does the viewer require its own terminal window? [y/N]
754
+ Analysis viewer [workdash view]:
755
+ Detected 'claude' on PATH, using analyze: claude -p, launch: claude
756
+ Detected 'codex' on PATH, using analyze: codex exec, launch: codex
757
+ Agents for analyze (at most 9), commands that run once and print the analysis, e.g. claude -p:
758
+ claude: claude -p
759
+ codex: codex exec
760
+ Agents for analyze, add a command (empty to finish):
761
+ Agents for code (at most 9), commands that start an interactive coding session, e.g. claude:
762
+ claude: claude
763
+ codex: codex
764
+ Agents for code, add a command (empty to finish):
765
+ GitHub username: octocat
766
+ Work directory [~/wrk]:
767
+ Repositories set to: octocat/*
768
+ Todo repository [octocat/todos]:
769
+
770
+ Configuration saved to /home/octocat/.config/workdash/config.json.
771
+ Run 'workdash' again to start the dashboard.
755
772
  ```
756
773
 
757
- ## First-time setup
774
+ The wizard asks for your GitHub username, the viewer command, the analysis
775
+ viewer, the agents to use (tools found on your `PATH` are added automatically),
776
+ the working directory for per-item worktrees, the repositories to track
777
+ (`<username>/*` by default), and the todo repository. Re-run it at any time
778
+ with `workdash --configure`.
758
779
 
759
- On the first run you need a configuration file at
760
- `~/.config/workdash/config.json`. Generate it interactively with:
780
+ To prepare tools without running the wizard or signing in, run `workdash --dependencies`.
781
+ It leaves existing executables alone and installs missing `gh` and the pinned Zellij release under `~/.config/workdash/bin`.
761
782
 
762
- ```bash
763
- workdash --configure
764
- ```
765
-
766
- The wizard fills in:
767
-
768
- - Your GitHub username.
769
- - Zellij availability. If `zellij` is not on `PATH`, the wizard downloads the
770
- latest release binary into the workdash configuration directory.
771
- - GitHub CLI availability. If `gh` is not on `PATH`, the wizard downloads the
772
- latest release binary into the workdash configuration directory. Authentication
773
- is still handled by `gh`; run `gh auth login` if startup reports that `gh` is
774
- not authenticated.
775
- - The list of repositories to track (see *Repository selectors* below).
776
- - The todo repository where captured todos are created (defaults to
777
- `<username>/todos`, see *Todos* below).
778
- - A working directory where per-item git worktrees will live.
779
- - The analyze and launch commands for Claude and Codex (auto-detected when the
780
- tools are on your `PATH`).
781
-
782
- You can edit `~/.config/workdash/config.json` by hand at any time. Re-running
783
- `--configure` only prompts for fields that are still empty, except for Zellij:
784
- the wizard always checks for a global `zellij` first and downloads a fresh
785
- local binary when no global binary exists. It does the same for `gh`, checking
786
- for a global GitHub CLI first and downloading a fresh local copy when none is
787
- available.
788
-
789
- ## Usage
790
-
791
- Launch the TUI:
783
+ ## Using workdash
792
784
 
793
785
  ```bash
794
786
  workdash
795
787
  ```
796
788
 
797
- Useful commands and flags:
789
+ launches the dashboard in a persistent Zellij session named after its control
790
+ address port (`workdash-8765` by default, `workdash-<port>` with a custom
791
+ `WORKDASH_HOST` or `--host HOST[:PORT]`, which behaves like `WORKDASH_HOST` on a
792
+ plain start and cannot be combined with it). Each row is an issue or pull
793
+ request; one row is marked `*` as the suggested next pick. Keys:
794
+
795
+ | Key | Action |
796
+ | --- | --- |
797
+ | `/` | Filter the list by type, repo, or title (e.g. `IS 42`); press again to clear. |
798
+ | `v` | View menu for the selected item: `v` reads it as Markdown in a pane, `o` opens its GitHub URL in your viewer. |
799
+ | `r` | Refresh the list from GitHub. |
800
+ | `a` | Analyze the selected item with a configured agent; the result opens in the analysis viewer (cached while the item is unchanged). |
801
+ | `c` | Code menu: launch a coding agent in the item's dedicated worktree, or choose a terminal or an autonomous review. |
802
+ | `e` | Edit menu: open a configured editor (or a branch diff) on the item's worktree. |
803
+ | `d` | Start an autodispatch session on the selected issue: the agent implements it, reviews the resulting PR, and loops until done. |
804
+ | `m` | Toggle automerge for a running autodispatch session. |
805
+ | `w` | Capture a todo (created as an issue in your todo repository). |
806
+ | `q` | Quit the dashboard; the session and its panes keep running. |
807
+
808
+ ## Workdash CLI
809
+
810
+ The CLI talks to the running dashboard: `workdash` starts the TUI and a JSON
811
+ control API in the same process (default `127.0.0.1:8765`, override with
812
+ `WORKDASH_HOST` or `--host HOST[:PORT]`), and the commands below call it.
813
+
814
+ | Command | Purpose |
815
+ | --- | --- |
816
+ | `workdash list [--refresh] [--json]` | Print the dashboard items, optionally refreshed from GitHub first. |
817
+ | `workdash ready SCOPE [--json]` | List the GitHub work ready to be picked up next. |
818
+ | `workdash dispatch SCOPE [--agent NAME] [--group NAME]` | Launch one ready issue with a coding agent. |
819
+ | `workdash autodispatch SCOPE [--agent NAME] [--group NAME]` | Start a supervised session that keeps dispatching ready work. |
820
+ | `workdash autodispatch-stop SESSION_ID` | Stop a running session. |
821
+ | `workdash analyze ITEM [--agent NAME]` | Analyze an item; result is cached and viewable. |
822
+ | `workdash review ITEM [--agent NAME]` | Start an autonomous review of an open PR. |
823
+ | `workdash code ITEM [--agent NAME] [--autostart] [--autoclose]` | Launch a coding agent in the item's worktree. |
824
+ | `workdash edit ITEM [--editor NAME]` | Open a configured editor in the item's worktree. |
825
+ | `workdash terminal ITEM` | Open a shell in the item's worktree. |
826
+ | `workdash todo TEXT [--target REPO] [--body BODY]` | Capture a todo; `workdash todo --close ITEM` closes one. |
827
+ | `workdash create PARENT --repo REPO --title TITLE --body-file PATH` | Create an issue (`none` parent) or a native sub-issue of `owner/repo#N`; `--body-file -` reads stdin. |
828
+ | `workdash info [--all] [--json]` | Report live Workdash-owned Zellij panes and sessions. |
829
+ | `workdash birdview [--top N] [--format telegram\|markdown\|json]` | Shareable snapshot of ongoing work. |
830
+ | `workdash read PANE_ID [--full]` / `workdash write PANE_ID TEXT` | Read text from / send text to a live pane. |
831
+ | `workdash show-config [--json]` | Show the effective configuration. |
832
+ | `workdash view DOCUMENT [--target ITEM]` | Read a document — a GitHub item, local file, or URL — in the built-in viewer, and launch work on the item it is about. |
833
+
834
+ Global flags: `--configure` (rerun the setup wizard), `--host HOST[:PORT]`
835
+ (also accepted by a plain `workdash` start, where it selects where the server
836
+ binds like `WORKDASH_HOST`), `--debug`, `--version`.
837
+
838
+ ### Reading a document
839
+
840
+ `workdash view DOCUMENT [--target ITEM]` shows a file, URL or GitHub item in
841
+ the built-in viewer. `c` and `d` launch work on the item it is about, which
842
+ `--target` names for a file or URL; a pull request offers `c` only.
843
+
844
+ ## Agent-controlled dashboard
845
+
846
+ Workdash is also designed to be driven by another agent, not just by a human
847
+ in the TUI. Every CLI command in the table above calls the control API of the
848
+ running dashboard, so an agent can list work, launch and supervise coding
849
+ sessions, read and write agent panes, and capture todos — while a human keeps
850
+ interacting with the same dashboard discursively through that intermediate
851
+ agent.
852
+
853
+ To let an agent orchestrate Workdash, install the [`workdash-control`
854
+ skill](skills/workdash-control/SKILL.md) in that agent. The skill teaches it to
855
+ use only `workdash` subcommands against the running server (never Zellij,
856
+ GitHub, or the filesystem directly), e.g.:
798
857
 
799
858
  ```bash
800
- workdash --server # start the TUI plus localhost JSON control API
801
- workdash list # list server-backed dashboard items as plain text
802
- workdash list --refresh # ask the server to refresh items before listing
803
- workdash list --json # list items as machine-readable JSON
804
- workdash info [--all] [--json] # report live Workdash-owned Zellij panes
805
- workdash analyze ITEM [--agent NAME] [--json] # analyze a current server item
806
- workdash code ITEM [--agent NAME] [--json] # launch a terminal-backed coding agent
807
- workdash todo TEXT [--target owner/repo] [--json] # capture a todo
808
- workdash read PANE_ID [--full] [--json] # read text from a live pane
809
- workdash write PANE_ID TEXT [--raw] [--json] # send text to a live pane
810
- workdash show-config [--json] # show configured agents and fixed server address
811
- workdash --debug # verbose logging
812
- workdash --configure # run the interactive setup wizard
813
- workdash --direct # start without the automatic Zellij wrapper
814
- workdash --version # print version and exit
859
+ workdash ready any --json # what is actionable next
860
+ workdash code owner/repo#42 --agent pi # launch a worker, get its pane_id
861
+ workdash read terminal_3 --full # follow the worker
862
+ workdash write terminal_3 "focus on the failing test"
815
863
  ```
816
864
 
817
- ## What gets shown
818
-
819
- `workdash` gathers the following for your configured GitHub username:
820
-
821
- - Open pull requests you authored (shown as `PR`).
822
- - Open pull requests where you are a requested reviewer, plus open pull
823
- requests you have already reviewed (shown as `REVIEW`).
824
- - Open issues assigned to you (shown as `ISSUE`).
825
- - Open issues and pull requests across the tracked repositories. A pull request
826
- that is neither yours nor yours to review is shown as `CHECK`; once you review
827
- it, the next refresh lists it as `REVIEW`.
828
-
829
- Items are merged, deduplicated, and sorted by last update. A pull request that
830
- closes an issue replaces that issue, so the same work never takes two rows. One
831
- item is marked with `*` as the suggested next thing to pick up.
832
-
833
- ### Repository selectors
834
-
835
- The `repositories` list in `config.json` accepts:
836
-
837
- - `owner/repo` — a specific repository.
838
- - `owner/*` — every repository accessible to you under that owner.
839
-
840
- ## TUI keybindings
841
-
842
- - `/` — search/filter the listed items by Type, Repo, or Title. Press `/` again
843
- to clear.
844
- - `o` — open the selected item in your browser.
845
- - `r` — refresh the list from GitHub.
846
- - `a` — analyze the selected item. Opens a dialog to open the cached analysis
847
- (if any), or run a fresh analysis with Claude or Codex. Fresh analyses are
848
- cached and rendered as HTML in your browser.
849
- - `c` — launch a coding session on the selected item. Opens a dialog to pick
850
- Claude, Codex, VSCode Copilot, or pi. `workdash` prepares a dedicated git
851
- worktree for the item and starts the chosen tool in it, preloaded with
852
- context about the issue or PR.
853
- - `t` — open a terminal in the selected item's worktree (no agent launched).
854
- - `w` — capture a todo. Opens a dialog asking for the todo text and an
855
- optional target repository.
856
- - `q` — quit.
857
-
858
- ## Todos
859
-
860
- Ideas and chores that show up while triaging can be captured as todos with `w`
861
- in the TUI, `workdash todo TEXT`, or the JSON API. A todo is an ordinary GitHub
862
- issue created in the single `todo_repository` from `config.json`, assigned to
863
- you and labeled `workdash-todo`, so it shows up on the dashboard like any other
864
- assigned issue. Create the repository on GitHub yourself; the label is created
865
- on first use.
866
-
867
- A todo may name a target repository (`--target owner/repo`). The issue still
868
- lives in the todo repository, but the item is listed under its target and its
869
- coding, terminal, and analysis actions run in a worktree of the target checked
870
- out on a `wt-<number>` branch.
871
-
872
- ## Worktrees
873
-
874
- Coding and analysis actions operate on a per-item git worktree rooted under the
875
- configured `workdir`. Each tracked repository gets a local clone, and each work
876
- item gets its own worktree alongside it, so you can hop between items without
877
- disturbing other in-progress work.
878
-
879
- A pull request you authored that closes an issue in the same repository is the
880
- implementation of that issue, so it shares the issue's worktree directory (named
881
- after the issue number) while staying checked out on the pull request's own
882
- branch. That shared checkout is only reused while it holds the pull request's
883
- branch; a checkout sitting on another branch belongs to other work, so it is left
884
- alone and the pull request gets its own pull-request-numbered worktree instead.
885
- Worktree directories created before this behavior existed are still named
886
- after the pull request number; they are not migrated and keep working, so the
887
- pull request stays in the checkout it already has and only a pull request with no
888
- checkout yet gets an issue-numbered one. The link between a pull request and the
889
- issue it closes is resolved while the dashboard refreshes, so a pull request
890
- added by URL only shares the issue's worktree from the next refresh onwards.
891
-
892
- ## Local control server
893
-
894
- `workdash --server` starts the normal TUI and a localhost JSON control API in the
895
- same process. V0 listens on `127.0.0.1:8765`, accepts JSON only, and stops when
896
- the TUI exits. Client commands such as `list`, `info`, `analyze`, `code`, `todo`,
897
- `read`, and `write` connect to this server instead of loading GitHub or Zellij
898
- state themselves.
899
-
900
- ## List command
901
-
902
- `workdash list` requires a running `workdash --server` session and emits one row
903
- per server-known item, sorted by last update (most recent first):
904
-
865
+ ## Configuration
866
+
867
+ Configuration lives in `~/.config/workdash/config.json` (JSON). Edit it directly
868
+ or with `workdash --configure`; `workdash show-config` prints the effective
869
+ values.
870
+
871
+ | Option | Purpose | Accepted values |
872
+ | --- | --- | --- |
873
+ | `github_username` | Your GitHub username; selects what the dashboard tracks. | GitHub login |
874
+ | `repositories` | Repositories shown on the dashboard. | List of `owner/repo` or `owner/*` selectors |
875
+ | `excluded_repositories` | Repositories hidden from the dashboard. | List of `owner/repo` or `owner/*` selectors |
876
+ | `todo_repository` | Where todos are created as issues. | `owner/repo` |
877
+ | `workdir` | Directory where per-item git worktrees live. | Absolute path |
878
+ | `open` | Viewer command for links and URLs (the URL is appended as the last argument). | Command string, e.g. `"xdg-open"` |
879
+ | `open_needs_pane` | Whether the viewer needs its own terminal pane. | `true` / `false` |
880
+ | `analysis_viewer` | Viewer for analyses. | `{"command": ..., "format": "markdown"\|"html", "needs_pane": bool}`; default `workdash view` |
881
+ | `agents` | Agent tools for analysis and coding. | Map of name → `{"analyze": cmd, "launch": cmd}`; the first entry is the default |
882
+ | `editors` | Editors for the edit menu and `workdash edit`. | Map of name → `{"command": cmd, "needs_pane": bool}`; `{worktree}` in the command is the item's worktree path |
883
+ | `listens` | Extra LAN listeners for the control API. | List of `"HOST@IP1,IP2"` entries (trusted clients only) |
884
+
885
+ Example with customized values:
886
+
887
+ ```json
888
+ {
889
+ "github_username": "octocat",
890
+ "repositories": ["octocat/*", "myorg/backend", "myorg/docs"],
891
+ "excluded_repositories": ["octocat/old-experiments", "myorg/archive/*"],
892
+ "todo_repository": "octocat/todos",
893
+ "workdir": "/home/octocat/worktrees",
894
+ "open": "firefox",
895
+ "open_needs_pane": false,
896
+ "analysis_viewer": {"command": "workdash view", "format": "markdown", "needs_pane": true},
897
+ "agents": {
898
+ "claude": {"analyze": "claude -p", "launch": "claude"},
899
+ "codex": {"analyze": "codex exec", "launch": "codex"}
900
+ },
901
+ "editors": {
902
+ "vscode": {"command": "code --new-window {worktree}", "needs_pane": false},
903
+ "vim": {"command": "vim .", "needs_pane": true}
904
+ },
905
+ "listens": ["192.168.1.20@192.168.1.30,192.168.1.0/24"]
906
+ }
905
907
  ```
906
- TYPE repo#TYPE-N YYYY-MM-DD title
907
- ```
908
-
909
- `TYPE` is `ISSUE`, `PR` (a PR you authored), `REVIEW` (for review-requested or
910
- already reviewed PRs), or `CHECK` (any other PR). The row ID is
911
- copy/paste-friendly: `repo#ISSUE-N`, `repo#PR-N`, `repo#REVIEW-N`,
912
- `repo#CHECK-N`, or `<target>#ISSUE-WT<n>` for a targeted todo. The suggested
913
- item's title is prefixed with `* `. If nothing matches, the output is
914
- `No work items found.`.
915
-
916
- Use `workdash list --refresh` to ask the server to refresh GitHub data before
917
- listing. Use `workdash list --json` to emit the same list as JSON records with
918
- item ID, type, kind, repository, number, title, URL, timestamps, and suggested
919
- status.
920
-
921
- ## Info command
922
-
923
- `workdash info [--json]` requires a running `workdash --server` session and
924
- reports live Workdash-owned Zellij panes for terminal-backed work actions,
925
- including pane title, cwd, command, tab, state, and mapped Workdash item. It maps
926
- each live pane's current working directory to the matching Workdash item ID when
927
- the pane is inside a known worktree, or reports `unknown` when no mapping is
928
- known. Add `--all` to include other live non-plugin panes from the server-backed
929
- Workdash session as `kind=unknown` with unknown item mapping.
930
-
931
- ## Analyze command
932
-
933
- `workdash analyze ITEM [--agent NAME] [--json]` requires a running
934
- `workdash --server` session and analyzes a current server-known Workdash item.
935
- `ITEM` can be a row ID from `workdash list` (such as `owner/repo#ISSUE-123`) or a
936
- GitHub issue/PR URL that is already in the current dashboard data. It reuses a
937
- fresh cached analysis when available, otherwise the server prepares the item's
938
- worktree and runs the selected configured analysis agent.
939
-
940
- The server analyze response includes `content_type` (`text/markdown`), `file_name`,
941
- and base64 `file_content` so clients do not need filesystem access to the server
942
- cache. The CLI writes that content to a secure temporary local file and reports it
943
- as `analysis_path`. `--json` emits the same client-side result without the raw
944
- base64 content.
945
-
946
- ## Code command
947
-
948
- `workdash code ITEM [--agent NAME] [--json]` requires a running
949
- `workdash --server` session and launches a configured terminal-backed coding
950
- agent (`claude`, `codex`, or `pi`) for a current server-known Workdash item.
951
- `ITEM` accepts the same row IDs and GitHub URLs as `workdash analyze`.
952
-
953
- Human output reports the item, agent, selected session, cwd, pane title, and pane
954
- id when available. `--json` emits the same result as machine-readable JSON.
955
-
956
- ## Read and write commands
957
-
958
- `workdash read PANE_ID [--full] [--json]` requires a running `workdash --server`
959
- session and reads pane text through the server-backed pane content API. Human
960
- output prints the pane text directly. Add `--full` to request full scrollback.
961
-
962
- `workdash write PANE_ID TEXT [--raw] [--json]` requires a running
963
- `workdash --server` session and sends pane input through the server-backed pane
964
- send API. By default Workdash appends Enter; `--raw` or `--no-enter` sends the
965
- text exactly. Human output confirms that the pane accepted the input.
966
-
967
- ## Show-config command
968
-
969
- `workdash show-config [--json]` reports configured analysis agents, configured
970
- terminal-backed coding agents, and the fixed V0 server address. It does not
971
- require a running server. The same information is also available from the JSON
972
- API for HTTP clients.
973
-
974
- ## Analysis cache
975
-
976
- Analyses produced with `a` or `workdash analyze` are cached under
977
- `~/.config/workdash/cache/` so that re-opening an item is instant. The cache is
978
- keyed by the item's GitHub
979
- `updated_at` timestamp, so any change on GitHub automatically invalidates the
980
- cached analysis and the next analyze action will re-run it.
981
-
982
- ## Product behavior
983
-
984
- Canonical product behavior is described in [`features/`](features/).
985
-
986
- The `.feature` files are the source of truth for what the software does. They are product specifications first and executable BDD scenarios second.
987
-
988
- Implementation progress can be tracked separately.
989
- BDD is the integration point between humans and agents collaborating on the project as Workdash relied hevily on agents during its initial development cycle.
990
-
991
- ### BDD-first development (mandatory)
992
-
993
- Every new feature **must** start with a BDD definition under [`features/`](features/), and every change to existing behavior **must** update the relevant `.feature` file **before** any implementation or test code is modified. The `.feature` files are the contract; code follows them, not the other way around.
994
-
995
- This applies to agents and humans alike. A change that lands code without a matching `features/` update is incomplete.
996
-
997
- ## Tests
998
-
999
- From the repository root:
1000
-
1001
- ```bash
1002
- PYTHONPATH=src pytest
1003
- ```
1004
-
1005
- ### BDD suite
1006
-
1007
- `tests/bdd/` drives development from the `.feature` files in `features/`.
1008
- `pytest_bdd.scenarios(...)` auto-generates one pytest test per `Scenario`,
1009
- so adding a scenario to `features/` is enough to pull it into the suite.
1010
- Step definitions live under `tests/bdd/steps/`; scenarios whose steps are
1011
- not yet implemented fail with `StepDefinitionNotFoundError`, which is the
1012
- intended TDD signal for BDD-first development.
1013
908
 
1014
- ## License
909
+ ## Contributing
1015
910
 
1016
- `workdash` is distributed under the terms of the GNU General Public License
1017
- version 3. See [LICENSE](LICENSE) for the full text.
911
+ `workdash` is developed BDD-first: the scenarios in [`features/`](features/) are
912
+ the product specification. See [CONTRIBUTING.md](CONTRIBUTING.md) for the
913
+ workflow, and [LICENSE](LICENSE) for the GPLv3 license terms.