一个 Grok Build 插件,可将任务委托给本地的 Claude Code 或 Codex CLI,使用户无需离开 Grok 会话即可利用外部 AI 编码代理。

Stars

13

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

MIT

最近更新

2026-07-14

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它将两个强大的 AI 编码工具(Claude Code 和 Codex)无缝集成到 Grok Build 中,在提供安全默认设置和干净的后台任务管理的同时,无需离开 Grok 界面即可执行复杂的代码生成和分析任务。

适合谁使用

  • 希望扩展 Grok Build 功能的外部 AI 代理用户
  • 已在使用 Claude Code 或 Codex、并希望统一聊天界面的开发者
  • 实践 AI 辅助开发和代码审查工作流的团队
  • 寻找 Grok Build 委托插件参考实现的插件开发者

典型使用场景

  • 通过 `/delegate-claude review` 或 `/delegate-codex review` 对仓库执行自动化代码审查
  • 使用详细指令实现特定代码更改(rescue),同时保留完整的会话上下文
  • 通过 `overview` 操作映射项目的结构、入口点和用途
  • 运行带有故意怀疑性提示的对抗性代码审查,以发现细微问题

项目优势

  • 提供两个便捷的斜杠命令(`/delegate-claude`、`/delegate-codex`),动作在两个引擎上保持一致
  • 支持多种预定义操作(setup、overview、review、adversarial、rescue),并在运行时自动发现模型和努力级别
  • 通过只读默认值(非写入操作)和受限写入权限(rescue 默认无 shell)确保安全性
  • 取消任务时通过终止整个引擎进程组来防止孤儿进程,清理干净

使用前须知

  • 需要 Node.js 18+ 以及 Linux 或 macOS(若设置 `GROK_DELEGATE_ALLOW_WINDOWS=1` 则支持 Windows)
  • 依赖用户已安装并认证 `claude` 和/或 `codex` CLI,且已在 PATH 中
  • 默认写入权限故意受限(Claude rescue 无 shell,Codex 为 workspace-write 沙箱),可能限制复杂用例

README 快速开始

grok-delegate

grok-delegate is a Grok Build plugin that hands work to local Claude Code or Codex while you stay in the Grok session.

The delegate runs as a normal background task: tools and progress stream into the task log, the result comes back when it finishes, and canceling the task stops the engine’s whole process group so nothing is left orphaned.

This repository is the Grok Build Extras marketplace. The installable plugin package is under plugins/delegate/.

▶ Full demo (MP4, ~49s) · also in-repo as assets/demo.mp4


What you get

Two slash commands — /delegate-claude and /delegate-codex — that hand a job to the matching local CLI without leaving Grok. Progress shows up in the background-task pane the same way any other long Grok job does: starting, thinking, tool, writing, completed. When the run finishes, the answer is in that task. When you cancel it, the companion stops the whole engine process group so nothing is left running in the background.

Both commands share the same actions:

ActionIntentCan write files?
setupCheck that the CLI is installed, authenticated, and what models it knows aboutNo
overviewMap the repo — purpose, layout, entry pointsNo
reviewReview the current git scope for concrete problemsNo
adversarialSame as review, with a deliberately skeptical briefNo
rescueImplement a specific changeYes, under the defaults below

Put flags before --. Everything after -- is focus text for the delegate, never options. Models and effort levels are read from your installed CLIs at runtime, not hard-coded in the plugin.

/delegate-claude setup
/delegate-codex setup

/delegate-claude overview --model sonnet --effort low --trust-project --
/delegate-codex review --model gpt-5.6-sol --effort high -- focus on auth

/delegate-claude rescue --model opus --effort high -- fix the flaky pagination test
/delegate-codex rescue -- implemen

项目描述

Grok Build plugin: hand work to local Claude Code or Codex as a background task

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

7-e1even
精选
7-e1even GitHub avatar

learn-agent

A collection of notes on building coding agents, derived from the production development of the desktop agent Reina, with each mechanism simplified into a zero-dependency, single-file Node.js demo.

AI 与机器学习大语言模型
218
makecindy
精选
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI 与机器学习大语言模型
958
0xwilliamortiz
精选
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI 与机器学习大语言模型
577