How ScryCLI Works with Code
ScryCLI’s AI engine interprets your natural language prompts and can:- Read files from your project for analysis
- Answer questions about code structure and patterns
- Generate new code based on your requirements
- Modify existing files with improvements
- Create structured responses about your codebase
Reading and Understanding Code
Start ScryCLI
Launch the CLI tool in your project directory:The tool will automatically detect your project structure and generate a file tree for context.
Implemented File Operations
ScryCLI supports these core file operations:- read_file - Read and examine file contents
- write_file - Modify or overwrite existing files
- create_file - Create new files with content
- delete_file - Remove files from your project
ScryCLI automatically ignores common directories like
node_modules, .git, dist, build, and .next when generating the file tree context.Working with Your Codebase
Reading Files
Ask the AI to read specific files:read_file action to access the file and provide information about it.
Understanding Project Structure
ScryCLI automatically includes your project structure in every request:Asking Code Questions
You can ask general questions about your code:Example Workflows
Code Understanding Workflow
Code Modification Workflow
What ScryCLI Can and Cannot Do
✅ What Works
- File operations: Read, write, create, and delete files
- Code generation: Create new files with complete, functional code
- File modification: Update existing files based on your instructions
- Conversational assistance: Answer questions about your code based on file tree context
- Context awareness: Understand project structure and file relationships
❌ Current Limitations
- No built-in code search: Can’t search across multiple files for patterns (must request file reads explicitly)
- No automated error detection: Doesn’t scan for errors automatically (you must ask specific questions)
- No static analysis: Doesn’t perform automated linting or type checking
- Limited multi-file analysis: Works best with specific file requests rather than project-wide scans
Best Practices
- Be Specific: Provide clear, specific prompts
- Good: “Read src/hooks/useChat.ts and explain the error handling”
- Bad: “Tell me about the hooks”
- Use File Paths: Reference exact file paths when possible
- Good: “Check src/config/configManage.ts”
- Bad: “Check the config file”
- Iterative Approach: Start with broad questions, then drill down
- First: “What files are in the hooks directory?”
- Then: “Read useToolExecutor.ts and explain how it works”
- Request File Reads: Explicitly ask to read files when you need code details
- “Read the authentication module before we modify it”
Common Commands
Next Steps
Fixing Errors
Learn how to modify code and fix issues
File Management
Master file operations through natural language
