mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 16:39:42 +02:00
feat: add web interface with real-time streaming and timed runs
- Add Fastify-based web server with SSE for real-time updates - Create responsive dark-themed UI with: - Prompt input with directory and duration options - Live countdown timer for timed runs - Real-time output streaming - Collapsible sessions panel - Cost and task tracking - Support timed runs that repeat prompts for specified duration - Add /api endpoints for sessions, scheduled runs, and status - Update Session class to parse Claude CLI JSON output - Add 'claudeman web' command to start the interface Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,10 +4,13 @@ A Claude Code session manager with an autonomous Ralph Loop for task assignment
|
||||
|
||||
## Features
|
||||
|
||||
- **Web Interface**: Beautiful, responsive web UI for managing sessions and running prompts
|
||||
- **Session Management**: Spawn and manage multiple Claude CLI sessions as subprocesses
|
||||
- **Timed Runs**: Schedule Claude to work for a specific duration with live countdown
|
||||
- **Real-time Output**: Stream Claude's responses in real-time via Server-Sent Events
|
||||
- **Task Queue**: Priority-based task queue with dependency support
|
||||
- **Ralph Loop**: Autonomous control loop that assigns tasks to idle sessions and monitors completion
|
||||
- **Time-Aware Loops**: Set minimum durations for extended autonomous work sessions
|
||||
- **Cost Tracking**: Track total API costs across all sessions
|
||||
- **State Persistence**: All state persisted to `~/.claudeman/state.json`
|
||||
|
||||
## Installation
|
||||
@@ -20,6 +23,24 @@ npm link # Optional: make 'claudeman' available globally
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Web Interface (Recommended)
|
||||
|
||||
```bash
|
||||
# Start the web interface
|
||||
claudeman web
|
||||
|
||||
# Open http://localhost:3000 in your browser
|
||||
```
|
||||
|
||||
The web interface provides:
|
||||
- **Prompt Input**: Enter prompts and optionally set a working directory
|
||||
- **Duration Timer**: Set duration in minutes for timed runs (0 = single run)
|
||||
- **Live Output**: See Claude's response in real-time as it streams
|
||||
- **Countdown**: Large timer display when running timed jobs
|
||||
- **Session Monitoring**: View all active sessions at the bottom panel
|
||||
|
||||
### CLI Usage
|
||||
|
||||
```bash
|
||||
# Start a Claude session
|
||||
claudeman start --dir /path/to/project
|
||||
@@ -37,6 +58,16 @@ claudeman status
|
||||
|
||||
## Commands
|
||||
|
||||
### Web Interface
|
||||
|
||||
```bash
|
||||
# Start web interface on default port (3000)
|
||||
claudeman web
|
||||
|
||||
# Use a different port
|
||||
claudeman web --port 8080
|
||||
```
|
||||
|
||||
### Session Management
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user