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.
- {workdash-0.4.0 → workdash-0.6.0}/PKG-INFO +176 -280
- workdash-0.6.0/README.md +201 -0
- {workdash-0.4.0 → workdash-0.6.0}/pyproject.toml +11 -2
- workdash-0.6.0/src/workdash/agent_context.py +134 -0
- workdash-0.6.0/src/workdash/agent_execution.py +135 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/analysis_cache.py +8 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/analyzer.py +57 -59
- workdash-0.6.0/src/workdash/autoclose.py +438 -0
- workdash-0.6.0/src/workdash/autodispatch.py +343 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/backend.py +109 -75
- workdash-0.6.0/src/workdash/birdview.py +142 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/branchdiff.py +25 -186
- workdash-0.6.0/src/workdash/branchinfo.py +85 -0
- workdash-0.6.0/src/workdash/config.py +997 -0
- workdash-0.6.0/src/workdash/control.py +3138 -0
- workdash-0.6.0/src/workdash/dashboard_record.py +95 -0
- workdash-0.6.0/src/workdash/editors.py +125 -0
- workdash-0.6.0/src/workdash/git.py +733 -0
- workdash-0.6.0/src/workdash/github_client.py +3648 -0
- workdash-0.6.0/src/workdash/launcher.py +1548 -0
- workdash-0.6.0/src/workdash/log_diagnostics.py +38 -0
- workdash-0.6.0/src/workdash/models.py +168 -0
- workdash-0.6.0/src/workdash/prompt_templates.py +24 -0
- workdash-0.6.0/src/workdash/prompts/action_block.txt +32 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/prompts/analyze_issue.txt +36 -29
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/prompts/analyze_pr.txt +20 -16
- workdash-0.6.0/src/workdash/prompts/autostart_implement.txt +75 -0
- workdash-0.6.0/src/workdash/prompts/launch_issue.txt +107 -0
- workdash-0.6.0/src/workdash/prompts/launch_review.txt +48 -0
- workdash-0.6.0/src/workdash/prompts/nudge.txt +3 -0
- workdash-0.6.0/src/workdash/prompts/review_pull_request.txt +4 -0
- workdash-0.6.0/src/workdash/prompts/section_merge_base.txt +2 -0
- workdash-0.6.0/src/workdash/prompts/section_previous_analysis.txt +4 -0
- workdash-0.6.0/src/workdash/prompts/section_review_context.txt +2 -0
- workdash-0.6.0/src/workdash/prompts/section_review_retry.txt +2 -0
- workdash-0.6.0/src/workdash/repo_resolver.py +77 -0
- workdash-0.6.0/src/workdash/repo_worktree.py +374 -0
- workdash-0.6.0/src/workdash/review.py +103 -0
- workdash-0.6.0/src/workdash/tui.py +1835 -0
- workdash-0.6.0/src/workdash/view.py +1072 -0
- workdash-0.6.0/src/workdash/work_instruction.py +103 -0
- workdash-0.6.0/src/workdash/work_state.py +248 -0
- workdash-0.6.0/src/workdash/workdash.py +1584 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/PKG-INFO +176 -280
- workdash-0.6.0/src/workdash.egg-info/SOURCES.txt +90 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/requires.txt +5 -1
- workdash-0.6.0/tests/test_agent_context.py +265 -0
- workdash-0.6.0/tests/test_analysis_browser.py +157 -0
- workdash-0.6.0/tests/test_analysis_viewer.py +875 -0
- workdash-0.6.0/tests/test_analyzer.py +623 -0
- workdash-0.6.0/tests/test_autoclose.py +1291 -0
- workdash-0.6.0/tests/test_autodispatch.py +4355 -0
- workdash-0.6.0/tests/test_backend.py +1670 -0
- workdash-0.6.0/tests/test_birdview.py +331 -0
- {workdash-0.4.0 → workdash-0.6.0}/tests/test_branchdiff.py +133 -86
- workdash-0.6.0/tests/test_branchinfo.py +359 -0
- workdash-0.6.0/tests/test_config.py +2269 -0
- workdash-0.6.0/tests/test_control.py +8912 -0
- workdash-0.6.0/tests/test_dashboard_record.py +84 -0
- workdash-0.6.0/tests/test_editors.py +72 -0
- workdash-0.6.0/tests/test_git.py +223 -0
- workdash-0.6.0/tests/test_github.py +152 -0
- workdash-0.6.0/tests/test_github_boundary_stage2.py +101 -0
- workdash-0.6.0/tests/test_github_client.py +2749 -0
- workdash-0.6.0/tests/test_launcher.py +2469 -0
- {workdash-0.4.0 → workdash-0.6.0}/tests/test_normalization.py +17 -1
- workdash-0.6.0/tests/test_persistent_startup.py +410 -0
- workdash-0.6.0/tests/test_prompts.py +470 -0
- workdash-0.6.0/tests/test_repo_resolver.py +68 -0
- {workdash-0.4.0 → workdash-0.6.0}/tests/test_repo_worktree.py +1115 -85
- workdash-0.6.0/tests/test_review.py +1427 -0
- {workdash-0.4.0 → workdash-0.6.0}/tests/test_todo.py +90 -10
- workdash-0.6.0/tests/test_tui.py +4942 -0
- workdash-0.6.0/tests/test_view.py +1706 -0
- workdash-0.6.0/tests/test_viewer_terminal.py +90 -0
- workdash-0.6.0/tests/test_work_instruction.py +350 -0
- workdash-0.6.0/tests/test_work_state.py +1027 -0
- workdash-0.6.0/tests/test_workdash.py +4070 -0
- workdash-0.6.0/tests/test_zellij_integration.py +1900 -0
- workdash-0.6.0/tests/test_zellij_server_lifecycle.py +526 -0
- workdash-0.6.0/tests/test_zellij_update_workflow.py +239 -0
- workdash-0.4.0/README.md +0 -309
- workdash-0.4.0/src/workdash/config.py +0 -628
- workdash-0.4.0/src/workdash/control.py +0 -839
- workdash-0.4.0/src/workdash/git.py +0 -315
- workdash-0.4.0/src/workdash/github.py +0 -201
- workdash-0.4.0/src/workdash/github_client.py +0 -1562
- workdash-0.4.0/src/workdash/launcher.py +0 -636
- workdash-0.4.0/src/workdash/models.py +0 -103
- workdash-0.4.0/src/workdash/prompts/launch_issue.txt +0 -20
- workdash-0.4.0/src/workdash/prompts/launch_review.txt +0 -20
- workdash-0.4.0/src/workdash/repo_resolver.py +0 -112
- workdash-0.4.0/src/workdash/repo_worktree.py +0 -156
- workdash-0.4.0/src/workdash/todo.py +0 -173
- workdash-0.4.0/src/workdash/tui.py +0 -952
- workdash-0.4.0/src/workdash/workdash.py +0 -790
- workdash-0.4.0/src/workdash.egg-info/SOURCES.txt +0 -50
- workdash-0.4.0/tests/test_analyzer.py +0 -392
- workdash-0.4.0/tests/test_backend.py +0 -1081
- workdash-0.4.0/tests/test_config.py +0 -708
- workdash-0.4.0/tests/test_control.py +0 -266
- workdash-0.4.0/tests/test_git.py +0 -100
- workdash-0.4.0/tests/test_github.py +0 -91
- workdash-0.4.0/tests/test_github_client.py +0 -2023
- workdash-0.4.0/tests/test_launcher.py +0 -1137
- workdash-0.4.0/tests/test_repo_resolver.py +0 -125
- workdash-0.4.0/tests/test_tui.py +0 -1720
- workdash-0.4.0/tests/test_workdash.py +0 -1329
- {workdash-0.4.0 → workdash-0.6.0}/LICENSE +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/setup.cfg +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/__init__.py +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/__main__.py +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/included_items.py +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash/prompts/__init__.py +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/dependency_links.txt +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/entry_points.txt +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/src/workdash.egg-info/top_level.txt +0 -0
- {workdash-0.4.0 → workdash-0.6.0}/tests/test_analysis_cache.py +0 -0
- {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.
|
|
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>=
|
|
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 —
|
|
716
|
-
|
|
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
|
-

|
|
719
723
|
|
|
720
|
-
|
|
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
|
-
|
|
723
|
-
for the interactive dashboard and terminal-backed work actions. It has not
|
|
724
|
-
been tested on Windows.
|
|
729
|
+
## Installing workdash
|
|
725
730
|
|
|
726
|
-
|
|
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
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
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
|
-
|
|
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
|
-
|
|
760
|
-
`~/.config/workdash/
|
|
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
|
-
|
|
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
|
-
|
|
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 --
|
|
801
|
-
workdash
|
|
802
|
-
workdash
|
|
803
|
-
workdash
|
|
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
|
-
##
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
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
|
-
##
|
|
909
|
+
## Contributing
|
|
1015
910
|
|
|
1016
|
-
`workdash` is
|
|
1017
|
-
|
|
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.
|