Basic Usage¶
Learn the fundamentals of using Alpha-Bot for everyday tasks.
Command Structure¶
Standard Format¶
Components¶
- Options: Flags that modify behavior (optional)
- Task Description: Natural language description of what you want to do
Simple Tasks¶
File Operations¶
List files with specific criteria:
ask "show all files modified in the last 24 hours"
ask "find files larger than 10MB"
ask "list all PDF files recursively"
Search Operations¶
ask "find all files containing the word 'error'"
ask "search for TODO comments in Python files"
ask "locate all shell scripts in this directory"
System Information¶
ask "show current disk usage"
ask "display running processes sorted by memory"
ask "check system uptime and load average"
Multi-Step Tasks¶
This is where Alpha-Bot excels - handling complex workflows automatically.
File Organization¶
ask "organize project files: create folders for docs, tests, and source code, then move files accordingly"
Ask-Shell will:
- Analyze current file structure
- Create necessary directories
- Move files to appropriate locations
- Verify the organization
Development Workflows¶
The agent will:
- Find all .py files
- Count lines in each file
- Generate a summary
- Save to a report file
Git Operations¶
Understanding AI Responses¶
Thinking Process¶
When you give Alpha-Bot a task, you'll see:
💭 Analyzing task...
Understanding: Need to list all Python files in current directory
Approach: Use find command with .py extension filter
Safety: Low risk operation, no destructive actions
Command Preview¶
Before execution, you'll see the proposed command:
Options:
Y(Yes): Execute the commandn(No): Skip this command and continuee(Edit): Modify the command before executionq(Quit): Exit Ask-Shell
Execution Results¶
After running, you'll see structured output:
✅ Command executed successfully
📊 Results:
./alpha_bot/cli.py
./alpha_bot/agent.py
./setup.py
💭 Next step: Task completed
Interactive Mode¶
Starting Interactive Mode¶
Benefits¶
- Context retention: AI remembers previous commands and results
- Faster iteration: No need to restart for each task
- Natural conversation: Reference previous steps naturally
Example Session¶
Alpha-Bot > list all log files
[... shows log files ...]
Alpha-Bot > count the lines in each of them
[... analyzes the files from previous command ...]
Alpha-Bot > archive the ones older than 7 days
[... uses context from both previous commands ...]
Alpha-Bot > exit
Working with Different Directories¶
Specify Directory¶
Multiple Directories¶
In interactive mode:
Alpha-Bot > cd /var/log
Alpha-Bot > analyze error logs
Alpha-Bot > cd /home/user
Alpha-Bot > backup configuration files
Best Practices¶
Writing Good Task Descriptions¶
Good Examples:
✅ "find all JavaScript files and check for console.log statements"
✅ "create a backup of database files with timestamp"
✅ "organize downloads folder by file extension"
Less Effective:
❌ "do something with files" # Too vague
❌ "ls *.js" # Just write the command directly if you know it
❌ "files" # Not enough context
Task Description Tips¶
- Be specific: Include file types, criteria, and desired outcome
- Use natural language: No need to think in command syntax
- Describe the goal: What you want to achieve, not how
- Provide context: Mention relevant details (timeframes, sizes, etc.)
Safety Considerations¶
Always review commands before execution:
- Check the proposed command makes sense
- Verify it operates on the right files/directories
- Be cautious with destructive operations (delete, modify, etc.)
Efficiency Tips¶
Use auto mode for safe, repetitive tasks:
Use interactive mode for exploratory work:
Use working directory for focused tasks:
Common Patterns¶
Find and Process¶
ask "find all markdown files and convert them to PDF"
ask "locate all images and resize them to 800px width"
Analyze and Report¶
ask "analyze log files and count error occurrences by type"
ask "check all scripts for potential security issues"
Batch Operations¶
System Maintenance¶
Troubleshooting Common Issues¶
AI Misunderstands Task¶
Problem: AI generates wrong command
Solution:
- Be more specific in your description
- Use the edit option to correct the command
- In interactive mode, clarify with follow-up
Command Needs Modification¶
Problem: Command is almost right but needs tweaking
Solution: Choose 'e' (edit) when prompted and modify before execution
Task Too Complex¶
Problem: AI struggles with very complex multi-part tasks
Solution:
- Break into smaller sub-tasks
- Use interactive mode to guide step-by-step
- Provide more context and examples