Search the documentation
50 pages for grep.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.
PDF Processing
Claude Developer Platform · in the page
agents-and-tools/agent-skills/best-practices
…reference/marketing.md) ## Quick search Find specific metrics using grep: ```bash grep -i "revenue" reference/finance.md grep -i "pipeline" reference/sales.md grep -i "api usage" reference/product.…
deploy-helm
Claude Developer Platform · in the page
agents-and-tools/mcp-tunnels/deploy-helm
…ease name other than `mcp-tunnel`, run `helm template <release> ... | grep -A2 'kind: ServiceAccount'` to confirm it before creating the rule. The rest of this guide assumes release name `mcp-tunnel`…
quickstart
Claude Developer Platform · in the page
agents-and-tools/mcp-tunnels/quickstart
…docker compose up -d docker compose logs mcp-proxy | grep "route configured" docker compose logs cloudflared | grep "Registered tunnel connection" ``` </Tab>…
advisor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/advisor-tool
…the same or an earlier turn. Read-only orientation commands (ls, cat, grep, find) are not state-changing. This is a checkpoint, not a difficulty judgment. It applies to one-line edits too. ``` **Cave…
bash-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/bash-tool
…import shlex ALLOWED_COMMANDS = {"ls", "cat", "echo", "pwd", "grep", "find", "wc", "head", "tail"} SHELL_OPERATORS = {"&&", "||", "|", ";", "&", ">", "<", ">>"} def validate_comm…
code-execution-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/code-execution-tool
…so includes command-line tools such as unzip, unrar, 7zip, bc, rg (ripgrep), fd, and sqlite. The container has no internet access, so Claude can't download or install additional packages at runtime:…
Agents
Claude Developer Platform · in the page
api/beta/agents
…cution. - `type: optional "glob"` - `BetaManagedAgentsGrepToolConfigParams object` Configuration override for the grep tool. - `name: "grep"` Must be "grep…
Archive Agent
Claude Developer Platform · in the page
api/beta/agents/archive
…e execution. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name: "grep"`…
Create Agent
Claude Developer Platform · in the page
api/beta/agents/create
…cution. - `type: optional "glob"` - `BetaManagedAgentsGrepToolConfigParams object` Configuration override for the grep tool. - `name: "grep"` Must be "grep…
List Agents
Claude Developer Platform · in the page
api/beta/agents/list
…e execution. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name: "grep"`…
Get Agent
Claude Developer Platform · in the page
api/beta/agents/retrieve
…e execution. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name: "grep"`…
Update Agent
Claude Developer Platform · in the page
api/beta/agents/update
…cution. - `type: optional "glob"` - `BetaManagedAgentsGrepToolConfigParams object` Configuration override for the grep tool. - `name: "grep"` Must be "grep…
Versions
Claude Developer Platform · in the page
api/beta/agents/versions
…e execution. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name: "grep"`…
List Agent Versions
Claude Developer Platform · in the page
api/beta/agents/versions/list
…e execution. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name: "grep"`…
Sessions
Claude Developer Platform · in the page
api/beta/sessions
…- `type: optional "glob"` - `BetaManagedAgentsGrepToolConfigParams object` Configuration override for the grep tool. - `name: "grep"` M…
Archive Session
Claude Developer Platform · in the page
api/beta/sessions/archive
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
Create Session
Claude Developer Platform · in the page
api/beta/sessions/create
…- `type: optional "glob"` - `BetaManagedAgentsGrepToolConfigParams object` Configuration override for the grep tool. - `name: "grep"` M…
Events
Claude Developer Platform · in the page
api/beta/sessions/events
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
List Events
Claude Developer Platform · in the page
api/beta/sessions/events/list
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
Stream Events
Claude Developer Platform · in the page
api/beta/sessions/events/stream
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
List Sessions
Claude Developer Platform · in the page
api/beta/sessions/list
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
Get Session
Claude Developer Platform · in the page
api/beta/sessions/retrieve
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
Threads
Claude Developer Platform · in the page
api/beta/sessions/threads
…ion. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name:…
Archive Session Thread
Claude Developer Platform · in the page
api/beta/sessions/threads/archive
…ion. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name:…
Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
List Session Thread Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events/list
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
Stream Session Thread Events
Claude Developer Platform · in the page
api/beta/sessions/threads/events/stream
…- `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean`…
List Session Threads
Claude Developer Platform · in the page
api/beta/sessions/threads/list
…ion. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name:…
Get Session Thread
Claude Developer Platform · in the page
api/beta/sessions/threads/retrieve
…ion. - `type: "glob"` - `BetaManagedAgentsGrepToolConfig object` Configuration for the grep tool. - `enabled: boolean` - `name:…
Update Session
Claude Developer Platform · in the page
api/beta/sessions/update
…on. - `type: optional "glob"` - `BetaManagedAgentsGrepToolConfigParams object` Configuration override for the grep tool. - `name: "grep"` Must be…
claude-prompting-best-practices
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/claude-prompting-best-practices
…ple, the model may spawn subagents for code exploration when a direct grep call is faster and sufficient. Claude Opus 5 also delegates to subagents more readily than prior models; see [Controlling sub…
task-budgets
Claude Developer Platform · in the page
build-with-claude/task-budgets
…aude spends another 4,000 tokens on thinking and a second tool call (`grep -rn "eval(" src/`). The countdown ends near `remaining` ≈ 88,200. **Turn 3.** Full history resent again with the second tool…
using
Claude Developer Platform · in the page
cli-sdks-libraries/cli/using
…f YAML documents in `yaml` mode), which streams cleanly into `head`, `grep`, and `--transform` filters. ### Interactive explorer The explorer is a fold-and-search TUI for browsing large responses. A…
workspaces
Claude Developer Platform · in the page
manage-claude/workspaces
…"messages": [{"role": "user", "content": "Hello, Claude"}] }' | grep -i '^anthropic-workspace-id' ``` ```bash CLI # --debug prints the HTTP response, including the Anthropic-Workspace-Id…
cloud-sandboxes-reference
Claude Developer Platform · in the page
managed-agents/cloud-sandboxes-reference
…ystems * `docker` - Container management (limited availability) * `ripgrep` (`rg`) - Fast file search ### Text processing * `sed`, `awk`, `grep` - Stream editors * `vim`, `nano` - Text editors * `di…
migration
Claude Developer Platform · in the page
managed-agents/migration
…$text}]}]}')" \ > /dev/null # Wait for the session to go idle. grep exits at the first match, and # reading via process substitution means the shell doesn't wait for # tail (a foreground `t…
overview
Claude Developer Platform · in the page
managed-agents/overview
…ds in the sandbox * **File operations:** Read, write, edit, glob, and grep files in the sandbox * **Web search and fetch:** Search the web and retrieve content from URLs, optionally restricted to an a…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…e session's skills. The file tools (`read`, `write`, `edit`, `glob`, `grep`) are confined to the working directory plus any directories listed in `allowed_roots` (`allowedRoots` in TypeScript, `Allowe…
tools
Claude Developer Platform · in the page
managed-agents/tools
…| `glob` | Fast file pattern matching using glob patterns | | Grep | `grep` | Text search using regex patterns | | Web fetch | `web_fetch` | Fetch content from a UR…
handle-streaming-refusals
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/handle-streaming-refusals
…}') # Check for refusal in the stream if echo "$response" | grep -q '"stop_reason":"refusal"'; then echo "Response refused - resetting conversation context" # Reset your conversation…
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…| | **Search** | `Glob`, `Grep` | Find files by pattern, search content with regex…
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…"], skills="all", allowed_tools=["Read", "Grep", "Glob"], ), ): if isinstance(message, ResultMessage) and message.subtype == "success":…
Give Claude custom tools
Claude Code CLI · in the page
agent-sdk/custom-tools
…----------------------------------------------- | | `tools: ["Read", "Grep"]` | Availability | Only the listed built-ins are in Claude's context. Unlisted built-ins are removed. MCP tools are unaffect…
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…ame. Built-in tools include `Bash`, `Read`, `Write`, `Edit`, `Glob`, `Grep`, `WebFetch`, `Agent`, and others (see [Tool Input Types](/docs/en/agent-sdk/typescript#tool-input-types) for the full list).…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…---------------------------------------- | | `allowed_tools=["Read", "Grep"]` | `Read` and `Grep` are auto-approved. Other tools not listed here still exist and fall through to the permission mode an…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…), }, allowed_tools=["Read", "Grep", "Glob"], ), ): print(message) asyncio.run(main()) ``` To load CLAUDE.md project instructions, includ…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…---------------------- | ----------------------- | | `Read`, `Glob`, `Grep` | Read-only analysis | | `Read`, `Edit`, `Glob` | Analyze and modify code | | `Read`, `…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…= ClaudeAgentOptions( allowed_tools=["Read", "Edit", "Glob", "Grep"], ) async with ClaudeSDKClient(options=options) as client: # First query: client captures the session ID in…
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
…lude_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(…