restart-claude-agents

Restarts Claude Code background agents so they load updated plugins from disk.

4|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/laicluse/agent-fieldkit --skill restart-claude-agents-laicluse
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: restart-claude-agents
Source: https://github.com/laicluse/agent-fieldkit/tree/main/packages/how-plugins-work/skills/restart-claude-agents
Command: npx skills add https://github.com/laicluse/agent-fieldkit --skill restart-claude-agents-laicluse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running Claude Code background agents hold their plugins in memory from the moment they start, so installing or updating a plugin has no effect on agents already running. This Skill restarts those background agents via claude --bg --resume, letting a fresh process load the current plugin versions while preserving each agent's conversation and configuration. ## Core Features & Use Cases - Selective or bulk restart: Restart all idle background agents, target specific agent ids, include busy agents with --force, or scope by working directory with --cwd. - State preservation: Re-applies each agent's original launch flags from ~/.claude/jobs/<id>/state.json, including permission mode, disallowed-tools lists, custom settings, and the agent's goal. - Safe preview: --dry-run reports what would be restarted without touching anything, and interactive terminal sessions are never affected. - Use Case: After updating a plugin in your marketplace, run the restart command so every background agent picks up the new plugin version without losing its in-progress work. ## Quick Start Ask the agent to list running background agents and restart the idle ones so they load the updated plugins.

Frequently Asked Questions about restart-claude-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restart Claude Code background agents after updating a plugin?▼

Run the restart-claude-agents helper with the restart command to restart every idle background agent. Each agent is resumed via claude --bg --resume, so a fresh process loads the updated plugins while keeping the agent's conversation context.

How do I reload plugins in a running Claude Code agent?▼

Claude Code has no in-process plugin reload; a running agent holds its plugins in memory from startup. The only way to pick up an updated plugin is to start a new process, which this restart workflow automates using session resume.

Does restarting a background agent lose its conversation or permissions?▼

No. The restart re-applies the agent's original launch flags from its job state file, including permission mode, disallowed-tools lists, custom settings, and goal. Combined with --resume, the agent keeps its conversation and configuration across the restart.

Can I restart only specific background agents instead of all of them?▼

Yes. Pass one or more agent ids to restart exactly those agents, use --cwd to limit restarts to agents under a working directory, or use --force to include busy agents in a bulk restart. A --dry-run flag previews the action first.

What are the requirements for running the restart helper?▼

The helper requires Claude Code with Node.js available on PATH, since it is a Node script. It drives the claude CLI found on PATH, and you can set the CLAUDE_BINARY environment variable if the binary has a different name.