feat(session-context): add --skip option for sub-agent session reads#330
Merged
Conversation
When the lessons-learned skill runs as a sub-agent, it creates its own session (the most recent one). The session-context command then reads the sub-agent's sparse session instead of the parent's rich development context. Adding --skip <n> lets sub-agents skip their own session and read the parent session transcript via --skip 1. Changes: - Add skip field to ReadSessionOptions interface - Implement skip logic in all 4 session readers (claude-code, cursor, copilot, opencode) - Add --skip <n> CLI option to all session-context subcommands - Update lessons-learned skill prompts to use --skip 1 - Add tests for skip behavior across all editors - Update reference docs (EN + pt-br) with --skip documentation Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Deploying archgate-cli with
|
| Latest commit: |
80c30a7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b81f4703.archgate-cli.pages.dev |
| Branch Preview URL: | https://feat-session-context-skip.archgate-cli.pages.dev |
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.
Summary
--skip <n>option to allsession-contextsubcommands (claude-code, cursor, copilot, opencode)--skip, thesession-contextcommand reads the sub-agent's sparse session instead of the parent's rich development context.--skip 1bypasses the sub-agent's session and reads the parent transcript.--skip 1by defaultTest plan
--skipoption and examplearchgate session-context claude-code --skip 1with an active session to confirm it reads the second-most-recent session file