Skip to content

feat(claws): import Grok bot recipes, URLs, and owned bots - #174960

Closed
Patrick-Erichsen wants to merge 4 commits into
claw-local-package-installfrom
grok-bot-claw-import
Closed

Patrick-Erichsen wants to merge 4 commits into
claw-local-package-installfrom
grok-bot-claw-import

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Direction update: The requested product is now a Hermes-style one-time configuration migration. Its replacement implementation is #178769, built on #178768. This PR retains the earlier individual-Claw implementation and proof as history; its generic local-install dependency #174959 is independent.

What Problem This Solves

Users cannot turn a Grok Bot recipe, share URL, or marketplace bot into an OpenClaw Claw, including its instructions and appearance.

User Impact

Adds the bundled grok-bot CLI and conversational import skill. Complete recipes preserve supplied instructions, memory, full skill bodies, name/avatar, getting-started instructions, routines, and integration requirements. Packages can be converted offline and installed through the running gateway's native Claw Add flow.

--all imports available content from the signed-in account's owned bots. These results are explicitly partial: Grok's available owner read APIs do not expose complete memories or original integration requirements. Both omissions are recorded in results and installed setup notes. Rooms and teammates' bots are excluded.

Routines remain disabled, and integrations require explicit setup. Source conversations and credentials are not migrated. macOS account reuse uses the active Grok Bot account and normal Keychain access on explicit request; an environment token is also supported.

Why This Change Was Made

recipe JSON / share or marketplace URL / owned-bot roster
  → source reader with explicit completeness
  → portable Claw package
  → native gateway plan/apply

Grok-specific translation and authentication stay in the plugin. The generic local-package Add capability is supplied by the preceding stack layer. Marketplace summaries are never substituted for full recipes.

Evidence

  • Before: the marketplace URL was treated as a local path and returned read_failed.
  • After: the real Stalk Bot URL converted 9 memories, 19 full skills, 3 routine definitions, and 6 integration requirements. Native installation and a real agent turn succeeded. Its full 3,459-character MEMORY.md was loaded without truncation.
  • At e33e4d5ca2b, a fresh native installation and real local-model turn succeeded; the correct Stalk Bot name and source avatar rendered in the running Control UI. Source and installed screenshots are attached below.
  • First-run context proof: all 236 characters of the custom BOOTSTRAP.md and all 3,459 characters of MEMORY.md were injected without truncation, with all 19 imported skills advertised. The setup file still exists after the turn.
  • Smoke-test limit: the small local model answered but did not follow the requested setup-file read/quotation. The package records the correct six integration requirements; a completed setup conversation and external integration execution were not qualified.
  • Generated config baseline increases by exactly 21 standard plugins.entries.grok-bot-import nodes, with no bespoke config options. Removing those nodes reproduces the previous hashes exactly; core/channel budgets are unchanged. Plugin inventory/reference pages are generator-owned.
  • Full build (including SDK exports/declarations) passed; final runtime rebuild passed at e33e4d5ca2b. The final native first-run fix passed 53 gateway/workspace tests, types, lint, format, and independent review.
  • Before the conflict-only restack, follow-up 7fd50ddca6e passes the exact CI type-aware lint, production typecheck, converter tests (6/6), cycle check, assertion ratchet, formatting and diff checks. It removes a type-only cycle, documents existing object guards, and safely narrows filesystem errors.
  • Focused auth/cache, source selection, account filtering, partial-source reporting, converter/native-package, photo, and installation failure tests pass; targeted type, lint, and formatting checks pass.
  • Restacked onto captured main acd27635 to resolve a real stack merge conflict in generated configuration fingerprints. Range-diff confirms all five runtime/behavior commits are patch-identical; only the generated combined/core hash context changes. Prior runtime and focused-check evidence is retained with its original revision; current-head CI is tracked separately.
  • Source authorization: 21 focused source/client/import tests pass, including HTTP 401/403 rejection before any package output or gateway call, and exclusion of teammates/rooms/nonowners before per-bot reads. A canonical CLI call with a synthetic invalid token reached the real roster API, received HTTP 401, exited 1, and created no export directory. This proves invalid-token rejection; no real credential was revoked.
  • Gateway authorization: the existing real WebSocket/native Add test now covers local paths. Admin installation succeeds, nonadmin plan/apply is rejected, and actual device-token revocation during dependency installation prevents agent creation and plugin publication. The test passes; no authority mock replaces the Gateway checks. Staging/temporary writes are outside that final-effect assertion.
  • Additional private-QA build scope: runtime/UI artifacts were generated, but the full command exits 1 on the private-QA SDK size budget. A separate captured-main build produces the exact same 456 public declaration files (all per-path SHA-256 hashes equal), 5,440,829 bytes versus a 5,340,536-byte cap. This failure is inherited; no budget was changed.
  • Production local discovery succeeded against Grok Bot 0.70.2, finding one account and 11 cached roster entries (including rooms). No credentials or network calls are needed for local-only discovery.
  • Final live owned-bot account qualification is pending a normal Keychain unlock after 1Password approval timeouts. No source writes were performed. Owner API schemas and the complete marketplace download were separately verified against the current Grok app.

Merge risk: reversible plugin addition. Grok's app/API formats are not a published compatibility contract; incompatible responses fail visibly. Imported instructions may reference Grok-specific capabilities that need OpenClaw equivalents.

Stalk Bot source icon in the Grok marketplace

Imported Stalk Bot after first-run setup fix; identity and response smoke proof

@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@Patrick-Erichsen Patrick-Erichsen changed the title grok bot claw import feat(claws): import Grok bot recipes, URLs, and owned bots Oct 17, 2026
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 17, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 1c12a467bb12992a6c32f478e6f094c41c1eb892, but the PR head is now 85e95cc55e74e04c3bc83d0b24b1e61c957822db. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (2 earlier review cycles)
  • reviewed 2026-10-17T02:13:31.908Z sha 7fd50ddca6e4f90de95cc960f9530d4a81b5fb1b :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-17T02:19:24.107Z sha 1c12a46 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 17, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

The authorization follow-up is published at 85e95cc55e7, with native Gateway proof in prerequisite 50f3ddd2761. Twenty-one focused source/client/import cases pass: 401/403 rejection produces no package output or Gateway calls, and teammate/room/nonowner entries are excluded before per-bot reads. A canonical CLI request with a synthetic invalid token reached the real source API, received HTTP 401, and created no export directory. This is invalid-token rejection; no real source credential was revoked.

The real WebSocket Gateway test now exercises local packages: administrator installation succeeds, read-only plan/apply is rejected, and actual device-token revocation prevents pending agent creation and plugin publication. Its types/lint/format checks pass. The stack conflict is resolved and both branches are mergeable.

Successful live owned-account bulk import remains unqualified pending normal Keychain access; the PR body retains that limitation. I have not requested another importer review while that material proof gap remains. No source data was changed and no active credential prompt remains.

@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant