restore Ghost grounding across agent handoffs - #286
Draft
nahiyankhan wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
gatherplaced in context. Runninggatheragain 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 warningsChangeset: 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 nocheckcommandghost review --base main --include-memory: not run because the current CLI has no--include-memoryoption and this repo's package review requires applicable local checksFile changes
.changeset/restore-handoff-grounding.md
Records the new public
pullcapability 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.