Sypha Tools Reference Guide
What Can Sypha Accomplish?
Sypha serves as your AI assistant capable of:
- Editing and creating files within your project
- Executing terminal commands
- Searching and analyzing your codebase
- Assisting with debugging and fixing issues
- Automating repetitive tasks
- Integrating with external tools
Initial Steps
-
Initiate a Task
- Enter your request in the chat
- Example: "Create a new React component called Header"
-
Supply Context
- Utilize @ mentions to include files, folders, or URLs
- Example: "@file:src/components/App.tsx"
-
Examine Changes
- Sypha will display diffs prior to making changes
- You can modify or reject changes
Primary Features
-
File Editing
- Generate new files
- Alter existing code
- Search and replace throughout files
-
Terminal Commands
- Execute npm commands
- Launch development servers
- Install dependencies
-
Code Analysis
- Locate and fix errors
- Refactor code
- Append documentation
-
Browser Integration
- Test web pages
- Capture screenshots
- Inspect console logs
Available Tools
For the most current implementation details, you can access the full source code in the Sypha repository.
Sypha has access to the following tools for various tasks:
-
File Operations
write_to_file: Create or overwrite filesread_file: Read file contentsreplace_in_file: Make targeted edits to filessearch_files: Search files using regexlist_files: List directory contents
-
Terminal Operations
execute_command: Run CLI commandslist_code_definition_names: List code definitions
-
MCP Tools
use_mcp_tool: Use tools from MCP serversaccess_mcp_resource: Access MCP server resources- Users can create custom MCP tools that Sypha can then access
- Example: Create a weather API tool that Sypha can use to fetch forecasts
-
Interaction Tools
ask_followup_question: Ask user for clarificationattempt_completion: Present final results
Each tool possesses specific parameters and usage patterns. Here are some examples:
-
Create a new file (write_to_file):
<write_to_file> <path>src/components/Header.tsx</path> <content> // Header component code </content> </write_to_file> -
Search for a pattern (search_files):
<search_files> <path>src</path> <regex>function\s+\w+\(</regex> <file_pattern>*.ts</file_pattern> </search_files> -
Execute a command (execute_command):
<execute_command> <command>npm install axios</command> <requires_approval>false</requires_approval> </execute_command>
Common Tasks
-
Create a New Component
- "Create a new React component called Footer"
-
Fix a Bug
- "Fix the error in src/utils/format.ts"
-
Refactor Code
- "Refactor the Button component to use TypeScript"
-
Execute Commands
- "Run npm install to add axios"
Obtaining Help
- Join the Discord community
- Check the documentation
- Provide feedback to improve Sypha
Remote Browser Support
Remote browser support enables Sypha to utilize a remote Chrome instance, leveraging authentication tokens and session cookies pertinent to specific web development test scenarios.
Anthropic
Learn how to configure and use Anthropic Claude models with Sypha. Covers API key setup, model selection, and advanced features like prompt caching.