Introduction¶
DSH’s (DeepSeek Harness) plugin-based architecture makes “everything is a plugin” a reality. In agent development and long-term maintenance scenarios, bookmarked GitHub repositories are often scattered across multiple Lists, lacking a unified entry point, making it difficult to know which repositories have been updated or which have been archived. This article introduces the dsh-stars plugin, which organizes GitHub Stars into Lists, provides batch categorization suggestions, and tracks changes since the last viewing.
What It Is¶
dsh-stars is a DSH plugin maintained by whiplashf, categorized as a “Web Tool.” It consolidates the ownership and changes of GitHub stars into a single panel: the left navigation switches between “All / Uncategorized / Each List / Operation Log / Updates,” while the right side displays the repository list. The plugin’s data is stored in GitHub Lists and managed through a local state file and change tracking.
Core Capabilities¶
1. Automatic Categorization Suggestions¶
The plugin has six built-in rule categories: AI Agent & Skills, LLM & Deep Learning, Frontend & Tools, Learning & Tutorials, Music & Audio, and Quantitative Trading. Each uncategorized repository is matched against keywords based on its topics, description, and repository name, generating a categorization suggestion. Suggestions are hints only and are not automatically applied. You can manually adjust them on the panel or batch-stash them via “Accept All Suggestions.”
2. Categorization & Filtered Viewing¶
- Left sidebar switches between “All / Uncategorized / Each List / Operation Log / Updates.”
- List supports pagination (30/50/100/200, with bottom page navigation).
- Four-dimensional sorting: recently starred / recently updated / star count / name.
- Chip filters: has new release / updated within 30 days / uncategorized / archived.
- Language filter, search, multi-select, and Shift range selection.
3. AI Organization¶
Clicking “✦ AI Organize” in the top-right corner triggers the model configured in the host to generate a set of categorization schemes based on descriptions and topics. There are two modes:
- Organize based on current categories: only processes uncategorized repositories; new categories require at least 2 repositories.
- Complete reorganization: re-sorts all stars according to the model’s judgment.
The model only outputs a plan. The panel writes it to a staging area, and you must preview before confirming via “Apply to Staging.” Categories created by the plugin carry the description dsh-stars auto-created, making them easily identifiable on the GitHub Lists page.
4. Structural Operations & Staging¶
- The staging area holds pending changes for synchronization. Before syncing, the full category directory and the star status of repositories to be written are read and verified; a background task is then initiated upon successful validation.
- Supports unstarring, deleting categories, and cleaning up orphaned members. When deleting a category, you can choose to only remove members or move them to another category.
- The staging area supports undo: undoing a staged entry sends a
discardPendingaction withplanVersionandfullName, and the response returns a new preview.
5. Change Tracking¶
After each fetch, the plugin compares the current snapshot with the previous one, recording six types of changes: new stars, new releases, new commits, archived, star increases/decreases, and unstars. Star increases/decreases are only logged when exceeding 10 or 10% to avoid noise. The “⚑ Updates” section on the left panel only counts tracked repositories; by default, no repositories are tracked—you must manually click “☆ Track” on a repository or select multiple and click “Track.” The “≡ Operation Log” records in-panel operations and has no unread concept.
6. Saved Views¶
The plugin remembers the current list, keywords, language, filters, and sorting. For example, select TypeScript and “Has New Release,” click “Save View,” and next time you can open this view from the left sidebar. Views are saved per GitHub account in the DSH host and can be shared across different browsers on the same host.
7. Repository Details¶
Detailed information is provided next to the repository name: star time, current category, staged additions/removals, and the rationale behind keyword suggestions. Clicking “View Release Notes” reads the release body for that version.
Installation & Activation¶
Search for dsh-stars in the DSH plugin marketplace and click Install. The marketplace uses pre-built packages from GitHub Releases, so no local build is required. Equivalent command line:
dsh plugin --profile web add https://github.com/whiplashf/dsh-stars/releases/latest/download/dsh-stars.tgz
After installation, refresh the page, and the “Star Management” entry will appear in the left sidebar.
First-Time Usage¶
All panel data is retrieved via GitHub CLI (gh), so you need:
- Install GitHub CLI (
gh --versionmust work). - Log in:
gh auth login. - Writing back to Lists requires a token with
userscope:
gh auth refresh -h github.com -s user
If not logged in or missing a scope, a check card appears at the top of the panel listing what’s missing and providing copy-paste-ready commands. Without user scope, you can still browse, stage to existing categories, view previews, and undo. Once permissions are added, you can confirm write-backs.
The initial fetch checks whether data needs refreshing based on the minRefreshMs configuration. GitHub Lists membership requires paginated fetching per list, so the initial fetch may take tens of seconds with many stars.
Configuration¶
| Key | Default | Description |
|---|---|---|
stateFile |
$DSH_HOME/data/dsh-stars/state.json |
State file path |
minRefreshMs |
600000 |
Snapshot is re-fetched when older than this duration upon panel open |
staleDays |
365 |
Days without a push before marking as “Not Updated for a Year” |
suggestRules |
6 built-in categories | Replaces the entire categorization rule table; each item is { name, keywords }; keywords match topics, descriptions, or repository names |
syncConcurrency |
4 |
Concurrency for sync write-back (1–8) |
organizeProvider / organizeModel |
empty | Which model “AI Organize” uses; if empty, the first available provider and model in the host is used |
Data & API¶
- State file:
$DSH_HOME/data/dsh-stars/state.json(default~/.dsh/data/dsh-stars/state.json), overridable viaconfig.stateFile. The file stores snapshots, staging, tracking, and logs per GitHub login account. - The panel communicates exclusively with
POST /api/dsh-starsviactx.connection.fetch(Owner Peer + Host/Origin fence); the browser never receives the GitHub token. - Main actions:
state/refresh/stage/acceptSuggestions/plan/discardPending/sync/progress/createList/unstar/deleteList/removeOrphan/organize/organizeApply/watch/markViewed/checkAuth. - The
syncendpoint returns 409 withreason: "remote-lists"when remote changes affect the plan; you need to re-readplanto merge results. organizeonly calls the model to produce a plan without touching GitHub;organizeApplymaps the plan by name into Lists (creating missing ones) and writes them to the staging area.
Known Limitations¶
- The initial fetch only establishes a baseline and will not report hundreds of repositories as “New Stars.”
- GitHub writes back entire category groups; the plugin uses the latest ownership read before sync as the base, only replaying locally actual additions/removals of categories.
- Unstarring removes the repository from all Lists simultaneously (GitHub’s behavior); a local
unstarredchange record is left behind. If a star is unstared on another device, it’s logged asgone. - Before deleting a category, remote members are re-fetched; deletion occurs only after all members are moved. A mid-process failure leaves the state as “category still exists, some members already moved”; simply retry to continue.
- Change tracking granularity is at the repository level (release tag, pushedAt, archived, star count), not per commit or per file.
- Categorization suggestions are keyword-rule-based, not model-based; misclassifications can be corrected in the panel, and rules can be tuned via
suggestRules. - Pagination occurs only in the panel;
statestill returns the full snapshot in one response. The hard fetch limit is 10,000 stars (100 pages × 100). - “AI Organize” results depend on the model configured in the host; running it twice on the same set of stars may yield different groupings. It only writes to the staging area; a preview confirmation is still required before writing back to GitHub.
Use Cases & Notes¶
- Suitable for developers and agent developers who need to centrally manage GitHub stars, batch-categorize, and track changes.
- The plugin runs with the current DSH process’s permissions; it is recommended to review the source code and license (MIT) before installation.
- Change tracking does not track any repositories by default; you must manually enable “Track” in the list.
Conclusion¶
dsh-stars organizes scattered GitHub stars into Lists, providing batch categorization suggestions, AI organization, and change tracking. Through its staging and preview mechanism, it makes category operations more controllable. If you need a centralized entry point for managing stars within DSH, check out its catalog page and GitHub repository.
- Catalog page: https://www.skillhub.cn/plugins/whiplashf/dsh-stars
- GitHub: https://github.com/whiplashf/dsh-stars