open-agents-ai 0.86.0 → 0.88.0
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 +67 -2
- package/dist/index.js +991 -48
- package/package.json +8 -3
- package/prompts/agentic/system-large.md +55 -4
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ D8AgCTrxpDKD5meJ2bpAfVwcST3NF3EPuy9xczYycnXn
|
|
|
66
66
|
- **OpenCode delegation** — offload coding tasks to opencode (sst/opencode) as an autonomous sub-agent with auto-install, progress monitoring, and result evaluation
|
|
67
67
|
- **Long-horizon cron agents** — schedule recurring autonomous agent tasks with goals, completion criteria, execution history, and automatic evaluation (daily code reviews, weekly dep updates, continuous monitoring)
|
|
68
68
|
- **Nexus P2P networking** — decentralized agent-to-agent communication via [open-agents-nexus](https://www.npmjs.com/package/open-agents-nexus). Join rooms, discover peers, share resources, and communicate across the agent mesh with encrypted P2P transport
|
|
69
|
-
- **x402 micropayments** —
|
|
69
|
+
- **x402 micropayments** — native x402 payment rails via open-agents-nexus@1.5.6. Agents create secp256k1/EVM wallets (AES-256-GCM encrypted, keys never exposed to LLM), register inference with USDC pricing on Base, auto-handle `payment_required`/`payment_proof` negotiation, track earnings/spending in ledger.jsonl, enforce budget policies, and sign gasless EIP-3009 transfers
|
|
70
70
|
- **Inference capability proof** — benchmark local models with anti-spoofing SHA-256 hashed proofs, generate capability scorecards for peer verification
|
|
71
71
|
- **Ralph Loop** — iterative task execution that keeps retrying until completion criteria are met
|
|
72
72
|
- **Dream Mode** — creative idle exploration modeled after real sleep architecture (NREM→REM cycles)
|
|
@@ -926,7 +926,7 @@ The steering sub-agent uses the same model and backend as the main agent with `m
|
|
|
926
926
|
- **LATS** (Zhou et al., 2024) — mid-execution replanning with user-provided value signals improves task completion on complex multi-step problems
|
|
927
927
|
- **AutoGen** (Wu et al., 2023) — human-in-the-loop patterns work best when user messages are expanded into structured instructions, reducing ambiguity for the primary agent
|
|
928
928
|
|
|
929
|
-
## Tools (
|
|
929
|
+
## Tools (54)
|
|
930
930
|
|
|
931
931
|
| Tool | Description |
|
|
932
932
|
|------|-------------|
|
|
@@ -994,6 +994,14 @@ The steering sub-agent uses the same model and backend as the main agent with `m
|
|
|
994
994
|
| `aiwg_setup` | Deploy AIWG SDLC framework |
|
|
995
995
|
| `aiwg_health` | Analyze project SDLC health and readiness |
|
|
996
996
|
| `aiwg_workflow` | Execute AIWG commands and workflows |
|
|
997
|
+
| **Nexus P2P & x402 Payments** | |
|
|
998
|
+
| `nexus` | Decentralized agent networking — connect, rooms, DMs, peer discovery, invoke capabilities, metering, trust/blocking, IPFS storage |
|
|
999
|
+
| `nexus:expose` | Expose local Ollama models as metered inference capabilities with OpenRouter-based pricing |
|
|
1000
|
+
| `nexus:wallet_create` | Generate secp256k1/EVM wallet (Base mainnet USDC) with AES-256-GCM encryption + x402-wallet.key |
|
|
1001
|
+
| `nexus:spend` | Sign EIP-3009 USDC TransferWithAuthorization — budget-checked, gasless for payer |
|
|
1002
|
+
| `nexus:remote_infer` | Route inference to a remote peer's model — auto-discovers peers, budget-checks, invokes, returns result |
|
|
1003
|
+
| `nexus:ledger_status` | Transaction history (earned/spent/pending USDC) |
|
|
1004
|
+
| `nexus:budget_set` | Configure spending limits — daily cap, per-invoke max, auto-approve threshold |
|
|
997
1005
|
|
|
998
1006
|
Read-only tools execute concurrently when called in the same turn. Mutating tools run sequentially.
|
|
999
1007
|
|
|
@@ -1045,6 +1053,63 @@ All context-dependent values scale automatically with the actual context window
|
|
|
1045
1053
|
| Tool output cap | 2K-8K chars (scales with context) |
|
|
1046
1054
|
| File read limits | 80-120 line cap for small/medium context windows |
|
|
1047
1055
|
|
|
1056
|
+
## x402 Payment Rails & Nexus P2P
|
|
1057
|
+
|
|
1058
|
+
Agents can earn and spend USDC on Base mainnet through the native x402 protocol built into [open-agents-nexus@1.5.6](https://www.npmjs.com/package/open-agents-nexus).
|
|
1059
|
+
|
|
1060
|
+
### Wallet & Identity
|
|
1061
|
+
```
|
|
1062
|
+
nexus(action='wallet_create') # Generate secp256k1/EVM wallet
|
|
1063
|
+
nexus(action='wallet_status') # Address, balance, ledger summary
|
|
1064
|
+
```
|
|
1065
|
+
Creates `wallet.enc` (AES-256-GCM encrypted) and `x402-wallet.key` (plaintext, 0600 perms for daemon x402 module). Keys never enter LLM context.
|
|
1066
|
+
|
|
1067
|
+
### Expose Inference with Pricing
|
|
1068
|
+
```
|
|
1069
|
+
nexus(action='expose', margin='0.5') # 50% of OpenRouter market rate
|
|
1070
|
+
nexus(action='expose', margin='0') # Free (self-hosted)
|
|
1071
|
+
nexus(action='pricing_menu') # Current pricing for exposed models
|
|
1072
|
+
```
|
|
1073
|
+
When margin > 0, capabilities are registered with USDC pricing metadata. The daemon auto-handles `invoke.payment_required` → `payment_proof` negotiation via x402.
|
|
1074
|
+
|
|
1075
|
+
### Spend — Gasless USDC Transfers (EIP-3009)
|
|
1076
|
+
```
|
|
1077
|
+
nexus(action='spend', target_address='0x...', amount_usdc='0.10')
|
|
1078
|
+
```
|
|
1079
|
+
Signs an EIP-3009 `TransferWithAuthorization`. Budget-checked before signing. The recipient (or any facilitator) submits on-chain — no gas needed from the payer. Proof saved to `.oa/nexus/pending-transfer.json`.
|
|
1080
|
+
|
|
1081
|
+
### Remote Inference — Tap Into the Mesh
|
|
1082
|
+
```
|
|
1083
|
+
nexus(action='remote_infer', model='qwen3.5:70b', prompt='Complex analysis task...')
|
|
1084
|
+
nexus(action='remote_infer', model='llama3.3:70b', prompt='...', target_peer='12D3KooW...')
|
|
1085
|
+
```
|
|
1086
|
+
Route a prompt to a remote peer's model on the P2P mesh. Auto-discovers peers that have the requested model exposed, budget-checks the estimated cost, invokes the inference capability, and returns the response. Use `target_peer` to route to a specific provider, or omit for automatic peer selection. Your 8B laptop can seamlessly tap into a 122B model running on the mesh.
|
|
1087
|
+
|
|
1088
|
+
### Ledger & Budget
|
|
1089
|
+
```
|
|
1090
|
+
nexus(action='ledger_status') # Earned/spent/pending history
|
|
1091
|
+
nexus(action='budget_status') # Limits and today's usage
|
|
1092
|
+
nexus(action='budget_set', daily_limit='1.00') # Max daily spend
|
|
1093
|
+
nexus(action='budget_set', per_invoke_max='0.10') # Max per invocation
|
|
1094
|
+
nexus(action='budget_set', auto_approve_below='0.01') # Auto-approve micropayments
|
|
1095
|
+
```
|
|
1096
|
+
|
|
1097
|
+
### How x402 Works (End to End)
|
|
1098
|
+
1. **wallet_create** → generates wallet + x402-wallet.key for daemon signing
|
|
1099
|
+
2. **expose** with margin > 0 → registers capabilities with USDC pricing
|
|
1100
|
+
3. Peer calls **invoke_capability** → daemon sends `payment_required` with terms
|
|
1101
|
+
4. Consumer's daemon auto-signs `payment_proof` → provider validates → invoke proceeds
|
|
1102
|
+
5. Metering hook writes payment events to `ledger.jsonl`
|
|
1103
|
+
6. **spend** → direct agent-to-agent USDC transfers (EIP-3009, gasless)
|
|
1104
|
+
7. **remote_infer** → auto-discover + invoke in one action (budget-checked, with ledger entry)
|
|
1105
|
+
|
|
1106
|
+
### Security Model
|
|
1107
|
+
- Private keys: AES-256-GCM encrypted in `wallet.enc` (scrypt-derived key)
|
|
1108
|
+
- `x402-wallet.key`: plaintext (0600 perms) — used only by daemon subprocess
|
|
1109
|
+
- Budget policy: daily limits, per-invoke caps, circuit breaker, peer denylist
|
|
1110
|
+
- All outbound messages scanned for key material before sending
|
|
1111
|
+
- Keys NEVER appear in tool output, logs, or LLM context
|
|
1112
|
+
|
|
1048
1113
|
## Voice Feedback (TTS)
|
|
1049
1114
|
|
|
1050
1115
|
```bash
|