source-command-agents-stop

Stops running agents with graceful or forced shutdown via Codex-flow CLI.

Updated May 11, 2026
One-click install
npx skills add https://github.com/Turgunoff/mebellar_app --skill source-command-agents-stop-turgunoff
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: source-command-agents-stop
Source: https://github.com/Turgunoff/mebellar_app/tree/main/.agents/skills/source-command-agents-stop
Command: npx skills add https://github.com/Turgunoff/mebellar_app --skill source-command-agents-stop-turgunoff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Terminating a running agent cleanly requires knowing the correct command syntax, shutdown modes, and confirmation behavior, which this Skill documents and executes on demand. ## Core Features & Use Cases - Graceful Shutdown: Stops an agent after it completes its current task, saves state to memory, releases resources, and notifies the swarm coordinator. - Force Stop: Immediately terminates an agent with the --force flag when state preservation is not needed. - Batch Operations: Pipes agent list output through jq and xargs to stop multiple agents by type or status. - Use Case: A developer finishes a coding session and runs npx Codex-flow agent stop coder-lx7m9k2 to gracefully shut down the worker agent and free its resources. ## Quick Start Ask the assistant to stop the running agent with a given agent ID, optionally forcing termination or setting a custom shutdown timeout.

Frequently Asked Questions about source-command-agents-stop

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

FAQPage Schema
How do I stop a running agent in Codex-flow?▼

Run `npx Codex-flow agent stop <agent-id>` to gracefully stop an agent. It completes the current task, saves state, and releases resources before terminating. Use `npx Codex-flow agent list` first to find the agent ID.

What is the difference between graceful stop and force stop for agents?▼

Graceful stop completes the current task, saves agent state to memory, and notifies the swarm coordinator. Force stop with `--force` terminates immediately without state preservation and may leave tasks incomplete.

How do I stop multiple agents at once?▼

Pipe the output of `npx Codex-flow agent list` with a type or status filter through `jq` and `xargs` to invoke `agent stop` for each ID. For example, filter by `-s idle` to stop all idle agents in one batch.

Can I change the shutdown timeout when stopping an agent?▼

Yes, pass the `--timeout` option with a value in seconds, such as `--timeout 60`. The default graceful shutdown timeout is 30 seconds before the agent is terminated.

Does stopping an agent require confirmation?▼

Without the `--force` flag, the CLI prompts for interactive confirmation before stopping the agent. Adding `--force` or `-f` skips the prompt and terminates immediately.