Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/grok-bot-events-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@ on:
paths:
- "polyfills/events/grok-bot/**"
- "polyfills/events/core/**"
- "polyfills/events/muse/src/poll.ts"
- "polyfills/skills/grok-bot/owner-login/**"
- "tools/muse-grok/runtime.ts"
- "tools/muse-grok/config.ts"
- "polyfills/server-cards/codex/src/mcp.ts"
- "polyfills/events/claude-code/test/fixture-events-server.ts"
- "tools/bundle-notices.mjs"
- ".github/workflows/grok-bot-events-test.yml"
pull_request:
paths:
- "polyfills/events/grok-bot/**"
- "polyfills/events/core/**"
- "polyfills/events/muse/src/poll.ts"
- "polyfills/skills/grok-bot/owner-login/**"
- "tools/muse-grok/runtime.ts"
- "tools/muse-grok/config.ts"
- "polyfills/server-cards/codex/src/mcp.ts"
- "polyfills/events/claude-code/test/fixture-events-server.ts"
- "tools/bundle-notices.mjs"
- ".github/workflows/grok-bot-events-test.yml"
Expand All @@ -34,6 +44,9 @@ jobs:
- run: npm ci
working-directory: polyfills/events/core
- run: npm ci
- run: npm ci --ignore-scripts
working-directory: polyfills/skills/grok-bot/owner-login
- run: npm test
- run: npm run build && git diff --exit-code -- plugin
- run: node ../../../tools/bundle-notices.mjs . --plugin plugin --entry src/bridge.mjs --bundle dist/bridge.mjs --check
- run: node build.mjs --check
- run: node ../../../tools/bundle-notices.mjs . --plugin plugin --entry src/cli.mjs --bundle dist/bridge.mjs --check
- run: node ../../../tools/bundle-notices.mjs . --plugin . --entry src/cli.mjs --bundle dist/watch.mjs --check
121 changes: 121 additions & 0 deletions .github/workflows/muse-grok-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Muse Code and Grok Bot adapters
on:
push:
paths: &paths
- 'polyfills/ard/**'
- 'polyfills/events/**'
- 'polyfills/server-cards/**'
- 'polyfills/skills/**'
- 'polyfills/tasks/**'
- 'muse-marketplace.json'
- '.agents/plugins/marketplace.json'
- 'tools/bundle-notices.mjs'
- 'tools/muse-grok/**'
- 'tools/formal-verification/**'
- 'docs/muse-grok.md'
- 'docs/media/demos/muse-grok/**'
- '.github/workflows/muse-grok-test.yml'
pull_request:
paths: *paths
permissions:
contents: read
jobs:
safety-models:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
with:
node-version: 22
- name: Check the host models and negative controls with pinned Everystate
run: |
npm ci --prefix tools/formal-verification --ignore-scripts
node tools/muse-grok/model/check.mjs
node tools/muse-grok/skill-trace.mjs
mac-observer:
runs-on: macos-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
with:
node-version: 22
- name: Verify the Grok connector contract across publisher installation
run: node --test tools/muse-grok/grok-connector-contract.test.mjs
- name: Verify publisher login and watch authorization across both hosts
run: |
npm ci --prefix polyfills/skills/grok-bot/owner-login --ignore-scripts
npm ci --prefix polyfills/events/core
npm ci --prefix polyfills/events/codex
node --test tools/muse-grok/protected-events.test.mjs
- name: Verify Grok saved rows and build the permissioned observer
working-directory: tools/muse-grok/test-support/grok-mac
run: |
swiftc SavedPublisherScreen.swift ScreenTests.swift -o "$RUNNER_TEMP/screen-tests"
"$RUNNER_TEMP/screen-tests"
sh build-observer.sh "$RUNNER_TEMP/AgentPolyfill Grok Discovery.app"
sh build-companion.sh "$RUNNER_TEMP/AgentPolyfill Connected Guides.app"
packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
with:
node-version: 22
- name: Install locked dependencies
run: |
for dir in skills/codex skills/core tasks/core events/core events/codex events/muse ard/codex server-cards/codex server-cards/grok-bot; do
npm ci --prefix "polyfills/$dir"
done
- name: Verify publisher login and credential isolation
working-directory: polyfills/skills/grok-bot/owner-login
run: |
npm ci --ignore-scripts
node --test session.test.mjs desktop.test.mjs revocation.test.mjs
- name: Verify bundles, types and discovery tests
run: |
node --test tools/muse-grok/catalog-stream.test.mjs polyfills/skills/grok-bot/catalog-hints.test.mjs
node tools/muse-grok/build.mjs --check
node tools/bundle-notices.mjs polyfills/skills/muse --esbuild-from polyfills/skills/codex --plugin plugin --entry src/reference.ts --entry src/suggest.ts --entry src/native-open.ts --bundle 'dist/{server,user-prompt-submit,native-open}.mjs' --check
node tools/bundle-notices.mjs polyfills/tasks/muse --esbuild-from polyfills/skills/codex --plugin plugin --entry src/tasks.ts --bundle dist/server.mjs --check
node tools/bundle-notices.mjs polyfills/events/muse --esbuild-from polyfills/skills/codex --plugin plugin --entry src/monitor.ts --entry src/helper.ts --entry src/muse-prompt-hook.ts --entry src/monitor-question-hook.ts --entry src/monitor-stop-hook.ts --bundle 'dist/{server,inbox,user-prompt-submit,monitor-question,monitor-stop}.mjs' --check
node --test polyfills/events/muse/test/recurring.test.ts
polyfills/skills/codex/node_modules/.bin/tsc -p tools/muse-grok
for dir in ard/muse server-cards/muse server-cards/grok-bot; do
npm --prefix "polyfills/$dir" run typecheck
npm --prefix "polyfills/$dir" test
done
- name: Install the independent Tasks publisher
run: |
python3 -m venv "$RUNNER_TEMP/fastmcp"
"$RUNNER_TEMP/fastmcp/bin/pip" install --quiet --require-hashes -r polyfills/tasks/codex/test/interop/requirements.txt
- name: Exercise both packaged transports with FastMCP
run: |
"$RUNNER_TEMP/fastmcp/bin/python" polyfills/tasks/codex/test/interop/fastmcp_server.py 48763 > "$RUNNER_TEMP/fastmcp.log" 2>&1 &
publisher=$!
trap 'kill "$publisher" 2>/dev/null || true' EXIT
for attempt in {1..60}; do
kill -0 "$publisher" || { cat "$RUNNER_TEMP/fastmcp.log"; exit 1; }
if curl -s -o /dev/null --max-time 1 http://127.0.0.1:48763/mcp; then break; fi
sleep 1
done
python3 tools/muse-grok/package.py --kit "$RUNNER_TEMP/transport-kit.zip"
unzip -q "$RUNNER_TEMP/transport-kit.zip" -d "$RUNNER_TEMP/transport"
MUSE_GROK_TEST_KIT="$RUNNER_TEMP/transport/agentpolyfill-hosts" MUSE_GROK_FASTMCP_URL=http://127.0.0.1:48763/mcp node --test tools/muse-grok/integration.test.mjs
- name: Install the five packages with Muse and verify the shared plugins in Codex
run: |
mkdir "$RUNNER_TEMP/muse-bin"
curl --fail --location --retry 2 'https://lookaside.facebook.com/lookaside/muse/download/?channel=muse&version=1.4.25-R9361.1&file=muse-x86-linux' -o "$RUNNER_TEMP/muse-bin/muse"
echo "c1b728fb9732503c5e1869e3ad2f2c9bdb5b2638fb4cf398d6e2c46aa6d8f94a $RUNNER_TEMP/muse-bin/muse" | sha256sum --check
chmod +x "$RUNNER_TEMP/muse-bin/muse"
PATH="$RUNNER_TEMP/muse-bin:$PATH" node tools/muse-grok/marketplace.mjs --check
npm install --prefix "$RUNNER_TEMP/codex" --no-audit --no-fund @openai/codex@0.172.0
node tools/muse-grok/codex-ignores-muse.mjs --codex "$RUNNER_TEMP/codex/node_modules/.bin/codex"
- name: Verify the install archive and private team upload
run: |
python3 tools/muse-grok/package.py --kit "$RUNNER_TEMP/kit.zip"
python3 tools/muse-grok/package.py --kit "$RUNNER_TEMP/rebuilt.zip"
cmp "$RUNNER_TEMP/kit.zip" "$RUNNER_TEMP/rebuilt.zip"
unzip -q "$RUNNER_TEMP/kit.zip" -d "$RUNNER_TEMP/extracted"
python3 "$RUNNER_TEMP/extracted/agentpolyfill-hosts/tools/muse-grok/package.py" "$RUNNER_TEMP/team.zip"
unzip -t "$RUNNER_TEMP/team.zip"
GROK_TEST_CLI="$RUNNER_TEMP/extracted/agentpolyfill-hosts/polyfills/events/grok-bot/dist/watch.mjs" node --test polyfills/events/grok-bot/test/cli.test.mjs
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,21 @@ codex mcp add huggingface --url https://huggingface.co/mcp
Approve the `huggingface-local-models` skill when prompted. Codex loads it
from Hugging Face and uses its reference files to answer.

[Muse Code and Grok Bot](docs/muse-grok.md) have adapters for Skills, Tasks, Events, Server Cards and ARD. The guide describes what each host can do and includes recordings.

## Polyfills

Select a host adapter for its install commands, examples and limits.

| Polyfill | What you can do | Host adapters |
| --- | --- | --- |
| [**Apps**](https://agentpolyfill.com/guide/apps) | Play DOOM or explore a chart inside a tool call. | [Claude Code](polyfills/apps/claude-code) · [Pi](polyfills/apps/pi) |
| [**Events**](https://agentpolyfill.com/guide/events) | Wake an idle agent when a deployment fails. | [Claude Code](polyfills/events/claude-code) · [Codex](polyfills/events/codex) · [Pi](polyfills/events/pi) · [OpenCode](polyfills/events/opencode) · [Antigravity](polyfills/events/antigravity) · [Copilot CLI](polyfills/events/copilot) · [Hermes](polyfills/events/hermes) · [T3 Code](polyfills/events/t3) · [Grok Bot (experimental)](polyfills/events/grok-bot) |
| [**Skills**](https://agentpolyfill.com/guide/skills) | Load a skill from Hugging Face to choose a model quantization. | [Codex](polyfills/skills/codex) · [Pi](polyfills/skills/pi) · [OpenCode](polyfills/skills/opencode) · [Antigravity](polyfills/skills/antigravity) · [Hermes](polyfills/skills/hermes) |
| [**Server Cards**](https://agentpolyfill.com/guide/server-cards) | Find the MCP servers published by `neon.com` and add Neon Docs. | [Claude Code](polyfills/server-cards/claude-code) · [Codex](polyfills/server-cards/codex) · [Cursor IDE](polyfills/server-cards/codex/README.md#cursor-ide) · [Pi](polyfills/server-cards/pi) · [OpenCode](polyfills/server-cards/opencode) · [Antigravity](polyfills/server-cards/antigravity) · [Copilot CLI](polyfills/server-cards/copilot) · [Hermes](polyfills/server-cards/hermes) |
| [**Events**](https://agentpolyfill.com/guide/events) | Wake an idle agent when a deployment fails. | [Claude Code](polyfills/events/claude-code) · [Codex](polyfills/events/codex) · [Pi](polyfills/events/pi) · [OpenCode](polyfills/events/opencode) · [Antigravity](polyfills/events/antigravity) · [Copilot CLI](polyfills/events/copilot) · [Hermes](polyfills/events/hermes) · [T3 Code](polyfills/events/t3) · [Muse Code](docs/muse-grok.md#install-in-muse) · [Grok Bot (local watcher)](docs/muse-grok.md#set-up-grok-bot) |
| [**Skills**](https://agentpolyfill.com/guide/skills) | Load a skill from Hugging Face to choose a model quantization. | [Codex](polyfills/skills/codex) · [Pi](polyfills/skills/pi) · [OpenCode](polyfills/skills/opencode) · [Antigravity](polyfills/skills/antigravity) · [Hermes](polyfills/skills/hermes) · [Muse Code](docs/muse-grok.md#install-in-muse) · [Grok Bot (experimental discovery)](docs/muse-grok.md#set-up-grok-bot) |
| [**Server Cards**](https://agentpolyfill.com/guide/server-cards) | Find the MCP servers published by `neon.com` and add Neon Docs. | [Claude Code](polyfills/server-cards/claude-code) · [Codex](polyfills/server-cards/codex) · [Cursor IDE](polyfills/server-cards/codex/README.md#cursor-ide) · [Pi](polyfills/server-cards/pi) · [OpenCode](polyfills/server-cards/opencode) · [Antigravity](polyfills/server-cards/antigravity) · [Copilot CLI](polyfills/server-cards/copilot) · [Hermes](polyfills/server-cards/hermes) · [Muse Code](docs/muse-grok.md#install-in-muse) · [Grok Bot (reviewed setup)](docs/muse-grok.md#set-up-grok-bot) |
| [**A2A delegation**](polyfills/a2a) | Delegate work to a configured Agent2Agent peer, answer its questions, and receive the result in the same chat. | [Codex Desktop demo](polyfills/a2a#codex-desktop-demo) · [Verified hosts](polyfills/a2a#host-verification) |
| [**Tasks**](https://agentpolyfill.com/guide/tasks) | Start a long-running MCP tool and return to the session when it finishes or needs input. | [Codex](polyfills/tasks/codex) · [Pi](polyfills/tasks/pi) · [T3 Code with Pi](polyfills/tasks/t3) · [Copilot CLI (opt-in fallback)](polyfills/tasks/copilot) · [OpenCode terminal and Desktop](polyfills/tasks/opencode) · [Hermes](polyfills/tasks/hermes) · [Native support](polyfills/tasks/host-coverage.md) |
| [**ARD**](https://agentpolyfill.com/guide/ard) | Find Buildkite’s MCP server by domain or search an ARD registry. | [Claude Code](polyfills/ard/claude-code) · [Codex](polyfills/ard/codex) · [Pi](polyfills/ard/pi) · [OpenCode](polyfills/ard/opencode) · [Antigravity](polyfills/ard/antigravity) · [Copilot CLI](polyfills/ard/copilot) · [Hermes](polyfills/ard/hermes) |
| [**Tasks**](https://agentpolyfill.com/guide/tasks) | Start a long-running MCP tool and return to the session when it finishes or needs input. | [Codex](polyfills/tasks/codex) · [Pi](polyfills/tasks/pi) · [T3 Code with Pi](polyfills/tasks/t3) · [Copilot CLI (opt-in fallback)](polyfills/tasks/copilot) · [OpenCode terminal and Desktop](polyfills/tasks/opencode) · [Hermes](polyfills/tasks/hermes) · [Native support](polyfills/tasks/host-coverage.md) · [Muse Code](docs/muse-grok.md#install-in-muse) · [Grok Bot (enabled jobs)](docs/muse-grok.md#set-up-grok-bot) |
| [**ARD**](https://agentpolyfill.com/guide/ard) | Find Buildkite’s MCP server by domain or search an ARD registry. | [Claude Code](polyfills/ard/claude-code) · [Codex](polyfills/ard/codex) · [Pi](polyfills/ard/pi) · [OpenCode](polyfills/ard/opencode) · [Antigravity](polyfills/ard/antigravity) · [Copilot CLI](polyfills/ard/copilot) · [Hermes](polyfills/ard/hermes) · [Muse Code](docs/muse-grok.md#install-in-muse) · [Grok Bot (directory lookup)](docs/muse-grok.md#set-up-grok-bot) |

Agentic Resource Discovery (ARD) is a separate draft protocol. Its plugin asks before sending your query to a registry.

Expand Down
Binary file added docs/media/demos/muse-grok/grok-ard-draft.mp4
Binary file not shown.
Binary file added docs/media/demos/muse-grok/grok-events.mp4
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/media/demos/muse-grok/grok-tasks.mp4
Binary file not shown.
Binary file added docs/media/demos/muse-grok/muse-ard.mp4
Binary file not shown.
Binary file added docs/media/demos/muse-grok/muse-cards.mp4
Binary file not shown.
Binary file added docs/media/demos/muse-grok/muse-events-wake.mp4
Binary file not shown.
Binary file added docs/media/demos/muse-grok/muse-skills.mp4
Binary file not shown.
Binary file added docs/media/demos/muse-grok/muse-tasks.mp4
Binary file not shown.
Loading
Loading