惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
V
V2EX
量子位
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 【当耐特】
爱范儿
爱范儿
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
小众软件
小众软件
IT之家
IT之家
博客园_首页
博客园 - 聂微东
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗

MarkTechPost

A Coding Implementation of End-to-End Brain Decoding from MEG Signals Using NeuralSet and Deep Learning for Predicting Linguistic Features Meta Introduces Autodata: An Agentic Framework That Turns AI Models into Autonomous Data Scientists for High-Quality Training Data Creation Qwen AI Releases Qwen-Scope: An Open-Source Sparse AutoEncoders (SAE) Suite That Turns LLM Internal Features into Practical Development Tools A Coding Deep Dive into Agentic UI, Generative UI, State Synchronization, and Interrupt-Driven Approval Flows Moonshot AI Open-Sources FlashKDA: CUTLASS Kernels for Kimi Delta Attention with Variable-Length Batching and H20 Benchmarks Microsoft Research’s World-R1 Uses Flow-GRPO and 3D-Aware Rewards to Inject Geometric Consistency Into Wan 2.1 Without Architectural Changes A Coding Implementation on Pyright Type Checking Covering Generics, Protocols, Strict Mode, Type Narrowing, and Modern Python Typing IBM Releases Two Granite Speech 4.1 2B Models: Autoregressive ASR with Translation and Non-Autoregressive Editing for Fast Inference Top 10 KV Cache Compression Techniques for LLM Inference: Reducing Memory Overhead Across Eviction, Quantization, and Low-Rank Methods Qwen Team Releases FlashQLA: a High-Performance Linear Attention Kernel Library That Achieves Up to 3× Speedup on NVIDIA Hopper GPUs Step by Step Guide to Build a Complete PII Detection and Redaction Pipeline with OpenAI Privacy Filter Meta FAIR Releases NeuralSet: A Python Package for Neuro-AI That Supports fMRI, M/EEG, Spikes, and HuggingFace Embeddings smol-audio: A Colab-Friendly Notebook Collection for Fine-Tuning Whisper, Parakeet, Voxtral, Granite Speech, and Audio Flamingo 3 A Coding Implementation on Document Parsing Benchmarking with LlamaIndex ParseBench Using Python, Hugging Face, and Evaluation Metrics Poolside AI Introduces Laguna XS.2 and M.1: Agentic Coding Models Reaching 68.2% and 72.5% on SWE-bench Verified How to Build Traceable and Evaluated LLM Workflows Using Promptflow, Prompty, and OpenAI OpenAI Releases Privacy Filter: A 1.5B-Parameter Open-Source PII Redaction Model with 50M Active Parameters Top 10 Physical AI Models Powering Real-World Robots in 2026 How to Build a Lightweight Vision-Language-Action-Inspired Embodied Agent with Latent World Modeling and Model Predictive Control Meet Talkie-1930: A 13B Open-Weight LLM Trained on Pre-1931 English Text for Historical Reasoning and Generalization Research Build a Reinforcement Learning Powered Agent that Learns to Retrieve Relevant Long-Term Memories for Accurate LLM Question Answering OpenMOSS Releases MOSS-Audio: An Open-Source Foundation Model for Speech, Sound, Music, and Time-Aware Audio Reasoning Meta AI Releases Sapiens2: A High-Resolution Human-Centric Vision Model for Pose, Segmentation, Normals, Pointmap, and Albedo The LoRA Assumption That Breaks in Production How to Build a Fully Searchable AI Knowledge Base with OpenKB, OpenRouter, and Llama How to Build Smarter Multilingual Text Wrapping with BudouX Through Parsing, HTML Rendering, Model Introspection, and Toy Training Top 7 Benchmarks That Actually Matter for Agentic Reasoning in Large Language Models RAG Without Vectors: How PageIndex Retrieves by Reasoning A Coding Tutorial on Datashader on Rendering Massive Datasets with High-Performance Python Visual Analytics xAI Launches grok-voice-think-fast-1.0: Topping τ-voice Bench at 67.3%, Outperforming Gemini, GPT Realtime, and More
Claude Code Guide 2026: 25 Features with Examples + Demo
Michal Sutter · 2026-06-15 · via MarkTechPost

Claude Code started as a terminal coding assistant. It now runs as a layered agentic system. Underneath, Claude Code separates memory, hooks, skills, subagents, plugins, and MCP into distinct layers. Each layer changes what the model can see or do.

This article covers 25 features and strategies for scaling Claude Code. It is written for AI engineers, software engineers, and data scientists. Every code example follows a documented format and runs as written. Each item is labeled by status, so you know what ships with Claude Code and what does not.

What is Claude Code

Claude Code is Anthropic’s agentic coding tool. It works in the terminal, the desktop app, and your IDE. It can read files, run commands, edit code, and call external tools. Under the hood, it runs an agentic loop. That loop chooses tools, accumulates context, and manages long sessions through compaction.

Safety boundaries come from permission modes, checkpoints, sandboxing, and managed settings. The same loop is exposed programmatically through the Agent SDK. Developers extend the tool with a small set of primitives. Those primitives are CLAUDE.md, skills, subagents, slash commands, hooks, and MCP servers. Plugins bundle these primitives into one installable unit.

The 25 Features and Strategies

Each feature/strategy is labeled. ‘Official’ means documented Anthropic functionality. ‘Community technique’ means a workflow pattern, not a shipped feature. ‘Third-party tool’ means software built outside Anthropic.

  1. CLAUDE.md memory file (Official). This file is the agent’s constitution for your repository. Claude reads it every session to anchor conventions and commands.
  2. Skills (Official). A skill is a SKILL.md file with frontmatter under .claude/skills/<name>/. It supports /name invocation and autonomous invocation by Claude.
  3. Subagents (Official). Subagents are specialized instances with their own context windows. Verbose work stays isolated, so your main conversation stays focused.
  4. Slash commands (Official). These are typed shortcuts starting with /. Built-ins include /init, /compact, /context, /review, and /security-review.
  5. Hooks (Official). Hooks are deterministic scripts that fire at defined lifecycle points. PreToolUse is the primary security checkpoint before any tool runs.
  6. MCP servers (Official). Model Context Protocol connects Claude Code to GitHub, databases, and browsers. The server handles integration; Claude reasons about what to do.
  7. Plugins (Official). A plugin is a versioned bundle of skills, subagents, commands, hooks, and MCP definitions. One /plugin command installs the whole set.
  8. Checkpoints (Official). Claude Code snapshots state automatically before changes. Press Escape twice to rewind when something breaks.
  9. Plan mode (Official). Plan mode explores and proposes without executing. It is ideal for scoping work before committing edits.
  10. Permission modes (Official). Default mode asks before each file write and shell command. Other modes trade oversight for speed.
  11. Auto Mode (Official, research preview). A separate Sonnet 4.6 classifier reviews each action first. Safe actions proceed; risky ones get blocked or escalated.
  12. Context compaction (Official). /compact condenses long sessions to preserve usable context. /context reports current context usage.
  13. Background tasks (Official). Long shell commands run with the run_in_background flag on the Bash tool. Claude polls output without blocking the conversation.
  14. Agent SDK (Official). The SDK exposes the same loop programmatically through query(). You can send slash commands like /code-review and process results.
  15. Headless CLI (Official). claude -p "query" runs a one-shot process and exits. Piped input like cat logs.txt | claude -p also works.
  16. GitHub Action and scheduled jobs (Official). Claude Code runs as a one-shot process without a TTY. This enables CI integration, scheduled jobs, and pre-commit hooks.
  17. Output styles and statusLine (Official). Output styles change response formatting. A custom statusLine renderer surfaces session state in the terminal.
  18. Remote Control and mobile push (Official). You can drive Claude Code from mobile or web surfaces. Claude can send push notifications when tasks finish.
  19. Away summary (Official). This session-level feature surfaces context when you return to a paused session. It is enabled by default and can be opted out.
  20. Sandboxing (Official). The sandboxed Bash tool enforces OS-level filesystem and network isolation. Commands run without prompts inside boundaries you define.
  21. Structured context folders (Community technique). Organize task-specific folders for brand guidelines, client data, or legal terminology. The right context loads for each task, improving output relevance.
  22. Dynamic workflows (Community technique). Break complex tasks into smaller steps using sub-agents. Common patterns include ‘classify and act’ and ‘fan out and synthesize.’
  23. Modular skill pipelines (Community technique). Chain reusable skills into end-to-end workflows. A support pipeline can combine categorization, response generation, and escalation skills.
  24. External memory layers (Third-party tool). Tools such as Mem Search or Hermes extend recall across long projects. They sit outside Claude Code’s built-in memory.
  25. Resilience techniques (Community technique). Practitioners reset and retry tasks when output quality degrades. This avoids context pollution and keeps results consistent.

Try the Interactive Demo

Interactive Demo

Claude Code: 25 Features Explorer & Playground

Explore the feature stack, run a simulated terminal, test Auto Mode, and build a CLAUDE.md. Runs fully in your browser.

All 25 Official Technique Third-party

Choose a feature

claude-code — simulated

>

Try: /help /init /context /review /security-review /mcp /agents /compact — or type a plain request.

Auto Mode routes each action through a Sonnet 4.6 safety classifier. Pick an action or type your own.

Select or type an action to see the classifier verdict.

Project name

Build command

Test command

Lint command

Conventions (one per line)

Educational simulation — not connected to a live model. No data leaves your browser. Built by Marktechpost · Verified June 2026


How the Extensibility Primitives Compare

Devs/AI Professionals often confuse skills, subagents, slash commands, and hooks. The table below separates them by where they live and how they run.

PrimitiveWhere it livesHow it runsIsolated context?Best for
Slash command.claude/commands/ (legacy)Typed /nameNoInserting a prompt template
Skill.claude/skills/<name>/SKILL.md/name or autonomousOptional (via subagent)Domain logic with shipped files
Subagent.claude/agents/Auto-delegate or @agent-nameYes, own context windowIsolated, parallel tasks
HookSettings, skill, or subagent frontmatterEvent-driven at lifecycle pointsRuns deterministic codeEnforcing rules without hallucination
MCP server.mcp.json or claude mcp addTool calls to a serverExternal processGitHub, databases, browsers
PluginInstalled via /pluginBundles all of the aboveInherits component scopeSharing setups across teams

The rule of thumb is simple. Use a slash command for a prompt template. Use a skill when there is real domain logic or helper files. Use a subagent for isolated, parallel work. Use a hook to enforce a rule with code.

Use Cases With Examples

  • Codebase onboarding: Join a new team and run an Explore subagent. It is read-only, so it maps the repo without editing files. Pair it with a CLAUDE.md that lists build, lint, and test commands.
  • Automated code review: Run /review for general feedback or /security-review for vulnerabilities. On Team and Enterprise plans, multi-agent review can split the work across subagents.
  • Overnight refactors: Enable Auto Mode for a clearly scoped task in an isolated environment. Combine it with background tasks and checkpoints. If output drifts, rewind with Escape twice and retry.
  • Customer feedback classification: Build a dynamic ‘classify and act’ workflow. Claude reads feedback, categorizes responses, and generates insights in one pass. This suits high-volume, repetitive operations.
  • Continuous integration. Use the headless CLI inside a GitHub Action. Run claude -p on each pull request to lint, test, or summarize diffs without a terminal. Scheduled jobs can run the same command nightly. Combine this with hooks to enforce team policy automatically.

Coding Examples

These snippets are illustrative and faithful to documented formats. Start with a minimal CLAUDE.md.

# Project: my-tool
## Build
npm run build
## Test
npm test
## Conventions
- TypeScript strict mode
- No default exports
- Commit format: feat/fix/chore(scope): description

A skill is a folder with a SKILL.md and frontmatter.

---
name: code-review
description: Review changed files against our team standards.
---
Review staged changes. Flag risks. Suggest concrete fixes.

A subagent restricts its tools to stay read-only and safe.


A subagent restricts its tools to stay read-only and safe.

---
name: explorer
description: Read-only codebase exploration.
tools: Read, Grep, Glob
---
Map the repository structure and summarize entry points.

A PreToolUse hook blocks dangerous Bash before it runs.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          { "type": "command", "command": "scripts/guard.sh" }
        ]
      }
    ]
  }
}

Add a maintained MCP server, then run a headless query for CI.

claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem ~/projects
claude -p "List the largest files under src and explain why" --output-format json

Key Takeaways

  • Claude Code is a layered agentic system, not a single chat prompt.
  • Six primitives drive extensibility: CLAUDE.md, skills, subagents, slash commands, hooks, and MCP.
  • Auto Mode is a research-preview permission mode gated by a Sonnet 4.6 classifier.
  • Not every ‘Claude Code’ tip is official; some rely on third-party tools.

Michal Sutter

Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.