Frequently Asked Questions¶
General Questions¶
What is Sleepless Agent?¶
Sleepless Agent is a 24/7 AI automation system that uses your Claude Code Pro subscription to process tasks autonomously. It runs as a daemon, accepts tasks via Slack, and manages isolated workspaces for parallel execution.
Why was Sleepless Agent created?¶
Most Claude Code Pro subscriptions are underutilized, especially during night hours. Sleepless Agent maximizes your subscription value by processing tasks 24/7, turning idle compute time into productive work.
How is this different from other AI agents?¶
- 24/7 Operation: Runs continuously as a daemon
- Slack-Native: Direct integration with your team's workflow
- Workspace Isolation: Each task runs in its own environment
- Usage Optimization: Intelligent Pro plan management
- Git Integration: Automated commits and PRs
Setup & Installation¶
What are the system requirements?¶
- Python 3.11 or higher
- Node.js 16+ (for Claude Code CLI)
- 2GB RAM minimum
- 1GB free disk space
- Linux, macOS, or Windows with WSL2
Do I need a Claude API key?¶
No! Sleepless Agent uses Claude Code CLI, which handles authentication through your Claude Code Pro subscription. You just need to run claude login once.
Can I use this without Slack?¶
Yes! The CLI interface (sle) provides full functionality without Slack. Slack integration is optional but recommended for team collaboration.
How do I update Sleepless Agent?¶
# From PyPI
pip install --upgrade sleepless-agent
# From source
cd sleepless-agent
git pull
pip install -e . --upgrade
Usage & Features¶
What's the difference between "random thoughts" and "serious tasks"?¶
- Random Thoughts (
/think): Auto-committed tothought-ideasbranch, no review needed - Serious Tasks (
/think -p project): Creates feature branches and PRs, requires review
How does workspace isolation work?¶
Each task runs in its own directory (workspace/tasks/task_<id>/), preventing conflicts and allowing true parallel execution. Tasks can only access their workspace and shared resources.
Can multiple tasks run simultaneously?¶
Yes! Tasks execute in parallel within isolated workspaces. The scheduler manages concurrency based on system resources and Claude usage limits.
How are tasks prioritized?¶
Tasks are scheduled based on: 1. Priority level (serious > random) 2. Project association 3. Creation time (FIFO within priority) 4. Available Claude usage quota
Claude Code & Usage¶
How does Pro plan usage management work?¶
The agent monitors usage via claude /usage and automatically pauses at configurable thresholds: - Daytime (8 AM - 8 PM): Pauses at 20% to preserve manual usage - Nighttime (8 PM - 8 AM): Pauses at 80% for maximum automation
What happens when usage limits are reached?¶
- New task generation pauses
- Running tasks complete normally
- Pending tasks wait in queue
- Agent resumes after 5-hour window reset
Can I adjust usage thresholds?¶
Yes, in config.yaml:
How do I check current usage?¶
- Via CLI:
sle check - Via Slack:
/check - In logs: Look for "Pro Usage" entries
Slack Integration¶
Which Slack permissions are required?¶
Minimum required scopes: - chat:write - Send messages - commands - Receive slash commands - app_mentions:read - Respond to mentions
Can I use custom slash commands?¶
Yes! You can add custom commands in your Slack app configuration and handle them in the bot code.
Why isn't the bot responding?¶
Check: 1. Socket Mode is enabled in Slack app settings 2. Both tokens (xoxb- and xapp-) are correct in .env 3. Bot is invited to the channel 4. Agent daemon is running (sle daemon)
How do I use the bot in private channels?¶
Invite the bot to the private channel using /invite @sleepless-agent
Task Management¶
How do I cancel a running task?¶
Can I restore cancelled tasks?¶
Yes, cancelled tasks go to trash and can be restored:
How long are task results kept?¶
Task results are stored indefinitely in workspace/data/results/. You can manually clean old results if needed.
How do I see task history?¶
Git Integration¶
Is Git integration required?¶
No, Git integration is optional. Without it, tasks still execute but won't create commits or PRs.
How do I set up GitHub authentication?¶
Can I use a different Git provider?¶
Yes, the system works with any Git provider. Configure the remote URL in config.yaml.
How are commits structured?¶
- Random thoughts: Committed to
thought-ideasbranch - Serious tasks: Create feature branches like
feature/task-description - Commit messages include task metadata
Troubleshooting¶
Tasks aren't executing¶
- Check Claude Code CLI:
claude --version - Verify login:
claude /usage - Check usage limits:
sle check - Review logs:
tail -f workspace/data/agent.log
Database is locked¶
High memory usage¶
- Reduce concurrent tasks in config
- Clear old task workspaces
- Check for memory leaks in custom executors
Agent crashes frequently¶
- Check system resources
- Review error logs
- Increase task timeout
- Disable problematic features
Advanced Usage¶
Can I create custom executors?¶
Yes! Extend the BaseExecutor class and register it in the configuration.
How do I integrate with other tools?¶
- Use the Python API for programmatic access
- Create custom Slack commands
- Extend the task processor
- Add webhook notifications
Can I run multiple agents?¶
Yes, with separate: - Workspace directories - Database files - Slack apps - Configuration files
Is there an API?¶
Yes, the Python package exposes a full API. See API Reference.
Security & Privacy¶
Is my code secure?¶
- Tasks run in isolated workspaces
- No external data transmission (except Git if configured)
- All processing happens locally
- Slack tokens are never logged
Can I use this with sensitive projects?¶
Yes, with precautions: - Run on secure infrastructure - Use private Git repositories - Configure strict access controls - Review generated code before deployment
What data is collected?¶
None. Sleepless Agent: - Runs entirely locally - No telemetry or analytics - No external API calls (except Claude Code and Slack) - All data stays in your workspace
Getting Help¶
Where can I get support?¶
How do I report bugs?¶
Open an issue on GitHub with: - System information - Error messages - Steps to reproduce - Log excerpts
Can I contribute?¶
Yes! We welcome contributions. See Contributing Guide.
Is commercial use allowed?¶
Yes, Sleepless Agent is MIT licensed. See LICENSE for details.