Quickstart guide
This guide will walk you through your first ScryCLI session, from launching the CLI to executing AI-powered file operations.Launch ScryCLI
Open your terminal and run:The current working directory is displayed above the input prompt. ScryCLI will perform file operations relative to this directory.
Your first command
Let’s create a simple HTML file using natural language. Type the following and pressEnter:
Understanding the response
ScryCLI’s AI engine converts your natural language command into structured JSON instructions:public/index.html.
The AI engine is powered by the system prompt at
src/model/systemPrompt.ts which instructs it to return only valid JSON with specific action types.Supported actions
ScryCLI’s AI can perform several types of file operations:Create a file
Read a file
Write/modify a file
The AI may respond with
update_file in the action field (as mentioned in the system prompt), but ScryCLI processes it the same as write_file - it overwrites the entire file content.Delete a file
Using built-in commands
ScryCLI includes several slash commands for configuration and utilities. All commands start with/.
View available commands
Type/help to see all available commands:
Change AI model
To switch to a different AI model:Exit ScryCLI
To exit the application:Ctrl+C at any time.
Example workflow
Here’s a complete workflow showing how to use ScryCLI to scaffold a simple project:Understanding AI responses
The AI engine processes your natural language input using the system prompt defined insrc/model/systemPrompt.ts. Here’s how it works:
- Intent recognition - The AI determines what action you want (create, read, update, delete)
- File path inference - It chooses appropriate file paths based on your description and common conventions
- Content generation - For create/update operations, it generates complete, functional code
- Structured output - Everything is returned as valid JSON for execution
The AI follows strict rules to always return valid JSON. It won’t include markdown, explanations, or extra text outside the JSON structure.
Error handling
If something goes wrong, ScryCLI will display an error message:- Authentication errors - Invalid or expired token
- Model errors - AI provider API issues
- File system errors - Permission issues or invalid paths
- JSON parsing errors - AI response format issues
Tips for better results
- Be specific - “Create a React component” is less specific than “Create a React component for a user profile card with name and email props”
- Include context - Mention the file type or framework: “Create a TypeScript interface” or “Add a Vue component”
- Use standard naming - Reference files by common conventions: “Update App.jsx” rather than “Update the main app file”
- One operation at a time - Break complex tasks into individual file operations for better results
What’s next?
Now that you understand the basics, you can:- Experiment with different AI models using
/model - Try more complex file operations and code generation
- Integrate ScryCLI into your development workflow
- Report any issues using
/report
