clawck 0.3.0 → 0.4.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 +44 -15
- package/dist/cli/index.js +466 -43
- package/dist/cli/index.js.map +1 -1
- package/dist/core/atp.d.ts +31 -0
- package/dist/core/atp.d.ts.map +1 -0
- package/dist/core/atp.js +96 -0
- package/dist/core/atp.js.map +1 -0
- package/dist/core/benchmarks.d.ts +20 -0
- package/dist/core/benchmarks.d.ts.map +1 -0
- package/dist/core/benchmarks.js +86 -0
- package/dist/core/benchmarks.js.map +1 -0
- package/dist/core/clawck.d.ts +26 -1
- package/dist/core/clawck.d.ts.map +1 -1
- package/dist/core/clawck.js +101 -6
- package/dist/core/clawck.js.map +1 -1
- package/dist/core/database.d.ts +15 -1
- package/dist/core/database.d.ts.map +1 -1
- package/dist/core/database.js +157 -7
- package/dist/core/database.js.map +1 -1
- package/dist/core/personal.d.ts +26 -0
- package/dist/core/personal.d.ts.map +1 -0
- package/dist/core/personal.js +60 -0
- package/dist/core/personal.js.map +1 -0
- package/dist/core/runtime.d.ts +17 -0
- package/dist/core/runtime.d.ts.map +1 -0
- package/dist/core/runtime.js +43 -0
- package/dist/core/runtime.js.map +1 -0
- package/dist/core/types.d.ts +62 -2
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +9 -2
- package/dist/core/types.js.map +1 -1
- package/dist/hooks/adapters.d.ts.map +1 -1
- package/dist/hooks/adapters.js +14 -0
- package/dist/hooks/adapters.js.map +1 -1
- package/dist/hooks/handler.d.ts.map +1 -1
- package/dist/hooks/handler.js +4 -1
- package/dist/hooks/handler.js.map +1 -1
- package/dist/hooks/install.d.ts.map +1 -1
- package/dist/hooks/install.js +12 -4
- package/dist/hooks/install.js.map +1 -1
- package/dist/hooks/types.d.ts +3 -0
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/reports/html.d.ts +2 -1
- package/dist/reports/html.d.ts.map +1 -1
- package/dist/reports/html.js +53 -21
- package/dist/reports/html.js.map +1 -1
- package/dist/reports/pdf.d.ts +2 -1
- package/dist/reports/pdf.d.ts.map +1 -1
- package/dist/reports/pdf.js +26 -18
- package/dist/reports/pdf.js.map +1 -1
- package/dist/reports/periods.d.ts +18 -0
- package/dist/reports/periods.d.ts.map +1 -0
- package/dist/reports/periods.js +55 -0
- package/dist/reports/periods.js.map +1 -0
- package/dist/server/api.d.ts.map +1 -1
- package/dist/server/api.js +140 -2
- package/dist/server/api.js.map +1 -1
- package/dist/server/mcp.js +1 -1
- package/docs/atp-schema.json +298 -0
- package/docs/atp-spec-v0.2.md +216 -0
- package/docs/benchmarks-sources.md +202 -0
- package/docs/platform-testing-guide.md +423 -0
- package/docs/skills/clawck-usage.md +1 -1
- package/docs/snippets/claude-md.txt +16 -7
- package/docs/snippets/hooks-claude.json +12 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Clawck v0.
|
|
1
|
+
# Clawck v0.4
|
|
2
2
|
|
|
3
3
|
**Time tracking for AI agents. Toggl for the agentic era.**
|
|
4
4
|
|
|
@@ -46,20 +46,44 @@ clawck report --format html
|
|
|
46
46
|
|
|
47
47
|
### 1. Agents clock in and out
|
|
48
48
|
|
|
49
|
-
**Via
|
|
49
|
+
**Via platform hooks (recommended — Claude Code, Cursor, Gemini, Windsurf, Codex):**
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Hooks fire automatically on every turn — no agent cooperation needed.
|
|
52
|
+
|
|
53
|
+
Claude Code — add to `~/.claude/settings.json`:
|
|
52
54
|
|
|
53
55
|
```json
|
|
54
56
|
{
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
57
|
+
"hooks": {
|
|
58
|
+
"UserPromptSubmit": [
|
|
59
|
+
{
|
|
60
|
+
"hooks": [
|
|
61
|
+
{ "type": "command", "command": "clawck hook start" }
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"Stop": [
|
|
66
|
+
{
|
|
67
|
+
"hooks": [
|
|
68
|
+
{ "type": "command", "command": "clawck hook stop" }
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
58
72
|
}
|
|
59
73
|
}
|
|
60
74
|
```
|
|
61
75
|
|
|
62
|
-
|
|
76
|
+
Or run `clawck hooks install claude` for the full config.
|
|
77
|
+
|
|
78
|
+
**Via MCP (optional — for explicit agent control):**
|
|
79
|
+
|
|
80
|
+
Add to `~/.claude/mcp_servers.json` (or equivalent for Cline, Cursor, Windsurf):
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{ "clawck": { "command": "npx", "args": ["-y", "clawck", "mcp"] } }
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
This gives agents `clawck_start_task`, `clawck_stop_task`, etc. for granular control. Add CLAUDE.md instructions (run `clawck setup claude`) to tell the agent to use them.
|
|
63
87
|
|
|
64
88
|
**Via REST API:**
|
|
65
89
|
|
|
@@ -67,7 +91,7 @@ Your agent gets: `clawck_start_task`, `clawck_stop_task`, `clawck_log_task`, `cl
|
|
|
67
91
|
# Start a task
|
|
68
92
|
curl -X POST http://localhost:3456/api/start \
|
|
69
93
|
-H "Content-Type: application/json" \
|
|
70
|
-
-d '{"task": "Research grant opportunities", "project": "grant-research", "client": "acme-corp", "category": "research", "agent": "
|
|
94
|
+
-d '{"task": "Research grant opportunities", "project": "grant-research", "client": "acme-corp", "category": "research", "agent": "research-agent-01"}'
|
|
71
95
|
|
|
72
96
|
# Stop a task
|
|
73
97
|
curl -X POST http://localhost:3456/api/stop \
|
|
@@ -105,6 +129,11 @@ Every entry has a **category** and Clawck applies configurable multipliers:
|
|
|
105
129
|
|
|
106
130
|
30 minutes of agent research = **6 hours human-equivalent** = **$300 estimated value**.
|
|
107
131
|
|
|
132
|
+
> **Note:** These multipliers are configurable starting estimates. They represent
|
|
133
|
+
> roughly how many hours of equivalent human work one hour of agent work produces
|
|
134
|
+
> for each category. Adjust them based on your team's actual experience.
|
|
135
|
+
> See `docs/benchmarks-sources.md` for industry timing data to help calibrate.
|
|
136
|
+
|
|
108
137
|
### 3. View results
|
|
109
138
|
|
|
110
139
|
- **Dashboard** at `http://localhost:3456` - stats, entries, breakdowns by project/agent/category
|
|
@@ -239,7 +268,7 @@ Edit `.clawck/config.json`:
|
|
|
239
268
|
"port": 3456,
|
|
240
269
|
"default_client": "acme-corp",
|
|
241
270
|
"default_project": "general",
|
|
242
|
-
"default_agent": "
|
|
271
|
+
"default_agent": "agent-01",
|
|
243
272
|
"default_model": "claude-sonnet-4-20250514",
|
|
244
273
|
"default_source": "clawck",
|
|
245
274
|
"default_pattern": "default",
|
|
@@ -298,8 +327,8 @@ Running agents across multiple machines? Clawck merges them:
|
|
|
298
327
|
```json
|
|
299
328
|
{
|
|
300
329
|
"remote_sources": [
|
|
301
|
-
{ "name": "research-agent", "url": "http://
|
|
302
|
-
{ "name": "writer-agent", "url": "http://
|
|
330
|
+
{ "name": "research-agent", "url": "http://agent-01:3456/api/entries" },
|
|
331
|
+
{ "name": "writer-agent", "url": "http://agent-02:3456/api/entries" }
|
|
303
332
|
],
|
|
304
333
|
"sync_interval": 60
|
|
305
334
|
}
|
|
@@ -310,7 +339,7 @@ Running agents across multiple machines? Clawck merges them:
|
|
|
310
339
|
```bash
|
|
311
340
|
curl -X POST http://central-clawck:3456/api/ingest \
|
|
312
341
|
-H "Content-Type: application/json" \
|
|
313
|
-
-d '[{"task": "...", "agent": "
|
|
342
|
+
-d '[{"task": "...", "agent": "agent-01", ...}]'
|
|
314
343
|
```
|
|
315
344
|
|
|
316
345
|
Entries merge by UUID - no conflicts, no duplicates.
|
|
@@ -340,13 +369,13 @@ clawck/
|
|
|
340
369
|
|
|
341
370
|
## Integrations
|
|
342
371
|
|
|
343
|
-
**
|
|
372
|
+
**Platform hooks (recommended)** - Auto-track via `clawck hooks install claude|cursor|cline|windsurf|gemini|codex`
|
|
373
|
+
|
|
374
|
+
**Claude Code MCP** - Add to `~/.claude/mcp_servers.json` for explicit agent control:
|
|
344
375
|
```json
|
|
345
376
|
{ "clawck": { "command": "npx", "args": ["-y", "clawck", "mcp"] } }
|
|
346
377
|
```
|
|
347
378
|
|
|
348
|
-
**Platform hooks** - Auto-track via `clawck hooks install claude|cursor|cline|windsurf|gemini|codex`
|
|
349
|
-
|
|
350
379
|
**n8n** - POST to `/api/start` and `/api/stop` from HTTP Request nodes.
|
|
351
380
|
|
|
352
381
|
**Python frameworks (LangGraph, CrewAI, etc.):**
|