codex-cli
यह क्या करती है
यह स्किल AI को दिखाती है कि Codex को non-interactive मोड में कोडिंग, विश्लेषण या समीक्षा के सहायक के रूप में कैसे चलाएँ। यह उन डेवलपरों के लिए है जो चाहते हैं कि कोई दूसरा मॉडल काम करे या उसकी जाँच करे।
कब इस्तेमाल करें
- ✓जब आप कोडिंग या रीफ़ैक्टरिंग का काम Codex को सौंपकर उसका नतीजा वापस पाना चाहते हों।
- ✓जब आप चाहते हों कि कोई दूसरा मॉडल आपके बदलावों की समीक्षा करे और समस्याएँ बताए।
- ✓जब आप लंबा और दोहराव वाला कोडिंग काम चलाना चाहते हों और इस बीच खुद योजना बनाते रहना चाहते हों।
Skill का लिंक
https://github.com/kortix-ai/suna/blob/dev/.agents/skills/codex-cli/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह रीफ़ैक्टर Codex को सौंपिए और बताइए उसने क्या बदला, ताकि मैं जाँच सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI एक साफ़ काम लिखता है, चुने हुए फ़ोल्डर में sandbox सेटिंग के साथ codex exec चलाता है, अंतिम संदेश फ़ाइल में सहेजता है, और फिर बदली हुई फ़ाइलें और टेस्ट खुद जाँचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
The golden rule: Codex's self-report is a claim, not the truth. Always capture its output, then independently verify the artifacts yourself (read the files, re-run the tests) before treating the task as done.
Verified available on this machine: codex-cli 0.137.0, logged in via ChatGPT
(no API key needed). Confirm with codex login status.
</overview>
codex exec \
--cd <workdir> \
--sandbox <read-only|workspace-write|danger-full-access> \
-o /tmp/codex_<rand>.txt \
"your metaprompt here" 2>>/tmp/codex_<rand>.log
- Prompt as the final arg, OR pipe via stdin:
echo "$PROMPT" | codex exec -(good for long/generated prompts). If both are given, stdin is appended. -o, --output-last-message <file>— writes ONLY Codex's final message to a file. This is your clean capture; read it back, don't scrape the TUI stream.2>>/tmp/...log— Codex streams progress/reasoning to stderr; the final message goes to stdout. Redirect stderr to a log so it doesn't bloat your context. Generate the suffix withopenssl rand -hex 4.--cd <dir>— Codex's working root. Scope it to the relevant subdir (e.g.apps/api), not the whole monorepo, so it stays focused.--skip-git-repo-check— only needed when running outside a git repo.</the-core-command>
read-only(default) — Codex can read/grep/run read-only commands but cannot edit files or hit the network. Use for review, analysis, planning, "find the bug", second opinions.workspace-write— can edit files in--cd(and--add-dirpaths) and run commands, but no network by default. Use for real implementation/refactors.danger-full-access— no sandbox at all. Avoid; only for throwaway/ephemeral dirs you fully control.
Approvals: in exec mode Codex does not prompt for approvals. For a fully
autonomous run with no gating at all, add
--dangerously-bypass-approvals-and-sandbox. This is powerful — only use it when
the user has explicitly authorized autonomous edits AND the --cd is scoped, or
when running in an already-sandboxed/throwaway dir. When unsure, ask the user
which sandbox tier before running with write access.
</sandbox-tiers>
codex exec resume --last "now also update the tests" # most recent session
codex exec resume <session-id> "..." # a specific one
The session id is printed at the start of each exec run. Use resume for
multi-turn delegation (draft → refine → fix) instead of re-sending all context.
</session-resume>
अक्सर पूछे जाने वाले सवाल
क्या Codex को मेरे कंप्यूटर की पूरी पहुँच मिलती है?
नहीं। वह हर रन के लिए तय sandbox स्तर के भीतर काम करता है, जैसे केवल-पढ़ने या workspace में लिखने का स्तर।
क्या मुझे OpenAI API key चाहिए?
स्किल कहती है कि ChatGPT लॉगिन काफ़ी है, और उसे codex login status कमांड से जाँचा जा सकता है।
क्या मुझे Codex की रिपोर्ट पर भरोसा करना चाहिए?
नहीं। स्किल कहती है कि उसकी अपनी रिपोर्ट एक दावा है, इसलिए AI फ़ाइलें जाँचे और टेस्ट खुद दोबारा चलाए।
जानकारी
लेखक का मूल विवरण
Drive OpenAI's Codex CLI (`codex exec`) as a non-interactive coding sub-agent from inside Claude Code. Load WHENEVER you want to delegate a coding/analysis/refactor task to Codex, get a second opinion / adversarial review from another model, fan out parallel agents across files or worktrees, or run a long mechanical job while you stay the planner. Covers the exact `codex exec` flags, sandbox tiers, output capture, JSON/schema modes, session resume, parallel fan-out, and the mandatory "delegate → capture → independently verify, never trust the self-report" supervision loop.
repo: kortix-ai/suna
लोकप्रियता
- GitHub स्टार
- 20k
- रैंकिंग में स्थान
- #10371
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
claude-code
20kआपके एजेंट को कोडिंग, समीक्षा या योजना का काम Anthropic के Claude Code CLI को सौंपने देती है, और नतीजा जाँच के लिए वापस लेती है।
commit-dis
20kआपके एजेंट को इस चैट में किए गए बदलावों को आपकी मौजूदा Git branch पर एक commit में सहेजने देती है, बिना push किए या नई branch बनाए।
composio
20kआपके एजेंट को Composio से Gmail, Slack, GitHub और Notion जैसे ऐप्स जोड़ने में मदद करती है, चाहे वह आपका अपना एजेंट हो या आपका बनाया प्रोडक्ट।
e2e
20kआपके एजेंट को सिखाती है कि साधारण भाषा के लक्ष्यों और सटीक जाँच के साथ वेब या मोबाइल ऐप के end-to-end टेस्ट कैसे लिखें।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।