102 pages for grep.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…run with the session's tools. The example below pre-approves `Read`, `Grep`, and `Glob` with `allowedTools` (`allowed_tools` in Python), so Claude can inspect files while running the [security-check s…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…nclude_partial_messages=True, allowed_tools=["Read", "Bash", "Grep"], ) # Track whether we're currently in a tool call in_tool = False async for message in query( pro…
Streaming Input
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…essages(), options: { maxTurns: 10, allowedTools: ["Read", "Grep"] } })) { if (message.type === "result" && message.subtype === "success") { console.log(message.result); } } ``` `…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…information for each one. It autonomously decides which tools to use (Grep to search, Bash to run git commands) and combines the results into a single structured response. The schema includes optiona…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…actions. A `doc-reviewer` subagent might only have access to Read and Grep tools, ensuring it can analyze but never accidentally modify your documentation files. ## Create subagents ### Programmatic…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…FileEditInput | FileReadInput | FileWriteInput | GlobInput | GrepInput | ListMcpResourcesInput | McpInput | MonitorInput | NotebookEditInput | ProjectsInput | PushNotificationInpu…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…lities (for example, a read-only agent with only `Read`, `Glob`, and `Grep`), include `AskUserQuestion` in that array. Otherwise, Claude won't be able to ask clarifying questions: ```python Python th…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…r description: Reviews code for security vulnerabilities tools: Read, Grep, Glob, Bash model: opus --- You are a senior security engineer. Review code for: - Injection vulnerabilities (SQL, XSS, comma…
Claude Code changelog
Claude Code CLI · in the page
changelog
…folder, and reporting an error when a search that finds nothing (rg, grep, findstr, git grep) is piped into `Select-Object` or another formatting cmdlet * Fixed Claude in the desktop app pointing you…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…ry settings `sandbox.bwrapPath`, `sandbox.socatPath`, and `sandbox.ripgrep` * Sandbox settings that intercept traffic, inject credentials, or weaken isolation, such as `sandbox.network.tlsTerminate` a…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…hen to delegate to it automatically; <C>tools:</C> limits it to Read, Grep, and Glob so it can inspect code but never edit. The body becomes the subagent's system prompt.</>, example: `---…
CLI reference
Claude Code CLI · in the page
cli-reference
…d"`. On macOS, Linux, and WSL, the default set leaves out `Glob` and `Grep`, as described under [Glob tool behavior](/docs/en/tools-reference#glob-tool-behavior). If you name one of the [task-tracking…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…** | PostgreSQL 16, Redis 7.0 | | **Utilities** | git, gh, jq, yq, ripgrep, tmux, vim, nano | ¹ Bun is installed but has known [proxy compatibility issues](#install-dependencies-with-a-sessionstart-h…
Explore the context window
Claude Code CLI · in the page
context-window
…h-specific-rules' }, { t: 0.47, kind: 'claude', label: 'grep "refreshToken"', tokens: 600, color: '#A09E96', vis: 'brief', desc: 'Search results across the codebase. You…
Manage costs effectively
Claude Code CLI · in the page
costs
…. A single "go to definition" call replaces what might otherwise be a grep followed by reading multiple candidate files. Installed language servers also report type errors automatically after edits, s…
Desktop application
Claude Code CLI · in the page
desktop
…ges, in one folder per session | To list one user's processes, run `pgrep -fl "$HOME/.claude/remote/"` on the remote machine as that user, or with the user's home directory in place of `$HOME`: * **…
Claude Desktop on Linux (beta)
Claude Code CLI · in the page
desktop-linux
…ble/dists/stable/main/binary-$(dpkg --print-architecture)/Packages" | grep '^Filename: pool/main/c/claude-desktop/claude-desktop_' | sort -V | tail -n 1 | cut -d' ' -f2)" ``` If the command fails wit…
Environment variables
Claude Code CLI · in the page
env-vars
…r). Included by default. Does not affect `@` file autocomplete, `ls`, Grep, or Read…
Error reference
Claude Code CLI · in the page
errors
…ck expired before it ran (too many concurrent file operations)` / `ripgrep was found only by name on PATH` | [Tool errors](#refusing-after-a-symlink-changed) | | `task output swap refused (tasks dir m…
Extend Claude Code
Claude Code CLI · in the page
features-overview
…r navigation and diagnostics | Typed languages, large codebases where grep is slow or imprecise | Jump to a symbol's definition instead of reading the whole file | | **MCP** | Connect to external serv…
Hooks reference
Claude Code CLI · in the page
hooks
…ck-rm.sh COMMAND=$(jq -r '.tool_input.command') if echo "$COMMAND" | grep -q 'rm -rf'; then jq -n '{ hookSpecificOutput: { hookEventName: "PreToolUse", permissionDecision: "deny",…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…=$(echo "$INPUT" | jq -r '.tool_input.command') if echo "$COMMAND" | grep -q "drop table"; then echo "Blocked: dropping tables is not allowed" >&2 # stderr becomes Claude's feedback exit 2…
Set up Claude Code in a monorepo or large codebase
Claude Code CLI · in the page
large-codebases
…ver the file commands Claude Code recognizes, such as `cat`, `head`, `grep`, and `find`, when a denied path appears as an argument, and the target of a [redirection](/docs/en/permissions.md#redirectio…
Deploy managed settings
Claude Code CLI · in the page
managed-settings
…y paths `sandbox.bwrapPath` and `sandbox.socatPath` * The sandbox `ripgrep` binary, [`sandbox.ripgrep`](/docs/en/settings-reference#sandbox-ripgrep) * `sandbox.filesystem.disabled` and `sandbox.networ…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…powershell"`, `"file"` for Read, Edit, Write, NotebookEdit, Glob, and Grep, `"web"` for WebFetch and WebSearch, `"mcp"`, or `"other"` * `tool_name`: The tool's name, such as `"Bash"` for a built-in to…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…issions.md#working-directories). The first time Claude uses the Read, Grep, or Glob tool on a path outside them, Claude Code asks whether to allow that read. The prompt doesn't appear in non-interact…
Configure permissions
Claude Code CLI · in the page
permissions
…ask again" behavior | | :- | :- | :- | :- | | Read-only | File reads, Grep | No, within the [working directory and additional directories](#working-directories) | N/A | | Bash commands | Shell executi…
Test plugins with evals
Claude Code CLI · in the page
plugin-evals
…``markdown theme={null} --- max_turns: 10 allowed_tools: [Read, Glob, Grep, Skill] --- Write me a commit message for this change: I renamed getUser to fetchUser and updated the three call sites. ```…
React to events with a mod
Claude Code CLI · in the page
plugins/mods/events
…y` requires Claude Code v2.1.304 or later. Some tools, such as Read, Grep, Glob, and WebSearch, report every call as read-only. Bash and MCP tools report a call as read-only in these cases: * **Bash…
Troubleshoot a mod
Claude Code CLI · in the page
plugins/mods/troubleshoot
…for your mod's name: ```bash theme={null} tail -f ./mod-debug.log | grep first-mod ``` A mod that loaded has a line that names it and lists the events it handles. A mod loaded with `--plugin-dir` a…
Choose a sandbox environment
Claude Code CLI · in the page
sandbox-environments
…e `bubblewrap` and `socat` packages as the built-in sandbox, plus `ripgrep`, which Claude Code bundles but the standalone runtime resolves from your PATH. Install `bubblewrap` and `socat` as described…
Configure the sandboxed Bash tool
Claude Code CLI · in the page
sandboxing
…ncy is missing, the Dependencies tab in `/sandbox` lists which of `ripgrep`, `bubblewrap`, `socat`, and the seccomp filter your platform lacks. If you don't see the tab after installing and restarting…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…nment and ask Claude to run this command: ```bash theme={null} env | grep -E 'CLAUDE_CODE_USE_(BEDROCK|VERTEX)' ``` A line that sets `CLAUDE_CODE_USE_BEDROCK` or `CLAUDE_CODE_USE_VERTEX` to `1` mean…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…al deadline=$(($(date +%s) + 90)) while :; do if [ -f "$f" ] && grep -qF -- "$expect" "$f"; then return fi [ "$(date +%s)" -lt "$deadline" ] || { echo "FAIL: '$expect' not in…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…settings**: `sandbox.bwrapPath`, `sandbox.socatPath`, and `sandbox.ripgrep`. Each of these settings points at an executable, and Claude Code runs that executable * **Sandbox network and isolation sett…
Example settings files
Claude Code CLI · in the page
settings-example
…tools and commands that name the file, such as `cat .env`, but not [`grep -r` run over the directory](/docs/en/permissions#read-and-edit); the `sandbox` block in this file closes that gap, because th…
All settings
Claude Code CLI · in the page
settings-reference
…HTTPS requests | Sandbox settings | User or managed | | [`sandbox.ripgrep`](#sandbox-ripgrep) | Use your own ripgrep binary inside the [sandbox](/docs/en/sandboxing.md) | Sandbox settings | User or m…
Advanced setup
Claude Code CLI · in the page
setup
…thropic.com/supported-countries) ### Additional dependencies * **ripgrep**: usually included with Claude Code. If search fails, see [search troubleshooting](/docs/en/troubleshooting.md#search-and-di…
Extend Claude with skills
Claude Code CLI · in the page
skills
…at this skill does disable-model-invocation: true allowed-tools: Read Grep --- Your skill instructions here... ``` All fields are optional. Only `description` is recommended so Claude knows when to…
Customize your status line
Claude Code CLI · in the page
statusline
…h theme={null} #!/usr/bin/env bash input=$(cat) cwd=$(echo "$input" | grep -o '"cwd":"[^"]*"' | cut -d'"' -f4) model=$(echo "$input" | grep -o '"display_name":"[^"]*"' | cut -d'"' -f4) dirname="${cwd#…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…and best practices. Use after writing or modifying code. tools: Read, Grep, Glob model: sonnet --- You are a code improvement specialist. For each issue you find, explain the problem, show the curren…
Tools reference
Claude Code CLI · in the page
tools-reference
…he working directory. File-access tools marked No, including `Read`, `Grep`, and `Glob`, still prompt for paths outside the [working directory and additional directories](/docs/en/permissions.md#worki…
Troubleshoot installation and login
Claude Code CLI · in the page
troubleshoot-install
…the install folder: ```bash theme={null} echo $PATH | tr ':' '\n' | grep -Fx "$HOME/.local/bin" ``` If this prints `/Users/you/.local/bin` or `/home/you/.local/bin`, the directory is in your PATH a…
Troubleshooting
Claude Code CLI · in the page
troubleshooting
…custom agents, or custom skills aren't finding files, the bundled `ripgrep` binary may not run on your system. Install your platform's `ripgrep` package and tell Claude Code to use it instead: **macO…
Week 17 · April 20–24, 2026
Claude Code CLI · in the page
whats-new/2026-w17
…` (was `medium`)Native macOS and Linux builds replace the `Glob` and `Grep` tools with embedded `bfs` and `ugrep` available through Bash, for faster searches without a separate tool round-trip`--from-…
Week 23 · June 1–5, 2026
Claude Code CLI · in the page
whats-new/2026-w23
…er needs a separate Read first when you viewed it with a single-file `grep`, `egrep`, or `fgrep`Clicking a command in the autocomplete menu now fills it into your prompt instead of running it immediat…
Set up an MCP tunnel
Claude Documentation · in the page
connectors/mcp-tunnels/setup
…={null} kubectl -n mcp-tunnel logs deploy/mcp-tunnel -c cloudflared | grep "Registered tunnel connection" kubectl -n mcp-tunnel logs deploy/mcp-tunnel -c mcp-proxy | grep "route configured" ``` ```ba…
Chat in Claude Desktop on 3P
Claude Documentation · in the page
third-party/claude-desktop/chat
…ct folders in a conversation that starts while a rule for `"Read"`, `"Grep"`, or `"Glob"` is set in `disabledBuiltinTools`, in `builtinToolPolicy` with a value other than `"allow"`, or as a deny or as…
Configuration reference
Claude Documentation · in the page
third-party/claude-desktop/configuration
…t available in the sandbox of a chat started while a rule on `Read`, `Grep` or `Glob` is set: in `disabledBuiltinTools`, in `builtinToolPolicy` with a value other than `allow`, or as a deny or ask rul…
Security
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/security
…t be re-established with `mcpdo connect`. Find a stray daemon with `pgrep mcpdod`. It sets its process title to `mcpdod`. ### What it writes to disk All in the daemon directory, which is `0700`: |…