update-codex-acp

Rebases custom commits of the codex-acp fork onto upstream and rebuilds release artifacts.

Updated May 13, 2026
One-click install
npx skills add https://github.com/lovebirdsx/universe-editor --skill update-codex-acp-lovebirdsx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-codex-acp
Source: https://github.com/lovebirdsx/universe-editor/tree/main/.claude/skills/update-codex-acp
Command: npx skills add https://github.com/lovebirdsx/universe-editor --skill update-codex-acp-lovebirdsx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping a self-maintained fork of the Codex ACP agent in sync with its upstream repository is error-prone: the real upstream (agentclientprotocol/codex-acp) is easily confused with the deprecated zed-industries repo, the submodule sits in a detached HEAD state, and rebasing custom commits onto upstream releases produces conflicts and semantic regressions that are hard to diagnose. ## Core Features & Use Cases - Guided rebase workflow: Walks through read-only investigation, upstream verification via merge-base and ahead/behind counts, backup branch creation, rebase, dependency reinstall, typecheck, tests, and force-push with lease. - Conflict playbook: Provides per-file conflict resolution strategies (package-lock.json, package.json, index.ts, CodexAcpServer.ts) plus a case library of six documented real-world merge incidents with root causes and fixes. - Fork integrity protection: Enforces the rule that custom commits (cost tracking, Claude-style skills/memory, AI session titles) must survive upstream changes, with fixup/autosquash guidance to keep history clean. - Use Case: When a new upstream codex-acp release lands, run this Skill to merge it into the fork, rebuild dist artifacts via pnpm agent:build, validate with pnpm check, and commit the updated submodule pointer on a new branch. ## Quick Start Update the codex-acp fork by merging the latest upstream changes and rebuilding the release artifacts.

Frequently Asked Questions about update-codex-acp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update a git submodule fork with upstream changes?

Fetch the upstream remote, find the fork point with git merge-base, create a backup branch, then rebase your custom commits onto upstream/main. After resolving conflicts, reinstall dependencies, run typecheck and tests, then force-push with --force-with-lease.

What is the correct upstream repository for codex-acp?

The real upstream is agentclientprotocol/codex-acp, not zed-industries/codex-acp which is deprecated. Setting the wrong upstream causes an empty merge-base and the illusion of massive code regression. Verify with merge-base hitting your baseline and matching ahead/behind counts.

How do I resolve package-lock.json conflicts during a rebase?

Do not resolve package-lock.json conflicts manually. During rebase use git checkout --ours package-lock.json (where --ours means the upstream side), stage it, and regenerate the lockfile once with npm ci or npm install after the rebase completes.

Why do codex-acp tests fail on Windows after a rebase?

About four path-related tests fail on Windows because fixtures use a fake cwd /test/cwd, producing backslash paths that AbsolutePathBuf deserialization rejects. Verify non-regression by running the same tests on pure upstream and the pre-rebase backup branch; both fail, so ignore them.

Does a clean rebase guarantee the merge is correct?

No. Zero rebase conflicts does not mean semantic correctness. Always run npx tsc --noEmit and npm test afterward, since upstream may add required interface fields, change test helper signatures, or silently delete functions your custom commits still call.