transcendr/slopware-skills / plugins/codex-app-link/skills/codex-app-link
codex-app-link
VerifiedCreate Codex threads and send messages into Codex desktop-app (GUI) threads, then wait for and read their replies, so Claude can orchestrate Codex agents. Use when the user asks to message, direct, steer, start, check on, or hand work to a Codex thread or agent (often given as a thread ID like 01a10323-9edd-...), or to run Codex as a sub-agent.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 17.5 KB |
| references/companions.md | markdown | 4.6 KB |
| references/operational.md | markdown | 9.9 KB |
| references/strategic.md | markdown | 6.6 KB |
| scripts/codex-progress.pyexecutable | script | 2.0 KB |
| scripts/codex-thread.mjsexecutable | script | 70.2 KB |
scripts/codex-progress.py
View on GitHub#!/usr/bin/env python3
"""Stream a Codex thread's progress: assistant notes, formal questions, approval signals, turn end, silence."""
import glob, json, os, sys, time
tid = sys.argv[1]
stall = int(sys.argv[2]) if len(sys.argv) > 2 else 240
home = os.environ.get("CODEX_HOME") or os.path.expanduser("~/.codex")
files = glob.glob(os.path.join(home, "sessions", "**", f"*{tid}*.jsonl"), recursive=True)
path = max(files, key=os.path.getmtime)
f = open(path); f.seek(0, 2)
last_write, warned = time.time(), False
MESSAGE_LIMIT = 2000 # longest printed line; long assistant notes must arrive whole
def out(s): print(s[:MESSAGE_LIMIT].replace("\n", " "), flush=True)
while True:
line = f.readline()
if not line:
if time.time() - last_write > stall and not warned:
out(f"SILENT {int(time.time()-last_write)}s: no session writes (may be reasoning, or blocked)")
warned = True
time.sleep(1); continue
last_write, warned = time.time(), False
try: o = json.loads(line)
except Exception: continue
p = o.get("payload") or {}
t = p.get("type") or o.get("type")
ts = o.get("timestamp", "")[11:19]
if t == "message" and p.get("role") == "assistant":
c = p.get("content") or []
txt = " ".join(x.get("text", "") for x in c if isinstance(x, dict))
if txt.strip(): out(f"{ts} NOTE {txt}")
elif t == "function_call" and str(p.get("name", "")).startswith("request_user_input"):
# Async questions don't block the turn: answer with `codex-thread send <id> --steer`.
try: qs = json.loads(p.get("arguments") or "{}").get("questions", [])
except Exception: qs = []
for q in qs:
opts = " | ".join(x if isinstance(x, str) else str(x.get("label", x)) for x in q.get("options", []))
out(f"{ts} QUESTION {q.get('title', '')}" + (f" [options: {opts}]" if opts else ""))
elif t in ("task_complete", "turn_aborted"):
out(f"{ts} TURN_END {t}")
else:
if t and "approval" in t.lower():
out(f"{ts} APPROVAL_WAIT {t}: {json.dumps(p)}")
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |