local-commands

local-commands is a command for coding agents from ad-naan/Adnify-Cli. It costs 0 tokens per session (275 once invoked), scanned A, original, MIT.

A set of commands handled directly by the coding-agent command line instead of sent to the AI model.

In plain words
What is it for?
Use them to change modes, inspect status and tools, manage sessions and saved memory, configure providers and models, review changes, undo or restore checkpoints, and exit.
Why use it?
These commands provide quick control over the session and its settings without using model time for simple operations.

Command

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/ad-naan/adnify-cli/local-commands
Clone the repo
git clone --depth 1 https://github.com/ad-naan/Adnify-Cli

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 local-commands

README.md
[![agentmods](https://agentmods.dev/badge/commands/ad-naan/adnify-cli/local-commands.svg)](https://agentmods.dev/commands/ad-naan/adnify-cli/local-commands)
Your own site
<a href="https://agentmods.dev/commands/ad-naan/adnify-cli/local-commands"><img src="https://agentmods.dev/badge/commands/ad-naan/adnify-cli/local-commands.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 275 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.00000 $0.00275
Opus 5 $0.00000 $0.00138
Sonnet 5 $0.00000 $0.00055
Haiku 4.5 $0.00000 $0.00028

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

Security

Grade A, and why

local-commands 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 3d 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.

prompts/commands/local-commands.md · 46 lines

What it actually says

Local Commands

These commands are handled by the CLI itself instead of being sent to the model.

  • :help
  • :mode chat
  • :mode agent
  • :mode plan
  • :workspace
  • :status
  • :tools
  • :doctor
  • :diff
  • :review
  • :model [provider] [model]
  • :config
  • :config init
  • :config set provider [value] [model]
  • :config set model [value]
  • :config set api-key [value]
  • :config set base-url [value]
  • :config set context-window [tokens]
  • :config clear api-key
  • :language [zh-CN|en]
  • :animation [off|minimal|full]
  • :permissions [manual|workspace|auto|plan]
  • :runtime [show|reset]
  • :runtime set [key] [integer]
  • :session
  • :storage
  • :storage set [path]
  • :storage reset
  • :sessions
  • :resume [index|id]
  • :memory [content]
  • :memory list
  • :memory clear
  • :checkpoint [message]
  • :undo
  • :restore [id|index]
  • :skill [name|list]
  • :mcp
  • :context
  • :clear
  • :exit
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. 3d ago First seen · 46 lines · 0 tokens per session scan A a058525bb470

Subscribe to this mod's changes

local-commands is a command published in the GitHub repository ad-naan/Adnify-Cli (10 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 275 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.