CLAUDE

CLAUDE is a command for coding agents from UfoMiao/zcf. It costs 0 tokens per session (1,828 once invoked), scanned A, original, MIT.

A command module for setting up and managing Claude Code, an AI coding assistant, through the ZCF project. It includes commands for initialization, configuration, updates, provider switching, usage tools, and removal.

In plain words
What is it for?
Use it to initialize the setup, choose configuration options, switch service providers, update workflow templates, check for updates, or uninstall the setup.
Why use it?
It gathers common setup and maintenance actions into command-line workflows. This can make it easier to configure Claude Code and change its environment over time.

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/ufomiao/zcf/claude
Clone the repo
git clone --depth 1 https://github.com/UfoMiao/zcf

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 CLAUDE

README.md
[![agentmods](https://agentmods.dev/badge/commands/ufomiao/zcf/claude.svg)](https://agentmods.dev/commands/ufomiao/zcf/claude)
Your own site
<a href="https://agentmods.dev/commands/ufomiao/zcf/claude"><img src="https://agentmods.dev/badge/commands/ufomiao/zcf/claude.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 1,828 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.01828
Opus 5 $0.00000 $0.00914
Sonnet 5 $0.00000 $0.00366
Haiku 4.5 $0.00000 $0.00183

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

Security

Grade A, and why

CLAUDE 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • CLAUDE — 92% identical, 8 lines differ
src/commands/CLAUDE.md · 224 lines

How it starts

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

Commands Module

Last Updated: Mon Oct 27 19:39:26 CST 2025

Root > src > commands

Module Responsibilities

CLI command implementation module containing all major command functions for ZCF, providing both interactive and non-interactive operation interfaces for Claude Code environment setup and management.

Entry Points and Startup

  • Main Entry Points:
    • init.ts - Complete initialization flow with full setup options (45KB, 1,200+ lines)
    • menu.ts - Interactive menu system with feature selection (13KB, 350+ lines)
    • update.ts - Workflow template updates without full reinstall (4KB, 100+ lines)
    • ccr.ts - Claude Code Router proxy configuration (1KB, 30+ lines)
    • ccu.ts - CCusage tool integration and execution (1KB, 40+ lines)
    • check-updates.ts - Tool version checking and update management (1.3KB, 50+ lines)
    • config-switch.ts - Configuration switching for multi-provider support (14KB, 400+ lines)
    • uninstall.ts - ZCF uninstallation with selective removal (10KB, 300+ lines)

External Interfaces

Command Interfaces

// Initialize command options (v3.3.0+)
export interface InitOptions {
  configLang?: SupportedLang
  aiOutputLang?: AiOutputLanguage | string
  force?: boolean
  skipBanner?: boolean
  skipPrompt?: boolean
  codeType?: CodeToolType | string // Support 'cc', 'cx' abbreviations
  // Non-interactive mode parameters
  configAction?: 'new' | 'backup' | 'merge' | 'docs-only' | 'skip'
  apiType?: 'auth_token' | 'api_key' | 'ccr_proxy' | 'skip'
  apiKey?: string // Used for both API key and auth token
  apiUrl?: string
  apiModel?: string // Primary API model
  apiFastModel?: string // Fast API model
  provider?: string // API provider preset (302ai, glm, minimax, kimi, custom)
  mcpServices?: string[] | string | boolean
  workflows?: string[] | string | boolean
  outputStyles?: string[] | string | boolean
  defaultOutputStyle?: string
  allLang?: string // Unified language parameter
  installCometixLine?: string | boolean // CCometixLine installation control
  // Multi-configuration parameters
  apiConfigs?: string // JSON string for multiple API configurations
  apiConfigsFile?: string // Path to JSON file with API configurations
}

// Update command options
export interface UpdateOptions {
  lang?: SupportedLang
  force?: boolean
  selectedWorkflows?: string[]
}

// CCR command options
export interface CcrOptions {
  lang?: SupportedLang
}

// Check updates options
export interface CheckUpdatesOptions {
  lang?: SupportedLang
  codeType?: CodeToolType | string
}

// Config switch options
export interface ConfigSwitchOptions {
  codeType?: CodeToolType | string
  list?: boolean
}

// Uninstall options
export interface UninstallOptions {
  mode?: 'complete' | 'custom' | 'interactive'
  items?: string
  lang?: SupportedLang
}

Read the full file on GitHub · 224 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. 4d ago First seen · 224 lines · 0 tokens per session scan A 2aa5dfa718b3

Subscribe to this mod's changes

CLAUDE is a command published in the GitHub repository UfoMiao/zcf (6,085 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,828 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-30.