By Sagar Shankaran, Founder of CallSphere
Claude code skills available tools bash read glob: a deep technical dive into Claude Code's core tools — how Read, Write, Edit, Bash, Glob, and Grep work, when each is used, and how they combine for agentic workflows.
Key takeaways
Claude Code's power comes from six core tools that give it the ability to interact with your filesystem, run commands, and search your codebase. Every action Claude Code takes — from reading a configuration file to deploying a feature — is composed of calls to these tools.
Understanding how each tool works, when Claude Code selects it, and how they combine helps you write better prompts and understand Claude Code's behavior.
Purpose: Read the contents of any file.
flowchart LR
USER(["User message"])
LOOP{"messages.create<br/>agent loop"}
THINK["Extended thinking<br/>optional"]
TOOL{"stop_reason<br/>tool_use?"}
EXEC["Execute tool<br/>append tool_result"]
DONE(["stop_reason<br/>end_turn"])
USER --> LOOP --> THINK --> TOOL
TOOL -->|Yes| EXEC --> LOOP
TOOL -->|No| DONE
style LOOP fill:#4f46e5,stroke:#4338ca,color:#fff
style THINK fill:#ede9fe,stroke:#7c3aed,color:#1e1b4b
style DONE fill:#059669,stroke:#047857,color:#fff
The Read tool takes a file path and returns the file contents with line numbers. It supports text files of any size (with pagination for very large files), images (displayed visually), PDFs (with page selection), and Jupyter notebooks.
[Read] /home/user/project/src/api/users.ts
Returns: Numbered lines of the file content
Purpose: Create a new file or completely overwrite an existing file.
The Write tool takes a file path and content, then creates or overwrites the file:
Hear it before you finish reading
Talk to a live CallSphere AI voice agent in your browser — 60 seconds, no signup.
[Write] /home/user/project/src/utils/helpers.ts
Content: [complete file contents]
Purpose: Make targeted string replacements in existing files.
The Edit tool finds an exact string in a file and replaces it with new content:
[Edit] /home/user/project/src/api/users.ts
old_string: "const limit = 10;"
new_string: "const limit = parseInt(req.query.limit as string) || 20;"
replace_all is set to trueEdit is the most important tool for code quality because:
Purpose: Execute shell commands.
Bash runs a command in your terminal and returns the output:
[Bash] npm test -- --testPathPattern="users"
Returns: Test output (pass/fail, assertions, coverage)
pytest, npm test, go testnpm install, pip installnpm run build, cargo buildgit status, git diff, git commitnpx prisma migrate dev, alembic upgrade headdocker ps, kubectl get podsnpx eslint, ruff check{
"permissions": {
"allow": [
"Bash(npm test*)",
"Bash(npx tsc*)",
"Bash(pytest*)",
"Bash(git status)",
"Bash(git diff*)",
"Bash(git log*)"
]
}
}
Purpose: Fast file pattern matching.
Glob finds files matching a pattern:
Still reading? Stop comparing — try CallSphere live.
CallSphere ships complete AI voice agents per industry — 14 tools for healthcare, 10 agents for real estate, 4 specialists for salons. See how it actually handles a call before you book a demo.
[Glob] pattern: "**/*.test.ts" path: "/home/user/project/src"
Returns: List of matching file paths, sorted by modification time
**/*.py**/*.test.ts, **/test_*.py**/tsconfig.json, **/Dockerfilesrc/**/**, **, ?, [abc]Claude Code uses Glob instead of find because:
Purpose: Search file contents with regex.
Grep searches for patterns across files:
[Grep] pattern: "async function create" path: "src/services/" type: "ts"
Returns: Matching file paths (or content with line numbers)
function\s+createUserimport.*from.*databaseTODO|FIXME|HACKrouter\.(get|post|put|delete)DATABASE_URL| Mode | Returns | Use Case |
|---|---|---|
files_with_matches |
File paths only | Finding which files contain a pattern |
content |
Matching lines with line numbers | Reading the matched code in context |
count |
Match counts per file | Measuring pattern prevalence |
--type ts) or glob pattern (--glob "*.py")1. [Grep] Search for the error message in the codebase
2. [Read] Read the file containing the error
3. [Read] Read related files (imports, dependencies)
4. [Edit] Fix the bug
5. [Bash] Run relevant tests
6. [Edit] Fix any test failures
7. [Bash] Run tests again — all pass
1. [Glob] Find existing similar features for pattern reference
2. [Read] Read 3-4 existing implementations to understand patterns
3. [Write] Create new model/schema file
4. [Write] Create new service file
5. [Edit] Add route to existing router file
6. [Edit] Update exports/imports
7. [Write] Create test file
8. [Bash] Run tests
9. [Edit] Fix failures
10. [Bash] Run tests — all pass
11. [Bash] git add && git commit
1. [Bash] git diff HEAD~1
2. [Read] Read each changed file
3. [Grep] Search for patterns mentioned in the diff
4. [Read] Read test files for changed modules
5. (Text) Provide review with specific findings
Claude Code's tool selection is not random — it follows consistent patterns:
Claude Code's six core tools — Read, Write, Edit, Bash, Glob, Grep — are simple individually but powerful in combination. Understanding how they work and when they are selected helps you write more effective prompts, predict Claude Code's behavior, and configure permissions appropriately. The tool system is what transforms Claude from a text-generating model into an autonomous coding agent that can navigate, understand, modify, and verify real codebases.
This guide is written for engineers and operators evaluating claude code skills available tools bash read glob in real production systems. Claude code skills available tools bash read glob sits alongside bash tool, markdown file, multi step, returns results, skill content in the daily work of teams shipping production AI. The notes below give a plain-language reference for terms used throughout the article.
For teams that want to ship claude code skills available tools bash read glob in voice and chat agents this quarter, CallSphere runs 37 agents and 90+ function tools across 6 verticals on a single dashboard. Start a 7-day free pilot, see live demo agents, or compare tiers on /pricing.
Written by
Sagar Shankaran· Founder, CallSphere
Sagar Shankaran is the founder of CallSphere, where he builds production AI voice and chat agents deployed across healthcare, hospitality, real estate, and home services. He writes about agentic AI, LLM engineering, and shipping voice agents that handle real calls in production.
See how AI voice agents work for your industry. Live demo available -- no signup required.
When to use Pinecone vs pgvector vs Qdrant vs Weaviate. A decision framework that maps team size and workload to the right pick without endless evaluation loops.
How leaders should think about Claude Code 2.1 productivity — adoption patterns, ROI, competitive dynamics, and what DORA metrics AI means for the next 12 months.
Enterprise CIO Guide perspective on Comet's general-availability launch put an agentic browser in front of millions of consumers, and it works better than the demos suggested.
Enterprise CIO Guide perspective on Harvey AI's enterprise rollout numbers show legal agents have moved past the pilot stage at AmLaw 100 firms.
Enterprise CIO Guide perspective on Hippocratic AI's deployment numbers show healthcare voice agents are moving from pilot to production across major US health systems.
Enterprise CIO Guide perspective on AutoGen 0.5 brings async-first execution, an extension architecture, and tighter Azure integration.
© 2026 CallSphere LLC. All rights reserved.
Made within New York
Watch how CallSphere handles real customer calls, schedules appointments, and processes payments — live.
Try Live DemoBook a DemoCalculate Your ROI