workdash 0.2.0__tar.gz → 0.4.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.2.0 → workdash-0.4.0}/PKG-INFO +147 -37
- workdash-0.4.0/README.md +309 -0
- {workdash-0.2.0 → workdash-0.4.0}/pyproject.toml +4 -2
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/analyzer.py +7 -94
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/backend.py +102 -30
- workdash-0.4.0/src/workdash/branchdiff.py +528 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/config.py +186 -8
- workdash-0.4.0/src/workdash/control.py +839 -0
- workdash-0.4.0/src/workdash/git.py +315 -0
- workdash-0.4.0/src/workdash/github.py +201 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/github_client.py +643 -160
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/launcher.py +318 -86
- workdash-0.4.0/src/workdash/models.py +103 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/prompts/analyze_issue.txt +2 -2
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/prompts/analyze_pr.txt +2 -2
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/prompts/launch_issue.txt +3 -3
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/prompts/launch_review.txt +1 -1
- workdash-0.4.0/src/workdash/repo_worktree.py +156 -0
- workdash-0.4.0/src/workdash/todo.py +173 -0
- workdash-0.4.0/src/workdash/tui.py +952 -0
- workdash-0.4.0/src/workdash/workdash.py +790 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash.egg-info/PKG-INFO +147 -37
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash.egg-info/SOURCES.txt +10 -1
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash.egg-info/requires.txt +2 -0
- {workdash-0.2.0 → workdash-0.4.0}/tests/test_analyzer.py +38 -0
- workdash-0.4.0/tests/test_backend.py +1081 -0
- workdash-0.4.0/tests/test_branchdiff.py +382 -0
- {workdash-0.2.0 → workdash-0.4.0}/tests/test_config.py +193 -20
- workdash-0.4.0/tests/test_control.py +266 -0
- workdash-0.4.0/tests/test_git.py +100 -0
- workdash-0.4.0/tests/test_github.py +91 -0
- workdash-0.4.0/tests/test_github_client.py +2023 -0
- {workdash-0.2.0 → workdash-0.4.0}/tests/test_launcher.py +486 -24
- {workdash-0.2.0 → workdash-0.4.0}/tests/test_normalization.py +16 -0
- workdash-0.4.0/tests/test_repo_worktree.py +1311 -0
- workdash-0.4.0/tests/test_todo.py +164 -0
- workdash-0.4.0/tests/test_tui.py +1720 -0
- workdash-0.4.0/tests/test_workdash.py +1329 -0
- workdash-0.2.0/README.md +0 -201
- workdash-0.2.0/src/workdash/models.py +0 -50
- workdash-0.2.0/src/workdash/prompts/launch_pr.txt +0 -20
- workdash-0.2.0/src/workdash/repo_worktree.py +0 -304
- workdash-0.2.0/src/workdash/tui.py +0 -608
- workdash-0.2.0/src/workdash/workdash.py +0 -233
- workdash-0.2.0/tests/test_backend.py +0 -493
- workdash-0.2.0/tests/test_github_client.py +0 -1166
- workdash-0.2.0/tests/test_repo_worktree.py +0 -530
- workdash-0.2.0/tests/test_tui.py +0 -617
- workdash-0.2.0/tests/test_workdash.py +0 -321
- {workdash-0.2.0 → workdash-0.4.0}/LICENSE +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/setup.cfg +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/__init__.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/__main__.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/analysis_cache.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/included_items.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/prompts/__init__.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash/repo_resolver.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash.egg-info/dependency_links.txt +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash.egg-info/entry_points.txt +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/src/workdash.egg-info/top_level.txt +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/tests/test_analysis_cache.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/tests/test_included_items.py +0 -0
- {workdash-0.2.0 → workdash-0.4.0}/tests/test_repo_resolver.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: workdash
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.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
|
|
@@ -698,7 +698,9 @@ Requires-Python: >=3.12
|
|
|
698
698
|
Description-Content-Type: text/markdown
|
|
699
699
|
License-File: LICENSE
|
|
700
700
|
Requires-Dist: markdown>=3.6
|
|
701
|
+
Requires-Dist: TurboGears2>=2.5.0
|
|
701
702
|
Requires-Dist: textual>=0.58
|
|
703
|
+
Requires-Dist: textual-diff-view>=0.1.0
|
|
702
704
|
Provides-Extra: test
|
|
703
705
|
Requires-Dist: pytest>=8; extra == "test"
|
|
704
706
|
Requires-Dist: pytest-bdd>=7; extra == "test"
|
|
@@ -724,27 +726,18 @@ been tested on Windows.
|
|
|
724
726
|
## Requirements
|
|
725
727
|
|
|
726
728
|
- Python `>=3.12`.
|
|
727
|
-
- [`gh`](https://cli.github.com/)
|
|
728
|
-
|
|
729
|
-
when none is available, it installs a local copy under
|
|
730
|
-
`~/.config/workdash/` from <https://github.com/cli/cli/releases/latest>.
|
|
731
|
-
The authenticated account should have access to the repositories you want to
|
|
732
|
-
track; if GitHub requires additional repository authorization for a repository
|
|
733
|
-
while loading a specific work source, `workdash` warns, skips that inaccessible
|
|
734
|
-
repository or item, and still loads the others.
|
|
729
|
+
- Authenticated [`gh`](https://cli.github.com/) for GitHub access.
|
|
730
|
+
`workdash --configure` installs a local copy when `gh` is not available.
|
|
735
731
|
- `xdg-open` or `open` for opening links and rendered analyses in your browser.
|
|
736
732
|
- `zellij` for the interactive dashboard, terminal panes, and agent sessions.
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
one is available, otherwise uses the local configured copy, starts a fresh
|
|
741
|
-
`workdash-<random>` session, and runs the dashboard inside it.
|
|
742
|
-
- On every startup, `workdash` prefers your global GitHub CLI when one is
|
|
743
|
-
available, otherwise uses the local configured copy.
|
|
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.
|
|
744
736
|
- Optional, depending on which actions you use from the TUI:
|
|
745
737
|
- `claude` — to analyze or launch a Claude coding session.
|
|
746
738
|
- `codex` — to analyze or launch a ChatGPT Codex session.
|
|
747
739
|
- `code` — to launch a VSCode + Copilot coding session.
|
|
740
|
+
- `pi` — to launch a pi coding agent session.
|
|
748
741
|
|
|
749
742
|
## Installation
|
|
750
743
|
|
|
@@ -780,6 +773,8 @@ The wizard fills in:
|
|
|
780
773
|
is still handled by `gh`; run `gh auth login` if startup reports that `gh` is
|
|
781
774
|
not authenticated.
|
|
782
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).
|
|
783
778
|
- A working directory where per-item git worktrees will live.
|
|
784
779
|
- The analyze and launch commands for Claude and Codex (auto-detected when the
|
|
785
780
|
tools are on your `PATH`).
|
|
@@ -799,29 +794,41 @@ Launch the TUI:
|
|
|
799
794
|
workdash
|
|
800
795
|
```
|
|
801
796
|
|
|
802
|
-
Useful flags:
|
|
797
|
+
Useful commands and flags:
|
|
803
798
|
|
|
804
799
|
```bash
|
|
805
|
-
workdash --
|
|
806
|
-
workdash
|
|
807
|
-
workdash --
|
|
808
|
-
workdash --
|
|
809
|
-
workdash --
|
|
810
|
-
workdash --
|
|
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
|
|
811
815
|
```
|
|
812
816
|
|
|
813
817
|
## What gets shown
|
|
814
818
|
|
|
815
819
|
`workdash` gathers the following for your configured GitHub username:
|
|
816
820
|
|
|
817
|
-
- Open pull requests you authored.
|
|
821
|
+
- Open pull requests you authored (shown as `PR`).
|
|
818
822
|
- Open pull requests where you are a requested reviewer, plus open pull
|
|
819
823
|
requests you have already reviewed (shown as `REVIEW`).
|
|
820
|
-
- Open issues assigned to you.
|
|
821
|
-
- Open issues and pull requests across the tracked repositories.
|
|
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`.
|
|
822
828
|
|
|
823
|
-
Items are merged, deduplicated, and sorted by last update.
|
|
824
|
-
|
|
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.
|
|
825
832
|
|
|
826
833
|
### Repository selectors
|
|
827
834
|
|
|
@@ -832,18 +839,36 @@ The `repositories` list in `config.json` accepts:
|
|
|
832
839
|
|
|
833
840
|
## TUI keybindings
|
|
834
841
|
|
|
842
|
+
- `/` — search/filter the listed items by Type, Repo, or Title. Press `/` again
|
|
843
|
+
to clear.
|
|
835
844
|
- `o` — open the selected item in your browser.
|
|
836
845
|
- `r` — refresh the list from GitHub.
|
|
837
846
|
- `a` — analyze the selected item. Opens a dialog to open the cached analysis
|
|
838
847
|
(if any), or run a fresh analysis with Claude or Codex. Fresh analyses are
|
|
839
848
|
cached and rendered as HTML in your browser.
|
|
840
849
|
- `c` — launch a coding session on the selected item. Opens a dialog to pick
|
|
841
|
-
Claude, Codex,
|
|
850
|
+
Claude, Codex, VSCode Copilot, or pi. `workdash` prepares a dedicated git
|
|
842
851
|
worktree for the item and starts the chosen tool in it, preloaded with
|
|
843
852
|
context about the issue or PR.
|
|
844
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.
|
|
845
856
|
- `q` — quit.
|
|
846
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
|
+
|
|
847
872
|
## Worktrees
|
|
848
873
|
|
|
849
874
|
Coding and analysis actions operate on a per-item git worktree rooted under the
|
|
@@ -851,24 +876,108 @@ configured `workdir`. Each tracked repository gets a local clone, and each work
|
|
|
851
876
|
item gets its own worktree alongside it, so you can hop between items without
|
|
852
877
|
disturbing other in-progress work.
|
|
853
878
|
|
|
854
|
-
|
|
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.
|
|
855
899
|
|
|
856
|
-
|
|
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):
|
|
857
904
|
|
|
858
905
|
```
|
|
859
|
-
TYPE repo#
|
|
906
|
+
TYPE repo#TYPE-N YYYY-MM-DD title
|
|
860
907
|
```
|
|
861
908
|
|
|
862
|
-
`TYPE` is `ISSUE`, `PR
|
|
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
|
|
863
913
|
item's title is prefixed with `* `. If nothing matches, the output is
|
|
864
914
|
`No work items found.`.
|
|
865
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
|
+
|
|
866
974
|
## Analysis cache
|
|
867
975
|
|
|
868
|
-
Analyses produced with `a` are cached under
|
|
869
|
-
re-opening an item is instant. The cache is
|
|
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
|
|
870
979
|
`updated_at` timestamp, so any change on GitHub automatically invalidates the
|
|
871
|
-
cached analysis and the next
|
|
980
|
+
cached analysis and the next analyze action will re-run it.
|
|
872
981
|
|
|
873
982
|
## Product behavior
|
|
874
983
|
|
|
@@ -876,7 +985,8 @@ Canonical product behavior is described in [`features/`](features/).
|
|
|
876
985
|
|
|
877
986
|
The `.feature` files are the source of truth for what the software does. They are product specifications first and executable BDD scenarios second.
|
|
878
987
|
|
|
879
|
-
Implementation progress can be tracked separately
|
|
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.
|
|
880
990
|
|
|
881
991
|
### BDD-first development (mandatory)
|
|
882
992
|
|
workdash-0.4.0/README.md
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
# workdash
|
|
2
|
+
|
|
3
|
+
Text-based GitHub work triage dashboard ( <https://alessandro.molina.fyi/workdash/> )
|
|
4
|
+
|
|
5
|
+
`workdash` pulls together the issues and pull requests that matter to you across
|
|
6
|
+
your GitHub repositories, suggests what to pick up next, and makes it easy to
|
|
7
|
+
jump into a work item — either for a quick review, a deeper AI-assisted
|
|
8
|
+
analysis, or a full coding session in a dedicated worktree.
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
## Platform
|
|
13
|
+
|
|
14
|
+
Linux and macOS. `workdash` relies on `xdg-open` or `open` and expects `zellij`
|
|
15
|
+
for the interactive dashboard and terminal-backed work actions. It has not
|
|
16
|
+
been tested on Windows.
|
|
17
|
+
|
|
18
|
+
## Requirements
|
|
19
|
+
|
|
20
|
+
- Python `>=3.12`.
|
|
21
|
+
- Authenticated [`gh`](https://cli.github.com/) for GitHub access.
|
|
22
|
+
`workdash --configure` installs a local copy when `gh` is not available.
|
|
23
|
+
- `xdg-open` or `open` for opening links and rendered analyses in your browser.
|
|
24
|
+
- `zellij` for the interactive dashboard, terminal panes, and agent sessions.
|
|
25
|
+
`workdash --configure` installs a local copy when `zellij` is not available.
|
|
26
|
+
- Global `gh` and `zellij` binaries are preferred; configured local copies are
|
|
27
|
+
used as fallbacks.
|
|
28
|
+
- Optional, depending on which actions you use from the TUI:
|
|
29
|
+
- `claude` — to analyze or launch a Claude coding session.
|
|
30
|
+
- `codex` — to analyze or launch a ChatGPT Codex session.
|
|
31
|
+
- `code` — to launch a VSCode + Copilot coding session.
|
|
32
|
+
- `pi` — to launch a pi coding agent session.
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
With [`uv`](https://docs.astral.sh/uv/) — one isolated install, `workdash` on
|
|
37
|
+
your `PATH`:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
uv tool install workdash
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
For development install:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pip install -e '.[test]'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## First-time setup
|
|
50
|
+
|
|
51
|
+
On the first run you need a configuration file at
|
|
52
|
+
`~/.config/workdash/config.json`. Generate it interactively with:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
workdash --configure
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The wizard fills in:
|
|
59
|
+
|
|
60
|
+
- Your GitHub username.
|
|
61
|
+
- Zellij availability. If `zellij` is not on `PATH`, the wizard downloads the
|
|
62
|
+
latest release binary into the workdash configuration directory.
|
|
63
|
+
- GitHub CLI availability. If `gh` is not on `PATH`, the wizard downloads the
|
|
64
|
+
latest release binary into the workdash configuration directory. Authentication
|
|
65
|
+
is still handled by `gh`; run `gh auth login` if startup reports that `gh` is
|
|
66
|
+
not authenticated.
|
|
67
|
+
- The list of repositories to track (see *Repository selectors* below).
|
|
68
|
+
- The todo repository where captured todos are created (defaults to
|
|
69
|
+
`<username>/todos`, see *Todos* below).
|
|
70
|
+
- A working directory where per-item git worktrees will live.
|
|
71
|
+
- The analyze and launch commands for Claude and Codex (auto-detected when the
|
|
72
|
+
tools are on your `PATH`).
|
|
73
|
+
|
|
74
|
+
You can edit `~/.config/workdash/config.json` by hand at any time. Re-running
|
|
75
|
+
`--configure` only prompts for fields that are still empty, except for Zellij:
|
|
76
|
+
the wizard always checks for a global `zellij` first and downloads a fresh
|
|
77
|
+
local binary when no global binary exists. It does the same for `gh`, checking
|
|
78
|
+
for a global GitHub CLI first and downloading a fresh local copy when none is
|
|
79
|
+
available.
|
|
80
|
+
|
|
81
|
+
## Usage
|
|
82
|
+
|
|
83
|
+
Launch the TUI:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
workdash
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Useful commands and flags:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
workdash --server # start the TUI plus localhost JSON control API
|
|
93
|
+
workdash list # list server-backed dashboard items as plain text
|
|
94
|
+
workdash list --refresh # ask the server to refresh items before listing
|
|
95
|
+
workdash list --json # list items as machine-readable JSON
|
|
96
|
+
workdash info [--all] [--json] # report live Workdash-owned Zellij panes
|
|
97
|
+
workdash analyze ITEM [--agent NAME] [--json] # analyze a current server item
|
|
98
|
+
workdash code ITEM [--agent NAME] [--json] # launch a terminal-backed coding agent
|
|
99
|
+
workdash todo TEXT [--target owner/repo] [--json] # capture a todo
|
|
100
|
+
workdash read PANE_ID [--full] [--json] # read text from a live pane
|
|
101
|
+
workdash write PANE_ID TEXT [--raw] [--json] # send text to a live pane
|
|
102
|
+
workdash show-config [--json] # show configured agents and fixed server address
|
|
103
|
+
workdash --debug # verbose logging
|
|
104
|
+
workdash --configure # run the interactive setup wizard
|
|
105
|
+
workdash --direct # start without the automatic Zellij wrapper
|
|
106
|
+
workdash --version # print version and exit
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## What gets shown
|
|
110
|
+
|
|
111
|
+
`workdash` gathers the following for your configured GitHub username:
|
|
112
|
+
|
|
113
|
+
- Open pull requests you authored (shown as `PR`).
|
|
114
|
+
- Open pull requests where you are a requested reviewer, plus open pull
|
|
115
|
+
requests you have already reviewed (shown as `REVIEW`).
|
|
116
|
+
- Open issues assigned to you (shown as `ISSUE`).
|
|
117
|
+
- Open issues and pull requests across the tracked repositories. A pull request
|
|
118
|
+
that is neither yours nor yours to review is shown as `CHECK`; once you review
|
|
119
|
+
it, the next refresh lists it as `REVIEW`.
|
|
120
|
+
|
|
121
|
+
Items are merged, deduplicated, and sorted by last update. A pull request that
|
|
122
|
+
closes an issue replaces that issue, so the same work never takes two rows. One
|
|
123
|
+
item is marked with `*` as the suggested next thing to pick up.
|
|
124
|
+
|
|
125
|
+
### Repository selectors
|
|
126
|
+
|
|
127
|
+
The `repositories` list in `config.json` accepts:
|
|
128
|
+
|
|
129
|
+
- `owner/repo` — a specific repository.
|
|
130
|
+
- `owner/*` — every repository accessible to you under that owner.
|
|
131
|
+
|
|
132
|
+
## TUI keybindings
|
|
133
|
+
|
|
134
|
+
- `/` — search/filter the listed items by Type, Repo, or Title. Press `/` again
|
|
135
|
+
to clear.
|
|
136
|
+
- `o` — open the selected item in your browser.
|
|
137
|
+
- `r` — refresh the list from GitHub.
|
|
138
|
+
- `a` — analyze the selected item. Opens a dialog to open the cached analysis
|
|
139
|
+
(if any), or run a fresh analysis with Claude or Codex. Fresh analyses are
|
|
140
|
+
cached and rendered as HTML in your browser.
|
|
141
|
+
- `c` — launch a coding session on the selected item. Opens a dialog to pick
|
|
142
|
+
Claude, Codex, VSCode Copilot, or pi. `workdash` prepares a dedicated git
|
|
143
|
+
worktree for the item and starts the chosen tool in it, preloaded with
|
|
144
|
+
context about the issue or PR.
|
|
145
|
+
- `t` — open a terminal in the selected item's worktree (no agent launched).
|
|
146
|
+
- `w` — capture a todo. Opens a dialog asking for the todo text and an
|
|
147
|
+
optional target repository.
|
|
148
|
+
- `q` — quit.
|
|
149
|
+
|
|
150
|
+
## Todos
|
|
151
|
+
|
|
152
|
+
Ideas and chores that show up while triaging can be captured as todos with `w`
|
|
153
|
+
in the TUI, `workdash todo TEXT`, or the JSON API. A todo is an ordinary GitHub
|
|
154
|
+
issue created in the single `todo_repository` from `config.json`, assigned to
|
|
155
|
+
you and labeled `workdash-todo`, so it shows up on the dashboard like any other
|
|
156
|
+
assigned issue. Create the repository on GitHub yourself; the label is created
|
|
157
|
+
on first use.
|
|
158
|
+
|
|
159
|
+
A todo may name a target repository (`--target owner/repo`). The issue still
|
|
160
|
+
lives in the todo repository, but the item is listed under its target and its
|
|
161
|
+
coding, terminal, and analysis actions run in a worktree of the target checked
|
|
162
|
+
out on a `wt-<number>` branch.
|
|
163
|
+
|
|
164
|
+
## Worktrees
|
|
165
|
+
|
|
166
|
+
Coding and analysis actions operate on a per-item git worktree rooted under the
|
|
167
|
+
configured `workdir`. Each tracked repository gets a local clone, and each work
|
|
168
|
+
item gets its own worktree alongside it, so you can hop between items without
|
|
169
|
+
disturbing other in-progress work.
|
|
170
|
+
|
|
171
|
+
A pull request you authored that closes an issue in the same repository is the
|
|
172
|
+
implementation of that issue, so it shares the issue's worktree directory (named
|
|
173
|
+
after the issue number) while staying checked out on the pull request's own
|
|
174
|
+
branch. That shared checkout is only reused while it holds the pull request's
|
|
175
|
+
branch; a checkout sitting on another branch belongs to other work, so it is left
|
|
176
|
+
alone and the pull request gets its own pull-request-numbered worktree instead.
|
|
177
|
+
Worktree directories created before this behavior existed are still named
|
|
178
|
+
after the pull request number; they are not migrated and keep working, so the
|
|
179
|
+
pull request stays in the checkout it already has and only a pull request with no
|
|
180
|
+
checkout yet gets an issue-numbered one. The link between a pull request and the
|
|
181
|
+
issue it closes is resolved while the dashboard refreshes, so a pull request
|
|
182
|
+
added by URL only shares the issue's worktree from the next refresh onwards.
|
|
183
|
+
|
|
184
|
+
## Local control server
|
|
185
|
+
|
|
186
|
+
`workdash --server` starts the normal TUI and a localhost JSON control API in the
|
|
187
|
+
same process. V0 listens on `127.0.0.1:8765`, accepts JSON only, and stops when
|
|
188
|
+
the TUI exits. Client commands such as `list`, `info`, `analyze`, `code`, `todo`,
|
|
189
|
+
`read`, and `write` connect to this server instead of loading GitHub or Zellij
|
|
190
|
+
state themselves.
|
|
191
|
+
|
|
192
|
+
## List command
|
|
193
|
+
|
|
194
|
+
`workdash list` requires a running `workdash --server` session and emits one row
|
|
195
|
+
per server-known item, sorted by last update (most recent first):
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
TYPE repo#TYPE-N YYYY-MM-DD title
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
`TYPE` is `ISSUE`, `PR` (a PR you authored), `REVIEW` (for review-requested or
|
|
202
|
+
already reviewed PRs), or `CHECK` (any other PR). The row ID is
|
|
203
|
+
copy/paste-friendly: `repo#ISSUE-N`, `repo#PR-N`, `repo#REVIEW-N`,
|
|
204
|
+
`repo#CHECK-N`, or `<target>#ISSUE-WT<n>` for a targeted todo. The suggested
|
|
205
|
+
item's title is prefixed with `* `. If nothing matches, the output is
|
|
206
|
+
`No work items found.`.
|
|
207
|
+
|
|
208
|
+
Use `workdash list --refresh` to ask the server to refresh GitHub data before
|
|
209
|
+
listing. Use `workdash list --json` to emit the same list as JSON records with
|
|
210
|
+
item ID, type, kind, repository, number, title, URL, timestamps, and suggested
|
|
211
|
+
status.
|
|
212
|
+
|
|
213
|
+
## Info command
|
|
214
|
+
|
|
215
|
+
`workdash info [--json]` requires a running `workdash --server` session and
|
|
216
|
+
reports live Workdash-owned Zellij panes for terminal-backed work actions,
|
|
217
|
+
including pane title, cwd, command, tab, state, and mapped Workdash item. It maps
|
|
218
|
+
each live pane's current working directory to the matching Workdash item ID when
|
|
219
|
+
the pane is inside a known worktree, or reports `unknown` when no mapping is
|
|
220
|
+
known. Add `--all` to include other live non-plugin panes from the server-backed
|
|
221
|
+
Workdash session as `kind=unknown` with unknown item mapping.
|
|
222
|
+
|
|
223
|
+
## Analyze command
|
|
224
|
+
|
|
225
|
+
`workdash analyze ITEM [--agent NAME] [--json]` requires a running
|
|
226
|
+
`workdash --server` session and analyzes a current server-known Workdash item.
|
|
227
|
+
`ITEM` can be a row ID from `workdash list` (such as `owner/repo#ISSUE-123`) or a
|
|
228
|
+
GitHub issue/PR URL that is already in the current dashboard data. It reuses a
|
|
229
|
+
fresh cached analysis when available, otherwise the server prepares the item's
|
|
230
|
+
worktree and runs the selected configured analysis agent.
|
|
231
|
+
|
|
232
|
+
The server analyze response includes `content_type` (`text/markdown`), `file_name`,
|
|
233
|
+
and base64 `file_content` so clients do not need filesystem access to the server
|
|
234
|
+
cache. The CLI writes that content to a secure temporary local file and reports it
|
|
235
|
+
as `analysis_path`. `--json` emits the same client-side result without the raw
|
|
236
|
+
base64 content.
|
|
237
|
+
|
|
238
|
+
## Code command
|
|
239
|
+
|
|
240
|
+
`workdash code ITEM [--agent NAME] [--json]` requires a running
|
|
241
|
+
`workdash --server` session and launches a configured terminal-backed coding
|
|
242
|
+
agent (`claude`, `codex`, or `pi`) for a current server-known Workdash item.
|
|
243
|
+
`ITEM` accepts the same row IDs and GitHub URLs as `workdash analyze`.
|
|
244
|
+
|
|
245
|
+
Human output reports the item, agent, selected session, cwd, pane title, and pane
|
|
246
|
+
id when available. `--json` emits the same result as machine-readable JSON.
|
|
247
|
+
|
|
248
|
+
## Read and write commands
|
|
249
|
+
|
|
250
|
+
`workdash read PANE_ID [--full] [--json]` requires a running `workdash --server`
|
|
251
|
+
session and reads pane text through the server-backed pane content API. Human
|
|
252
|
+
output prints the pane text directly. Add `--full` to request full scrollback.
|
|
253
|
+
|
|
254
|
+
`workdash write PANE_ID TEXT [--raw] [--json]` requires a running
|
|
255
|
+
`workdash --server` session and sends pane input through the server-backed pane
|
|
256
|
+
send API. By default Workdash appends Enter; `--raw` or `--no-enter` sends the
|
|
257
|
+
text exactly. Human output confirms that the pane accepted the input.
|
|
258
|
+
|
|
259
|
+
## Show-config command
|
|
260
|
+
|
|
261
|
+
`workdash show-config [--json]` reports configured analysis agents, configured
|
|
262
|
+
terminal-backed coding agents, and the fixed V0 server address. It does not
|
|
263
|
+
require a running server. The same information is also available from the JSON
|
|
264
|
+
API for HTTP clients.
|
|
265
|
+
|
|
266
|
+
## Analysis cache
|
|
267
|
+
|
|
268
|
+
Analyses produced with `a` or `workdash analyze` are cached under
|
|
269
|
+
`~/.config/workdash/cache/` so that re-opening an item is instant. The cache is
|
|
270
|
+
keyed by the item's GitHub
|
|
271
|
+
`updated_at` timestamp, so any change on GitHub automatically invalidates the
|
|
272
|
+
cached analysis and the next analyze action will re-run it.
|
|
273
|
+
|
|
274
|
+
## Product behavior
|
|
275
|
+
|
|
276
|
+
Canonical product behavior is described in [`features/`](features/).
|
|
277
|
+
|
|
278
|
+
The `.feature` files are the source of truth for what the software does. They are product specifications first and executable BDD scenarios second.
|
|
279
|
+
|
|
280
|
+
Implementation progress can be tracked separately.
|
|
281
|
+
BDD is the integration point between humans and agents collaborating on the project as Workdash relied hevily on agents during its initial development cycle.
|
|
282
|
+
|
|
283
|
+
### BDD-first development (mandatory)
|
|
284
|
+
|
|
285
|
+
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.
|
|
286
|
+
|
|
287
|
+
This applies to agents and humans alike. A change that lands code without a matching `features/` update is incomplete.
|
|
288
|
+
|
|
289
|
+
## Tests
|
|
290
|
+
|
|
291
|
+
From the repository root:
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
PYTHONPATH=src pytest
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### BDD suite
|
|
298
|
+
|
|
299
|
+
`tests/bdd/` drives development from the `.feature` files in `features/`.
|
|
300
|
+
`pytest_bdd.scenarios(...)` auto-generates one pytest test per `Scenario`,
|
|
301
|
+
so adding a scenario to `features/` is enough to pull it into the suite.
|
|
302
|
+
Step definitions live under `tests/bdd/steps/`; scenarios whose steps are
|
|
303
|
+
not yet implemented fail with `StepDefinitionNotFoundError`, which is the
|
|
304
|
+
intended TDD signal for BDD-first development.
|
|
305
|
+
|
|
306
|
+
## License
|
|
307
|
+
|
|
308
|
+
`workdash` is distributed under the terms of the GNU General Public License
|
|
309
|
+
version 3. See [LICENSE](LICENSE) for the full text.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "workdash"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "Text-based GitHub work triage dashboard."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -29,7 +29,9 @@ classifiers = [
|
|
|
29
29
|
]
|
|
30
30
|
dependencies = [
|
|
31
31
|
"markdown>=3.6",
|
|
32
|
+
"TurboGears2>=2.5.0",
|
|
32
33
|
"textual>=0.58",
|
|
34
|
+
"textual-diff-view>=0.1.0",
|
|
33
35
|
]
|
|
34
36
|
|
|
35
37
|
[project.urls]
|
|
@@ -64,7 +66,7 @@ filterwarnings = [
|
|
|
64
66
|
[tool.ruff]
|
|
65
67
|
line-length = 100
|
|
66
68
|
target-version = "py312"
|
|
67
|
-
src = ["src"]
|
|
69
|
+
src = ["src", "tests"]
|
|
68
70
|
|
|
69
71
|
[tool.ruff.lint]
|
|
70
72
|
select = [
|