status

status is a command for coding agents from poindexter12/waypoint. It costs 13 tokens per session (3,153 once invoked), scanned A, original, MIT.

A command that displays information about the current Git worktree using its project metadata file.

In plain words
What is it for?
Use it to inspect the repository and branch, check for `.ai-context.json`, and review the worktree’s recorded context.
Why use it?
It quickly shows where the worktree belongs, which branch is active, and whether the expected metadata is present.

Command

Part of the workflows plugin — 4 skills, 5 commands, 2 agents shipped together

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.

agentmods
npx agentmods add commands/poindexter12/waypoint/status
Clone the repo
git clone --depth 1 https://github.com/poindexter12/waypoint

Or install workflows, the plugin that ships this one along with the rest of its 4 skills, 5 commands, 2 agents.

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 status

README.md
[![agentmods](https://agentmods.dev/badge/commands/poindexter12/waypoint/status.svg)](https://agentmods.dev/commands/poindexter12/waypoint/status)
Your own site
<a href="https://agentmods.dev/commands/poindexter12/waypoint/status"><img src="https://agentmods.dev/badge/commands/poindexter12/waypoint/status.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,153 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 $0.00013 $0.03153
Opus 5 $0.00006 $0.01577
Sonnet 5 $0.00003 $0.00631
Haiku 4.5 $0.00001 $0.00315

Measured 5d ago against content hash 220256c99a84, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

status 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.

workflows/commands/status.md · 477 lines

How it starts

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

/working-tree:status

Display current worktree AI context metadata and git information.

EXECUTION PROTOCOL

Execute steps sequentially. Each step must complete successfully before proceeding.

STEP 1: DETECT REPOSITORY ROOT

EXECUTE:

REPO_ROOT=$(git rev-parse --show-toplevel 2>&1)
EXIT_CODE=$?

VALIDATION:

  • IF EXIT_CODE != 0 → ERROR PATTERN "not-in-git-repo"
  • REPO_ROOT must be absolute path starting with /
  • REPO_ROOT directory must exist

DATA EXTRACTION:

  • REPO_NAME = basename of REPO_ROOT

NEXT:

  • On success → STEP 2
  • On failure → ABORT

STEP 2: DETECT CURRENT BRANCH

EXECUTE:

BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2>&1)
EXIT_CODE=$?

VALIDATION:

  • IF EXIT_CODE != 0 → ERROR PATTERN "git-command-failed"
  • BRANCH_NAME must not be empty string

NEXT:

  • On success → STEP 3
  • On failure → ABORT

STEP 3: CHECK METADATA FILE

EXECUTE:

METADATA_PATH="$REPO_ROOT/.ai-context.json"
test -f "$METADATA_PATH"
EXISTS=$?

VALIDATION:

  • EXISTS is 0 (true) or 1 (false), no other values

NEXT:

  • IF EXISTS == 0 → STEP 4 (metadata exists)
  • IF EXISTS == 1 → STEP 5 (no metadata)

STEP 4: READ AND PARSE METADATA

EXECUTE:

METADATA_JSON=$(cat "$METADATA_PATH" 2>&1)
CAT_EXIT=$?

VALIDATION:

  • IF CAT_EXIT != 0 → ERROR PATTERN "file-read-failed"

DATA EXTRACTION:

MODE=$(echo "$METADATA_JSON" | jq -r '.mode // "unknown"' 2>&1)
JQ_EXIT_MODE=$?
DESCRIPTION=$(echo "$METADATA_JSON" | jq -r '.description // ""' 2>&1)
JQ_EXIT_DESC=$?
CREATED=$(echo "$METADATA_JSON" | jq -r '.created // ""' 2>&1)
JQ_EXIT_CREATED=$?

VALIDATION:

  • IF JQ_EXIT_MODE != 0 → ERROR PATTERN "invalid-json"
  • MODE must be one of: main, feature, bugfix, experiment, review, unknown
  • DESCRIPTION can be empty string
  • CREATED should be ISO8601 format or empty

NEXT:

  • On success → STEP 6 (display with metadata)
  • On jq failure → ERROR PATTERN "invalid-json"

STEP 5: DISPLAY NO METADATA

OUTPUT FORMAT (exact):

Worktree Status
═══════════════════════════════════════════════════════════

Directory:    {REPO_NAME}
Branch:       {BRANCH_NAME}
Mode:         (no metadata)

⚠ No .ai-context.json found

This worktree doesn't have AI context metadata.

To add metadata to this worktree:
  /working-tree:adopt [--mode <mode>] [--description "<text>"]

To create a new worktree with metadata:
  /working-tree:new <branch-name>

Read the full file on GitHub · 477 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 · 477 lines · 13 tokens per session scan A 220256c99a84

Subscribe to this mod's changes

status is a command published in the GitHub repository poindexter12/waypoint (7 stars, last pushed 7mo ago), licensed MIT. It adds 13 tokens to every session and 3,153 once invoked, about $0.0001 per session on Opus 5. 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.