clawrp 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,161 @@
1
+ # Clawrp — The AI Corp
2
+
3
+ **Self-hosted autonomous AI company platform. Ships with pre-built agents. Runs on your Claude Max plan. Full computer control.**
4
+
5
+ Clawrp orchestrates a team of Claude Code agents that run your business autonomously — research, social media, analytics, customer support. Agents wake on schedule, delegate to each other, and you manage them through Slack.
6
+
7
+ ## Quick Start
8
+
9
+ ### Prerequisites
10
+
11
+ - **Node.js 20+** and **pnpm 9+**
12
+ - **Claude Code CLI** installed and logged in (`claude --version`)
13
+ - A Mac (agents use your local Claude Max plan session)
14
+
15
+ ### Install & Run
16
+
17
+ ```bash
18
+ npx clawrp onboard
19
+ npx clawrp run
20
+ ```
21
+
22
+ Or from source:
23
+
24
+ ```bash
25
+ git clone <repo-url>
26
+ cd clawrp
27
+ pnpm install
28
+ pnpm dev
29
+ ```
30
+
31
+ Open http://localhost:3100 — you'll see the Clawrp dashboard.
32
+
33
+ ### Set Up Your First Agent
34
+
35
+ 1. **Create a company** in the dashboard (click "New Company", give it a name and mission)
36
+
37
+ 2. **Set up agent workspaces:**
38
+ ```bash
39
+ ./scripts/setup-agents.sh
40
+ ```
41
+ This copies agent templates to `~/agents/` (CEO, Researcher, Social Media, Engagement, Analytics).
42
+
43
+ 3. **Register the CEO agent** — in the dashboard, click "New Agent":
44
+ - Name: `CEO`
45
+ - Adapter: `claude_local`
46
+ - Working directory: `/Users/you/agents/ceo`
47
+ - Model: `opus` (or `sonnet` for faster/cheaper)
48
+
49
+ 4. **Invoke the agent** — click "Invoke" on the agent card, or:
50
+ ```bash
51
+ curl -X POST http://localhost:3100/api/agents/{agent-id}/wakeup \
52
+ -H "Content-Type: application/json" \
53
+ -d '{"source": "on_demand", "reason": "First run"}'
54
+ ```
55
+
56
+ 5. **Watch it work** — the agent's run appears in the dashboard with live logs.
57
+
58
+ ### Connect Slack (Optional)
59
+
60
+ 1. Create a Slack app using the manifest at `http://localhost:3100/api/onboarding/slack-manifest`
61
+ 2. Enable Socket Mode in your Slack app settings
62
+ 3. Add environment variables to `.env`:
63
+ ```
64
+ SLACK_BOT_TOKEN=xoxb-...
65
+ SLACK_APP_TOKEN=xapp-...
66
+ SLACK_SIGNING_SECRET=...
67
+ CLAWRP_COMPANY_ID=your-company-uuid
68
+ ```
69
+ 4. Restart the server — the Slack bot connects automatically
70
+ 5. Message your CEO agent in Slack!
71
+
72
+ ## What It Does
73
+
74
+ You define a company with a mission. AI agents run it:
75
+
76
+ | Agent | Schedule | What it does |
77
+ |-------|----------|-------------|
78
+ | **CEO** | On-demand (Slack) | Full computer control. Coordinates all agents. Can hire new ones. |
79
+ | **Researcher** | Daily 10 AM | Researches trending topics, hands report to Social Media. |
80
+ | **Social Media** | On assignment | Writes platform-specific posts, publishes to Twitter/LinkedIn. |
81
+ | **Engagement** | Every 2 hours | Monitors replies, responds authentically. |
82
+ | **Analytics** | Daily 9 AM | Mixpanel funnel analysis, proposes experiments. |
83
+
84
+ All on your Mac. All on your Max plan. Zero API costs.
85
+
86
+ ## Key Features
87
+
88
+ - **Claude Code native** — Agents ARE Claude Code processes with skills, CLAUDE.md, and MCP servers
89
+ - **Max plan auth** — Uses your local CLI session, not API keys ($0)
90
+ - **Full computer control** — CEO agent has AppleScript, browser, apps, file system
91
+ - **Slack interface** — Message agents, get responses in threads
92
+ - **Cron scheduling** — Real cron expressions (`0 10 * * *`), not just intervals
93
+ - **Agent delegation** — Agents create tasks and assign to each other with auto-wakeup
94
+ - **Persistent memory** — Per-agent memory files + structured stateJson API
95
+ - **Per-agent MCP servers** — Playwright, Mixpanel, Twitter, or any MCP server
96
+ - **Budget enforcement** — Per-agent monthly limits with auto-pause
97
+
98
+ ## Agent Configuration
99
+
100
+ ### MCP Servers Per Agent
101
+
102
+ ```json
103
+ {
104
+ "adapterConfig": {
105
+ "mcpServers": {
106
+ "playwright": {
107
+ "command": "node",
108
+ "args": ["/path/to/playwright-mcp/cli.js", "--smart-snapshot"]
109
+ }
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ ### Cron Schedule
116
+
117
+ ```json
118
+ {
119
+ "runtimeConfig": {
120
+ "heartbeat": {
121
+ "schedule": "0 10 * * *",
122
+ "timezone": "America/Los_Angeles"
123
+ }
124
+ }
125
+ }
126
+ ```
127
+
128
+ ### Persistent Agent State
129
+
130
+ ```bash
131
+ # Read agent's persistent state
132
+ GET /api/agents/{id}/state
133
+
134
+ # Write/merge state
135
+ PUT /api/agents/{id}/state
136
+ {"topics_covered": ["ai-agents", "browser-automation"]}
137
+ ```
138
+
139
+ ## Architecture
140
+
141
+ ```
142
+ Slack <-> Slack Bot <-> Clawrp Server (Express + PostgreSQL)
143
+ |
144
+ Claude Code processes
145
+ (--dangerously-skip-permissions)
146
+ (--resume for sessions)
147
+ (--mcp-server for tools)
148
+ ```
149
+
150
+ ## Development
151
+
152
+ ```bash
153
+ pnpm install # Install dependencies
154
+ pnpm dev # Start server + UI in dev mode
155
+ pnpm build # Build for production
156
+ pnpm test:run # Run tests
157
+ ```
158
+
159
+ ## License
160
+
161
+ Proprietary. Copyright (c) 2026 Firefloco, Inc. See [LICENSE](LICENSE) for details.