Friday Agent
Friday Agent is the flagship AI agent in Friday Dev, powered by advanced AI with custom tooling for autonomous development.
Overview
Friday Agent combines:
- Advanced AI - Best-in-class reasoning
- Custom tools - File operations, git, terminal
- Autonomous execution - Minimal human intervention
- Safety features - Controlled access and rollback
Capabilities
What Friday Agent Can Do
- ✅ Read and understand entire codebases
- ✅ Plan multi-file implementations
- ✅ Write and modify code
- ✅ Run tests and fix failures
- ✅ Create pull requests
- ✅ Respond to code review feedback
- ✅ Install dependencies
- ✅ Run build commands
Best Use Cases
| Use Case | Effectiveness |
|---|---|
| New features | ⭐⭐⭐⭐⭐ |
| Bug fixes | ⭐⭐⭐⭐⭐ |
| Refactoring | ⭐⭐⭐⭐ |
| Documentation | ⭐⭐⭐⭐ |
| Testing | ⭐⭐⭐⭐ |
| DevOps | ⭐⭐⭐ |
Setup
API Key
Friday Agent requires an Anthropic API key:
export ANTHROPIC_API_KEY="your-anthropic-api-key"
Get your key at console.anthropic.com.
Configuration
{
"agents": {
"friday": {
"enabled": true,
"model": "claude-sonnet-4-20250514",
"autonomy": "workspace-write",
"maxTokens": 8192
}
}
}
Usage
From UI
- Open a task
- Click "Run Agent"
- Select "Friday Agent"
- Click "Start"
From CLI
# Run on a task
friday-dev run --task 123 --agent friday
# Run with specific autonomy
friday-dev run --task 123 --agent friday --autonomy workspace-write
How It Works
1. Task Understanding
┌────────────────────────────────────────────── ───────────────────┐
│ Friday Agent reads: │
│ │
│ • Task title and description │
│ • Codebase structure (file tree) │
│ • Relevant source files │
│ • Package.json / Cargo.toml / etc. │
│ • Existing tests │
│ • Git history (recent commits) │
└─────────────────────────────────────────────────────────────────┘
2. Planning
Friday Agent creates a step-by-step plan:
Plan for: Add user authentication
──────────────────────────────────
1. Create User model in src/models/user.ts
2. Add auth routes in src/routes/auth.ts
3. Implement JWT middleware in src/middleware/auth.ts
4. Update database schema
5. Add tests in tests/auth.test.ts
6. Update README with auth documentation
3. Execution
The agent executes each step, showing progress:
[1/6] Creating User model...
✓ Created src/models/user.ts (+45 lines)
[2/6] Adding auth routes...
✓ Created src/routes/auth.ts (+78 lines)
[3/6] Implementing JWT middleware...
✓ Created src/middleware/auth.ts (+32 lines)
[4/6] Updating database...
✓ Modified prisma/schema.prisma (+12 lines)
✓ Running prisma migrate dev...
[5/6] Adding tests...
✓ Created tests/auth.test.ts (+120 lines)
✓ Running tests... 12 passed
[6/6] Updating documentation...
✓ Modified README.md (+25 lines)
✓ Task complete! Created PR #456
4. Output
After completion:
- Diff view of all changes
- Logs of all actions
- PR link (if configured)
- Test results (if tests exist)
Autonomy Levels
workspace-write (Recommended)
{
"autonomy": "workspace-write"
}
- ✅ Read any file
- ✅ Write to workspace files
- ✅ Run build/test commands
- ❌ Install global packages
- ❌ Modify system files
- ❌ Access network (except git)
skip-permissions-unsafe
{
"autonomy": "skip-permissions-unsafe"
}
- ✅ Full file system access
- ✅ Run any command
- ✅ Install packages
- ⚠️ Use with caution in trusted environments only
Advanced Features
Iterative Development
Friday Agent can iterate based on feedback:
- Agent completes task
- You review and comment
- Click "Re-run with feedback"
- Agent addresses comments
Multi-file Understanding
Friday Agent reads multiple files to understand context:
Reading context:
├── src/index.ts (entry point)
├── src/config.ts (configuration)
├── src/types.ts (type definitions)
├── package.json (dependencies)
└── tsconfig.json (TypeScript config)
Test-Driven Development
If tests exist, Friday Agent:
- Reads existing tests
- Runs tests before changes
- Makes changes
- Runs tests after changes
- Fixes any failures
Tips for Best Results
1. Write Clear Tasks
Good:
## Task
Add password reset functionality
## Requirements
- User requests reset via email
- Send email with reset link (valid 24h)
- Reset page validates token and updates password
- Use existing email service (src/services/email.ts)
## Files to reference
- src/routes/auth.ts (existing auth routes)
- src/models/user.ts (user model)
Bad:
Add password reset
2. Provide Context
Mention:
- Related files
- Existing patterns to follow
- Constraints or requirements
- Technology preferences
3. Break Down Large Tasks
Instead of:
Build complete user management system
Create subtasks:
1. Add user registration
2. Add user login
3. Add password reset
4. Add profile management
5. Add admin panel
Troubleshooting
Agent Stops Unexpectedly
- Check API key balance
- Look for error in logs
- Try running again
- Contact support if persists
Output Quality Issues
- Add more detail to task
- Include example code
- Reference similar files
- Try breaking into subtasks
Slow Performance
- Reduce codebase size (use .gitignore)
- Be specific about files to modify
- Use lighter agent for simple tasks
Pricing
Friday Agent uses Claude API:
- Costs vary by usage
- Check Anthropic pricing
- Monitor usage in settings
Next Steps
- AI Agents Overview - Compare all agents
- Task Management - Write better tasks
- Code Review - Review agent output