Software for independent culture. Tools for discovering clips, searching recordings, making music visuals, publishing link pages, and organizing shows.
@subcult/subsets (0.2.0-alpha.6)
Installation
@subcult:registry=https://git.subcult.tv/api/packages/subculture-collective/npm/npm install @subcult/[email protected]"@subcult/subsets": "0.2.0-alpha.6"About this package
Subsets
Your agent skills are a collection, and every task needs a different part of it.
Subsets finds the agent skills on your computer, groups them, and switches which ones are active. It previews every change before applying it and keeps a record so you can roll back. Use the terminal interface to browse, or the same commands from scripts. It works with the skill folders of Codex, Claude Code, OpenCode, GitHub Copilot, Cursor and the shared .agents folder.
Subsets is an alpha. Linux is tested; macOS is untested and Windows is not supported.
Website: subsets.subcult.tv
Features
- Discovery. Lists skills in user folders (
~/.codex/skills,~/.claude/skills,~/.agents/skills, OpenCode, Copilot and Cursor) and in project folders, with each folder's owner. Discovery only reads. - Adoption. You choose which unmanaged folders Subsets may manage. Adopting a folder copies its skills into a private library and records the original selection as a
current-<root>group. Package, plugin and installer-owned folders keep their owners. - Groups. Create named groups such as a writing set or a development set.
coreis always included; groups combine by union. - Preview and apply.
--dry-runshows the plan. Apply checks every path again, stops if files changed since the saved state, and journals the change. - Rollback. Each apply is a transaction with verified backups.
subsets historylists them andsubsets rollbackundoes one. - Skill packs. Optional packs are npm packages of skill folders.
subsets pack addimports a pack's skills inactive into a group of the same name. - Terminal interface. Tabs for skills, folders, groups and recovery, with search and keyboard shortcuts. It fits an 80×24 terminal.
Subsets does not rewrite skill instructions or run their scripts. Discovery shows what is on disk; it does not tell you which skills an agent session has loaded.
Install
The npm edition needs Node.js 22 or newer.
npm install -g @subcult/subsets@alpha
subsets # open the terminal interface
subsets --version
Try it without installing:
npx @subcult/subsets@alpha discover --json
If you earlier pointed the @subcult npm scope at another registry, reset it first with npm config set @subcult:registry https://registry.npmjs.org/.
Usage
subsets roots # list detected folders and their IDs
subsets adopt ROOT_ID # let Subsets manage one folder
subsets group create creative-writing editing research
subsets apply --creative-writing --dry-run # preview
subsets apply --creative-writing # apply
subsets apply --creative-writing --research # combine groups
subsets verify
subsets history
subsets rollback TRANSACTION_ID
Use the skill names from your own collection. Start a new agent session after applying a different set.
In the terminal interface, keys 1 to 4 switch between Skills, Folders, Groups and Recovery. / searches, Space picks a skill or toggles a group, g creates a group from picked skills, a adopts a folder, p previews, u rolls back a transaction, r rescans and q quits.
The first time the interface opens, it offers the patstack skill pack. Decline with n, or skip the prompt with --no-pack or SUBSETS_NO_PACK=1. Manage packs later with subsets pack list, subsets pack add patstack and subsets pack remove patstack.
More detail:
Configuration
State lives in $XDG_DATA_HOME/subsets/node (default ~/.local/share/subsets/node), with mode 0700. Set SUBSETS_HOME or pass --state PATH to use a separate registry. Keep this folder while you may need to roll back.
Python edition
The original Python edition (Python 3.11 or newer, Textual interface) is in src/subsets. It keeps a separate registry and does not support packs. Install it from a checkout with uv tool install ..
Development
npm ci
npm test # build, then run the Node tests
npm run typecheck
npm run format:check
uv run --extra test pytest # Python edition tests
The landing page in site/ is a static site; deploy/ has a Dockerfile and nginx config that serve it.
Contributing
Report bugs and request features in GitHub issues. Ask questions and share ideas in GitHub Discussions. Open pull requests on GitHub against main. CI runs the Node tests, type check, Prettier check and the Python tests on every pull request.
License
Subsets is made by SUBCULT and licensed under AGPL-3.0. If you want to support the work, see our Patreon.
Dependencies
Dependencies
| ID | Version |
|---|---|
| ink | ^6.8.0 |
| react | ^19.2.0 |
| yaml | ^2.8.0 |
Development Dependencies
| ID | Version |
|---|---|
| @types/node | ^22.0.0 |
| @types/react | ^19.2.0 |
| ink-testing-library | ^4.0.0 |
| prettier | ^3.9.9 |
| typescript | ^5.9.0 |
