Skip to content

restore Ghost grounding across agent handoffs - #286

Draft
nahiyankhan wants to merge 1 commit into
mainfrom
fix/handoff-grounding-replay
Draft

restore Ghost grounding across agent handoffs#286
nahiyankhan wants to merge 1 commit into
mainfrom
fix/handoff-grounding-replay

Conversation

@nahiyankhan

Copy link
Copy Markdown
Collaborator

Category: improvement
User Impact: Agents can restore the same Ghost grounding after a context handoff without repeating selection.
Problem: Pulling previously selected IDs restores their node bodies but not the package cover that gather placed in context. Running gather again exposes the menu and can invite a receiving agent to select a different set.
Solution: Add ghost pull --with-cover, which resolves and prepends the package cover while preserving the supplied IDs. The skill now uses this path after compaction or a session handoff and keeps any generated no-guidance instruction alongside the handoff.

Validation:

  • pnpm run quality:all: passed; 218 workspace tests passed, with existing non-blocking Biome and package-validation warnings
  • pre-commit and pre-push hooks: passed

Changeset: added as a minor release because this adds a public CLI flag.

ghost Review:

  • ghost check --base main: not run because the current CLI has no check command
  • ghost review --base main --include-memory: not run because the current CLI has no --include-memory option and this repo's package review requires applicable local checks
File changes

.changeset/restore-handoff-grounding.md
Records the new public pull capability as a minor release.

packages/ghost/src/commands/pull-command.ts
Adds --with-cover, resolves the current package cover, prepends it to the requested IDs, and warns when no cover resolves.

packages/ghost/src/skill-bundle/references/ground.md
Teaches agents to preserve selected IDs and restore them with the resolved cover without reopening selection.

packages/ghost/test/cli.test.ts
Covers cover restoration, output ordering, event attribution, missing-cover behavior, and installed skill wording.

Screenshots/Demos: N/A; no visual surface changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant