Overview
Nelson has access to powerful tools that let him interact with your filesystem and execute commands. These tools are what make Nelson a true coding assistant, not just a chatbot.When Nelson uses a tool, you’ll see an indicator in the output:🔧 Tool: tool_name (running)
✅ Tool: tool_name (success)
Available Tools
read_file
Read the contents of any file in your project.Path to the file (relative or absolute)
- Understanding existing code
- Checking configuration files
- Reviewing changes before editing
write_file
Create or overwrite a file with new content.Path where the file should be written
Content to write to the file
- Creates parent directories automatically
- Overwrites existing files
- Works with any file type
edit_file
Make targeted edits to existing files by replacing specific text.Path to the file
Exact text to find and replace
Text to replace it with
- Small, precise changes
- Updating specific values
- Fixing bugs in existing code
list_directory
List files and folders in a directory.Directory path to list
bash
Execute any bash command and see the output.The bash command to execute
Timeout in milliseconds
- Running tests (
npm test,pytest) - Installing packages (
npm install,pip install) - Git operations (
git status,git commit) - Building projects (
npm run build) - Starting servers (
npm start)
search_files
Find files matching a pattern.Glob pattern (e.g.,
*.js, **/*.tsx)Base directory to search
grep
Search for text patterns across files.Regex pattern to search for
File or directory to search
Optional glob to filter files (e.g.,
*.js)Tool Usage Examples
Creating a New Project
Debugging a Test Failure
Best Practices
Let Nelson Read First
Before editing, let Nelson read the file to understand context
Review Changes
Nelson shows what tools are used - review file changes
Use Specific Paths
Provide clear file paths to avoid ambiguity
Trust the Process
Nelson chains tools together intelligently to accomplish complex tasks
