Xpersona
A

AI Orchestrator

CLAWHUB · Unverified

DeepSeek AI access via Puppeteer browser automation with CDP interceptor. Persistent daemon (~35ms startup), health checks, graceful shutdown, PM2 management... Skill: AI Orchestrator Owner: ciklopentan Summary: DeepSeek AI access via Puppeteer browser automation with CDP interceptor. Persistent daemon (~35ms startup), health checks, graceful shutdown, PM2 management... Tags: latest:2.0.11 Version history: v2.0.11 | 2026-04-10T10:18:48.794Z | user Add adaptive oversized-prompt submit detection and shorten/retry fallback; fix giant prompt transport via --file; expand mode-mat

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s170bzkafdeer9wznxg0rasry58402yp:ai-orchestrator
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ciklopentan-ai-orchestrator/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,967 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ai-orchestrator
description: >
  DeepSeek AI access via Puppeteer browser automation with CDP interceptor. Persistent daemon (~35ms startup),
  health checks, graceful shutdown, PM2 management. Configurable via `.deepseek.json`.
  Use when: (1) need DeepSeek responses without API key, (2) code analysis, review, or generation,
  (3) text analysis, summarization, translation, (4) "consult DeepSeek" or ask-deepseek.sh.
---

# AI Orchestrator v2.0.11

**What this is:** Browser automation that talks to DeepSeek via Puppeteer.
**What this is NOT:** A general AI router or multi-model orchestrator. It's one browser → one LLM.

## Execution

**Working directory rule:** Unless a command here uses an absolute path, run ai-orchestrator commands from the skill root: `~/.openclaw/workspace/skills/ai-orchestrator`.
If you are not already there, run:

```bash
cd ~/.openclaw/workspace/skills/ai-orchestrator
```

Relative paths such as `.daemon-ws-endpoint`, `.profile/`, `.deepseek.json`, and `scripts/setup-daemon.sh` assume this directory.

## Quick Start
```bash
# Simple question
ask-deepseek.sh "What is HTTP?"

# Session (keeps context between questions)
ask-deepseek.sh "Explain OAuth2" --session work
ask-deepseek.sh "What about OpenID Connect?" --session work
ask-deepseek.sh --session work --end-session

# With daemon (fast startup ~35ms vs ~15s cold)
ask-deepseek.sh "Question" --daemon

# Pipe code or long prompts
cat code.py | ask-deepseek.sh "Find bugs"
ask-deepseek.sh --stdin < code.py
ask-deepseek.sh <<'EOF'
Long multi-line prompt here
EOF
```

## When to use ai-orchestrator

| Task | ai-orchestrator | Direct API | Manual browser |
|------|----------------|------------|----------------|
| Code analysis / review | ✅ Fast, no API key | Needs API | ❌ Slow |
| Text analysis / summary | ✅ (with --daemon) | Needs API | ❌ Tedious |
| Brainstorming | ❌ (use Dual Thinking skill) | Needs API | ❌ |
| Web scraping | ❌ Wrong tool | ❌ | ✅ |
| API testing | ❌ Overkill | ✅ | ❌ |
| CAPTCHA solving | ❌ Will fail | ❌ | ✅ (manual) |

**Rule:** Need LLM reasoning without API key → ai-orchestrator.
Need browser tasks (scrape, click, fill forms) → use `agent-browser` skill instead.

**Default site mode:** ai-orchestrator must keep DeepSeek in **Expert** mode whenever the site exposes the `Instant` / `Expert` switch. Treat `Expert` as the canonical default. Do not fall back to `Instant` unless a future implementation explicitly adds an override and the user asks for it.

**Session continuity:** in daemon mode, follow-up requests using `--session NAME` must restore the exact saved DeepSeek `chatUrl` for that session unless `--new-chat` was explicitly requested. Reusing an arbitrary open DeepSeek tab is incorrect because it breaks multi-round review continuity.

## All Flags
| Flag | Purpose |
|------|---------|
| `--session NAME` | Persistent context across requests (keeps chat history) |
| `--daemon` | Use running Chrome daemon (~35ms startup) |
| `--search` | Enable D

_meta.json

{
  "ownerId": "kn71swx2ntmj3me1xjt6vymkdn80m1sa",
  "slug": "ai-orchestrator",
  "version": "2.0.11",
  "publishedAt": 1775816328794
}

PHASE1-MANUAL.md

# AI Orchestrator — Phase 1: Network-First Pipeline

## Architecture

```
┌────────────────────────────────────────────────────────────┐
│                    ask-puppeteer.js                         │
│                                                              │
│  sendPrompt()  →  prepareForRequest()                       │
│     │                  │                                    │
│     │            windowOpen = true                          │
│     │            expectedRequestIds prepared                │
│     │                                                        │
│     ↓                                                        │
│  Page: вставляем текст → Enter                                │
│                                                              │
│  CDP: Network.requestWillBeSent                              │
│    → filter: /completion, POST, postData > 10 chars          │
│    → window = false (caught first only)                      │
│    → expectedRequestIds.add(requestId)                       │
│                                                              │
│  CDP: Network.loadingFinished                                │
│    → if expectedRequestIds.has(requestId) && !resolved:      │
│      → getResponseBody(requestId)                            │
│      → parseDeepSeekBody(raw)                                │
│        └─ DeepSeek custom event-stream:                      │
│           data: {"v":{"response":{"fragments":[{"content":"X"}]}}}
│           data: {"p":"response/fragments/...","o":"APPEND","v":"text"}
│           data: {"v":"char"}                                 │
│         └─ Standard JSON fallback:                            │
│           choices[0].message.content                          │
│         └─ SSE fallback:                                     │
│           data: {"choices":[{"delta":{"content":"X"}}]}       │
│      → resolved = true, result = {text, format}             │
│                                                              │
│  waitForAnswer():                                            │
│    STAGE 1: cdpInterceptor.waitForResponse()                 │
│      → if text >= 2 chars: return immediately               │
│      → else: cleanupState() → STAGE 2                        │
│    STAGE 2: _waitForAnswerDOM() — DOM polling fallback       │
│                                                              │
│  handleContinueButton():                                     │
│    → single page.evaluate() — find Continue button           │
│    → prepareForRequest() BEFORE click                       │
│    → page.mouse.click(x,y)                                   │
│    → network-first Continue → _dedupeDelta()               │
│    → DOM polling fallback if network fails                   │
└────────────────────────────────────────────────────────────┘
```

Key components:
- **Per-request correlation**: `windowOpen` flag + `expectedRequestIds` Set — only catches OUR request
- **p

REFERENCE.md

---
name: ai-orchestrator
description: Launch DeepSeek AI via Puppeteer browser automation with CDP interceptor for full API responses, persistent daemon for fast startup, health checks, graceful shutdown, and PM2 management. Production-ready.
---

# AI Orchestrator — Полный мануал оператора

**Для кого:** ИИ-агенты и операторы. **Статус:** Production-ready, v3.5 (2026-04-03)

## 1. Назначение

Надёжный доступ к DeepSeek AI через Puppeteer:
- **CDP-перехватчик API** — полные ответы без ожидания DOM
- **Persistent демон (PM2)** — подключение за ~35ms (vs ~15s холодный старт)
- **Health check** — auto-restart каждые 5 минут (`daemon-healthcheck.js`)
- **Graceful shutdown** — SIGTERM/SIGINT → корректное закрытие
- **Session persistence** (`--session`) — контекст между запросами
- **Fallback DOM extraction** — если CDP недоступен
- **Continue automation** — автоклик «Продолжить» до 30 раз + fallback через composer
- **Diagnostics** — crash-артфакты, трассировка фаз, метрики памяти
- **Smart rate limit** — экспоненциальный backoff при 429

**Free tier лимит (проверено 2026-04-03):** ~13 000 символов на ответ. Кнопка «Продолжить» может появиться — автоматический клик. Для длинных ответов: разбивай запрос на части через `--session`.

## 2. Быстрый старт

```bash
# Простой запрос
ask-deepseek.sh "Вопрос?"

# Сессия (контекст сохраняется)
ask-deepseek.sh "Вопрос 1" --session work
ask-deepseek.sh "Вопрос 2" --session work   # тот же чат
ask-deepseek.sh --session work --end-session # закрыть

# Демон (быстро, ~35ms)
ask-deepseek.sh "Вопрос" --daemon

# Пайп-поддержка
cat code.py | ask-deepseek.sh "Найди баги"      # pipe
ask-deepseek.sh <<'EOF'                          # heredoc
Длинный
мультитайн промпт
EOF

# Тест без отправки
./ask-deepseek.sh --dry-run
./ask-deepseek.sh "test" --daemon --dry-run
```

### Все флаги
`--session NAME` | `--search` | `--think` | `--new-chat` | `--end-session` | `--daemon` | `--visible` | `--wait` | `--close` | `--debug` | `--verbose` | `--dry-run` | `-h`

## 3. Архитектура

```
ask-deepseek.sh (wrapper: парсит флаги, stdin, дата)
  └─ ask-puppeteer.js (ядро ~1600 строк)
       ├─ setupDeepSeekInterceptor() — CDP Network API перехват
       ├─ sendPrompt() — отправка через DOM events + Enter
       ├─ waitForAnswer() — основной цикл: CDP → DOM polling → idle timeout
       ├─ extractBestText() — извлечение последнего текста со страницы
       ├─ extractAnswerFromDOM() — полный ответ из DOM
       ├─ handleContinueButton() — кнопка «Продолжить» + fallback через composer
       ├─ ensureBrowser(session, diag) — 3 попытки: демон → сессия → новый
       └─ ask(q) — главная функция + диагностика
  ├─ diagnostics.js (единый: trace + metrics + counters)
  ├─ deepseek-daemon.js (PM2: постоянный Chrome headless)
  ├─ daemon-healthcheck.js (PM2 cron: каждые 5 мин + авто-ресарт)
  └─ auth-check.js (DOM-проверка авторизации, score-based)
```

**Диагностический конвейер:**
```
ask()
 ──► new Diagnostics()           ← создаёт traceId, логи

skill-card.md

## Description:

AI Orchestrator provides DeepSeek AI access through Puppeteer browser automation with a CDP interceptor, persistent daemon mode, health checks, graceful shutdown, PM2 management, and `.deepseek.json` configuration.

This skill is ready for commercial/non-commercial use.

## Publisher:

[ciklopentan](https://clawhub.ai/user/ciklopentan)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, agent operators, and external users use this skill to ask DeepSeek for code analysis, review, generation, text analysis, summarization, and translation through a local CLI and browser automation workflow.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Prompts and piped files are sent to DeepSeek through browser automation.

Mitigation: Use only with content approved for DeepSeek, and avoid sending sensitive or regulated files unless that use is explicitly allowed.

Risk: The skill uses a persistent authenticated Chromium daemon with local profile, session, endpoint, log, and diagnostic state.

Mitigation: Run it under an isolated OS user or container, restrict permissions on `.profile`, `.sessions`, and `.daemon-ws-endpoint`, and avoid boot persistence unless it is required.

Risk: Unsafe local file and browser-control practices need review before use on shared or sensitive machines.

Mitigation: Review the release before installation, update the dependency tree, validate session names before use, and run health checks in an isolated environment.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/ciklopentan/skills/ai-orchestrator)
- [AI Orchestrator reference manual](artifact/REFERENCE.md)
- [Network-first pipeline manual](artifact/PHASE1-MANUAL.md)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]

**Output Format:** [Plain text or Markdown on stdout, often with code blocks; optional diagnostics may be written as JSON or JSONL files.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [DeepSeek free-tier responses can be truncated; long work should be split across sessions.]

## Skill Version(s):

2.0.11 (source: server release metadata and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to AI Orchestrator and adjacent AI workflows.