clawforge: Command for Claude Code

.claude/commands/stack.md

stack is a command for Claude Code from ClawForgeAI/clawforge. It costs 0 tokens per session (305 once invoked), scanned A, original, MIT.

A command for operating a Docker Compose stack containing PostgreSQL, a server, and an admin console. Docker Compose starts and manages related application services together.

In plain words
What is it for?
It is for starting, stopping, inspecting, and viewing logs for the ClawForge services, checking server readiness, and seeding the PostgreSQL database.
Why use it?
It removes the need to remember separate startup, shutdown, logging, health, and database-seeding commands. It also warns before an operation that deletes database volumes.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is ClawForgeAI/clawforge's own configuration. It tells Claude Code how to work on clawforge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything clawforge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ClawForgeAI/clawforge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ClawForgeAI/clawforge/main/.claude/commands/stack.md
Clone the repo
git clone --depth 1 https://github.com/ClawForgeAI/clawforge

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 stack

README.md
[![agentmods](https://agentmods.dev/badge/commands/clawforgeai/clawforge/stack/github.svg)](https://agentmods.dev/commands/clawforgeai/clawforge/stack)
Your own site
<a href="https://agentmods.dev/commands/clawforgeai/clawforge/stack"><img src="https://agentmods.dev/badge/commands/clawforgeai/clawforge/stack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stack

Your own site · 80×15
<a href="https://agentmods.dev/commands/clawforgeai/clawforge/stack"><img src="https://agentmods.dev/badge/commands/clawforgeai/clawforge/stack.svg" alt="Reviewed on agentmods" width="80" 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 305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00305
Opus 5.5 $0.00000 $0.00122
Sonnet 5.5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00030

Measured 2mo ago against content hash 9ae9324c9c30, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stack scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. Check health endpoint: `curl -sf http://localhost:4100/health/ready`
.claude/commands/stack.md · 48 lines

What it actually says

Docker Stack Management

Manage the full ClawForge Docker stack (PostgreSQL + Server + Admin).

Instructions

Parse the operation from: $ARGUMENTS

If no argument, default to status.

Operations

up:

  1. Check if .env exists at project root. If not, copy from .env.example
  2. Run docker compose up --build -d
  3. Wait for health checks to pass (check with docker compose ps)
  4. Report service status and URLs:

down:

  1. Run docker compose down
  2. Report stopped services

down-clean (removes volumes — destructive):

  1. Warn the user this will destroy all database data
  2. Only proceed if user confirms
  3. Run docker compose down -v

logs [service]:

  1. Run docker compose logs --tail=100 <service> or all services if none specified

seed:

  1. Run docker compose run --rm seed
  2. Report seed completion (default credentials: [email protected] / clawforge)

status:

  1. Run docker compose ps
  2. Check health endpoint: curl -sf http://localhost:4100/health/ready
  3. Report which services are running and healthy
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. 2mo ago First seen · 48 lines · 0 tokens per session scan A 9ae9324c9c30

Subscribe to this mod's changes

stack is a command published in the GitHub repository ClawForgeAI/clawforge (17 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 305 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

stack compared with commands from other repositories

stack next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stackClawForgeAI/clawforgeCommand17yesterdayMITA0Claude Code
db-backup-checkfmflurry/settings-opencodeCommand170yesterdayMITA29Claude Code
db-healthfmflurry/settings-opencodeCommand170yesterdayMITA36Claude Code
trex.db.setupopenshift-online/agent-control-planeCommand134d agoMITA0Claude Code
dbtextura-agency/next16-claude-starterCommand14523d agoUnlicenseA11Claude Code
sparc-supabase-adminruvnet/ruv-FANNCommand3873mo agoMITA32Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code