Skip to content

Rename built-in tools to use PascalCase naming convention#16

Merged
chinmaymk merged 3 commits intomainfrom
claude/align-ra-terminology-Keslg
Mar 10, 2026
Merged

Rename built-in tools to use PascalCase naming convention#16
chinmaymk merged 3 commits intomainfrom
claude/align-ra-terminology-Keslg

Conversation

@chinmaymk
Copy link
Copy Markdown
Owner

Summary

Standardizes all built-in tool names from snake_case to PascalCase for improved consistency and readability. This includes filesystem operations, shell commands, network tools, and agent interaction tools.

Key Changes

Tool Name Updates

  • Filesystem tools: read_fileRead, write_fileWrite, update_fileEdit, append_fileAppendFile, list_directoryLS, search_filesGrep, glob_filesGlob, move_fileMoveFile, copy_fileCopyFile, delete_fileDeleteFile
  • Shell tools: execute_bashBash, execute_powershellPowerShell
  • Network tools: web_fetchWebFetch
  • Agent interaction tools: ask_userAskUserQuestion, checklistTodoWrite, subagentAgent

Implementation Details

  • Updated all tool definition files in src/tools/ to use new PascalCase names
  • Updated test expectations in tests/tools/builtin-tools.test.ts and provider tests
  • Updated documentation in docs/site/tools/index.md and related docs
  • Updated middleware and observability code to reference new tool names
  • Updated MCP server configuration to exclude AskUserQuestion instead of ask_user
  • Updated skill documentation and examples to use new tool names
  • Updated default configuration to include skill directories and context patterns

Configuration Enhancements

  • Added default skill directories: .claude/skills, .agents/skills, .opencode/skills
  • Added default context patterns: CLAUDE.md, AGENTS.md, .cursorrules, .windsurfrules, .github/copilot-instructions.md

Notes

All tool functionality remains unchanged—this is purely a naming convention update. The new PascalCase names are more consistent with common API naming patterns and improve readability in logs and documentation.

https://claude.ai/code/session_01HkzuGxPQ1N55bMWFMdNNU6

@chinmaymk chinmaymk force-pushed the claude/align-ra-terminology-Keslg branch from 2c6102a to 144733e Compare March 10, 2026 05:30
claude and others added 3 commits March 9, 2026 22:40
Rename all 16 built-in tools to match Claude Code's naming (PascalCase):
read_file→Read, write_file→Write, update_file→Edit, append_file→AppendFile,
list_directory→LS, search_files→Grep, glob_files→Glob, move_file→MoveFile,
copy_file→CopyFile, delete_file→DeleteFile, execute_bash→Bash,
execute_powershell→PowerShell, web_fetch→WebFetch, ask_user→AskUserQuestion,
checklist→TodoWrite, subagent→Agent.

Default context.patterns now discovers CLAUDE.md, AGENTS.md, .cursorrules,
.windsurfrules, and .github/copilot-instructions.md so content written for
Claude Code, Cursor, Windsurf, GitHub Copilot, and OpenCode works out of
the box.

Default skillDirs now includes .claude/skills, .agents/skills, and
.opencode/skills so skills authored for any agent are found automatically.

https://claude.ai/code/session_01HkzuGxPQ1N55bMWFMdNNU6
Add a note in the Context Discovery sections explaining that ra
automatically discovers context files and skills from Claude Code,
Cursor, Windsurf, GitHub Copilot, and OpenCode — no migration needed.

https://claude.ai/code/session_01HkzuGxPQ1N55bMWFMdNNU6
Aligns tool names with Claude Code conventions (e.g., read_file → ReadFile,
execute_bash → Bash). Updates all references in source, tests, docs, and recipes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chinmaymk chinmaymk force-pushed the claude/align-ra-terminology-Keslg branch from 144733e to 151260e Compare March 10, 2026 05:41
@chinmaymk chinmaymk merged commit 9671ebd into main Mar 10, 2026
1 check passed
@chinmaymk chinmaymk deleted the claude/align-ra-terminology-Keslg branch March 10, 2026 05:43
chinmaymk pushed a commit that referenced this pull request Mar 12, 2026
PR #16 was squash-merged but only 2 of 44 changed files survived in
the merge commit (9671ebd). This re-applies the missing changes from
the original commit (99761b1): renaming all 16 built-in tools from
snake_case to PascalCase (read_file→Read, execute_bash→Bash, etc.)
and updating all references across docs, tests, and config.

https://claude.ai/code/session_01W4cKgwwSFv71LivgvcrtzD
chinmaymk added a commit that referenced this pull request Mar 12, 2026
* Re-apply PascalCase tool renames lost during PR #16 squash merge

PR #16 was squash-merged but only 2 of 44 changed files survived in
the merge commit (9671ebd). This re-applies the missing changes from
the original commit (99761b1): renaming all 16 built-in tools from
snake_case to PascalCase (read_file→Read, execute_bash→Bash, etc.)
and updating all references across docs, tests, and config.

https://claude.ai/code/session_01W4cKgwwSFv71LivgvcrtzD

* Fix printToolCall test to pass required args parameter

The conflict resolution dropped the second argument to printToolCall(),
which requires both name and args. Restored the args parameter to fix
the TypeScript compilation error.

https://claude.ai/code/session_01W4cKgwwSFv71LivgvcrtzD

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants