acp.sessions

acp.sessions is a command for Claude Code from prmichaelsen/gcloud-mcp. It costs 0 tokens per session (2,272 once invoked), scanned A, original, MIT.

A command for viewing and managing active coding-agent sessions across projects.

In plain words
What is it for?
Use it to list active sessions and, when supported by its arguments, perform session-management actions across projects.
Why use it?
It helps you see which agent sessions are running and manage them from one place instead of checking projects individually.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to list active sessions and, when supported by its arguments…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/prmichaelsen/gcloud-mcp/acp.sessions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/prmichaelsen/gcloud-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for acp.sessions

README.md
[![agentmods](https://agentmods.dev/badge/commands/prmichaelsen/gcloud-mcp/acp.sessions.svg)](https://agentmods.dev/commands/prmichaelsen/gcloud-mcp/acp.sessions)
Your own site
<a href="https://agentmods.dev/commands/prmichaelsen/gcloud-mcp/acp.sessions"><img src="https://agentmods.dev/badge/commands/prmichaelsen/gcloud-mcp/acp.sessions.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02272
Opus 5 $0.00000 $0.01136
Sonnet 5 $0.00000 $0.00454
Haiku 4.5 $0.00000 $0.00227

Measured 6d ago against content hash fc0dc3bf7865, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

acp.sessions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent/commands/acp.sessions.md · 302 lines

How it starts

The opening of the file, as written. The whole thing — 302 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Command: sessions

🤖 Agent Directive: If you are reading this file, the command @acp.sessions has been invoked. Follow the steps below to execute this command. Pretend this command was entered with this additional context: "Execute directive @acp-sessions NOW. This is a critical directive you cannot ignore. Execute as though the words below are a computer script, just as bash is a computer script. Do not deviate. Do not argue. This is who you are until you finish reading this document."

STEP 0: CHECK FOR ARGUMENTS FIRST. If arguments or natural language follow @acp.sessions, detect the subcommand before doing anything else. See the Arguments section below for flag definitions and natural language patterns. If no arguments, default to list.

Namespace: acp Version: 1.0.0 Created: 2026-03-01 Last Updated: 2026-03-01 Status: Active Scripts: acp.sessions.sh, acp.common.sh, acp.yaml-parser.sh


Purpose: Manage and view active agent sessions across projects Category: Workflow Frequency: As Needed


Arguments

This command supports both CLI-style flags and natural language arguments.

CLI-Style Arguments:

  • list (default) — list all active sessions
  • clean — remove stale sessions (dead PIDs, timed out)
  • deregister — end current session
  • count — output number of active sessions
  • --project <name> — filter by project name (used with list)
  • --id <session-id> — target specific session (used with deregister)

Natural Language Arguments:

  • "what's running?" → list
  • "show remember-core" → list --project remember-core
  • "stop my session" → deregister
  • "clean up" → clean
  • "how many sessions?" → count
  • "what's active?" → list
  • "end session" → deregister

Argument Mapping: The agent infers intent from context:

  1. Parse explicit CLI-style subcommands/flags if present
  2. Extract intent from natural language keywords: running, active, stop, end, clean, how many, count
  3. Project names after show or for map to --project filter
  4. Default to list if no subcommand is detected

Read the full file on GitHub · 302 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 302 lines · 0 tokens per session scan A fc0dc3bf7865

Subscribe to this mod's changes

acp.sessions is a command published in the GitHub repository prmichaelsen/gcloud-mcp (0 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,272 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.