#notifications #comments #gh #pull-request #command #shine

bin+lib ghai

ghai provides an intelligent shine to the gh command

6 releases (breaking)

0.6.0 Sep 10, 2025
0.5.0 Jan 7, 2025
0.4.0 Dec 10, 2024
0.3.0 Dec 6, 2024
0.1.0 Nov 5, 2024

#2 in #shine

Download history 10/week @ 2025-09-29 3/week @ 2025-10-06

248 downloads per month

Apache-2.0

85KB
2.5K SLoC

ghai: advancements to the gh command

ghai-my-issues: My preferred output for browsing issues. Clean and easy to navigate from the terminal.

ghai-process-notifications: AI-powered notification processor that uses policies to automatically decide whether GitHub notifications should be marked as read or kept unread. Features comment tracking since last read, customizable decision policies, and a --mark-read-by-default option.

Example Notification Policy

The notification processor uses policy files to make decisions. Here's an example policy:

If the issue or pull request was closed after it was last read or it was never read, output {"action": "mark-unread"}
If the issue or pull request has a comment after it was last read, output {"action": "mark-unread"}
If the issue or pull request has no comments, output {"action": "mark-read"}
If the issue or pull request is somehow associated with @rescrv, output {"action": "mark-unread"}

This policy keeps notifications unread for recently closed items, items with new comments, items with no comments at all, and items associated with @rescrv, while marking everything else as read.

Dependencies

~16–34MB
~460K SLoC