Package Information
Documentation
n8n-nodes-tmux-orchestrator
Powerful n8n nodes for orchestrating Claude AI agents through tmux sessions. Enable 24/7 autonomous development workflows, automated code reviews, and intelligent project management - all within n8n's visual automation platform.
🚀 Features
- Deploy AI Agents: Spawn Claude agents in tmux sessions with specific roles and briefings
- Project Management: Create and manage multi-agent development teams
- Health Monitoring: Track agent status, detect blockers, and auto-recover
- Task Scheduling: Schedule check-ins, reminders, and recurring tasks
- Seamless Integration: Works with GitHub, Slack, and other n8n nodes
📦 Installation
Community Node (Recommended)
- In n8n, go to Settings > Community Nodes
- Search for
n8n-nodes-tmux-orchestrator - Click Install
Manual Installation
cd ~/.n8n/custom
git clone https://github.com/marwim/n8n-nodes-tmux-orchestrator.git
cd n8n-nodes-tmux-orchestrator
npm install
npm run build
Prerequisites
- tmux installed on your system
- Claude CLI installed and configured
- Python 3.x for advanced monitoring features
- The tmux orchestrator scripts from the parent project
🎯 Node Types
1. Tmux Orchestrator
Core node for managing Claude agents.
Operations:
deployAgent- Start a new Claude agent in a tmux sessionsendMessage- Send instructions to an agentcaptureOutput- Get recent output from an agentgetStatus- Check agent health and activitylistSessions- List all active tmux sessionsterminateAgent- Cleanly shutdown an agent
2. Tmux Project Manager
Coordinate multi-agent projects with quality control.
Operations:
createProject- Initialize project with PM and teamassignTask- Delegate work to team membersgetProgress- Track project completionvalidateQuality- Run PM quality checkscreateTeamMember- Add new team membersdailyStandup- Collect status updates
3. Tmux Agent Monitor
Monitor and analyze agent health and activity.
Operations:
listAllSessions- Get all sessions with detailshealthCheck- Check agent responsivenesscollectLogs- Aggregate conversation logsdetectBlockers- Identify stuck agentsmonitorSnapshot- Create monitoring snapshotactivityReport- Generate activity reports
4. Tmux Scheduler
Schedule tasks and automate agent check-ins.
Operations:
scheduleCheckIn- Schedule future check-inscreateReminder- Set agent remindersmanageCronJobs- Create recurring taskslistScheduledTasks- View all scheduled taskscancelTask- Cancel scheduled tasksbatchSchedule- Schedule multiple tasks
🔧 Configuration
Setting Up Credentials
- In n8n, go to Credentials
- Create new Tmux Orchestrator Configuration
- Configure paths and settings:
{
"scriptsDirectory": "/path/to/tmux-orchestrator",
"projectBasePath": "~/Coding",
"claudeCommand": "claude",
"defaultAgentRole": "developer",
"agentStartupDelay": 5000,
"gitAutoCommit": true,
"gitCommitInterval": 30
}
📚 Example Workflows
1. Automated Code Review Pipeline
Automatically review GitHub pull requests with Claude.
// See examples/workflows/code-review-pipeline.json
Flow:
- GitHub PR trigger
- Deploy code reviewer agent
- Schedule review check-in
- Capture review results
- Post comment on PR
- Clean up agent
2. 24/7 Bug Triage System
Autonomous bug analysis and triage.
// See examples/workflows/bug-triage-system.json
Flow:
- GitHub issue trigger (bug label)
- Create bug triage project
- Assign analysis tasks
- Monitor progress
- Check agent health
- Collect logs and update issue
- Alert on failures
3. Multi-Project Orchestration
Manage multiple projects simultaneously.
// Basic setup
const projects = ['frontend', 'backend', 'docs'];
projects.forEach(project => {
// Deploy project manager
// Create development team
// Schedule daily standups
// Monitor progress
});
🎮 Usage Examples
Deploy a Developer Agent
{
"operation": "deployAgent",
"sessionName": "my-project",
"projectPath": "/home/user/projects/my-app",
"agentRole": "developer",
"initialBriefing": "You are working on a React application. Focus on implementing the user authentication feature."
}
Create a Project Team
{
"operation": "createProject",
"projectName": "new-feature",
"projectPath": "/home/user/projects/app",
"projectSpec": "Implement payment processing with Stripe",
"teamSize": "medium"
}
Schedule Regular Check-ins
{
"operation": "scheduleCheckIn",
"targetWindow": "project:0",
"minutesUntil": 30,
"checkInNote": "Provide status update and any blockers"
}
Monitor Agent Health
{
"operation": "healthCheck",
"targetSessions": "project-1,project-2",
"responseTimeout": 10
}
🔄 Integration Patterns
GitHub Integration
- Trigger on PR/Issue events
- Deploy specialized agents
- Post results back to GitHub
Slack Notifications
- Alert on agent failures
- Share progress updates
- Request human intervention
Scheduled Workflows
- Daily project standups
- Hourly health checks
- Weekly performance reports
🛠️ Advanced Features
Agent Templates
Define custom agent templates in credentials:
{
"agentTemplates": {
"frontend": {
"briefing": "You are a frontend specialist...",
"tools": ["react", "typescript", "jest"],
"commitFrequency": 30
}
}
}
Git Auto-Commit
Agents automatically commit work every 30 minutes:
- Prevents work loss
- Maintains history
- Enables rollbacks
Blocker Detection
Automatically identifies stuck agents by detecting:
- Error keywords
- Repetitive output
- Waiting for input states
🐛 Troubleshooting
Agent Not Responding
- Check tmux session exists:
tmux ls - Verify Claude is running:
tmux capture-pane -t session:0 - Use health check operation
- Restart agent if needed
Schedule Not Working
- Verify
atcommand installed - Check cron service running
- Validate script paths in credentials
Python Bridge Errors
- Ensure Python 3.x installed
- Check tmux_utils.py path
- Verify script permissions
📖 Documentation
API Reference
See API.md for detailed node documentation.
Best Practices
- Always set up health monitoring
- Use meaningful session names
- Schedule regular check-ins
- Implement error recovery
- Log agent conversations
Security Considerations
- Credentials are encrypted
- Scripts run with user permissions
- No hardcoded secrets
- Audit log available
🤝 Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Add tests for new features
- Submit a pull request
📄 License
MIT License - see LICENSE file.
🙏 Acknowledgments
Built on top of the Tmux Orchestrator project.