Make page command default to summary only #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We want to ration our client agent's context window. When the
pagesubcommand is used, it loads the full text. Instead, it should only load the high-level table of contents so that future commands can grab the exact needed section. There still needs to be a way to access the entire page. Consider a good UX, perhaps--completeor--section All?Decide on what an agent would be most comfortable with, then implement.
Remember to update the SKILL.md and unit tests as necessary.
@claude please implemet
Claude finished @sam's task —— View job
Implementation Plan
claude/issue-3-page-default-summary)pagecommand implementation--completeflagSummary
Implemented the change in
scripts/rsw/internal/cmd/page.go:rsw <game> page <title>): now shows only the table of contents (section list) plus a hint message — no full page content dumped--completeflag: fetches the full page content (restores old default behavior)--section <name>: unchangedThe
SKILL.mdwas updated with the new recommended 2-step workflow: callpage(TOC) first, thenpage --section <name>for the content needed.Note: No existing unit tests covered the cmd layer behavior — only integration tests for the wiki client exist, which are unchanged.
PR: #4
Branch:
claude/issue-3-page-default-summary