A local-first control center for Claude Code and Codex agents.
Run coding agents like a small engineering team: queue tasks, choose Claude or Codex, review plans, continue conversations, isolate workers in Docker, and receive Feishu updates.
Quick Start · Features · Architecture · 中文手册
Claude Code and Codex are powerful, but serious work quickly turns into terminal juggling: one task is planning, another is running tests, another needs review, and a fourth needs a follow-up prompt. WorkerBee gives those agent workflows a product surface.
Use it when you want to:
- Keep multiple Claude Code or Codex jobs visible instead of babysitting terminal tabs.
- Ask for a plan first, approve it, then let the agent execute.
- Pick an executor per task: Claude for Claude Code workflows, Codex for OpenAI Codex workflows.
- Assign workers to different repositories or Docker environments.
- Continue a task from its full conversation history.
- Get mobile-friendly Feishu notifications when work is ready for review.
| Area | What you get |
|---|---|
| Task board | Kanban-style flow for pending, running, review, done, and failed tasks. |
| Agent workers | Bind workers to projects, schedule Claude or Codex work, and inspect runtime state. |
| Executor labels | Task cards and conversations show whether output came from Claude or Codex. |
| Codex controls | Choose Codex model, reasoning effort, and priority speed tier per task or chat session. |
| Plan Mode | Ask the agent to produce an implementation plan before touching files. |
| Chat workspace | Continue an existing task, attach images, inspect files, and open terminals. |
| Context meter | Show remaining context for Claude and Codex sessions when token usage is available. |
| Docker isolation | Run Claude Code workers inside containers with custom mounts, ports, and optional GPU access. |
| Feishu integration | Receive task notifications and control selected workflows from mobile chat. |
| Local-first storage | Projects, tasks, workers, sessions, and secrets stay on your own machine. |
| Admin protection | Optional password gate for sensitive operations in shared/local deployments. |
Prerequisites:
- Python 3.10 or newer.
- Claude Code CLI and/or Codex CLI installed and logged in.
- Git installed. Docker is optional, only needed for Docker workers.
git clone https://github.com/JohnnyJi1/workerbee.git
cd workerbee
bash install.sh
cp .env.example .env
bash scripts/start.shOpen WorkerBee:
http://localhost:5200
Daily use on the same machine is usually just:
cd workerbee
bash scripts/start.shThen keep the service running and open http://localhost:5200 in a browser.
Stop or restart:
bash scripts/stop.sh
bash scripts/restart.sh- Project: a local repository or workspace directory.
- Worker: an execution slot bound to one project.
- Task: a coding request that moves through the board.
- Agent / Executor:
Claude CodeorCodex, selected when creating a task or chat. - Plan Mode: a review gate where the agent writes the plan before implementation.
- Session: the conversation context used to continue a task later.
Create a task, choose a project, select Claude or Codex, optionally enable Plan Mode, and let WorkerBee schedule it to an idle worker. When the task moves to review, inspect the log, diff, and conversation before marking it done.
Use task labels to tell which executor produced each result. A practical pattern is to ask Codex for implementation alternatives or quick code changes, then ask Claude to review or continue the task, or vice versa. Each task keeps its own session so the two agents can work in the same project without sharing one hidden terminal state.
Create a Docker worker for projects that need a clean runtime, custom ports, or
dependency separation. WorkerBee can build a Claude-ready image from common base
images that provide apt, apk, or yum.
Codex currently runs on local workers only; Docker workers are reserved for Claude Code tasks.
Connect a Feishu Bot to receive task state changes, inspect project status, and send follow-up messages without sitting at your laptop.
flowchart LR
UI["Web UI"]
API["FastAPI server"]
Store["Local JSON stores"]
Queue["Task scheduler"]
Worker["Claude Code / Codex workers"]
Docker["Docker workers"]
Feishu["Feishu Bot / Webhook"]
UI <--> API
API <--> Store
API <--> Queue
Queue --> Worker
Queue --> Docker
API <--> Feishu
WorkerBee intentionally keeps the stack small:
FastAPIfor the backend and WebSocket updates.- Plain
HTML/CSS/JavaScriptfor the frontend. - Local JSON files for lightweight persistence.
- Claude Code CLI and Codex CLI as execution engines.
- Optional Docker and Feishu integrations around the core loop.
Copy .env.example to .env and adjust values as needed.
Useful options include:
PORT: web server port, default5200.WORKER_PORT_BASE: base port for worker-related services.BALANCE_API_URL: optional usage/balance API endpoint.- Feishu credentials: configure from the UI so secrets stay in local runtime data.
Codex settings are selected in the UI:
- Model: choose a configured Codex model or leave as default.
- Reasoning effort: default, low, medium, high, or xhigh.
- Speed tier: standard or Fast (
service_tier=priority).
Runtime data, local secrets, logs, uploaded files, and duplicate Finder copies are excluded from git by design.
- Better first-run onboarding for non-technical users.
- More granular permission roles for shared deployments.
- GitHub PR and issue integrations.
- Built-in screenshots and replayable task timelines.
- More pluggable model providers beyond Claude Code and Codex.
Issues, ideas, and pull requests are welcome. Start with CONTRIBUTING.md, and keep changes focused: WorkerBee is meant to stay small, inspectable, and useful on a personal machine.
WorkerBee can run code, start terminals, and interact with local repositories. Treat it as a developer tool with local-machine privileges. Do not expose it to the public internet without authentication and network controls.
See SECURITY.md for reporting guidance.
MIT. See LICENSE.