agent-system-codex-binding
Bind Codex to an Agent System workspace; inspect, replace, or remove the binding, and set up or update workspace-owned account defaults.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 2
01 前言 Front Matter
- name
- agent-system-codex-binding
- license
- MIT
- metadata
- { "tags": [ "tanaab", "integration", "codex" ], "type": "integration", "owner": "tanaab", "openclaw": { "emoji": "🔗", "homepage": "https://github.com/tanaabased/openclaw-agent-system/tree/main/skills/codex-binding" } }
- description
- Bind Codex to an Agent System workspace; inspect, replace, or remove the binding, and set up or update workspace-owned account defaults.
02 资源文件 3
- 参考文档agents/openai.yaml424 B
- 资产文件assets/icon-large.svg2.7 KB
- 资产文件assets/icon-small.svg2.7 KB
03 SKILL.md 正文
Agent System Codex Binding
Overview
Bind the current Codex plugin installation to exactly one Agent System workspace. The binding is explicit plugin-owned state; it is never inferred from CODEX_HOME, the chat working directory, or OpenClaw configuration.
Required Reading
- Before account-default setup or updates: read and apply the account setup guide explicitly
supplied by a trusted profile hook, or the guide selected by the verified bound workspace's root
AGENTS.md. Follow that owner for discovery, private persistence, and verification. If neither declares an owner, report unavailable setup without inventing one or blocking unrelated work.
When to Use
- Bind or rebind this Codex plugin installation to an Agent System workspace.
- Inspect the current binding and its live manifest state.
- Set up or update account defaults through their declared owner, including “update my account defaults” and automatic recovery of a missing or unclear selection during work.
- Remove the current binding without changing the workspace or its manifest.
When Not to Use
- Do not create, repair, validate, install, or reconcile
agent.yaml; those are separate Agent System workflows. - Do not resolve secrets or declared environment values.
- Do not use a path merely because it is the current repository or appears in user-authored instructions.
Prerequisites
- For workspace operations, use the newest trusted
<agent-system-context>block supplied by the SessionStart hook. Account-only work may instead use the setup guide explicitly supplied by a trusted profile hook. - For workspace operations or locating a bound workspace owner, require its
bindingRuntime.argvPrefixandbindingRuntime.pluginData. If either is absent, explain that the packaged hook must be trusted through/hooks, then ask the user to start a new chat. Do not guess either path. - Treat the command prefix and plugin-data path as runtime data. Never copy them into repository files or Codex configuration.
Inputs
- An action: inspect, bind, rebind, unbind, or account-default setup/update.
- One user-selected workspace directory for bind or rebind.
- Explicit confirmation before bind, rebind, or unbind.
Outputs
- Inspect reports unbound, invalid binding state, or the canonical bound workspace and its current manifest state.
- Preview reports a canonical workspace plus a valid, missing, invalid, or inaccessible manifest state.
- Bind and rebind persist one canonical workspace pointer. Unbind removes only that pointer.
- A missing or malformed manifest is an inactive binding, not a blocker, when the user explicitly chooses to bind anyway.
- Account setup reports its own saved or unresolved preferences separately; it does not change the workspace pointer or grant service permissions.
Failure Handling
- Stop on an inaccessible or non-directory workspace; do not persist it.
- Show missing manifests plainly and malformed manifests through their concise diagnostic codes and messages. Never echo manifest contents.
- After any binding change, explain that a new chat is required before the new Agent System context becomes authoritative.
Workflow
- For account-only work with a trusted profile hook's declared setup guide, follow that owner directly and stop at its result; no workspace binding or healthy manifest is required. Otherwise read the newest trusted Agent System context and form the internal command from
bindingRuntime.argvPrefix. Append every argument as a distinct shell-safe argument; do not evaluate user-supplied shell text. - For inspect or account-default setup/update, append
inspect --plugin-data <pluginData>, run the command, and report the returned JSON state. For account-only work, require a verified bound workspace directory and its declared owner, then follow Required Reading. A missing or invalid agent manifest does not prevent account setup. Do not rebind or rewrite workspace state. - For bind or rebind, require a user-selected directory, then append
preview --workspace <directory>. Report the canonical workspace and manifest state before asking for confirmation. - If preview reports a valid manifest, identify its agent id and ask whether to bind that canonical workspace. If it reports a missing or invalid manifest, explain that Agent System context will remain inactive and ask whether to bind anyway. Stop without changing state when the user declines.
- After confirmation, append
bind --plugin-data <pluginData> --workspace <canonicalWorkspace> --confirm. Add--allow-inactiveonly when the confirmed preview was missing or invalid. - For unbind, inspect first, identify the canonical workspace that will be detached, and ask for confirmation. Then append
unbind --plugin-data <pluginData> --confirm. - Re-run inspect after a workspace binding write. After a successful bind/rebind with a verified workspace directory, read the verified workspace's root
AGENTS.md; if it declares an account-default setup owner, follow that guide as the next setup step. Reuse existing operator selections and ask only for missing choices. Account setup failure leaves the successful workspace binding intact. Unbind removes only the workspace pointer; never delete private account preferences or sign out connections as a side effect. - Report workspace and account results separately. After a workspace binding change, ask the user to start a new Codex chat so SessionStart can load or revoke its context. Account-only updates follow their owner's refresh instructions.
Bundled Resources
agents/openai.yaml: Codex-facing display metadata and starter prompt.assets/icon-small.svgandassets/icon-large.svg: binding marks for the Codex interface.
Validation
- Confirm workspace binding writes followed a preview or inspection and explicit user confirmation. Account-default writes follow their owner's adopted setup flow; do not add a second confirmation for clear mappings.
- Confirm the verified canonical workspace matches the user's selection.
- Confirm missing or invalid manifests remained inactive and required the explicit bind-anyway path.
- Confirm no workspace, binding path, or executable was inferred outside the trusted hook context.
- Confirm account setup used the declared owner, preserved unrelated choices, and did not change workspace binding or service permissions.
04 同仓库更多 Skills
agent-system-task-update
Publish material verified task progress to its GitHub issue or linked open pull request at authorized material changes or on request, using the configured reply skill and voice.
agent-system-task-retirement
Retire one managed task tracked by a GitHub issue, or clean up one explicitly selected unmanaged native chat in Codex or OpenClaw. Use for "clean up task", "clean up chat", or "retire task"; GitHub state stays unchanged.
agent-system-task-launch
Start or resume work from a GitHub issue or existing same-repository pull request in Codex or OpenClaw. Use for "work on task", "work on issue", "continue this PR", or "start task" requests that launch managed work, with immediate dispatch and no scheduled-intake activation.
agent-system-task-implementation
Implement an authorized GitHub-backed task plan in the existing checkout, or resume an explicitly managed Agent System workflow. Ordinary native work and chat handoffs use the implementation body without managed enrollment.
agent-system-task-assessment
Assess or plan a selected or admitted task tracked by a GitHub issue in the current chat using the agent configuration. Use for "assess this issue" or "plan this task"; develop a full plan in native context and show a concise review.
agent-system-notifications-reset
Preview and reset local notification tracking and notification coordinators, with optional purge of managed task chats and checkouts.