acp.projects-restore

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

A command that reads a project registry and clones missing project folders from their saved Git origins. Git is a system for storing code and its history, while a Git origin is the remote repository address.

In plain words
What is it for?
Use it to restore registered projects to disk, especially after moving to a new machine; it works in the opposite direction from a command that registers projects found on disk.
Why use it?
It restores projects after setting up a new computer or losing local project folders. A dry-run option lets you preview what is missing before cloning.

Command for Claude Code

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/.acp/projects/old-project.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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.projects-restore

README.md
[![agentmods](https://agentmods.dev/badge/commands/prmichaelsen/gcloud-mcp/acp.projects-restore.svg)](https://agentmods.dev/commands/prmichaelsen/gcloud-mcp/acp.projects-restore)
Your own site
<a href="https://agentmods.dev/commands/prmichaelsen/gcloud-mcp/acp.projects-restore"><img src="https://agentmods.dev/badge/commands/prmichaelsen/gcloud-mcp/acp.projects-restore.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 1,526 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.01526
Opus 5 $0.00000 $0.00763
Sonnet 5 $0.00000 $0.00305
Haiku 4.5 $0.00000 $0.00153

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

Security

Grade A, and why

acp.projects-restore 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 5d 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.projects-restore.md · 229 lines

How it starts

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

Command: projects-restore

🤖 Agent Directive: If you are reading this file, the command @acp.projects-restore has been invoked. Follow the steps below to execute this command.

Namespace: acp Version: 1.0.0 Created: 2026-03-01 Last Updated: 2026-03-01 Status: Experimental


Purpose: Restore/clone missing projects from their registered git origins Category: Project Management Frequency: As Needed Script: agent/scripts/acp.projects-restore.sh


What This Command Does

This command reads ~/.acp/projects.yaml and clones any missing project directories from their stored git_origin URLs. It's designed for restoring projects on a new machine after pushing your ~/.acp configuration.

Use this when:

  • You've set up ~/.acp on a new machine and need to clone all your projects
  • Project directories were deleted and need to be restored
  • You want to preview what projects are missing with --dry-run

Key Distinction:

  • @acp.projects-sync - Discovers projects on disk and registers them in the registry
  • @acp.projects-restore - Reads the registry and clones projects that are missing from disk

Prerequisites

  • ~/.acp/projects.yaml exists with project entries
  • Projects have git_origin field set (run @acp.projects-sync to backfill)
  • Git installed and network access available for cloning

Steps

1. Execute Restore Script

Run the shell script to restore missing projects.

Actions:

  • Execute ./agent/scripts/acp.projects-restore.sh [--dry-run] [--install-acp]
  • Script reads ~/.acp/projects.yaml registry
  • Checks each project's directory existence
  • Clones missing projects from git_origin

Expected Outcome: Missing projects cloned to their registered paths

2. Review Results

Check the restore summary.

Actions:

  • Review clone count (projects restored)
  • Review skip count (already exist, archived, no origin)
  • Review errors (failed clones)

Read the full file on GitHub · 229 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. 5d ago First seen · 229 lines · 0 tokens per session scan A 4c146acb6d08

Subscribe to this mod's changes

acp.projects-restore 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 1,526 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.