opmodes

opmodes is a command for Claude Code from ncssm-robotics/ftc-claude. It costs 7 tokens per session (745 once invoked), scanned A, original, MIT.

A command for listing the programs available on a connected competition robot. An OpMode is a robot program, such as an autonomous routine or a driver-controlled mode.

In plain words
What is it for?
Use it to list every available program or filter the list to autonomous or driver-controlled modes before starting one.
Why use it?
It shows which programs the robot can run and avoids having to check them manually.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run scripts/panels_client.py list.

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ncssm-robotics/ftc-claude
agentmods
npx agentmods add commands/ncssm-robotics/ftc-claude/opmodes

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 opmodes

README.md
[![agentmods](https://agentmods.dev/badge/commands/ncssm-robotics/ftc-claude/opmodes.svg)](https://agentmods.dev/commands/ncssm-robotics/ftc-claude/opmodes)
Your own site
<a href="https://agentmods.dev/commands/ncssm-robotics/ftc-claude/opmodes"><img src="https://agentmods.dev/badge/commands/ncssm-robotics/ftc-claude/opmodes.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 745 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.00007 $0.00745
Opus 5 $0.00003 $0.00373
Sonnet 5 $0.00001 $0.00149
Haiku 4.5 $0.00001 $0.00075

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

Security

Grade A, and why

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

plugins/robot-dev/commands/opmodes.md · 160 lines

How it starts

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

OpModes Command

Lists all available OpModes on the connected robot.

Usage

/opmodes            # List all OpModes
/opmodes --auto     # List Autonomous only
/opmodes --teleop   # List TeleOp only

Arguments

Argument Description
--auto Show only Autonomous OpModes
--teleop Show only TeleOp OpModes

Process

When this command runs:

  1. Check connection:

    adb devices
    
  2. Query Panels via websocket:

    uv run scripts/panels_client.py list
    

    The script connects to ws://192.168.43.1:8001/ws and requests the OpMode list.

  3. Parse and display results

Expected Output

Available OpModes
──────────────────────────────────────────────

Autonomous:
  1. Auto Left
  2. Auto Right
  3. Auto Center

TeleOp:
  4. TeleOp Main
  5. TeleOp Practice
  6. PID Tuner

To run an OpMode:
  /init "TeleOp Main"
  /start

Filtered Output

Autonomous Only

/opmodes --auto

Autonomous OpModes
──────────────────────────────────────────────

  1. Auto Left
  2. Auto Right
  3. Auto Center

TeleOp Only

/opmodes --teleop

TeleOp OpModes
──────────────────────────────────────────────

  1. TeleOp Main
  2. TeleOp Practice
  3. PID Tuner

Error Handling

Not Connected

/opmodes

  ✗ Robot not connected

  Run /connect first, then try again.

Dashboard Not Available

/opmodes

  ✗ Cannot reach dashboard

  The OpMode list requires a dashboard connection.

  Check:
  1. Robot Controller app is running
  2. Panels (port 8001) or FTC Dashboard (port 8080) is enabled

  Alternative: View OpModes on the Driver Station app

No OpModes Found

/opmodes

  No OpModes found.

  This could mean:
  1. No code has been deployed yet (/deploy)
  2. OpModes are missing @TeleOp or @Autonomous annotations
  3. Build errors prevented OpMode registration

Tips

OpMode Naming

Good OpMode names:

  • Auto Left - Clear starting position
  • TeleOp Main - Primary teleop
  • PID Tuner - Specific purpose

Read the full file on GitHub · 160 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 · 160 lines · 7 tokens per session scan A 26d2114b8f3e

Subscribe to this mod's changes

opmodes is a command published in the GitHub repository ncssm-robotics/ftc-claude (4 stars, last pushed 7mo ago), licensed MIT. It adds 7 tokens to every session and 745 once invoked, about $0.0000 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.