[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0JK2A0JNWJ0YZB75FZCMY":3,"skill-same:01M7F0JK2A0JNWJ0YZB75FZCMY":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M7F0JK2A0JNWJ0YZB75FZCMY","hermes-code-bridge",null,"Use when connecting Hermes Agent to local coding CLIs such as Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or other terminal-based coding assistants. Provides session-first routing, tracked dispatch, evidence-based verification, and honest reporting without pretending Hermes did delegated work.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fhermes-code-bridge\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: hermes-code-bridge\ndescription: \"Use when connecting Hermes Agent to local coding CLIs such as Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or other terminal-based coding assistants. Provides session-first routing, tracked dispatch, evidence-based verification, and honest reporting without pretending Hermes did delegated work.\"\nversion: 1.1.0\nauthor: Hermes Agent\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  hermes:\n    tags: [hermes, coding-agents, cli, codex, kimi-code, claude-code, opencode, orchestration, tmux, dispatch]\n    related_skills: [hermes-agent, cli-agent-orchestrator, codex, claude-code, opencode]\n---\n\n# Hermes Code Bridge\n\n## Overview\n\nHermes Code Bridge turns Hermes Agent into a control layer for local terminal-based coding agents. The goal is not to replace Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or similar tools. The goal is to let Hermes coordinate them safely: choose the right tool, reuse the right session, send a precise task prompt, monitor the run, collect raw evidence, and report what actually happened.\n\nUse this skill when the user wants Hermes to connect to one or more local coding CLIs and make them do implementation, review, debugging, research, experiment management, documentation, or repository maintenance work.\n\nThe bridge pattern is:\n\n```text\nUser request\n  -> Hermes clarifies scope and chooses an existing local coding agent\u002Fsession\n  -> Hermes sends a structured prompt through the real CLI\n  -> Local coding CLI executes in its own workspace\u002Fsession\n  -> Hermes monitors output, verifies artifacts, and reports evidence\n```\n\nHermes is the control plane. Local coding CLIs are execution backends. The terminal, tmux, session archives, and output files are the transport and evidence layer.\n\nThis is intentionally lighter than a full multi-agent workspace manager. Projects such as CCB (`claude_codex_bridge`) create visible tmux workspaces with configured panes, sidebars, team topology, worktrees, and inter-agent communication. Hermes Code Bridge is a Hermes skill: it does not require a new workspace system. It teaches Hermes how to drive whichever local coding CLIs are already installed, while preserving real sessions and verifiable outputs.\n\n## When to Use\n\nUse this skill when:\n\n- The user asks Hermes to make Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or another local coding agent do work.\n- The user wants Hermes to coordinate several coding agents without manually copying prompts between terminals.\n- A task should be executed inside an existing coding-agent session instead of by Hermes directly.\n- The user needs background monitoring and a concise evidence-based report after a long agent run.\n- The user wants a general workflow for experiments, coding, debugging, documentation, review, or repository operations through local coding CLIs.\n\nDo not use this skill when:\n\n- The user only wants Hermes to answer a normal question directly.\n- The task can be handled by Hermes tools and the user did not ask for a specific coding CLI.\n- The user wants a full tmux workspace product with persistent pane layout, sidebar UI, and project team config; in that case consider using or configuring a dedicated tool such as CCB.\n- The requested CLI is not installed or not authenticated; report that honestly instead of substituting Hermes work.\n\n## Core Principles\n\n1. **Use the real CLI.** If the user asks for Codex, run Codex. If the user asks for Kimi Code, run Kimi Code. Do not use `delegate_task`, `execute_code`, or a Hermes subagent and claim that a different tool did the work.\n\n2. **Route session-first.** Existing coding-agent sessions contain context, decisions, tool history, and project assumptions. Reuse a session only after jointly matching the repository working directory, full session ID or thread name, role, and relevant history. Do not treat `--last` or another recent-session shortcut as the default correct answer. If no reliable match exists, use an intentional one-shot run instead of pretending to resume.\n\n3. **Hermes coordinates; workers execute.** Hermes can inspect, route, prompt, monitor, verify, and summarize. While a worker runs, Hermes should continue non-conflicting repository inspection, constraint checks, and evidence collection. Hermes must not edit the same working tree concurrently with a worker.\n\n4. **Confirm before dispatch when side effects matter.** If the task may edit files, run expensive jobs, change git state, call external APIs, or resume an ambiguous session, show the chosen agent\u002Fsession and prompt draft before sending it.\n\n5. **Use an evidence ladder.** A worker final message or self-report is only a lead. Before success, verify real artifacts, `git diff` and `git status`, and original command or test output. For remote side effects, also read back the remote URL, ID, or state.\n\n6. **Track bounded long runs.** Use a traceable background process and completion notification when the host provides one. Check startup failure, final output, and exit code. Exit code `0` alone is not proof that the requested work completed.\n\n7. **Report blockers honestly.** If work is incomplete, state what completed, what did not, why it is blocked, and the next concrete step. Do not invent output that merely looks plausible.\n\n8. **Keep it general and private.** Public skills must not contain personal paths, private project names, private session IDs, credentials, private endpoints, or organization-specific assumptions.\n\n## Architecture Model\n\nThink of the bridge as four layers:\n\n| Layer | Responsibility |\n| --- | --- |\n| Hermes control layer | Interpret user intent, choose backend, write prompt, monitor, verify, report. |\n| Coding CLI backend | Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or another terminal coding assistant. |\n| Session\u002Fstate layer | Existing CLI sessions, project directories, tmux panes, logs, JSONL archives, or CLI history files. |\n| Evidence layer | Terminal output, final messages, diffs, generated files, test logs, screenshots, benchmark outputs. |\n\nThe skill should work with two operating styles:\n\n- **Direct non-interactive dispatch:** Hermes runs a single CLI command with a prompt and waits or monitors in the background.\n- **Interactive workspace dispatch:** Hermes sends prompts into an existing tmux pane or resumes a CLI session that the user also can observe manually.\n\n## Pre-flight Checks\n\nBefore dispatching work to a local coding CLI, gather enough context to avoid sending the wrong task to the wrong backend.\n\n### 1. Identify the requested backend\n\nMap user language to a backend:\n\n| User wording | Backend |\n| --- | --- |\n| Codex, OpenAI Codex | `codex` |\n| Kimi Code, Kimi CLI | `kimi` or the user's configured Kimi command |\n| Claude Code | `claude` |\n| OpenCode | `opencode` |\n| Gemini CLI | `gemini` or the user's configured Gemini command |\n| coding agent, local agent, worker | Ask or infer from project\u002Fsession context |\n\nIf the user names a backend, do not silently substitute another backend.\n\n### 2. Check installation\n\n```bash\ncommand -v codex || true\ncommand -v kimi || true\ncommand -v claude || true\ncommand -v opencode || true\ncommand -v gemini || true\n```\n\nIf a command is missing, report it and suggest installation\u002Fconfiguration. Do not pretend dispatch succeeded.\n\n### 3. Confirm the working directory\n\nPrefer the project root, not the user's home directory.\n\n```bash\npwd\ngit rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || true\ngit status --short 2>\u002Fdev\u002Fnull || true\n```\n\nFor repository tasks, include the absolute working directory in the dispatch prompt and command.\n\n### 4. Discover existing sessions\n\nUse the backend's session list, history files, or project metadata. The exact storage paths and commands vary by tool version, so treat the examples below as patterns, not immutable API contracts.\n\nCodex examples:\n\n```bash\n# If supported by the installed CLI\ncodex --help\ncodex exec --help\ncodex resume --help\n\n# Common local archive patterns; inspect read-only\nfind ~\u002F.codex -maxdepth 4 -type f \\( -name '*.jsonl' -o -name '*.json' -o -name '*.toml' \\) 2>\u002Fdev\u002Fnull | head -50\n```\n\nKimi Code examples:\n\n```bash\nkimi --help\nfind ~\u002F.kimi -maxdepth 4 -type f \\( -name '*.jsonl' -o -name '*.json' -o -name '*.toml' \\) 2>\u002Fdev\u002Fnull | head -50\n```\n\nClaude Code examples:\n\n```bash\nclaude --help\nfind ~\u002F.claude -maxdepth 4 -type f 2>\u002Fdev\u002Fnull | head -50\n```\n\nOpenCode examples:\n\n```bash\nopencode --help\nfind ~\u002F.opencode ~\u002F.config\u002Fopencode -maxdepth 4 -type f 2>\u002Fdev\u002Fnull | head -50\n```\n\n### 5. Decide whether confirmation is required\n\nRequire confirmation before dispatch when any of these are true:\n\n- The target session is ambiguous.\n- The command may modify files, run long experiments, spend money, push commits, open PRs, deploy, or delete data.\n- The prompt includes assumptions not explicitly stated by the user.\n- The requested backend is unavailable and an alternative is being proposed.\n- The work is public-facing or could expose private information.\n\nFor read-only inspection or tiny status checks, it is usually acceptable to proceed directly and report results.\n\n## Session Selection Protocol\n\nWhen multiple sessions exist, use session-first routing. A session is reusable only when the available evidence gives a reliable match. Do not choose it by recency alone.\n\nMatch these signals together, in this order:\n\n1. Current project directory or repository root.\n2. User-provided full session ID or thread name, when available.\n3. Session title, first user prompt, or declared role.\n4. Recent conversation summary or archive content that matches the requested work.\n5. Files or artifacts the session has touched, when that evidence is available.\n\nCommon session roles:\n\n| Role | Use for |\n| --- | --- |\n| `main` \u002F `lead` \u002F `controller` | Planning, high-level coordination, final integration. |\n| `implementation` \u002F `worker` | Code edits, scripts, feature implementation. |\n| `reviewer` | Code review, risk analysis, PR feedback. |\n| `debugger` | Reproducing bugs, reading logs, root-cause analysis. |\n| `research` | Literature, library, API, or benchmark research. |\n| `data` \u002F `experiments` | Dataset processing, experiment runs, result aggregation. |\n| `docs` \u002F `writer` | README, docs, release notes, design docs. |\n\nSelection rules:\n\n- A full session ID or thread name is stronger than a display label or a recent-session shortcut.\n- A matching project alone is insufficient when several sessions exist for that project. Use role and history to disambiguate.\n- `--last` means only \"the most recent session.\" Do not use it as the session-first default.\n- If the signals conflict or no reliable match exists, explain the ambiguity and use a one-shot run when the user allows it. Do not silently create or misrepresent a persistent session.\n\n## Dispatch Prompt Template\n\nUse this template for non-trivial tasks:\n\n```markdown\nYou are the \u003CROLE> coding agent for this project.\n\nWorking directory:\n\u003CABSOLUTE_PROJECT_DIR>\n\nBackground:\n- \u003CRelevant project context>\n- \u003CRelevant prior decisions or files>\n- \u003CWhat the user wants and why>\n\nTask:\n1. \u003CConcrete step 1>\n2. \u003CConcrete step 2>\n3. \u003CConcrete step 3>\n\nConstraints:\n- Do not make unrelated changes.\n- Do not add new abstractions, dependencies, configs, or features unless required for this task.\n- Do not silently guess important missing requirements. If blocked, state the ambiguity and propose the smallest safe default.\n- Preserve existing style and project conventions.\n- If you find unrelated issues, mention them in the final report but do not fix them unless necessary for this task.\n\nSuccess criteria:\n- \u003CMeasurable criterion 1>\n- \u003CMeasurable criterion 2>\n- \u003CExpected artifact path or command output>\n\nVerification:\n- Run or explain: \u003Ctest command \u002F lint command \u002F manual check>\n- Report exact commands run and whether they passed.\n\nFinal report format:\n- Summary\n- Files changed or artifacts created\n- Commands run\n- Verification results\n- Remaining risks or blockers\n```\n\nFor read-only research or review tasks, replace file-edit constraints with scope and evidence requirements:\n\n```markdown\nDo not modify files. Read only the relevant files\u002Flogs\u002Fdocs. Quote file paths, line numbers when possible, commands run, and confidence level for each conclusion.\n```\n\n## Confirmation Template\n\nWhen confirmation is required, show a concise confirmation block:\n\n```markdown\nI understand the task as: \u003Cone-sentence summary>.\n\nProposed backend: \u003CCodex\u002FKimi Code\u002FClaude Code\u002FOpenCode\u002F...>\nWorking directory: \u003Cabsolute path>\nSession: \u003Csession name\u002Fid or \"one-shot new run\">\nReason: \u003Cwhy this backend\u002Fsession fits>\n\nPrompt draft:\n---\n\u003Cprompt>\n---\n\nPlease confirm before I dispatch this to the local coding CLI.\n```\n\nDo not dispatch until the user confirms. If the user edits the prompt or selects a different backend, update the command accordingly.\n\n## Command Recipes\n\nCLI flags change over time. Always check `\u003Ccommand> --help` when a command fails or when using a new version.\n\n### Codex\n\nCommon patterns:\n\n```bash\n# One-shot non-interactive\ncodex exec \"\u003CPROMPT>\"\n\n# One-shot with automatic approval if supported by the installed version\ncodex exec --ask-for-approval never \"\u003CPROMPT>\"\n\n# Run from a project directory if supported\ncodex exec -C \u003CPROJECT_DIR> \"\u003CPROMPT>\"\n\n# Resume an explicit session or thread name if supported\ncodex exec resume \u003CSESSION_ID_OR_THREAD_NAME> \"\u003CPROMPT>\"\n\n# JSON output for easier parsing if supported\ncodex exec --json -o \u003COUTPUT_JSONL> \"\u003CPROMPT>\"\n```\n\nAutomation notes:\n\n- Prefer an explicit full session ID or thread name that reliably matches the repo, role, and history.\n- Treat `--last`, where the installed CLI provides it, as a recent-session shortcut only. It is not the session-first default.\n- Prefer non-interactive `exec` modes for Hermes terminal calls.\n- If the CLI refuses due to repository trust or git checks, stop and report the exact error unless the user has already approved bypassing that guard.\n- Use background execution for long tasks and monitor with Hermes process tools.\n\n### Kimi Code\n\nCommon patterns:\n\n```bash\n# One-shot non-interactive\nkimi --print -p \"\u003CPROMPT>\"\n\n# Automatic approval if supported and appropriate\nkimi --print --yolo -p \"\u003CPROMPT>\"\n\n# Resume an explicit session if supported\nkimi -S \u003CSESSION_ID> --print -p \"\u003CPROMPT>\"\n\n# Continue the latest session for the current directory if supported\nkimi --continue --print -p \"\u003CPROMPT>\"\n\n# Specify working directory if supported\nkimi -w \u003CPROJECT_DIR> --print -p \"\u003CPROMPT>\"\n```\n\nAutomation notes:\n\n- Use `--print` or equivalent non-interactive output mode when calling from Hermes.\n- Do not rely on interactive session pickers unless running inside a tracked PTY\u002Ftmux pane.\n- Use `--yolo` or AFK-style modes only when the user has approved the risk.\n\n### Claude Code\n\nCommon patterns:\n\n```bash\n# One-shot print mode\nclaude -p \"\u003CPROMPT>\"\n\n# With explicit working directory if supported\nclaude --cwd \u003CPROJECT_DIR> -p \"\u003CPROMPT>\"\n\n# Inspect supported session\u002Fresume flags\nclaude --help\n```\n\nAutomation notes:\n\n- Claude Code often has rich interactive behavior. For Hermes automation, prefer print\u002Fnon-interactive modes where possible.\n- If using a persistent interactive Claude pane, use tmux send\u002Fcapture rather than pretending the command is non-interactive.\n\n### OpenCode\n\nCommon patterns:\n\n```bash\n# Inspect installed CLI first because command syntax varies\nopencode --help\n\n# Typical one-shot pattern, if supported by installed version\nopencode run \"\u003CPROMPT>\"\n\n# Project directory pattern, if supported\nopencode run --cwd \u003CPROJECT_DIR> \"\u003CPROMPT>\"\n```\n\nAutomation notes:\n\n- OpenCode command syntax has changed across versions; verify with `opencode --help` before dispatch.\n- Capture stdout\u002Fstderr and report the exact command form used.\n\n### Gemini CLI or other coding CLIs\n\nUse the generic adapter pattern:\n\n```bash\n\u003CAGENT_CMD> --help\n\u003CAGENT_CMD> \u003CNON_INTERACTIVE_FLAGS> \"\u003CPROMPT>\"\n```\n\nRecord:\n\n- command path from `command -v \u003CAGENT_CMD>`\n- version if available\n- working directory\n- exact prompt\n- output file or terminal log\n\n## Interactive tmux Bridge\n\nFor long-running interactive CLIs, tmux can provide a visible bridge. This is useful when the user wants to observe the agent, intervene manually, or keep multiple agents alive.\n\nCreate or attach a project tmux session:\n\n```bash\ntmux new-session -d -s \u003CSESSION_NAME> -c \u003CPROJECT_DIR>\ntmux send-keys -t \u003CSESSION_NAME> \"\u003CAGENT_CMD>\" Enter\n```\n\nSend a prompt:\n\n```bash\ntmux send-keys -t \u003CSESSION_NAME> \"\u003CPROMPT>\" Enter\n```\n\nCapture output:\n\n```bash\ntmux capture-pane -t \u003CSESSION_NAME> -p -S -200\n```\n\nSafety notes:\n\n- Escape quotes and newlines carefully. For large prompts, write the prompt to a temporary file and paste\u002Fsend it in a controlled way.\n- Prefer one tmux session per project or per agent group.\n- Do not kill an existing tmux session unless the user confirms it is safe.\n- If using a dedicated workspace manager such as CCB, follow that tool's config and command model instead of manually fighting its panes.\n\n## Background Monitoring\n\nFor bounded long-running tasks, run the CLI in the background with completion notification if available in the host environment.\n\nHermes tool pattern:\n\n```python\nterminal(command=\"cd \u003CPROJECT_DIR> && \u003CAGENT_CMD> \u003CFLAGS> '\u003CPROMPT>'\", background=True, notify_on_complete=True)\nprocess(action=\"poll\", session_id=\"\u003CHERMES_PROCESS_ID>\")\nprocess(action=\"log\", session_id=\"\u003CHERMES_PROCESS_ID>\", limit=80)\nprocess(action=\"wait\", session_id=\"\u003CHERMES_PROCESS_ID>\", timeout=180)\n```\n\nMonitoring checklist:\n\n- Poll soon after start to catch immediate authentication or syntax failures.\n- Record the process or job ID, working directory, start command, and output location so the run can be recovered and audited.\n- Request completion notification when the host environment supports it. Do not silently lose a detached task.\n- While the worker runs, Hermes should inspect independent repository facts, constraints, and verification targets. Do not wait idly, and do not edit the worker's working tree.\n- For long jobs, report progress only when there is meaningful new output.\n- If stuck at an interactive prompt, either answer only if the user already approved the choice, or ask the user.\n- At the end, inspect final output, exit code, and expected artifacts. Exit code `0` is necessary evidence, not sufficient evidence of task completion.\n- If the process fails, capture exit code and stderr. Do not hide failures behind a summary.\n\n## Evidence Collection\n\nCollect evidence before reporting success. Follow this ladder in order; do not let a worker self-report skip later checks.\n\n1. **Worker report:** capture the final message or self-report as a lead, including claimed files, tests, artifacts, and remote actions.\n2. **Real artifacts:** verify each claimed file, generated output, screenshot, benchmark result, or other local artifact exists and is relevant.\n3. **Repository state:** inspect `git status`, `git diff`, and relevant paths to confirm the actual working-tree changes.\n4. **Original verification output:** run or inspect the raw output of tests, lint, build, benchmark, or other requested commands. Do not rely only on a worker summary.\n5. **Remote read-back:** when a task has remote side effects, read back the remote URL, ID, or state through the relevant service or CLI before claiming success.\n\nMinimum evidence:\n\n- Exact backend and command used.\n- Working directory.\n- Session id, tmux pane, or output file when relevant.\n- Final CLI output or a concise excerpt from raw output.\n- Changed files or created artifacts, if any.\n- Verification commands and results.\n- Remote read-back result when remote state was changed.\n\nUseful commands:\n\n```bash\n# Git evidence\ngit status --short\ngit diff --stat\ngit diff -- \u003CRELEVANT_PATHS>\n\n# Artifact evidence\nfind \u003COUTPUT_DIR> -maxdepth 2 -type f -print\nfile \u003CARTIFACT_PATH>\n\n# Test evidence\n\u003CTEST_COMMAND>\n```\n\nIf the coding CLI claims it created a file, verify the file exists. If it claims tests passed, inspect the actual test command output. If the output is truncated, say so.\nIf it claims a remote action completed, read back the relevant remote state. If a required rung is unavailable, report the result as unverified or incomplete.\n\n## Reporting Template\n\nUse a report like this:\n\n````markdown\nDispatched to: \u003Cbackend>\nWorking directory: \u003Cpath>\nSession\u002Fprocess: \u003Csession id \u002F tmux pane \u002F Hermes process id>\nCommand: \u003Cexact command, with secrets redacted>\n\nResult:\n- \u003CWhat completed>\n- \u003CFiles changed or artifacts created>\n- \u003CVerification result>\n\nEvidence:\n```text\n\u003Cshort raw output excerpt>\n```\n\nIncomplete \u002F blocked:\n- \u003CWhat did not complete>\n- \u003CWhat completed so far>\n- \u003CBlocking reason and next concrete step>\n\nRisks:\n- \u003CAnything unresolved, ambiguous, or not verified>\n````\n\nFor user-facing summaries, keep the report concise, but do not omit failure state or verification gaps.\n\n## Safety Rules\n\nNever do these:\n\n- Do not claim a local coding CLI ran unless the actual CLI command was executed.\n- Do not use Hermes `delegate_task` or `execute_code` as a fake substitute for Codex\u002FKimi\u002FClaude\u002FOpenCode.\n- Do not directly edit the coding agent's session database, JSONL history, or internal state files.\n- Do not modify project files directly when the user explicitly asked a coding CLI to own the work, unless the user separately authorizes Hermes to edit files.\n- Do not create a new persistent session when an existing relevant session should be reused.\n- Do not use a recent-session shortcut as proof that the chosen session matches the request.\n- Do not edit the same working tree while a dispatched worker may edit it. Use a separate worktree or wait for the worker to finish.\n- Do not bypass sandbox, approval, git safety, or destructive-command prompts unless the user approved that risk.\n- Do not paste secrets, private endpoints, personal paths, or private project names into a public skill or shareable prompt.\n\nRecommended defaults:\n\n- Prefer read-only inspection before write-heavy dispatch.\n- Prefer explicit working directories and session IDs.\n- Prefer non-interactive CLI flags for automation.\n- Prefer tmux for long-lived interactive agents.\n- Prefer worktrees for parallel agents editing the same repository.\n- Prefer small, scoped prompts with clear success criteria over vague broad prompts.\n\n## Open-source Sanitization\n\nBefore publishing or sharing this skill, inspect for private information.\n\nRemove or replace:\n\n- Personal names, usernames, organization names, lab names, and relationship details.\n- Absolute paths such as `\u002FUsers\u002F\u003Cname>\u002F...` or `\u002Fhome\u002F\u003Cname>\u002F...`.\n- Private project names, paper names, dataset names, internal codenames, or unreleased features.\n- Real session IDs, API keys, tokens, private base URLs, and account identifiers.\n- Private communication habits, schedules, or user-specific preferences.\n\nUse placeholders instead:\n\n```text\n\u003CPROJECT_DIR>\n\u003CSESSION_ID>\n\u003CAGENT_CMD>\n\u003CPROMPT>\n\u003COUTPUT_JSONL>\n\u003CTEST_COMMAND>\n\u003CARTIFACT_PATH>\n```\n\nRun a quick privacy scan before release:\n\n```bash\ngrep -RInE \"(\u002FUsers\u002F|\u002Fhome\u002F|API_KEY|TOKEN|SECRET|SESSION_ID_HERE|PRIVATE|@)\" SKILL.md references templates scripts 2>\u002Fdev\u002Fnull || true\n```\n\nA public skill should teach the workflow, not expose a particular user's workflow map.\n\n## Relationship to Multi-Agent Workspace Tools\n\nHermes Code Bridge can coexist with workspace tools such as CCB.\n\nUse a dedicated workspace tool when the user wants:\n\n- A persistent tmux UI with multiple visible panes.\n- Project-level team topology in a config file.\n- Sidebar\u002Fstatus UI and inter-agent `\u002Fask` routing.\n- Managed worktrees and pane recovery.\n\nUse Hermes Code Bridge when the user wants:\n\n- A lightweight Hermes skill for dispatching to installed CLIs.\n- One-shot or session-resume routing from Hermes conversations.\n- Evidence-based reports back through Hermes.\n- A portable pattern that works even without a full workspace manager.\n\nIf CCB is installed, Hermes can treat `ccb` as another bridge backend: inspect `.ccb\u002Fccb.config`, start or attach the workspace, send prompts to the appropriate pane\u002Fagent, and capture output. By default Hermes remains an external orchestrator; this skill does not automatically make Hermes the CCB `main-agent` and does not ship a built-in CCB adapter. Follow the installed CCB command and workspace contract, and do not rewrite CCB configuration unless the user asked for that.\n\n## Common Pitfalls\n\n1. **Confusing Hermes with the worker.** Hermes may be capable of doing the task, but if the user requested Codex\u002FKimi\u002FClaude\u002FOpenCode, run that real tool.\n\n2. **Using the wrong session.** Recent is not always correct. Match by repository cwd, full session ID or thread name, role, and history. `--last` is not a session-first default.\n\n3. **Trusting summaries without evidence.** A worker final message is a lead, not completion proof. Verify artifacts, repository state, original verification output, and remote state when applicable.\n\n4. **Idling or losing long jobs.** Run bounded long jobs in the background with process tracking and completion notification when available. Inspect independent facts while they run, then check startup failure, final output, and exit code.\n\n5. **Interactive picker in non-TTY.** Many CLIs fail when an interactive session picker runs without a terminal. Use explicit session IDs or tmux\u002FPTY.\n\n6. **Over-broad prompts.** Large vague prompts cause unnecessary rewrites. Use narrow tasks, constraints, and success criteria.\n\n7. **Unsafe approval bypass.** Flags like `--yolo`, full-auto, or sandbox bypass are convenient but risky. Use only with user approval and appropriate repository state.\n\n8. **Publishing private workflow details.** A reusable public skill should not include one user's project map, collaborators, filesystem paths, private endpoints, or real session IDs.\n\n9. **Hiding an incomplete result.** Do not turn missing artifacts, failed verification, or an ambiguous session into a confident success summary. State the completed portion, blocker, and next step.\n\n## Verification Checklist\n\nBefore reporting completion:\n\n- [ ] The requested backend was actually executed.\n- [ ] The working directory was correct.\n- [ ] The selected session reliably matched repo cwd, full session ID or thread name, role, and history, or the run was intentionally one-shot.\n- [ ] The prompt contained role, task, constraints, success criteria, and output requirements.\n- [ ] Side-effectful dispatch was confirmed by the user when needed.\n- [ ] Background process startup, status, completion notification when available, final output, and exit code were checked.\n- [ ] Hermes performed only non-conflicting work while the worker ran and did not edit the same working tree.\n- [ ] Worker final output was treated as a lead and raw output or output file was inspected.\n- [ ] Claimed artifacts\u002Ffiles were verified on disk.\n- [ ] `git status` and relevant `git diff` evidence were inspected.\n- [ ] Tests, lint, benchmarks, or manual checks have original output, or are explicitly marked not run.\n- [ ] Remote effects were read back by URL, ID, or state, or are explicitly marked unverified.\n- [ ] The final report includes command, evidence, result, unfinished work, blockers, next step, and unresolved risks.\n- [ ] No secrets or private information appear in shareable output.\n\n## Minimal One-Shot Example\n\nUser asks: \"Have Codex review this repository for risky changes.\"\n\nHermes should:\n\n1. Confirm the repository root.\n2. Check Codex is installed.\n3. Decide whether this is read-only. If yes, dispatch without extra confirmation unless the user workflow requires it.\n4. Run a real Codex command.\n5. Capture and report evidence.\n\nExample:\n\n```bash\ncd \u003CPROJECT_DIR>\ncodex exec \"Read-only review: inspect the current git diff and identify correctness, security, and maintainability risks. Do not modify files. Report file paths, line references when possible, severity, and recommended fixes.\"\n```\n\nReport:\n\n```markdown\nDispatched to: Codex\nWorking directory: \u003CPROJECT_DIR>\nCommand: codex exec \"Read-only review: ...\"\n\nResult:\n- Found \u003CN> issues \u002F no blocking issues.\n- No files modified.\n\nEvidence:\n\u003Craw output excerpt>\n\nRisks:\n- Tests were not run because this was review-only.\n```\n\n## Minimal Multi-Agent Example\n\nUser asks: \"Ask one agent to implement and another to review.\"\n\nHermes should:\n\n1. Choose separate sessions\u002Fbackends, ideally separate worktrees if both may edit.\n2. Confirm the plan and prompts.\n3. Dispatch implementation first.\n4. Verify diff\u002Fartifacts.\n5. Dispatch review with the implementation context.\n6. Report both outputs and any conflicts.\n\nImplementation prompt should be scoped and surgical. Review prompt should be read-only unless the user asks for fixes.\n\n```text\nCodex worker: implement the smallest change that satisfies \u003Cgoal>; run \u003Ctests>; report files changed.\nClaude reviewer: read the resulting diff only; do not modify files; list blockers, non-blockers, and test gaps.\n```\n\nIf both agents need to edit concurrently, use git worktrees or isolated branches to avoid file conflicts.\n","# Hermes Code Bridge\n\n## Overview\n\nHermes Code Bridge turns Hermes Agent into a control layer for local terminal-based coding agents. The goal is not to replace Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or similar tools. The goal is to let Hermes coordinate them safely: choose the right tool, reuse the right session, send a precise task prompt, monitor the run, collect raw evidence, and report what actually happened.\n\nUse this skill when the user wants Hermes to connect to one or more local coding CLIs and make them do implementation, review, debugging, research, experiment management, documentation, or repository maintenance work.\n\nThe bridge pattern is:\n\n```text\nUser request\n  -> Hermes clarifies scope and chooses an existing local coding agent\u002Fsession\n  -> Hermes sends a structured prompt through the real CLI\n  -> Local coding CLI executes in its own workspace\u002Fsession\n  -> Hermes monitors output, verifies artifacts, and reports evidence\n```\n\nHermes is the control plane. Local coding CLIs are execution backends. The terminal, tmux, session archives, and output files are the transport and evidence layer.\n\nThis is intentionally lighter than a full multi-agent workspace manager. Projects such as CCB (`claude_codex_bridge`) create visible tmux workspaces with configured panes, sidebars, team topology, worktrees, and inter-agent communication. Hermes Code Bridge is a Hermes skill: it does not require a new workspace system. It teaches Hermes how to drive whichever local coding CLIs are already installed, while preserving real sessions and verifiable outputs.\n\n## When to Use\n\nUse this skill when:\n\n- The user asks Hermes to make Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or another local coding agent do work.\n- The user wants Hermes to coordinate several coding agents without manually copying prompts between terminals.\n- A task should be executed inside an existing coding-agent session instead of by Hermes directly.\n- The user needs background monitoring and a concise evidence-based report after a long agent run.\n- The user wants a general workflow for experiments, coding, debugging, documentation, review, or repository operations through local coding CLIs.\n\nDo not use this skill when:\n\n- The user only wants Hermes to answer a normal question directly.\n- The task can be handled by Hermes tools and the user did not ask for a specific coding CLI.\n- The user wants a full tmux workspace product with persistent pane layout, sidebar UI, and project team config; in that case consider using or configuring a dedicated tool such as CCB.\n- The requested CLI is not installed or not authenticated; report that honestly instead of substituting Hermes work.\n\n## Core Principles\n\n1. **Use the real CLI.** If the user asks for Codex, run Codex. If the user asks for Kimi Code, run Kimi Code. Do not use `delegate_task`, `execute_code`, or a Hermes subagent and claim that a different tool did the work.\n\n2. **Route session-first.** Existing coding-agent sessions contain context, decisions, tool history, and project assumptions. Reuse a session only after jointly matching the repository working directory, full session ID or thread name, role, and relevant history. Do not treat `--last` or another recent-session shortcut as the default correct answer. If no reliable match exists, use an intentional one-shot run instead of pretending to resume.\n\n3. **Hermes coordinates; workers execute.** Hermes can inspect, route, prompt, monitor, verify, and summarize. While a worker runs, Hermes should continue non-conflicting repository inspection, constraint checks, and evidence collection. Hermes must not edit the same working tree concurrently with a worker.\n\n4. **Confirm before dispatch when side effects matter.** If the task may edit files, run expensive jobs, change git state, call external APIs, or resume an ambiguous session, show the chosen agent\u002Fsession and prompt draft before sending it.\n\n5. **Use an evidence ladder.** A worker final message or self-report is only a lead. Before success, verify real artifacts, `git diff` and `git status`, and original command or test output. For remote side effects, also read back the remote URL, ID, or state.\n\n6. **Track bounded long runs.** Use a traceable background process and completion notification when the host provides one. Check startup failure, final output, and exit code. Exit code `0` alone is not proof that the requested work completed.\n\n7. **Report blockers honestly.** If work is incomplete, state what completed, what did not, why it is blocked, and the next concrete step. Do not invent output that merely looks plausible.\n\n8. **Keep it general and private.** Public skills must not contain personal paths, private project names, private session IDs, credentials, private endpoints, or organization-specific assumptions.\n\n## Architecture Model\n\nThink of the bridge as four layers:\n\n| Layer | Responsibility |\n| --- | --- |\n| Hermes control layer | Interpret user intent, choose backend, write prompt, monitor, verify, report. |\n| Coding CLI backend | Codex, Kimi Code, Claude Code, OpenCode, Gemini CLI, or another terminal coding assistant. |\n| Session\u002Fstate layer | Existing CLI sessions, project directories, tmux panes, logs, JSONL archives, or CLI history files. |\n| Evidence layer | Terminal output, final messages, diffs, generated files, test logs, screenshots, benchmark outputs. |\n\nThe skill should work with two operating styles:\n\n- **Direct non-interactive dispatch:** Hermes runs a single CLI command with a prompt and waits or monitors in the background.\n- **Interactive workspace dispatch:** Hermes sends prompts into an existing tmux pane or resumes a CLI session that the user also can observe manually.\n\n## Pre-flight Checks\n\nBefore dispatching work to a local coding CLI, gather enough context to avoid sending the wrong task to the wrong backend.\n\n### 1. Identify the requested backend\n\nMap user language to a backend:\n\n| User wording | Backend |\n| --- | --- |\n| Codex, OpenAI Codex | `codex` |\n| Kimi Code, Kimi CLI | `kimi` or the user's configured Kimi command |\n| Claude Code | `claude` |\n| OpenCode | `opencode` |\n| Gemini CLI | `gemini` or the user's configured Gemini command |\n| coding agent, local agent, worker | Ask or infer from project\u002Fsession context |\n\nIf the user names a backend, do not silently substitute another backend.\n\n### 2. Check installation\n\n```bash\ncommand -v codex || true\ncommand -v kimi || true\ncommand -v claude || true\ncommand -v opencode || true\ncommand -v gemini || true\n```\n\nIf a command is missing, report it and suggest installation\u002Fconfiguration. Do not pretend dispatch succeeded.\n\n### 3. Confirm the working directory\n\nPrefer the project root, not the user's home directory.\n\n```bash\npwd\ngit rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || true\ngit status --short 2>\u002Fdev\u002Fnull || true\n```\n\nFor repository tasks, include the absolute working directory in the dispatch prompt and command.\n\n### 4. Discover existing sessions\n\nUse the backend's session list, history files, or project metadata. The exact storage paths and commands vary by tool version, so treat the examples below as patterns, not immutable API contracts.\n\nCodex examples:\n\n```bash\n# If supported by the installed CLI\ncodex --help\ncodex exec --help\ncodex resume --help\n\n# Common local archive patterns; inspect read-only\nfind ~\u002F.codex -maxdepth 4 -type f \\( -name '*.jsonl' -o -name '*.json' -o -name '*.toml' \\) 2>\u002Fdev\u002Fnull | head -50\n```\n\nKimi Code examples:\n\n```bash\nkimi --help\nfind ~\u002F.kimi -maxdepth 4 -type f \\( -name '*.jsonl' -o -name '*.json' -o -name '*.toml' \\) 2>\u002Fdev\u002Fnull | head -50\n```\n\nClaude Code examples:\n\n```bash\nclaude --help\nfind ~\u002F.claude -maxdepth 4 -type f 2>\u002Fdev\u002Fnull | head -50\n```\n\nOpenCode examples:\n\n```bash\nopencode --help\nfind ~\u002F.opencode ~\u002F.config\u002Fopencode -maxdepth 4 -type f 2>\u002Fdev\u002Fnull | head -50\n```\n\n### 5. Decide whether confirmation is required\n\nRequire confirmation before dispatch when any of these are true:\n\n- The target session is ambiguous.\n- The command may modify files, run long experiments, spend money, push commits, open PRs, deploy, or delete data.\n- The prompt includes assumptions not explicitly stated by the user.\n- The requested backend is unavailable and an alternative is being proposed.\n- The work is public-facing or could expose private information.\n\nFor read-only inspection or tiny status checks, it is usually acceptable to proceed directly and report results.\n\n## Session Selection Protocol\n\nWhen multiple sessions exist, use session-first routing. A session is reusable only when the available evidence gives a reliable match. Do not choose it by recency alone.\n\nMatch these signals together, in this order:\n\n1. Current project directory or repository root.\n2. User-provided full session ID or thread name, when available.\n3. Session title, first user prompt, or declared role.\n4. Recent conversation summary or archive content that matches the requested work.\n5. Files or artifacts the session has touched, when that evidence is available.\n\nCommon session roles:\n\n| Role | Use for |\n| --- | --- |\n| `main` \u002F `lead` \u002F `controller` | Planning, high-level coordination, final integration. |\n| `implementation` \u002F `worker` | Code edits, scripts, feature implementation. |\n| `reviewer` | Code review, risk analysis, PR feedback. |\n| `debugger` | Reproducing bugs, reading logs, root-cause analysis. |\n| `research` | Literature, library, API, or benchmark research. |\n| `data` \u002F `experiments` | Dataset processing, experiment runs, result aggregation. |\n| `docs` \u002F `writer` | README, docs, release notes, design docs. |\n\nSelection rules:\n\n- A full session ID or thread name is stronger than a display label or a recent-session shortcut.\n- A matching project alone is insufficient when several sessions exist for that project. Use role and history to disambiguate.\n- `--last` means only \"the most recent session.\" Do not use it as the session-first default.\n- If the signals conflict or no reliable match exists, explain the ambiguity and use a one-shot run when the user allows it. Do not silently create or misrepresent a persistent session.\n\n## Dispatch Prompt Template\n\nUse this template for non-trivial tasks:\n\n```markdown\nYou are the \u003CROLE> coding agent for this project.\n\nWorking directory:\n\u003CABSOLUTE_PROJECT_DIR>\n\nBackground:\n- \u003CRelevant project context>\n- \u003CRelevant prior decisions or files>\n- \u003CWhat the user wants and why>\n\nTask:\n1. \u003CConcrete step 1>\n2. \u003CConcrete step 2>\n3. \u003CConcrete step 3>\n\nConstraints:\n- Do not make unrelated changes.\n- Do not add new abstractions, dependencies, configs, or features unless required for this task.\n- Do not silently guess important missing requirements. If blocked, state the ambiguity and propose the smallest safe default.\n- Preserve existing style and project conventions.\n- If you find unrelated issues, mention them in the final report but do not fix them unless necessary for this task.\n\nSuccess criteria:\n- \u003CMeasurable criterion 1>\n- \u003CMeasurable criterion 2>\n- \u003CExpected artifact path or command output>\n\nVerification:\n- Run or explain: \u003Ctest command \u002F lint command \u002F manual check>\n- Report exact commands run and whether they passed.\n\nFinal report format:\n- Summary\n- Files changed or artifacts created\n- Commands run\n- Verification results\n- Remaining risks or blockers\n```\n\nFor read-only research or review tasks, replace file-edit constraints with scope and evidence requirements:\n\n```markdown\nDo not modify files. Read only the relevant files\u002Flogs\u002Fdocs. Quote file paths, line numbers when possible, commands run, and confidence level for each conclusion.\n```\n\n## Confirmation Template\n\nWhen confirmation is required, show a concise confirmation block:\n\n```markdown\nI understand the task as: \u003Cone-sentence summary>.\n\nProposed backend: \u003CCodex\u002FKimi Code\u002FClaude Code\u002FOpenCode\u002F...>\nWorking directory: \u003Cabsolute path>\nSession: \u003Csession name\u002Fid or \"one-shot new run\">\nReason: \u003Cwhy this backend\u002Fsession fits>\n\nPrompt draft:\n---\n\u003Cprompt>\n---\n\nPlease confirm before I dispatch this to the local coding CLI.\n```\n\nDo not dispatch until the user confirms. If the user edits the prompt or selects a different backend, update the command accordingly.\n\n## Command Recipes\n\nCLI flags change over time. Always check `\u003Ccommand> --help` when a command fails or when using a new version.\n\n### Codex\n\nCommon patterns:\n\n```bash\n# One-shot non-interactive\ncodex exec \"\u003CPROMPT>\"\n\n# One-shot with automatic approval if supported by the installed version\ncodex exec --ask-for-approval never \"\u003CPROMPT>\"\n\n# Run from a project directory if supported\ncodex exec -C \u003CPROJECT_DIR> \"\u003CPROMPT>\"\n\n# Resume an explicit session or thread name if supported\ncodex exec resume \u003CSESSION_ID_OR_THREAD_NAME> \"\u003CPROMPT>\"\n\n# JSON output for easier parsing if supported\ncodex exec --json -o \u003COUTPUT_JSONL> \"\u003CPROMPT>\"\n```\n\nAutomation notes:\n\n- Prefer an explicit full session ID or thread name that reliably matches the repo, role, and history.\n- Treat `--last`, where the installed CLI provides it, as a recent-session shortcut only. It is not the session-first default.\n- Prefer non-interactive `exec` modes for Hermes terminal calls.\n- If the CLI refuses due to repository trust or git checks, stop and report the exact error unless the user has already approved bypassing that guard.\n- Use background execution for long tasks and monitor with Hermes process tools.\n\n### Kimi Code\n\nCommon patterns:\n\n```bash\n# One-shot non-interactive\nkimi --print -p \"\u003CPROMPT>\"\n\n# Automatic approval if supported and appropriate\nkimi --print --yolo -p \"\u003CPROMPT>\"\n\n# Resume an explicit session if supported\nkimi -S \u003CSESSION_ID> --print -p \"\u003CPROMPT>\"\n\n# Continue the latest session for the current directory if supported\nkimi --continue --print -p \"\u003CPROMPT>\"\n\n# Specify working directory if supported\nkimi -w \u003CPROJECT_DIR> --print -p \"\u003CPROMPT>\"\n```\n\nAutomation notes:\n\n- Use `--print` or equivalent non-interactive output mode when calling from Hermes.\n- Do not rely on interactive session pickers unless running inside a tracked PTY\u002Ftmux pane.\n- Use `--yolo` or AFK-style modes only when the user has approved the risk.\n\n### Claude Code\n\nCommon patterns:\n\n```bash\n# One-shot print mode\nclaude -p \"\u003CPROMPT>\"\n\n# With explicit working directory if supported\nclaude --cwd \u003CPROJECT_DIR> -p \"\u003CPROMPT>\"\n\n# Inspect supported session\u002Fresume flags\nclaude --help\n```\n\nAutomation notes:\n\n- Claude Code often has rich interactive behavior. For Hermes automation, prefer print\u002Fnon-interactive modes where possible.\n- If using a persistent interactive Claude pane, use tmux send\u002Fcapture rather than pretending the command is non-interactive.\n\n### OpenCode\n\nCommon patterns:\n\n```bash\n# Inspect installed CLI first because command syntax varies\nopencode --help\n\n# Typical one-shot pattern, if supported by installed version\nopencode run \"\u003CPROMPT>\"\n\n# Project directory pattern, if supported\nopencode run --cwd \u003CPROJECT_DIR> \"\u003CPROMPT>\"\n```\n\nAutomation notes:\n\n- OpenCode command syntax has changed across versions; verify with `opencode --help` before dispatch.\n- Capture stdout\u002Fstderr and report the exact command form used.\n\n### Gemini CLI or other coding CLIs\n\nUse the generic adapter pattern:\n\n```bash\n\u003CAGENT_CMD> --help\n\u003CAGENT_CMD> \u003CNON_INTERACTIVE_FLAGS> \"\u003CPROMPT>\"\n```\n\nRecord:\n\n- command path from `command -v \u003CAGENT_CMD>`\n- version if available\n- working directory\n- exact prompt\n- output file or terminal log\n\n## Interactive tmux Bridge\n\nFor long-running interactive CLIs, tmux can provide a visible bridge. This is useful when the user wants to observe the agent, intervene manually, or keep multiple agents alive.\n\nCreate or attach a project tmux session:\n\n```bash\ntmux new-session -d -s \u003CSESSION_NAME> -c \u003CPROJECT_DIR>\ntmux send-keys -t \u003CSESSION_NAME> \"\u003CAGENT_CMD>\" Enter\n```\n\nSend a prompt:\n\n```bash\ntmux send-keys -t \u003CSESSION_NAME> \"\u003CPROMPT>\" Enter\n```\n\nCapture output:\n\n```bash\ntmux capture-pane -t \u003CSESSION_NAME> -p -S -200\n```\n\nSafety notes:\n\n- Escape quotes and newlines carefully. For large prompts, write the prompt to a temporary file and paste\u002Fsend it in a controlled way.\n- Prefer one tmux session per project or per agent group.\n- Do not kill an existing tmux session unless the user confirms it is safe.\n- If using a dedicated workspace manager such as CCB, follow that tool's config and command model instead of manually fighting its panes.\n\n## Background Monitoring\n\nFor bounded long-running tasks, run the CLI in the background with completion notification if available in the host environment.\n\nHermes tool pattern:\n\n```python\nterminal(command=\"cd \u003CPROJECT_DIR> && \u003CAGENT_CMD> \u003CFLAGS> '\u003CPROMPT>'\", background=True, notify_on_complete=True)\nprocess(action=\"poll\", session_id=\"\u003CHERMES_PROCESS_ID>\")\nprocess(action=\"log\", session_id=\"\u003CHERMES_PROCESS_ID>\", limit=80)\nprocess(action=\"wait\", session_id=\"\u003CHERMES_PROCESS_ID>\", timeout=180)\n```\n\nMonitoring checklist:\n\n- Poll soon after start to catch immediate authentication or syntax failures.\n- Record the process or job ID, working directory, start command, and output location so the run can be recovered and audited.\n- Request completion notification when the host environment supports it. Do not silently lose a detached task.\n- While the worker runs, Hermes should inspect independent repository facts, constraints, and verification targets. Do not wait idly, and do not edit the worker's working tree.\n- For long jobs, report progress only when there is meaningful new output.\n- If stuck at an interactive prompt, either answer only if the user already approved the choice, or ask the user.\n- At the end, inspect final output, exit code, and expected artifacts. Exit code `0` is necessary evidence, not sufficient evidence of task completion.\n- If the process fails, capture exit code and stderr. Do not hide failures behind a summary.\n\n## Evidence Collection\n\nCollect evidence before reporting success. Follow this ladder in order; do not let a worker self-report skip later checks.\n\n1. **Worker report:** capture the final message or self-report as a lead, including claimed files, tests, artifacts, and remote actions.\n2. **Real artifacts:** verify each claimed file, generated output, screenshot, benchmark result, or other local artifact exists and is relevant.\n3. **Repository state:** inspect `git status`, `git diff`, and relevant paths to confirm the actual working-tree changes.\n4. **Original verification output:** run or inspect the raw output of tests, lint, build, benchmark, or other requested commands. Do not rely only on a worker summary.\n5. **Remote read-back:** when a task has remote side effects, read back the remote URL, ID, or state through the relevant service or CLI before claiming success.\n\nMinimum evidence:\n\n- Exact backend and command used.\n- Working directory.\n- Session id, tmux pane, or output file when relevant.\n- Final CLI output or a concise excerpt from raw output.\n- Changed files or created artifacts, if any.\n- Verification commands and results.\n- Remote read-back result when remote state was changed.\n\nUseful commands:\n\n```bash\n# Git evidence\ngit status --short\ngit diff --stat\ngit diff -- \u003CRELEVANT_PATHS>\n\n# Artifact evidence\nfind \u003COUTPUT_DIR> -maxdepth 2 -type f -print\nfile \u003CARTIFACT_PATH>\n\n# Test evidence\n\u003CTEST_COMMAND>\n```\n\nIf the coding CLI claims it created a file, verify the file exists. If it claims tests passed, inspect the actual test command output. If the output is truncated, say so.\nIf it claims a remote action completed, read back the relevant remote state. If a required rung is unavailable, report the result as unverified or incomplete.\n\n## Reporting Template\n\nUse a report like this:\n\n````markdown\nDispatched to: \u003Cbackend>\nWorking directory: \u003Cpath>\nSession\u002Fprocess: \u003Csession id \u002F tmux pane \u002F Hermes process id>\nCommand: \u003Cexact command, with secrets redacted>\n\nResult:\n- \u003CWhat completed>\n- \u003CFiles changed or artifacts created>\n- \u003CVerification result>\n\nEvidence:\n```text\n\u003Cshort raw output excerpt>\n```\n\nIncomplete \u002F blocked:\n- \u003CWhat did not complete>\n- \u003CWhat completed so far>\n- \u003CBlocking reason and next concrete step>\n\nRisks:\n- \u003CAnything unresolved, ambiguous, or not verified>\n````\n\nFor user-facing summaries, keep the report concise, but do not omit failure state or verification gaps.\n\n## Safety Rules\n\nNever do these:\n\n- Do not claim a local coding CLI ran unless the actual CLI command was executed.\n- Do not use Hermes `delegate_task` or `execute_code` as a fake substitute for Codex\u002FKimi\u002FClaude\u002FOpenCode.\n- Do not directly edit the coding agent's session database, JSONL history, or internal state files.\n- Do not modify project files directly when the user explicitly asked a coding CLI to own the work, unless the user separately authorizes Hermes to edit files.\n- Do not create a new persistent session when an existing relevant session should be reused.\n- Do not use a recent-session shortcut as proof that the chosen session matches the request.\n- Do not edit the same working tree while a dispatched worker may edit it. Use a separate worktree or wait for the worker to finish.\n- Do not bypass sandbox, approval, git safety, or destructive-command prompts unless the user approved that risk.\n- Do not paste secrets, private endpoints, personal paths, or private project names into a public skill or shareable prompt.\n\nRecommended defaults:\n\n- Prefer read-only inspection before write-heavy dispatch.\n- Prefer explicit working directories and session IDs.\n- Prefer non-interactive CLI flags for automation.\n- Prefer tmux for long-lived interactive agents.\n- Prefer worktrees for parallel agents editing the same repository.\n- Prefer small, scoped prompts with clear success criteria over vague broad prompts.\n\n## Open-source Sanitization\n\nBefore publishing or sharing this skill, inspect for private information.\n\nRemove or replace:\n\n- Personal names, usernames, organization names, lab names, and relationship details.\n- Absolute paths such as `\u002FUsers\u002F\u003Cname>\u002F...` or `\u002Fhome\u002F\u003Cname>\u002F...`.\n- Private project names, paper names, dataset names, internal codenames, or unreleased features.\n- Real session IDs, API keys, tokens, private base URLs, and account identifiers.\n- Private communication habits, schedules, or user-specific preferences.\n\nUse placeholders instead:\n\n```text\n\u003CPROJECT_DIR>\n\u003CSESSION_ID>\n\u003CAGENT_CMD>\n\u003CPROMPT>\n\u003COUTPUT_JSONL>\n\u003CTEST_COMMAND>\n\u003CARTIFACT_PATH>\n```\n\nRun a quick privacy scan before release:\n\n```bash\ngrep -RInE \"(\u002FUsers\u002F|\u002Fhome\u002F|API_KEY|TOKEN|SECRET|SESSION_ID_HERE|PRIVATE|@)\" SKILL.md references templates scripts 2>\u002Fdev\u002Fnull || true\n```\n\nA public skill should teach the workflow, not expose a particular user's workflow map.\n\n## Relationship to Multi-Agent Workspace Tools\n\nHermes Code Bridge can coexist with workspace tools such as CCB.\n\nUse a dedicated workspace tool when the user wants:\n\n- A persistent tmux UI with multiple visible panes.\n- Project-level team topology in a config file.\n- Sidebar\u002Fstatus UI and inter-agent `\u002Fask` routing.\n- Managed worktrees and pane recovery.\n\nUse Hermes Code Bridge when the user wants:\n\n- A lightweight Hermes skill for dispatching to installed CLIs.\n- One-shot or session-resume routing from Hermes conversations.\n- Evidence-based reports back through Hermes.\n- A portable pattern that works even without a full workspace manager.\n\nIf CCB is installed, Hermes can treat `ccb` as another bridge backend: inspect `.ccb\u002Fccb.config`, start or attach the workspace, send prompts to the appropriate pane\u002Fagent, and capture output. By default Hermes remains an external orchestrator; this skill does not automatically make Hermes the CCB `main-agent` and does not ship a built-in CCB adapter. Follow the installed CCB command and workspace contract, and do not rewrite CCB configuration unless the user asked for that.\n\n## Common Pitfalls\n\n1. **Confusing Hermes with the worker.** Hermes may be capable of doing the task, but if the user requested Codex\u002FKimi\u002FClaude\u002FOpenCode, run that real tool.\n\n2. **Using the wrong session.** Recent is not always correct. Match by repository cwd, full session ID or thread name, role, and history. `--last` is not a session-first default.\n\n3. **Trusting summaries without evidence.** A worker final message is a lead, not completion proof. Verify artifacts, repository state, original verification output, and remote state when applicable.\n\n4. **Idling or losing long jobs.** Run bounded long jobs in the background with process tracking and completion notification when available. Inspect independent facts while they run, then check startup failure, final output, and exit code.\n\n5. **Interactive picker in non-TTY.** Many CLIs fail when an interactive session picker runs without a terminal. Use explicit session IDs or tmux\u002FPTY.\n\n6. **Over-broad prompts.** Large vague prompts cause unnecessary rewrites. Use narrow tasks, constraints, and success criteria.\n\n7. **Unsafe approval bypass.** Flags like `--yolo`, full-auto, or sandbox bypass are convenient but risky. Use only with user approval and appropriate repository state.\n\n8. **Publishing private workflow details.** A reusable public skill should not include one user's project map, collaborators, filesystem paths, private endpoints, or real session IDs.\n\n9. **Hiding an incomplete result.** Do not turn missing artifacts, failed verification, or an ambiguous session into a confident success summary. State the completed portion, blocker, and next step.\n\n## Verification Checklist\n\nBefore reporting completion:\n\n- [ ] The requested backend was actually executed.\n- [ ] The working directory was correct.\n- [ ] The selected session reliably matched repo cwd, full session ID or thread name, role, and history, or the run was intentionally one-shot.\n- [ ] The prompt contained role, task, constraints, success criteria, and output requirements.\n- [ ] Side-effectful dispatch was confirmed by the user when needed.\n- [ ] Background process startup, status, completion notification when available, final output, and exit code were checked.\n- [ ] Hermes performed only non-conflicting work while the worker ran and did not edit the same working tree.\n- [ ] Worker final output was treated as a lead and raw output or output file was inspected.\n- [ ] Claimed artifacts\u002Ffiles were verified on disk.\n- [ ] `git status` and relevant `git diff` evidence were inspected.\n- [ ] Tests, lint, benchmarks, or manual checks have original output, or are explicitly marked not run.\n- [ ] Remote effects were read back by URL, ID, or state, or are explicitly marked unverified.\n- [ ] The final report includes command, evidence, result, unfinished work, blockers, next step, and unresolved risks.\n- [ ] No secrets or private information appear in shareable output.\n\n## Minimal One-Shot Example\n\nUser asks: \"Have Codex review this repository for risky changes.\"\n\nHermes should:\n\n1. Confirm the repository root.\n2. Check Codex is installed.\n3. Decide whether this is read-only. If yes, dispatch without extra confirmation unless the user workflow requires it.\n4. Run a real Codex command.\n5. Capture and report evidence.\n\nExample:\n\n```bash\ncd \u003CPROJECT_DIR>\ncodex exec \"Read-only review: inspect the current git diff and identify correctness, security, and maintainability risks. Do not modify files. Report file paths, line references when possible, severity, and recommended fixes.\"\n```\n\nReport:\n\n```markdown\nDispatched to: Codex\nWorking directory: \u003CPROJECT_DIR>\nCommand: codex exec \"Read-only review: ...\"\n\nResult:\n- Found \u003CN> issues \u002F no blocking issues.\n- No files modified.\n\nEvidence:\n\u003Craw output excerpt>\n\nRisks:\n- Tests were not run because this was review-only.\n```\n\n## Minimal Multi-Agent Example\n\nUser asks: \"Ask one agent to implement and another to review.\"\n\nHermes should:\n\n1. Choose separate sessions\u002Fbackends, ideally separate worktrees if both may edit.\n2. Confirm the plan and prompts.\n3. Dispatch implementation first.\n4. Verify diff\u002Fartifacts.\n5. Dispatch review with the implementation context.\n6. Report both outputs and any conflicts.\n\nImplementation prompt should be scoped and surgical. Review prompt should be read-only unless the user asks for fixes.\n\n```text\nCodex worker: implement the smallest change that satisfies \u003Cgoal>; run \u003Ctests>; report files changed.\nClaude reviewer: read the resulting diff only; do not modify files; list blockers, non-blockers, and test gaps.\n```\n\nIf both agents need to edit concurrently, use git worktrees or isolated branches to avoid file conflicts.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":42,"description":7},"Hermes Agent","1.1.0",{"hermes":27},{"tags":28,"related_skills":39},[29,30,31,32,33,34,35,36,37,38],"hermes","coding-agents","cli","codex","kimi-code","claude-code","opencode","orchestration","tmux","dispatch",[40,41,32,34,35],"hermes-agent","cli-agent-orchestrator",[43,44,45],"linux","macos","windows","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fhermes-code-bridge",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill hermes-code-bridge",{"tool":60,"command":61},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill hermes-code-bridge",{"tool":63,"command":64},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill hermes-code-bridge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fhermes-code-bridge\u002FSKILL.md",true,[],[69,76,81,88,95,102],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":77,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]