blob: 47e4e5f05b2cb5ddaf1b5022e20742c30f75ba4a [file] [log] [blame] [view]
iomodoa869b832025-07-24 18:32:59 +04001# Staff
2
iomodo7265ecf2025-07-31 19:52:33 +04003AI multi-agent system simulating startup organization. Agents process tasks, create PRs, auto-complete via webhooks.
4
5## Setup
6
7### Requirements
iomodo2f762e12025-07-31 19:55:27 +04008- Go 1.24.4+
iomodo7265ecf2025-07-31 19:52:33 +04009- GitHub token with repo admin permissions
10
11### Install
12```bash
13git clone https://github.com/your-org/staff
14cd staff
15```
16
17### Configure
18Edit `server/config.yaml`:
19```yaml
20server:
21 listen_address: ":9325"
22
23github:
24 token: "your_github_token"
25 owner: "your_username"
26 repo: "your_repo"
27
28openai:
29 api_key: "your_openai_key"
30```
31
32Or use environment variables:
33```bash
34export GITHUB_TOKEN="your_token"
35export OPENAI_API_KEY="your_key"
36```
37
38### GitHub Webhook Setup
39```bash
40cd server
41./staff webhook configure --webhook-url https://yourserver.com/api/v1/proposal/approve
42```
43You will need ngrok if you are doing this locally.
44
45### Run
46```bash
47cd server
48go run cmd/main.go server
49```
50
51## Workflow
521. Agent processes task creates PR
532. Human reviews/merges PR
543. GitHub webhook task completed
554. Agent picks up next task
56
57## Commands
58Commands for convenience no need to use them.
59```bash
60go run cmd/main.go create-task --title "Task" --description "Details"
61go run cmd/main.go list-tasks
62go run cmd/main.go list-agents
63go run cmd/main.go start-agent --name agent-name
64go run cmd/main.go webhook configure
65```