test-variables

test-variables is a command for coding agents from poindexter12/waypoint. It costs 13 tokens per session (269 once invoked), scanned A, original, MIT.

A command that checks whether an editor or command-line tool inserts supplied arguments and selected text into a task.

In plain words
What is it for?
Use it to test $ARGUMENTS and $SELECTION behavior and report whether each value was inserted, empty, or left unchanged.
Why use it?
It shows whether these dynamic values are being passed correctly instead of silently remaining as placeholder text.

Command

Part of the claire plugin — 2 skills, 2 commands, 4 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/test-variables
Clone the repo
git clone --depth 1 https://github.com/poindexter12/waypoint

Or install claire, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 4 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 test-variables

README.md
[![agentmods](https://agentmods.dev/badge/commands/poindexter12/waypoint/test-variables.svg)](https://agentmods.dev/commands/poindexter12/waypoint/test-variables)
Your own site
<a href="https://agentmods.dev/commands/poindexter12/waypoint/test-variables"><img src="https://agentmods.dev/badge/commands/poindexter12/waypoint/test-variables.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 269 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.00269
Opus 5 $0.00006 $0.00134
Sonnet 5 $0.00003 $0.00054
Haiku 4.5 $0.00001 $0.00027

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

Security

Grade A, and why

test-variables 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.

claire/commands/test-variables.md · 41 lines

What it actually says

/claire:test-variables

Test whether Claude Code dynamic variables get interpolated.

Arguments Received

The arguments passed to this command are: $ARGUMENTS

Selection Content

The current editor selection is: $SELECTION

Your Task

Report what you see above:

  1. $ARGUMENTS test: Look at "Arguments Received" section above.

    • If you see actual argument text → variable works
    • If you see literal "$ARGUMENTS" → variable not interpolated
    • If empty → variable set but empty
  2. $SELECTION test: Look at "Selection Content" section above.

    • If you see text content → variable works (IDE context)
    • If you see literal "$SELECTION" → variable not interpolated
    • If empty → likely CLI context (no selection available)
  3. Report findings - Tell the user what worked and what didn't.

Version

  • Version: 2.0.0
  • Updated: 2026-01-20
  • Purpose: Empirically test dynamic variable injection
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 · 41 lines · 13 tokens per session scan A 1ea013a8d8b5

Subscribe to this mod's changes

test-variables 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 269 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.