By ryankim17920
Claude Code mods (plugins built on TypeScript hook modules) for long sessions with many agents: context budgets and handoffs, compaction focus, standing goals, branch ownership, notification de-duplication, and memory and disk guards for macOS and Linux.
npx claudepluginhub ryankim17920/ryk-claude-modsTracks each agent's context size and warns as it grows. Past the threshold main writes its handoff file and is compacted in place, then reads that file first; a subagent writes its handoff brief and stops.
Records which agent created each git branch and worktree, and lists the unmerged ones with their owners (/branch-owners).
Gives every compaction, automatic ones included, a standing focus; keeps each summary as a brief on disk; and asks a subagent for a handoff when compaction stops paying (main keeps compacting in place) (/focus-compact).
Keeps a session's standing goal (and the native /goal condition) fresh in long sessions by re-injecting a short reminder on turns already happening, and lets the goal be updated through discussion (goal_update tool, /goal-refresh).
Watches free memory and swap (macOS and Linux), shows them in the status line and alerts once (naming the top memory users) when either crosses its limit. While over, only light commands run. Always caps this session's top-level agents (subagents, and teammates while they work) at 4 and its background jobs at 3.
Drops task notifications that carry no information and near-exact repeats of notifications, failures, peer messages, scheduled prompts and agent messages, so they stop waking the main thread; counts what it drops across sessions.
Watches free disk space (the macOS data volume, or / on Linux), shows it in the status line and alerts once as it falls through each tier (20, 10, 5, 1 GB), naming the biggest space users. At or below 5 GB free only light commands and cleanup run.
7-day visitors to each marketplace page
Claude Code mods for long sessions that run many subagents and background jobs. A mod is a Claude Code plugin built on TypeScript hook modules: code that Claude Code loads and runs on its own events (a tool call, a turn ending, a compaction). Each mod is a separate plugin in the ryk-claude-mods marketplace, so you can install any of them on their own.
Status: personal tools, version 0.x. Options and behaviour may change between versions.
In a long session the main thread (the conversation you type into) hands work to subagents (helper agents it starts, each with its own context) and to background jobs. A few things go wrong as that grows:
Each mod handles one of these.
memory_pressure and sysctl on macOS and /proc/meminfo on Linux; storage-watch reads df on the macOS data volume, or / elsewhere. On another OS mem-watch has no reading: it says so once, its status line stays empty and its memory gate stays open, but its agent and job caps still apply. The other mods run wherever Claude Code does.A few defaults act even when nothing is wrong. Change them with the mod's options, for example in settings.json: "pluginConfigs": { "mem-watch@ryk-claude-mods": { "options": { "maxConcurrentAgents": 8 } } }.
run_in_background job is refused until one finishes. Set maxConcurrentAgents or maxBackgroundJobs (0 turns a cap off).maxSwapGb is set above 0. Its free-memory limit (minFreePercent 28) was tuned on a 24 GB Mac.addRuleToSpawns, on by default), telling it to follow an [agent-budget] note. Turn it off to leave prompts untouched; agents may then ignore the note.Add the marketplace:
claude plugin marketplace add RyanKim17920/ryk-claude-mods
Or clone it and add the local folder:
git clone https://github.com/RyanKim17920/ryk-claude-mods.git ~/.claude/ryk-claude-mods
claude plugin marketplace add ~/.claude/ryk-claude-mods
Install one mod:
claude plugin install notice-dedupe@ryk-claude-mods
Install all of them:
for m in notice-dedupe agent-budget branch-owners focus-compact goal-refresh mem-watch storage-watch; do
claude plugin install "$m@ryk-claude-mods"
done
Or add the marketplace and install a mod in one step:
claude plugin install notice-dedupe --marketplace RyanKim17920/ryk-claude-mods
install takes --scope user|project|local (default user).
Update (with a local clone, run git -C ~/.claude/ryk-claude-mods pull first):
claude plugin marketplace update ryk-claude-mods
claude plugin update notice-dedupe@ryk-claude-mods
Restart Claude Code to load an update. Each mod's options are in its README and can be set with claude plugin configure <mod>@ryk-claude-mods or in /plugin.
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations