← 返回
未分类 中文

code-with-claude

Comprehensive Claude Code CLI reference covering interactive mode, CLI flags, commands, environment variables, hooks, channels, checkpointing, plugins, and t...
全面的 Claude Code CLI 参考,涵盖交互模式、CLI 参数、命令、环境变量、钩子、通道、检查点、插件等。
awalesagar
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 393
下载
💾 0
安装
1
版本
#latest

概述

Code with Claude

Use this skill when the user asks about Claude Code CLI features, configuration, workflows, or best practices.

Claude Code Feature Map

FeatureWhat It DoesReference
---------------------------------
CLI flagsLaunch-time options for sessions, models, permissions, prompts./references/cli-reference.md
CommandsIn-session / commands for model switching, permissions, context, workflows./references/commands.md
Interactive modeKeyboard shortcuts, Vim mode, multiline input, voice, task list./references/interactive-mode.md
HooksShell commands, HTTP endpoints, or LLM prompts at lifecycle events./references/hooks.md
PluginsExtend Claude Code with skills, agents, hooks, MCP/LSP servers./references/plugins.md
ChannelsMCP servers that push external events into a session./references/channels.md
CheckpointingAutomatic file edit tracking with rewind and summarize./references/checkpointing.md
ToolsBuilt-in tools: Bash, Edit, Read, Write, Agent, WebFetch, etc../references/tools.md
Environment variablesControl behavior via env vars or settings.json./references/env-vars.md

Quick Reference: Essential CLI Flags

FlagPurposeExample
------------------------
--modelSet model (alias or full name)claude --model opus
--continue, -cResume most recent conversationclaude -c
--resume, -rResume by session ID or nameclaude -r "auth-refactor"
--print, -pNon-interactive print mode (SDK)claude -p "query"
--permission-modeStart in a specific permission modeclaude --permission-mode plan
--worktree, -wIsolated git worktree sessionclaude -w feature-auth
--bareMinimal mode, skip auto-discoveryclaude --bare -p "query"
--append-system-promptAdd to default system promptclaude --append-system-prompt "Use TS"
--effortSet effort level for sessionclaude --effort high

Quick Reference: Essential Commands

CommandPurpose
------------------
/model [model]Switch model mid-session
/compact [instructions]Compact conversation, free context
/clearClear conversation history
/rewindRewind to a checkpoint (Esc+Esc)
/permissionsManage tool allow/deny rules
/plan [description]Enter plan mode
/batch Parallel large-scale changes
/hooksView hook configurations
/memoryEdit CLAUDE.md memory files
/diffInteractive diff viewer
/costShow token usage statistics
/effort [level]Set effort (low/medium/high/max)

Quick Reference: Key Shortcuts

ShortcutAction
------------------
Ctrl+CCancel current generation
Esc+EscRewind / checkpoint menu
Shift+TabCycle permission modes
Ctrl+OToggle transcript viewer
Ctrl+BBackground running tasks
Ctrl+TToggle task list
Alt+PSwitch model
Alt+TToggle extended thinking
!commandRun bash directly in session
@pathFile path autocomplete

Quick Reference: Permission Modes

ModeBehavior
----------------
defaultAsk for each tool use
acceptEditsAuto-approve file edits, ask for bash
planRead-only exploration, no writes
autoAI classifier approves safe operations
bypassPermissionsSkip all permission prompts

Cycle modes with Shift+Tab. Start in a specific mode: claude --permission-mode plan.

Quick Reference: Core Tools

ToolDescriptionPermission
-------------------------------
BashExecute shell commandsYes
ReadRead file contentsNo
EditTargeted file editsYes
WriteCreate or overwrite filesYes
AgentSpawn subagent with own contextNo
GlobFind files by patternNo
GrepSearch file contentsNo
WebFetchFetch URL contentYes
WebSearchWeb searchYes
MonitorBackground watch + reactYes

Gotchas

  • Env vars don't persist across Bash tool commands. Use CLAUDE_ENV_FILE or a SessionStart hook.
  • Checkpoints don't track bash changes — only direct file edits via Edit/Write tools are tracked.
  • applyTo: "" burns context** — always-on instructions load on every interaction. Use specific globs.
  • macOS Alt shortcuts require Option-as-Meta in your terminal (iTerm2: Profiles → Keys → "Esc+").
  • --bare disables everything — hooks, skills, plugins, MCP, auto-memory, CLAUDE.md. Use for fast scripted calls.
  • Hook if patterns use tool permission syntax: Bash(rm *) matches bash commands starting with rm.
  • Plugin agents can't use hooks, mcpServers, or permissionMode frontmatter for security reasons.

When to Load References

Load the appropriate reference when the user needs detailed information:

  • CLI flags, system prompt customization, launch options → Read ./references/cli-reference.md
  • In-session commands, slash commands, skills list → Read ./references/commands.md
  • Keyboard shortcuts, Vim mode, multiline, voice, task list → Read ./references/interactive-mode.md
  • Hooks lifecycle, events, matchers, configuration → Read ./references/hooks.md
  • Plugins structure, manifest, MCP/LSP, distribution → Read ./references/plugins.md
  • Channels, webhook receivers, two-way chat bridges → Read ./references/channels.md
  • Checkpointing, rewind, restore, summarize → Read ./references/checkpointing.md
  • Built-in tools, Bash behavior, LSP, Monitor, PowerShell → Read ./references/tools.md
  • Environment variables, timeouts, model config, proxy → Read ./references/env-vars.md

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 04:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Copilot CLI

awalesagar
GitHub Copilot CLI 参考知识库。用于回答 Copilot CLI 功能、命令、配置、插件、钩子、技能、MC... 相关问题。
★ 1 📥 407

Axi Send File

awalesagar
将工作区文件转换为可在Telegram下载的附件(PDF/ZIP)。用于用户请求接收、下载或发送已生成的文件。
★ 0 📥 306

Lean Context

awalesagar
通过上下文压缩、选择性加载等方式,降低AI代理系统(Claude Code、OpenClaw、GPT Codex、Cursor、Windsurf、Aider等)的token使用量。
★ 0 📥 297