cross-harness-continuation
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cross-harness-continuation" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9f078b12a4f2be5e68f39d47050e7b8edfc5441612273f51a0c1c80f2e03bd7d. Verify the upstream source and version against https://github.com/AnastasiyaW/codex-claude-code-config before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Continuity management tool used when switching between Claude Code and Codex, resuming a session from a handoff point, or when an agent must rewrite an existing implementation. Loads a shared CONTINUITY.json contract, preserves accepted decisions, checks Git baselines and scope, and requires explicit replanning when a redesign is intended. Not for brand-new work that has no prior agent decisions to preserve, solitary harness sessions with no successor, or as a general handoff note tool; this skill manages the contract between agents, not an individual agent’s personal notes.
Introduction source: third_party · AnastasiyaW · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Use when work moves between Claude Code and Codex, a session resumes from a handoff, or an agent may rewrite an existing implementation. Loads the shared CONTINUITY.json contract, preserves accepted decisions, checks Git baseline and scope, and requires explicit replan mode for intentional redesign. Do NOT use for fresh work with no prior agent's decisions to preserve, for a single-harness session that no one else is continuing, or as a general handoff-writing helper (see the session-handoff rule); this skill governs the contract between agents, not the notes one agent leaves itself.
- Testing
- Not tested
Browse files
Frontmatter
name: cross-harness-continuation
description: "Use when work moves between Claude Code and Codex, a session resumes from a handoff, or an agent may rewrite an existing implementation. Loads the shared CONTINUITY.json contract, preserves accepted decisions, checks Git baseline and scope, and requires explicit replan mode for intentional redesign. Do NOT use for fresh work with no prior agent's decisions to preserve, for a single-harness session that no one else is continuing, or as a general handoff-writing helper (see the session-handoff rule); this skill governs the contract between agents, not the notes one agent leaves itself."Cross-Harness Continuation
Use this skill when a task continues after another agent, especially when the handoff is Claude -> Codex, Codex -> Claude, or a plugin has already received several partial fixes.
Operating contract
The repository is the source of truth for code. The continuation contract is the source of truth for intent that Git cannot express:
<repo>/.claude/continuity/CONTINUITY.json
The canonical shape is in references/CONTINUITY.example.json. It must contain:
mode:continuationfor incremental work,newfor greenfield work;baseline: branch, commit, and paths that were already dirty at handoff;scope.files: the files explicitly claimed for the current slice;preserve: accepted design decisions and invariants;do_not_redo: approaches already tested or deliberately rejected;verification: commands and evidence status;scope.enforceandscope.protect_unlistedwhen the slice must be strict.
Required sequence
- Read
CONTINUITY.json, the newest handoff,AGENTS.md/CLAUDE.md, and the current Git status. Treat the live checkout as authoritative over stale prose. - Verify the baseline commit, branch, dirty paths, and the claimed files. Preserve existing changes unless a test or the contract proves they are wrong.
- Make one focused continuation change. Use
Editfor existing files. Do not replace a whole file merely because another implementation is easier to write. - Run the smallest relevant test, then the independent verifier for a non-trivial or cross-module change. Record commands and outcomes in the contract or handoff.
- Update the contract with what was preserved, what changed, what failed, and the single next step. Commit a clean, descriptive checkpoint when the project workflow allows it.
Replan boundary
Replanning is valid when measured evidence shows the current design is wrong, the requirements changed, or an explicit user decision authorizes a redesign. Declare it in the process that launches the agent:
AGENT_CONTINUITY_MODE=replan
AGENT_CONTINUITY_REASON=<specific evidence and intended redesign>
The reason is required. Without it, the guard blocks whole-file overwrites, out-of-scope edits, and near-whole-file replacements. A replan must also be recorded in the decision log/handoff; an environment flag alone is not proof.
Plugin cleanup
Do not revert a plugin because its code “looks different”. First classify the diff as intentional, unverified, or conflicting; reconstruct the baseline from Git; run the plugin's focused tests and a fresh read-only verifier; then repair only confirmed regressions. Keep the old implementation available through Git or an isolated worktree until the replacement passes its acceptance checks.
Gotchas
- A handoff without baseline and changed-file facts is context, not a merge contract. Do not infer scope from prose alone.
- A clean Git tree does not prove semantic compatibility. Run the focused test and inspect the dependency boundary before declaring continuation complete.
- Parallel agents need isolated worktrees and an integration verifier; this skill protects serial handoff and cannot resolve a concurrent merge for you.
CONTINUITY.jsonis intentionally small. Put long research and transcripts in the private archive or project docs and link them from the contract.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
No CONTINUITY.json found |
The prior session left only prose handoff | Create the contract from the current Git baseline before editing existing code |
scope violation |
The task expanded beyond the claimed slice | Finish the slice or update scope with a recorded reason |
blocks Write over existing tracked file |
Whole-file overwrite would erase prior intent | Use a focused Edit, or explicitly enter replan mode |
near-whole-file replacement |
An edit is acting like a rewrite | Split the edit and test each step, or replan with evidence |
| Claude and Codex disagree | No shared decision/evidence was recorded | Re-read preserve, do_not_redo, tests, and Git; do not “pick a side” by intuition |
Version history
-
v2026.10.24
GitHub ↗
Original release notes
Three ideas from this month's agent-harness news, adopted as checks rather than prompts. ## New - **Output legibility** — [`docs/output-legibility.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/output-legibility.md). Karpathy's readability ladder (STE-style text, diagram, HTML, video), plus the two ASD-STE100 rules that need no licensed dictionary: one concept keeps one term, and sentences stay short. - **`scripts/term_drift_check.py`** — checks agent output against a project glossary. It flags synonyms of your terms (`stem*` covers inflection, so it works in Russian too) and overlong sentences, and skips code, URLs and HTML comments. Exit `0` clean, `1` findings, `2` not checked. It ships with a self-test whose must-fail controls catch six deliberate breaks of the logic. - **Bounded harness-improvement pilot** — [`docs/harness-improvement-pilot.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/harness-improvement-pilot.md). The method behind Google Research's Harness², without the auto-patcher: a frozen suite with a held-out case, one change per candidate, strict improvement and no safety regression. - **Dead-code sweep** — a new reference in the `refactoring-safely` skill, after OpenAI's GPT-6 maintenance guide. It covers a read-only audit with production evidence and one small draft PR per removal, and keeps killswitches and safeguards out of scope. ## Changed - `rules/quality-code.md`: when you change code, update or delete the comment next to it in the same commit. Research suggests a wrong or stale comment misleads a model more than a missing one. - `CLAUDE.md`: new Harness² and Output Legibility sections. Full changelog: [`UPDATES.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/UPDATES.md) · PRs #18, #19
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决多代理协作中的核心痛点:意图保留与 Git 基线对齐
- 功能闭环完整,逻辑严谨,具备显著专业场景实用价值
Highlights
- 适用与禁用场景定义清晰,边界明确,有效降低误触风险
Areas to improve
-
缺少端到端完整示例 Reported severity: Minor
文档提供了步骤和故障排查,但缺少一个从读取 CONTINUITY.json 到完成一次 continuation 的完整操作示例
Recommendation: 补充一个端到端的完整示例,展示一次成功的 continuation 流程
-
文档长度略长 Reported severity: Minor
文档约 450 行,略超过 500 行的理想上限
Recommendation: 考虑将部分详细说明(如故障排查表)移至独立参考文件,保持主文档简洁
Highlights
- 结构完整,包含操作契约、流程、边界定义和故障排查
- frontmatter 完整,步骤划分清晰
Areas to improve
-
部分底层异常处理建议不足 Reported severity: Minor
对 CONTINUITY.json 格式错误、Git 状态不一致等底层异常的处理建议较简略
Recommendation: 补充对常见底层异常(如 JSON 解析失败、Git 状态冲突)的具体处理建议
Highlights
- 工具来源明确,参数使用合理
- 覆盖主要异常场景,设有 replan 模式的显式确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.