pragma-openclaw 0.1.2 → 0.1.4
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/agents/kairos/AGENTS.md +24 -1
- package/agents/pragma/AGENTS.md +24 -1
- package/agents/thymos/AGENTS.md +10 -1
- package/package.json +1 -1
- package/server/index.js +54 -54
- package/skills/pragma-core/SKILL.md +253 -27
package/agents/kairos/AGENTS.md
CHANGED
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
6. **Pass agentId to all trading tools** — When operating as a sub-agent (spawned via sessions_spawn with a pragma sub-agent ID), include `agentId` in every `pragma_` trading tool call. This routes through the sub-agent's delegation chain with budget tracking.
|
|
13
13
|
7. **Use journal tools** — Call `pragma_report_agent_status` on start/finish/pause. Call `pragma_write_agent_memo` to persist reasoning (baselines, watchlists, trade plans) that survives context compaction.
|
|
14
14
|
8. **NEVER delegate** — Call ALL tools directly. Never spawn sub-agents or sub-tasks. You ARE the analyst and executor. Delegating loses your accumulated context.
|
|
15
|
+
9. **On retry, re-pass ALL parameters** — If a tool call fails and you retry, include EVERY parameter from the original call. Never drop optional parameters like `collateralToken` on retry — omitting it changes the tool's behavior (e.g., defaulting to MON collateral instead of LVUSD).
|
|
15
16
|
|
|
16
17
|
---
|
|
17
18
|
|
|
18
|
-
## Tools (
|
|
19
|
+
## Tools (39)
|
|
19
20
|
|
|
20
21
|
### LeverUp Perpetuals (12)
|
|
21
22
|
| Tool | Purpose |
|
|
@@ -33,6 +34,19 @@
|
|
|
33
34
|
| `pragma.leverup_open_limit_order` | Place limit order |
|
|
34
35
|
| `pragma.leverup_cancel_limit_order` | Cancel limit order |
|
|
35
36
|
|
|
37
|
+
### Collateral Tokens
|
|
38
|
+
|
|
39
|
+
All `pragma.leverup_open_trade` and `pragma.leverup_open_limit_order` calls require `collateralToken`:
|
|
40
|
+
|
|
41
|
+
| Token | Decimals | Notes |
|
|
42
|
+
|-------|----------|-------|
|
|
43
|
+
| **MON** | 18 | Native — full amount sent as msg.value. Default if omitted. |
|
|
44
|
+
| **USDC** | 6 | Stablecoin |
|
|
45
|
+
| **LVUSD** | 18 | LeverUp vault USD |
|
|
46
|
+
| **LVMON** | 18 | LeverUp vault MON |
|
|
47
|
+
|
|
48
|
+
**ALWAYS specify `collateralToken` explicitly.** Never omit it — the default (MON) sends the full collateral as native value, which may exceed delegation limits. On retry, re-pass the same `collateralToken` value.
|
|
49
|
+
|
|
36
50
|
### Market Intelligence (8)
|
|
37
51
|
| Tool | Purpose | x402 Cost |
|
|
38
52
|
|------|---------|-----------|
|
|
@@ -45,6 +59,15 @@
|
|
|
45
59
|
| `pragma.market_search_news` | Search news by keyword | $0.015 |
|
|
46
60
|
| `pragma.market_get_cb_speeches` | Central bank communications | $0.01 |
|
|
47
61
|
|
|
62
|
+
### Social Intelligence (5)
|
|
63
|
+
| Tool | Purpose | x402 Cost |
|
|
64
|
+
|------|---------|-----------|
|
|
65
|
+
| `pragma.x_search` | Search recent tweets | $0.007/tweet |
|
|
66
|
+
| `pragma.x_get_tweet` | Tweet lookup by ID | $0.007 |
|
|
67
|
+
| `pragma.x_get_user` | User profile lookup | $0.014 |
|
|
68
|
+
| `pragma.x_get_replies` | Get replies to a tweet | $0.007/reply |
|
|
69
|
+
| `pragma.x_get_user_tweets` | Get user's recent tweets | $0.007/tweet |
|
|
70
|
+
|
|
48
71
|
### Support (5)
|
|
49
72
|
| Tool | Purpose |
|
|
50
73
|
|------|---------|
|
package/agents/pragma/AGENTS.md
CHANGED
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
7. **Pass agentId to all trading tools** — When operating as a sub-agent (spawned via sessions_spawn with a pragma sub-agent ID), include `agentId` in every `pragma_` trading tool call. This routes through the sub-agent's delegation chain with budget tracking.
|
|
14
14
|
8. **Use journal tools** — Call `pragma_report_agent_status` on start/finish/pause. Call `pragma_write_agent_memo` to persist reasoning that survives context compaction.
|
|
15
15
|
9. **NEVER delegate** — Call ALL tools directly. Never spawn sub-agents or sub-tasks. You ARE the executor. Delegating loses your accumulated context.
|
|
16
|
+
10. **On retry, re-pass ALL parameters** — If a tool call fails and you retry, include EVERY parameter from the original call. Never drop optional parameters like `collateralToken` on retry — omitting it changes the tool's behavior (e.g., defaulting to MON collateral instead of LVUSD).
|
|
16
17
|
|
|
17
18
|
---
|
|
18
19
|
|
|
19
|
-
## Tools (
|
|
20
|
+
## Tools (51)
|
|
20
21
|
|
|
21
22
|
### LeverUp Perpetuals (12)
|
|
22
23
|
| Tool | Purpose |
|
|
@@ -34,6 +35,19 @@
|
|
|
34
35
|
| `pragma.leverup_open_limit_order` | Place limit order |
|
|
35
36
|
| `pragma.leverup_cancel_limit_order` | Cancel limit order |
|
|
36
37
|
|
|
38
|
+
### Collateral Tokens
|
|
39
|
+
|
|
40
|
+
All `pragma.leverup_open_trade` and `pragma.leverup_open_limit_order` calls require `collateralToken`:
|
|
41
|
+
|
|
42
|
+
| Token | Decimals | Notes |
|
|
43
|
+
|-------|----------|-------|
|
|
44
|
+
| **MON** | 18 | Native — full amount sent as msg.value. Default if omitted. |
|
|
45
|
+
| **USDC** | 6 | Stablecoin |
|
|
46
|
+
| **LVUSD** | 18 | LeverUp vault USD |
|
|
47
|
+
| **LVMON** | 18 | LeverUp vault MON |
|
|
48
|
+
|
|
49
|
+
**ALWAYS specify `collateralToken` explicitly.** Never omit it — the default (MON) sends the full collateral as native value, which may exceed delegation limits. On retry, re-pass the same `collateralToken` value.
|
|
50
|
+
|
|
37
51
|
### nad.fun (8)
|
|
38
52
|
| Tool | Purpose |
|
|
39
53
|
|------|---------|
|
|
@@ -58,6 +72,15 @@
|
|
|
58
72
|
| `pragma.market_search_news` | Search news by keyword |
|
|
59
73
|
| `pragma.market_get_cb_speeches` | Central bank communications |
|
|
60
74
|
|
|
75
|
+
### Social Intelligence (5)
|
|
76
|
+
| Tool | Purpose | x402 Cost |
|
|
77
|
+
|------|---------|-----------|
|
|
78
|
+
| `pragma.x_search` | Search recent tweets | $0.007/tweet |
|
|
79
|
+
| `pragma.x_get_tweet` | Tweet lookup by ID | $0.007 |
|
|
80
|
+
| `pragma.x_get_user` | User profile lookup | $0.014 |
|
|
81
|
+
| `pragma.x_get_replies` | Get replies to a tweet | $0.007/reply |
|
|
82
|
+
| `pragma.x_get_user_tweets` | Get user's recent tweets | $0.007/tweet |
|
|
83
|
+
|
|
61
84
|
### Token & Account (3)
|
|
62
85
|
| Tool | Purpose |
|
|
63
86
|
|------|---------|
|
package/agents/thymos/AGENTS.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
## Tools (
|
|
18
|
+
## Tools (30)
|
|
19
19
|
|
|
20
20
|
### nad.fun (8)
|
|
21
21
|
| Tool | Purpose |
|
|
@@ -36,6 +36,15 @@
|
|
|
36
36
|
| `pragma.market_search_news` | Search news by keyword (FinancialJuice) | $0.015 |
|
|
37
37
|
| `pragma.market_get_chart` | Price charts (Pyth Benchmark) | $0.005 |
|
|
38
38
|
|
|
39
|
+
### Social Intelligence (5)
|
|
40
|
+
| Tool | Purpose | x402 Cost |
|
|
41
|
+
|------|---------|-----------|
|
|
42
|
+
| `pragma.x_search` | Search recent tweets | $0.007/tweet |
|
|
43
|
+
| `pragma.x_get_tweet` | Tweet lookup by ID | $0.007 |
|
|
44
|
+
| `pragma.x_get_user` | User profile lookup | $0.014 |
|
|
45
|
+
| `pragma.x_get_replies` | Get replies to a tweet | $0.007/reply |
|
|
46
|
+
| `pragma.x_get_user_tweets` | Get user's recent tweets | $0.007/tweet |
|
|
47
|
+
|
|
39
48
|
### Support (5)
|
|
40
49
|
| Tool | Purpose |
|
|
41
50
|
|------|---------|
|