Repository navigation
GHOST v1.7.0
[1.7.0] - 2026-11-22
Added
- Terminal Agents suite 2: codex (2026-11-21) — the OpenAI Codex CLI
(npm@openai/codex) joins as the second Terminal-Agents suite, on the
claude-code pilot's exact pattern: ONE env-lever home (CODEX_HOME,
Phase-0 LIVE-VERIFIED —--version,codex login status,codex mcp listand an exec attempt all honored it while the Primary~\.codex
stayed byte-identical), light-worker PID markers for attribution, and an
evidence-based identity resetter.launch_codex_light.ps1(Terminal
Agents [6]/[7], gids 133/134): interactive TUI default,
codex exec --skip-git-repo-checkone-shot with STDIN CLOSED (codex
exec reads stdin — live-captured),-Yolo=--yolo,-Loginverifies
auth.json.reset_codex.ps1(Terminal Agents [8], gid 135):
deletesauth.json+installation_id(PROVEN to regenerate fresh) +
cap_sid+ the runtime SQLite stores (state_*/logs_*/goals_*/queue_*- wal/shm) + sandbox/tmp junk;
config.toml,AGENTS.md, chats
(sessions\), memories and thread history PRESERVED; NO TOML/JSON
edits at all.status_all_instances.ps1+suite_status_lib.ps1gain
the codex suite (markers-only attribution like claude-code; Terminal
Agents [9] = gid 136, ceiling 132→136). Honest limits recorded:
an unauthenticatedcodex execFAILS LOUDLY (no claude-style hang) and
skills load from the SHARED~\.agentsstore. gemini-cli stays
deferred-by-absence (~\.geminiis Antigravity's).
- wal/shm) + sandbox/tmp junk;
Added
- Terminal Agents: the Z.ai gateway lever — claude-code rides the existing GLM plan (2026-11-21) —
Z.ai's GLM Coding Plan officially exposes an Anthropic-compatible endpoint
(https://api.z.ai/api/anthropic, documented for Claude Code), so the
claude-code clones no longer need an Anthropic subscription: set
ANTHROPIC_BASE_URL+ANTHROPIC_AUTH_TOKENonce via setx (machine env;
the token value is never printed or stored by GHOST) and the gateway IS
the auth — no OAuth login, and the launcher's no-login warning goes
quiet.launch_claude_code_light.ps1gains-Gateway(Terminal Agents
[5], gid 132, ceiling 130→132): prints the exact setx recipe when
unset, and runs a REAL verify turn on the c1 home (light-worker marker on)
when set. Un-blocks the remaining TA-1 items (real turn + onboarding
question) on the user's existing Start Plan — the only user-supervised
step left is fetching a Z.ai API key and running the recipe.
Verified
- TA-1 live acceptance, half-verified (2026-11-21) — the light-worker
PID-marker + fleet-view contract VERIFIED LIVE on the claude-code suite
(mid-runc1 RUNNING / light workercapture + cleanstoppedafter);
the no-subscription failure mode captured: an unauthenticated headless
-pHANGS silently (always-Loginfirst). The real login + turn stay
OPEN, gated on an Anthropic subscription. Docs: TASK_BACKLOG TA-1,
TERMINAL_AGENTS_SPEC §2/§5, cli.md honest limits.
Added
- ZCode clone memory sync — one shared memory store for all instances
(2026-11-21) — each clone's.zcode\cli\memoriesis a private seed-time
copy, so memory saved in one instance never reached the others (live
measurement: five clone stores of 233 markdown files each vs 957 on the
Primary, MEMORY.md index pointers diverged by hundreds of lines). New
tools/sync_zcode_memories.ps1(ZCode submenu [34], gid 131) applies the
skills-sync junction pattern to the memory stores: newer-wins robocopy
merge clone→Primary (/E /XO, Primary never downgraded; junk
_backup-merge-*/memories.pre-sync-*dirs excluded everywhere), a
UTF-8-safe MEMORY.md index union with a mojibake peel, whole-dir
move-aside backup (memories.pre-sync-<ts>), junction onto the Primary
store, verify-after everywhere (junction LinkType + resolved target +
content probe; index writes re-read + compared), JSONL audit at
<CloneHome>\.zcode\memory-sync-audit.jsonl. Encoding is the whole point:
the peel exists because the 2026-11-21 live incident showed PS 5.1
Get-ContentANSI defaults re-appending UTF-8 index lines as layered
mojibake (one real index: 7749 lines holding 845 unique) — the lib
(tools/zcode_memory_merge.ps1, pure + unit-tested) reads/writes explicit
no-BOM UTF-8, peels CP1252-as-UTF-8 layers with an EXCEPTION-fallback
encoder (bare GetEncoding(1252) BEST-FITS unmappable chars like Arabic
alef to '?', silently corrupting them — caught by the fixtures), and
preserves single-line arrays through the return unwrap. Guards mirror the
asset sync: RUNNING instances skipped unless-AllowRunning(owner
override), unseeded homes skipped, already-junctioned stores verified +
idempotent-skipped.-Target Second|Third|Fourth|Fifth|Sixth|All,
-DryRun. Derived from the live all-with-all sync performed 2026-11-21;
live acceptance on a fresh multi-clone machine pending. Docs: cli.md
"ZCode clone memory sync", getting-started ZCode [34], README task table. - Terminal Agents family + the claude-code pilot (2026-11-21) — GHOST's
home for TERMINAL coding agents (CLIs whose interactive REPL already is a
terminal TUI, so no desktop isolation layer is needed). Pilot = claude-code
(npm@anthropic-ai/claude-code2.1.314, Phase-0 evidence-cited):
per-instance homes ride ONE env lever (CLAUDE_CONFIG_DIR— live-verified:
a fresh dir +claude mcp listcreates.claude.json+backups\there;
each fresh home auto-generates its ownmachineID/userID). New:
src/windows/launch_claude_code_light.ps1(-Instance c1..c5, REPL /
-Prompt/-Yolo/-Login/-Status; light-worker PID marker around
every run mode; login verified via the home's own.credentials.json) +
src/windows/reset_claude_code.ps1(user-scope resetter, W1-9 dry-run
planner, evidence-based identity/telemetry key scrub + OAuth deletion +
backups/.claude.json.backup.*/state/cache/statsigsweeps;
transcripts/sessions/history/settings/skills/mcpServers PRESERVED; handles
the Primary profile-root.claude.jsonvs clone consolidated-home layout
asymmetry; fixture-tested end-to-end incl. idempotence). Honest limits
recorded: no free-model fallback (fresh homes need their own-Login);
one-shot tool approvals need-Yolo. Spec:
docs/TERMINAL_AGENTS_SPEC.md; open items TA-1 (live acceptance,
user-supervised) + TA-3 (codex/gemini backlog) in TASK_BACKLOG §5. - Unified cross-suite instance status — Maintenance [6] (gid 126) +
Terminal Agents [4] (gid 130) — "how do I know which clone/instance is
running" answered in ONE read-only report:
tools/status_all_instances.ps1covers every suite (ZCode, AutoClaw2,
Cline, OpenCode, Claude Code) in one invocation with honestly-labeled
signals (exe copy / markers / lockfile / title / bare main / light worker
— a stock-exe AutoClaw2 clone staysUNCLASSIFIABLE externally, never
guessed) + the OS commit/RAM header. The classifier rules (EC-K01
bare-exe mains, copy-exe-first, queue-based subtree marker walk, lockfile
probes, title maps) live in ONE shared lib now,
tools/suite_status_lib.ps1(Get-GhostSuiteInstanceState, injectable
process snapshots for tests) — the six live-verified per-suite inline
copies are deliberately untouched for now (dedup recorded as TA-2). - Headless light-worker visibility (the PID-marker contract) — every
light-worker launcher (ZCodelaunch_zcode_cli_light.ps1,
launch_opencode_cli_light.ps1,launch_cline_cli_light.ps1, the new
claude-code worker, and the Linuxlaunch_zcode_cli_light.shtwin) now
writes<clone-home>\.ghost-light-worker.json(launcher pid + mode,
key names only) for the whole run and removes it on exit
(src/windows/ghost_light_marker.ps1= the one shared copy; readers
validate pid liveness + a PowerShell/pwsh process-name sanity check, so a
hard-killed worker reads as stale, never as running). Until now headless
workers were invisible to every status surface (no window, no AUMID, no
lockfile). - Terminal Agents submenu (main menu [7]) — GHOST.bat + menu.json +
parity tests: locals [1]-[4] = claude-code worker (gid 127, detached),
c1 login (gid 128, detached), Primary identity reset (gid 129,
confirm-run), suite instance status (gid 130). Ceiling raised 125→130 per
the raise-when-landing rule; the retired v1 gids 37-40+63 stay
reserved-dead.
Changed
tests/ghost_hub_menu.Tests.ps1(seven sections incl. "Terminal Agents"
last, gid ceiling 130) +tests/docs_launcher_parity.Tests.ps1(seven
submenu ceilings; every new row cited in docs/cli.md). docs/cli.md gains
the "Which instance is running? (Maintenance [6])" guide (the honest
signal vocabulary + the deep per-suite tools) and the "Terminal Agents"
section; README gains the claude-code/status rows + the light-worker
marker; docs/T3_LOCAL_SUPPORT.md fixes the stale Cline row (the CLI
worker predates it) and notes the GHOST claude-code pilot; TASK_BACKLOG
§5 gains TA-1/TA-2/TA-3.