Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/handong66/grok-plugin-codex/groknpx skills add handong66/grok-plugin-codex --skill grokgit clone --depth 1 https://github.com/handong66/grok-plugin-codexWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/handong66/grok-plugin-codex/grok)<a href="https://agentmods.dev/skills/handong66/grok-plugin-codex/grok"><img src="https://agentmods.dev/badge/skills/handong66/grok-plugin-codex/grok.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00079 | $0.02080 |
| Opus 5 | $0.00039 | $0.01040 |
| Sonnet 5 | $0.00016 | $0.00416 |
| Haiku 4.5 | $0.00008 | $0.00208 |
Grade A, and why
grok scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Grok Capability Layer
Operate the installed grok_* tools according to their current schemas. Codex owns scope, workspace state, verification, git, and final judgment.
Required contract
- Use
grok_checkwhen CLI discovery, compatibility, login, or model listing is uncertain. TreatcliDiscovered,authenticated,entitled,modelsListed, andcallableas separate facts.authenticatedandentitledaretrue,false, or the string"unknown"— nevernull— so never read an undetermined fact as a negative one;entitled: falsemeans the account listed models but has no quota.modelInvocationTested/callablestayfalse/nullunless you passprobeInvocation: true, which spends real quota on one bounded call; do not enable it routinely. - Configure a custom executable through trusted MCP environment variable
GROK_BIN; never accept a binary path from a task prompt or tool argument. - Pass an explicit absolute
cwdfor workspace, session, and export operations. That value grants only this tool call access to the exact canonical directory; it need not already be an advertised MCP root and is not remembered. This does not grant operation approval:alwaysApprovestays opt-in, while review and adversarial-review calls remain read-only plan mode without subagents. They also require an explicit non-empty target. Spell ittargetor, equivalently,prompt—grok_rescuetakesproblemorpromptthe same way — and pass exactly one of the pair (a string or an array of strings, joined into bullets). Onlycwdis required by the schema; a missing, empty, or doubled target is the non-retryabletarget_required, and one over the limit istarget_too_largewithdetails.chars/details.maxChars. backgrounddefaults totrueforgrok_run,grok_review,grok_adversarial_review, andgrok_rescue, and tofalseforgrok_continue; a background start returnsdata.background === trueanddata.job.id. Call status, result, or cancel with thatjobIdonly; job state is private and independent of workspacecwd.background: falseblocks the MCP call for up totimeoutMsplus a 10 s grace and then returnsforeground_wait_timeoutcarrying the same job id. An omittedtimeoutMsdefaults per kind (run/continue 180000, review/rescue 240000, adversarial_review 300000); an explicit value is never clamped, and every envelope echoeseffectiveTimeoutMs/effectiveMaxTurns.- Accept an answer only when
data.resultComplete === true; it already accounts for truncation.outputSummary.outputTruncatedalone does not disqualify an answer — it usually means tool-call echo overflowed the capture window — whileoutputSummary.textTruncatedmeans answer text was dropped. The plugin normalisesstopReasoncase- and separator-insensitively (end_turn,EndTurn,cancelled,Cancelledare all understood); never string-match the raw value yourself. Treatcancelled_outputandmax_turns_reachedas partial. Usedata.finalText, not previews or raw log tails;grok_resultreturns the rawstdoutTail/stderrTailonly when you passincludeRawTail: true. grok_adversarial_reviewacceptsthreatModel: the operating scope the review must judge against. Findings outside it are labelled out-of-model and are advisory — they must never block, force NO_GO, or interrupt work in progress.grok_finalize({ cwd, jobId })is the one-call form of the recovery: one turn, no tools, complete answer, anything unverified markedUNVERIFIED. Use it fortimeout,max_turns_reached,cancelled_output, andpermission_denied_headlessinstead of rerunning the task. It inherits the read-only mode of the session it resumes.- Every non-complete result carries a recovery handle:
error.details.recoveryon a failed foreground call anddata.recoveryongrok_result, shaped{ jobId, grokSessionId, partialTextChars, suggested: { tool: "grok_finalize", args }, fallback: { tool: "grok_continue", args } }. Run that suggestion as given — one turn, no tools, complete answer — or thefallbackif you only callgrok_continue; neither asks for a shortened answer. Do not rerun the task or raise the budget. The partial answer is never destroyed:error.details.finalTextRefis the job id andgrok_resultreturns the complete capturedfinalTextwhateverresultCompletesays. - When
outputSummary.stopReasonRecognised === falsethe plugin accepted an unfamiliar stop reason and said so inwarnings. The answer is still returned; reject it only if your task needs strict vocabulary matching. - Continue only a known
sessionIdor explicitly request the latest session. Continuing a session that this plugin created for a review, adversarial review, or rescue inherits enforced read-only plan mode, andalwaysApproveon such a session is refused with the non-retryablereadonly_session_escalation; when a namedsessionIdis unknown to the plugin the call proceeds with a warning saying the original mode could not be verified. continueLatest: truenames no session, so the plugin infers the target from the newest session it started in thiscwd, and that inference may only restrict, never certify. If the inferred session was read-only,alwaysApproveis refused withreadonly_session_escalationanderror.details.inferredFromLatestJob === true(non-retryable — do not retry it), and a plain continuation inherits plan mode. EverycontinueLatestcall also warns that the resumed session could not be verified, because the CLI may resume a session this plugin never created. The remedy in both cases is one parameter: pass the explicitsessionIdof the session you mean, or start a new one withgrok_run. Export returns Markdown; the plugin does not write a caller-selected output file.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed 09ac3563461f
- 3d ago First seen · 37 lines · 79 tokens per session scan A 0e4be906e3f9
grok is a skill published in the GitHub repository handong66/grok-plugin-codex (0 stars, last pushed 2d ago), licensed MIT. It adds 79 tokens to every session and 2,080 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
agent-host-e2e-tests
Use when writing, recording, updating, validating, or troubleshooting the agent host end-to-end tests under src/vs/platform/agentHost/test/node/e2e (black-box tests that drive the whole agent host over the AHP protocol, using a CapiReplayProxy record/replay system for Claude/Copilot/Codex). Covers adding a…
lint-js
Lint JS/TS code only. Use before opening a PR when only JavaScript or TypeScript files were changed (no Rust).
schema-exploration
Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.
nemoclaw-contributor-implement-issue
Implement an accepted NemoClaw GitHub issue in the current checkout. Use when a user asks to pick up an issue for implementation, implement or fix a named issue, or add the issue's tests. Confirm accepted scope, deliver the smallest independently valuable capability slice, and record validation and remaining gates…
analyze-market
Perform a market analysis for a product category or segment. Trigger on: market analysis, market size, TAM SAM SOM, market opportunity, industry analysis.
diagnose
Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.