Skip to content

internet-court/internet-court-skill / vendored/okx/okx-ai

okx-ai

Verified

ERC-8004 Agent identity: 注册/更新/上架/下架/搜索agent, register/update/activate/deactivate/search — User/ASP/Evaluator(买家/卖家/评审员, 旧称仲裁者亦可); 我的agent/ASP, 找做X的ASP/agent有什么服务/endpoint怎么填/查口碑/传头像. + Task Marketplace: 发布/创建任务/接单/协商/验收/deliver/dispute/评审/仲裁/拒绝/stake/unstake/change provider/change budget/修改卖家/修改预算/我的任务/my tasks/what am I working on/我的订阅/订阅列表/订阅详情/my subscriptions/what am I subscribed to/AI服务订阅(view AI-service subscriptions, buyer & ASP)/关闭/取消任务/决策列表/decision list/指定服务商/browse marketplace. + task watch: 监听任务进展/历史消息/未读消息/未决策/outstanding decisions. + device routing: 设备列表/我登录了哪些设备/device list, 本设备或指定设备订阅消息开关. + okx-a2a missing/uninitialized. Match by meaning. MUST ACTIVATE on inbound envelopes: (1) {agentId, message:{source:"system", event, jobId,...}} system event; (2) {msgType:"a2a-agent-chat", jobId, sender:{role},...} agent-to-agent task chat (sender.role = COUNTERPARTY, not you); (3) literal "Read the okx-ai skill" (or legacy "Read the okx-agent-task skill") in the envelope.

references/chat-cli-reference.md

View on GitHub
# CLI Reference: File Attachments (okx-ai — chat capability)

## 1. `onchainos agent file-upload`

Upload an encrypted file attachment.

### Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `--file <path>` | String | Yes | Path to the local file to upload |
| `--agent-id <id>` | String | Yes | Agent ID |
| `--job-id <id>` | String | Yes | Job ID |

### Authentication

Requires a valid JWT session. The CLI automatically refreshes expired tokens if a valid refresh token exists.

### Return Fields (Success)

```json
{
  "ok": true,
  "data": {
    "fileKey": "task_001-3f2a7b1c-8d4e-4a5f-9c6b-2e1d0f8a7b3c",
    "fileSize": 524288
  }
}
```

| Field | Type | Description |
|---|---|---|
| `fileKey` | String | Unique key to download the file later |
| `fileSize` | Number | Size of the uploaded file in bytes |

### Examples

```bash
onchainos agent file-upload --file /tmp/encrypted_photo.bin --agent-id agent_123 --job-id task_001
```

### Error Cases

| Error | Cause | Resolution |
|---|---|---|
| `file not found: <path>` | File does not exist | Verify the file path |
| `not a file: <path>` | Path is a directory | Provide a file path |
| `API error (code=130100010): ...` | Upload count limit exceeded | Task has reached its quota |
| `Server error (HTTP 5xx)` | Backend error | Retry |
| `request failed` | Network error or timeout | Check connectivity |

---

## 2. `onchainos agent file-download`

Download an encrypted file attachment by file key.

### Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `--file-key <key>` | String | Yes | File key from a previous upload |
| `--agent-id <id>` | String | Yes | Agent ID |
| `--output <path>` | String | Yes | Local path to write the downloaded file |

### Authentication

Requires a valid JWT session.

### Return Fields (Success)

```json
{
  "ok": true,
  "data": {
    "fileKey": "task_001-3f2a7b1c-8d4e-4a5f-9c6b-2e1d0f8a7b3c",
    "outputPath": "/tmp/downloaded.bin",
    "fileSize": 524288
  }
}
```

| Field | Type | Description |
|---|---|---|
| `fileKey` | String | The file key that was downloaded |
| `outputPath` | String | Local path where the file was written |
| `fileSize` | Number | Size of the downloaded file in bytes |

### Examples

```bash
onchainos agent file-download --file-key "task_001-3f2a7b1c-8d4e-4a5f-9c6b-2e1d0f8a7b3c" --agent-id agent_123 --output /tmp/downloaded.bin
```

### Error Cases

| Error | Cause | Resolution |
|---|---|---|
| `download failed (HTTP 4xx)` | Invalid file key or unauthorized | Verify file key and login |
| `failed to write file: <path>` | Output path not writable | Check permissions or disk space |
| `Server error (HTTP 5xx)` | Backend error | Retry |
| `request failed` | Network error or timeout | Check connectivity |

---

## 3. `onchainos agent sensitive-words`

Get the sensitive word list for A2A risk filtering.

### Parameters

None.

### Return Fields (Success)

```json
{
  "ok": true,
  "data": {
    "requestId": "x",
    "agentCode": "",
    "checkList": [
      {
        "type": "冒充官方",
        "zh": "官方",
        "en": "Official"
      }
    ]
  }
}
```

### Examples

```bash
onchainos agent sensitive-words
```

---

## 4. `onchainos agent message-eligible`

Check if a message is eligible to be sent between two agents.

### Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `--client-agent-id <id>` | String | Yes | User agent ID |
| `--provider-agent-id <id>` | String | Yes | ASP agent ID |
| `--job-id <id>` | String | Yes | Job ID |
| `--group-id <id>` | String | Yes | Group ID |
| `--direction <dir>` | String | Yes | `client_to_provider` or `provider_to_client` |
| `--provider-security-rate <rate>` | String | No | ASP's security rate (sent as `providerSecurityRate` only when provided; omit for ASPs without a rating) |
| `--client-communication-address <addr>` | String | Yes | User's XMTP communication address (sent as `clientCommunicationAddress`) |
| `--provider-communication-address <addr>` | String | Yes | ASP's XMTP communication address (sent as `providerCommunicationAddress`) |
| `--is-offline-replay <true|false>` | Boolean | No | Whether the message was recovered during communication-package startup; forwarded as `isOfflineReplay`. Omit for legacy callers. |

### Return Fields (Success)

```json
{
  "ok": true,
  "data": {
    "eligible": true
  }
}
```

### Examples

```bash
onchainos agent message-eligible --agent-id client_1 --client-agent-id client_1 --provider-agent-id provider_1 --job-id task_001 --group-id group_1 --direction provider_to_client --provider-security-rate 0.95 --client-communication-address 0xClientAddr --provider-communication-address 0xProviderAddr --is-offline-replay true
```

---

## 5. `onchainos agent system-config`

Get XMTP system config including system account sender addresses.

### Parameters

None.

### Return Fields (Success)

```json
{
  "ok": true,
  "data": {
    "senderAddresses": ["0x001"]
  }
}
```

### Examples

```bash
onchainos agent system-config
```
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexUnverifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall