@andrioid/paseo-attention-span 0.1.2 → 0.2.0

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.
package/OVERVIEW.md CHANGED
@@ -1,63 +1,137 @@
1
- Attention Span lists the GitHub issues and pull requests that are waiting on you, grouped by why they need you, and starts Paseo agent sessions to act on them. It is for when your attention is spread thin: a short list of what needs you now instead of a stream of notifications.
1
+ I made Attention Span because my attention was getting spread across too many repositories, reviews and agent sessions, and GitHub's answer to that is... more notifications.
2
2
 
3
- ## What it shows
3
+ So this is the opposite: one short list of the issues and pull requests that are actually waiting on you, grouped by *why*, with a button to start a Paseo agent session when you'd like help. The Attention entry in the sidebar shows a count, so you can ignore it with confidence.
4
4
 
5
- The screen has four tabs. A sidebar entry, Attention, shows how many items need you.
5
+ There are four tabs. I think of them as a little story: what needs me now, what's out of my hands, what I'll pick up next, and what I actually got done.
6
6
 
7
- - **Doing:** what needs you, in sections: waiting for your reply, review requested, CI failing, changes requested, ready to merge, needs upstream, waiting too long, and your drafts. Each item appears once, under its most urgent reason. An issue and the pull requests that close it are one item, and so is a stack of pull requests.
8
- - **Waiting:** your work where someone else has the next move.
9
- - **Next up:** issues assigned to you, then open issues nobody has claimed, ranked by priority and effort when your org uses issue fields for them. Unclaimed issues come from the repositories you choose, or else from your Paseo projects' repositories.
10
- - **History:** what you finished and reviewed in recent weeks.
7
+ ## Doing: what needs you now
11
8
 
12
- A mention only counts while the person is still waiting for you; replying or reacting clears it. Mentions of your teams are left out. You can dismiss an item until something new happens on it.
9
+ This is the one you'll live in. It's split by reason: someone's waiting for your reply, a review's been requested, CI's failing, changes were requested, it's ready to merge, it needs upstream, it's waited too long, or it's one of your drafts.
13
10
 
14
- ## Setup
11
+ ![Doing](docs/screenshots/desktop-dark-doing.png)
15
12
 
16
- - The GitHub CLI, `gh`, must be installed and signed in on the machine that runs the Paseo daemon. The plugin uses that sign-in and stores no token of its own.
17
- - To start sessions, the repositories need to be registered as Paseo projects, with their GitHub remote. Items in other repositories can still be opened on GitHub.
18
- - Requires Paseo 0.13.0 or later. Tested on Linux.
13
+ Each item shows up once, under whichever reason is most urgent. An issue and the PRs that close it count as one item, and so does a stack of PRs. A stack is one change wearing several PRs, so it shouldn't take up five rows.
19
14
 
20
- When `gh` is missing or signed out, or `config.json` can't be read, the screen shows a setup checklist instead of the lists: what's missing, how to fix it, and a button to check again. It also says what the plugin covers, how many of your projects it can start sessions in, and which agent sessions will use.
15
+ Mentions only count while the person is still waiting for you. Reply or react and it's gone. Team mentions are left out entirely, because "@everyone-in-backend" is not really a question for *me*. And if something's just an FYI, dismiss it. It stays gone until something new happens on it.
21
16
 
22
- It works without configuration: the lists about you cover everything on GitHub that involves you, and Next up looks for unclaimed issues in your Paseo projects' repositories.
17
+ Every item has one main button that matches why it's there: Reply, Review, Fix CI, Merge. Open the item and you get every action, each with a line saying what it'll do. I wanted buttons you can press without wondering what's about to happen to your repo.
23
18
 
24
- To narrow it down, choose organizations and repositories under Settings, Plugins, Attention Span, or with the gear on the screen. Each one is checked on GitHub as you add it. Next up's unclaimed issues use them too, instead of your projects.
19
+ ![An item's actions](docs/screenshots/desktop-dark-doing-sheet.png)
25
20
 
26
- Everything else is set in `~/.config/paseo-attention-span/config.json` on the daemon host, which the settings screen also writes to:
27
- - `profiles`: the Paseo agent profile per session type. Reviews use `review`, everything else `default`, and a missing profile falls back to Paseo's defaults.
28
- - `prompts`: your own prompt template per session type, replacing the built-in one.
29
- - `mergeMethods`: squash, merge or rebase per repository.
30
- - `codeRepos`: where an issue repository's code lives, for issues kept apart from the code. The screen asks and fills this in when needed.
31
- - `nextUp`: which repositories to pick from, and the org issue fields for priority, effort and scope.
32
- - `refreshMinutes` (15), `waitingTooLongDays` (3), `staleDraftDays` (30), `mentionDays` (30) and `historyWeeks` (4).
21
+ Some actions start an agent session:
22
+
23
+ - **Review** reviews a PR and tells you what it thinks. It doesn't post anything. You're still the one with opinions in public.
24
+ - **Fix CI** and **Address comments** commit fixes but don't push.
25
+ - **Rebase** rebases a PR or a whole stack, and pushes only if there were no conflicts.
26
+ - **Refresh draft** rebases a stale draft and tells you what it still needs. Every draft I've abandoned thanks it.
27
+
28
+ The rest change GitHub right away: rerun failed jobs, update a branch, mark a draft ready, turn on auto-merge, merge, close a draft. Merge and close ask first. **Acknowledge** reacts 👍 to the comments waiting on you, but only after showing you them in full. Thumbs-upping things you haven't read is a hobby, not a workflow.
29
+
30
+ ![Acknowledge](docs/screenshots/desktop-dark-doing-acknowledge.png)
31
+
32
+ Anything that's sat in Waiting for more than three days moves back here under **Waiting too long**. Usually that means someone forgot, and sometimes the someone is me.
33
+
34
+ ![Waiting too long](docs/screenshots/desktop-dark-doing-too-long.png)
35
+
36
+ ## Waiting: out of your hands
37
+
38
+ This is your work where someone else has the next move: waiting for review, waiting for the reviewer to look again, CI running, or a question you asked that nobody's answered yet.
39
+
40
+ There's nothing to do here. That's the point. It's tracked, so you can stop holding it in your head.
41
+
42
+ ![Waiting](docs/screenshots/desktop-dark-waiting.png)
43
+
44
+ ## Next up: for when your plate is clear
45
+
46
+ It does happen. Next up lists issues assigned to you first, because finishing what you've taken seems polite, and then open issues nobody's claimed. If your org uses issue fields for priority and effort, it ranks by those, so the important quick wins float to the top. Each issue shows its repo, priority, effort and scope, and whether someone already has a PR open for it. That last one has saved me from duplicating a colleague's work more than once.
47
+
48
+ ![Next up](docs/screenshots/desktop-dark-next-up.png)
49
+
50
+ Unclaimed issues come from wherever you point it: your own repos, your orgs, or single repos. Point it nowhere and it falls back to your Paseo projects' repos, so it never fills up with strangers' issues. You can filter by source or scope, and it remembers.
51
+
52
+ ![Next up filtered by scope](docs/screenshots/phone-light-next-up-filtered.png)
53
+
54
+ **Claim & start** (or just **Start**, if it's already yours) starts an agent that reads the issue and proposes a plan. You can also claim or give back an issue without starting anything, or close one as done or not planned, so the stuff that's never going to happen stops getting suggested to you.
55
+
56
+ Some orgs keep issues in a separate repo from the code. When that happens, the first Start asks where the code lives and remembers the answer.
57
+
58
+ ![Where the code lives](docs/screenshots/desktop-dark-next-up-code-repo.png)
59
+
60
+ ## History: what you got done
33
61
 
34
- ## Actions
62
+ The issues and PRs you finished in recent weeks, grouped by week, plus the PRs you reviewed that got merged. Reviews are work too, even if nobody counts them.
35
63
 
36
- Each item has a main action, and opening it shows every action with a line saying what it will do. An agent icon marks the actions that start an agent session; the rest change GitHub right away.
64
+ There's a copy button per week that gives you a Markdown list of links. That's my standup prep now, and it takes about four seconds.
37
65
 
38
- Agent sessions run in a worktree of the registered project, or resume the existing workspace for that branch:
66
+ ![History](docs/screenshots/desktop-dark-history.png)
39
67
 
40
- - **Review** reviews a pull request and reports back. Nothing is posted.
41
- - **Fix CI** and **Address comments** commit fixes without pushing.
42
- - **Rebase** rebases a pull request or a whole stack. It pushes only when there were no conflicts.
43
- - **Refresh draft** rebases a stale draft and says what it still needs.
44
- - **Start** reads an issue and proposes a plan.
68
+ ![History with reviews](docs/screenshots/desktop-dark-history-reviewed.png)
45
69
 
46
- GitHub actions, which happen only when you tap them:
70
+ ## Agent sessions
47
71
 
48
- - Rerun failed jobs, update a branch, mark a draft ready for review, turn on auto-merge, merge, and close a draft. Merge and close ask first.
49
- - React 👍 to the comments waiting on you, after reading them in full.
50
- - Claim or unclaim an issue.
72
+ Actions with an agent icon start a session; the rest change GitHub right away. Where GitHub allows it, an Undo shows up afterwards, because I mis-tap more than I'd like to admit.
51
73
 
52
- Where GitHub allows it, an Undo appears after an action.
74
+ Sessions run in a worktree of the registered project, or pick up the existing workspace for that branch. They start with the item's context already in the prompt: failing checks, unresolved comments, the issue's discussion. Once an item has a session, its main button opens that session instead of starting another, and the ▾ next to it lets you pick a different one or start fresh on purpose.
75
+
76
+ ![Session menu](docs/screenshots/desktop-dark-doing-session-menu.png)
77
+
78
+ ## However you use GitHub
79
+
80
+ I've tried not to bake in one way of working. It needs no configuration to start with, and so far it copes with:
81
+
82
+ - **Working alone:** with nothing configured, it covers everything on GitHub that involves you, and Next up looks at your Paseo projects' repos.
83
+ - **A team that reviews everything:** review requests, changes requested, waiting on reviewers and ready to merge each get their own spot.
84
+ - **Stacked PRs:** a stack is one item and rebases as one.
85
+ - **Issues first:** an issue and the PRs that close it are one item, and your org's issue fields rank Next up.
86
+ - **Issues kept apart from the code:** Start asks once where the code lives.
87
+ - **Open source:** mentions clear when you reply or react, and work waiting on maintainers sits in Waiting until it's waited too long.
88
+
89
+ If your setup breaks it, I'd honestly like to hear about it.
90
+
91
+ ## Turning off GitHub notifications
92
+
93
+ Attention Span doesn't read your notifications at all. It searches GitHub for what needs you. So if notifications bury you, you can turn them off and not miss anything it would have shown you. They're at [github.com/settings/notifications](https://github.com/settings/notifications):
94
+
95
+ - Turn off **Automatically watch repositories** and **Automatically watch teams**, so you don't get subscribed to every new repo you're given access to.
96
+ - Under **Watching** and **Participating, @mentions and custom**, clear On GitHub, Email and CLI.
97
+ - Under System, clear **Actions**, or keep only failed workflows if you can't quite let go.
98
+ - Unwatch the repos you already watch at [github.com/watching](https://github.com/watching). There are probably more than you'd guess.
99
+ - On your phone, turn off push in GitHub Mobile's settings.
100
+
101
+ GitHub moves these settings around now and then. Their [notification docs](https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications) should be current.
102
+
103
+ ## Setup
104
+
105
+ What it needs:
106
+
107
+ - The GitHub CLI, `gh`, installed and signed in on the machine that runs the Paseo daemon. The plugin uses that sign-in and doesn't keep a token of its own.
108
+ - Your repos registered as Paseo projects, with their GitHub remote, so it can start sessions in them. Items from other repos still show up, and you can open them on GitHub.
109
+ - Paseo 0.13.0 or later. I've only tested it on Linux, so other platforms are a pleasant surprise or a bug report.
110
+
111
+ If `gh` is missing or signed out, or `config.json` won't parse, you get a setup checklist instead of the lists. It says what's missing, how to fix it, and has a button to check again. It also tells you what the plugin covers, how many of your projects it can start sessions in, and which agent the sessions will use.
112
+
113
+ ![Setup](docs/screenshots/desktop-dark-setup.png)
114
+
115
+ To narrow things down, pick organizations and repos with the gear on the screen, or under Settings, Plugins, Attention Span. Each one is checked on GitHub as you add it, so typos show up straight away. Next up's unclaimed issues use these too, instead of your projects, unless you give Next up its own sources.
116
+
117
+ ![Settings](docs/screenshots/desktop-dark-settings.png)
118
+
119
+ Everything else lives in `~/.config/paseo-attention-span/config.json` on the daemon host. The settings screen writes there too.
120
+
121
+ - `profiles`: which Paseo agent profile each kind of session uses. Reviews use `review` and everything else uses `default`. A missing profile falls back to Paseo's defaults.
122
+ - `prompts`: your own prompt template per session type, if you don't like mine.
123
+ - `mergeMethods`: squash, merge or rebase, per repo.
124
+ - `codeRepos`: where an issue repo's code lives. The screen asks and fills this in, so you probably won't touch it.
125
+ - `nextUp`: where Next up picks from (also in Settings), and which org issue fields mean priority, effort and scope.
126
+ - `refreshMinutes` (15), `waitingTooLongDays` (3), `staleDraftDays` (30), `mentionDays` (30) and `historyWeeks` (4).
53
127
 
54
- ## Data
128
+ ## Your data
55
129
 
56
- - **GitHub:** the plugin reads your pull requests, review requests, mentions and issues through `gh`, scoped to the configured organizations and repositories. It refreshes every 15 minutes by default, using under 6% of GitHub's hourly API allowance.
57
- - **Local files:** a cache of what it shows, your dismissals and your Next up filter are kept in `~/.config/paseo-attention-span/state.json` on the daemon host.
58
- - **Agent providers:** when a session starts, the item's context goes into the agent's prompt. That includes descriptions, comments, review threads and failing CI logs. The prompt is sent to whichever provider the agent profile uses.
130
+ - **GitHub:** it reads your PRs, review requests, mentions and issues through `gh`, limited to the orgs and repos you've configured. By default it refreshes every 15 minutes, which uses under 6% of GitHub's hourly API allowance. I checked.
131
+ - **Local files:** a cache of what it shows, your dismissals and your Next up filter live in `~/.config/paseo-attention-span/state.json` on the daemon host. That's it.
132
+ - **Agent providers:** when a session starts, the item's context goes into the agent's prompt: descriptions, comments, review threads, failing CI logs. That prompt goes to whichever provider your agent profile uses, so it's worth knowing which one that is.
59
133
 
60
- ## Limits
134
+ ## What it doesn't do (yet)
61
135
 
62
- - github.com only. Other forges and GitHub Enterprise are not supported yet.
63
- - Apart from organizations and repositories, settings are edited by hand.
136
+ - github.com only. No other forges and no GitHub Enterprise, for now.
137
+ - Apart from orgs and repos, settings are edited by hand. Yes, in JSON. Sorry.
package/README.md CHANGED
@@ -2,11 +2,20 @@
2
2
 
3
3
  # Attention Span
4
4
 
5
- For when your attention is spread thin. A [Paseo](https://paseo.sh) plugin that lists the GitHub issues and pull requests waiting on you, grouped by why, and starts agent sessions to act on them.
5
+ My work is spread across a pile of repositories, a queue of reviews and a handful of agents doing who-knows-what in their worktrees. Every time I went to GitHub to check what needed me, I came back twenty minutes later having read three unrelated threads and forgotten what I was doing. So I built this instead.
6
+
7
+ It's a [Paseo](https://paseo.sh) plugin that boils GitHub down to a short list of what actually needs you, says why, and starts an agent session when you want help with it.
6
8
 
7
9
  ![Doing](docs/screenshots/desktop-dark-doing.png)
8
10
 
9
- [OVERVIEW.md](OVERVIEW.md) explains what it shows, its actions, its settings and where data goes.
11
+ - **Doing:** what needs you right now. Someone's waiting for a reply, a review, CI's red, something's ready to merge.
12
+ - **Waiting:** the ball's in someone else's court. You can stop thinking about it, at least until it's waited too long.
13
+ - **Next up:** for when your plate is actually clear. It happens. Occasionally.
14
+ - **History:** what you got done, for when someone asks and your mind goes blank.
15
+
16
+ I've tried not to assume much about how you use GitHub. Solo, a team that reviews everything, stacked PRs, issues first, open source: so far it copes with all of them. Tell me where it doesn't.
17
+
18
+ There's more in [OVERVIEW.md](OVERVIEW.md): each tab, what the buttons do, settings, and where your data goes.
10
19
 
11
20
  ## Install
12
21
 
@@ -14,16 +23,7 @@ For when your attention is spread thin. A [Paseo](https://paseo.sh) plugin that
14
23
  paseo plugin add andrioid/attention-span
15
24
  ```
16
25
 
17
- That's the reviewed release from the Paseo plugin registry. For the unreleased latest from `main`, use `paseo plugin add git:andrioid/paseo-attention-span` instead.
18
-
19
- Then open Attention in the sidebar. Until it can reach GitHub, it shows a checklist of what's missing:
20
-
21
- - The GitHub CLI, installed and signed in on the machine that runs Paseo: `gh auth login`.
22
- - The repositories you work in, registered as Paseo projects, so items can start sessions.
23
-
24
- To narrow it down to some organizations and repositories, use the gear on the screen, or Settings, Plugins, Attention Span. Everything else is in `~/.config/paseo-attention-span/config.json`.
25
-
26
- ![Setup](docs/screenshots/desktop-dark-setup.png)
26
+ Then open Attention in the sidebar. If something's missing, like `gh` not being signed in, it'll tell you what and how to fix it.
27
27
 
28
28
  ## Develop
29
29