Continues the KCode decollision from PR #31 (Phase 1, MERGED). This PR
migrates the source-tree references to external infrastructure that was
deliberately preserved in Phase 1.
## What changed
- kcode-update-core endpoint: now points at KooshaPari/KCode/releases/latest
(the fork has release v0.85.0-k1.0.0, so the URL is live)
- README.md: GitHub Releases URL migrated to KooshaPari/KCode/releases
- README.md: GHCR image URL migrated to ghcr.io/KooshaPari/kcode/...
- jcode.sh → kcode.sh across 8 crates (config-types, tui, sdk, app-core,
telemetry-core, base, plus tests)
- Subdomain endpoints: telemetry.jcode.sh → telemetry.kcode.sh,
api.jcode.sh → api.kcode.sh
- @1jehuang/jcode-sdk → @1jehuang/kcode-sdk (and 6 platform-specific
packages) across sdk/typescript/ + sdk/npm/ + scripts/ + CI
- JcodeClient class → KcodeClient in SDK
- iOS: jcode:// → kcode://, JCodeKit → KcodeKit, JCodeMobile → KcodeMobile,
com.jcode.mobile.* → com.kcode.mobile.*, jcode-servers.json →
kcode-servers.json (URL scheme + Info.plist + Xcode project + Swift + tests
+ .gitignore + CI workflow)
- assets/branding/logo-*.txt: brand name + URL updated
- 3 PowerShell install scripts: jcode.sh → kcode.sh
- telemetry-worker/ (Node.js): jcode.sh → kcode.sh
- iOS folders renamed: ios/Sources/JCodeKit/ → KcodeKit/, JCodeMobile/ →
KcodeMobile/, ios/Tests/JCodeKitTests/ → KcodeKitTests/
- docs/IOS_APP.md, ios/TestHarness/check_production.sh: stale JCodeKit refs
## SDK backwards-compat shim (TypeScript)
The TS SDK now uses kcode as primary with jcode as legacy fallback for
existing installs:
- Home dir: ~/.kcode (primary) → ~/.jcode (legacy fallback)
- Env vars: KCODE_HOME (primary) → JCODE_HOME (legacy fallback)
- Config dir: ~/.config/kcode (primary) → ~/.config/jcode (legacy fallback)
- Socket names: kcode-api.sock / kcode.sock (primary) → jcode-api.sock /
jcode.sock (legacy cleanup on startup)
- Binary name: kcode (primary) → jcode (PATH lookup fallback)
- Temp dir prefix: kcode-sdk-instance- (primary) → jcode-sdk-instance-
(legacy cleanup on startup)
- userJcodeHome() preserved as deprecated alias for userKcodeHome()
- bundledJcodeBinary() preserved as deprecated alias for bundledKcodeBinary()
This matches the Phase 1 Rust shim approach (kcode-storage::kcode_dir +
kcode_storage::migrate_legacy_jcode_env).
## Verification
- cargo check --workspace: PASS (13m 52s, only pre-existing ratatui 0.30
deprecation warnings; 0 errors)
- 126 files changed (+522 / -454, net +68 lines for SDK shim additions)
## Out of scope (requires live infra provisioning)
- AWS infra in scripts/phone-server/ (JcodePhoneProvisioner, JcodeOperator,
jcode-phone-server stack, jcode-dev-monthly-cost budget, jcode-guard-stop/
-warn SNS, jcode-phone-wake/jcode-guard-breaker Lambdas, jcode-pair-service.py,
jcode-serve.service, jcode-pair.service) — preserved as-is
- scripts/phone-server/testflight-setup.py (JCodeMobile reference) — AWS
infra, preserved
- 1jehuang/jcode upstream URLs in non-update code (e.g. test fixtures, PR
comment) — out of scope per design
- .audit/jcode-assessment-2026-09-15/ — historical audit, preserved
- docs/sessions/* — historical session docs, preserved
- Historical README upstream badges (1jehuang/jcode/release, stars, etc.)
— these are upstream metadata, not fork URLs
- Binary asset filenames (docs/*.mp4, docs/jcode_reddit_dashboard.png) —
cosmetic, not in build path
## Coordination required (operator work, separate from this PR)
These source references now point at infrastructure that must be re-provisioned
in lockstep — code changes alone are not sufficient:
1. DNS: provision kcode.sh (and *.kcode.sh subdomains) and redirect or
replace jcode.sh
2. GHCR: re-publish ghcr.io/KooshaPari/kcode/* image and deprecate the
ghcr.io/KooshaPari/jcode/* image
3. npm: re-publish @1jehuang/kcode-sdk and the 6 platform packages, then
deprecate the @1jehuang/jcode-* packages
4. iOS: rebuild the KcodeMobile app and re-submit to TestFlight / App Store
with the new bundle ID, URL scheme, and framework name
5. AWS: rename JcodePhoneProvisioner, JcodeOperator, jcode-phone-server
stack, jcode-dev-monthly-cost budget, jcode-guard-stop/-warn SNS,
jcode-phone-wake/jcode-guard-breaker Lambdas, jcode-pair-service.py,
jcode-serve.service, jcode-pair.service — in lockstep with the
corresponding source renames (which are deferred to a separate
operator-led PR)
The Phase 1 backwards-compat shim covers the user-facing surfaces for
1 release cycle. The Phase 2 source updates prepare the tree for the
infra migrations. Once items 1-5 above are complete, a Phase 3 PR can
delete the legacy fallbacks and the backwards-compat shim.
## Ledger
tx-agent: forge
tx-validated: cargo-check
tx-scope: crates/kcode-app-core/src/update.rs, crates/kcode-update-core/src/lib.rs, README.md, sdk/typescript/src/{launch,sockets,binary,index}.ts, sdk/typescript/package.json, sdk/typescript/package-lock.json, sdk/typescript/RELEASING.md, sdk/typescript/README.md, sdk/typescript/test/, sdk/typescript/examples/, sdk/npm/*/package.json, sdk/npm/*/README.md, ios/Sources/KcodeKit/, ios/Sources/KcodeMobile/, ios/Tests/KcodeKitTests/, ios/TestHarness/, ios/Package.swift, ios/project.yml, ios/.gitignore, ios/PRODUCTION_CHECKLIST.md, docs/IOS_APP.md, .github/workflows/ios-testflight.yml, scripts/install.ps1, scripts/uninstall.ps1, scripts/test_windows_setup_evaluation.ps1, scripts/test_sdk_package.sh, telemetry-worker/, assets/branding/
tx-intent: decollide KCode from jcode end-to-end (Phase 2: external-infra source refs)
Closes #32 (the decollide tracking issue, after Phase 1 + Phase 2 are both merged)
Lands the decollide rename work that was left uncommitted in the
jcode-decollide-kcode-r2worktree.crates/kcode-storage/src/lib.rs: adds the four remainingJCODE_TO_KCODE_ENVentries (JCODE_RUNTIME_DIR,JCODE_SOCKET,JCODE_SWARM_MODEL,JCODE_WAKE_MODE).sdk/typescript/src/binary.ts: resolves the renamedkcodebinary package(
@1jehuang/kcode-*), withbundledJcodeBinarykept as a one-cycle alias.sdk/typescript/src/launch.ts/sdk/typescript/src/sockets.ts: emit andread the
KCODE_*environment variables, honoring the legacyJCODE_*forms for one release cycle.
Base is
feature/herdr-plugin-manifest(the base this branch's previous PR#34 used), so the diff is limited to these four files.
Tracks #271 (residual agent PR backlog): the Require Linked Issue gate failed only because this PR predates the issue.