Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions agents/context-machine-lab__sleepless-agent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Sleepless Agent

**A 24/7 AgentOS that keeps working while you sleep — powered by Claude Code.**

> Repo: https://github.com/context-machine-lab/sleepless-agent

## What it does

Sleepless Agent is a persistent background daemon that transforms your Claude Code
Pro subscription into a continuously-running AI development assistant. Instead of
leaving your allocation idle overnight, it picks up tasks and executes them
autonomously, surfacing the results as GitHub PRs for your morning review.

## Key capabilities

| Capability | Description |
|---|---|
| **Slack + CLI interface** | Submit tasks via `/think` in Slack or the `sle` CLI — no browser needed |
| **Multi-agent pipeline** | Every task flows through a Planner → Worker → Evaluator chain |
| **Isolated workspaces** | Each task runs in its own directory; parallel tasks never collide |
| **Auto task generation** | During idle windows the agent brainstorms and self-assigns new work |
| **Budget-aware scheduling** | Separate day/night Claude usage thresholds prevent quota exhaustion |
| **Git-native output** | Completed work lands on a feature branch with an auto-opened PR |

## Example usage

```bash
# Install
pip install sleepless-agent

# Start the 24/7 daemon
sle daemon

# Submit a task (Slack or CLI)
sle add "Refactor the auth module to use JWT"

# Check status
sle check

# Read a result
sle report 42
```

## Architecture

```
Slack / CLI → Task Queue (SQLite) → Smart Scheduler
┌───────────────┴───────────────┐
Planner Auto-Generator
Worker ←── isolated workspace
Evaluator → Git commit → PR
```

## Model

Uses `claude-sonnet-4-5-20250929` via the Claude Code Python Agent SDK with a
30-turn worker budget and a 1800-second per-task timeout.

## License

MIT — see [LICENSE](https://github.com/context-machine-lab/sleepless-agent/blob/main/LICENSE)
15 changes: 15 additions & 0 deletions agents/context-machine-lab__sleepless-agent/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "sleepless-agent",
"author": "context-machine-lab",
"description": "24/7 AgentOS maximising Claude Code Pro usage: daemon accepts tasks via Slack/CLI, runs planner→worker→evaluator pipeline in isolated workspaces, auto-generates idle tasks, and commits results as PRs.",
"repository": "https://github.com/context-machine-lab/sleepless-agent",
"path": "",
"version": "0.1.2",
"category": "developer-tools",
"tags": ["claude-code", "automation", "daemon", "multi-agent", "slack", "git", "productivity", "agentOS", "scheduler", "workspace"],
"license": "MIT",
"model": "claude-sonnet-4-5-20250929",
"adapters": ["claude-code", "system-prompt"],
"icon": false,
"banner": false
}