Skip to content

Add /btw command for paste-friendly context input#90

Open
madeleinesong wants to merge 3 commits into
mainfrom
eng-456-allow-pasting-btw-command
Open

Add /btw command for paste-friendly context input#90
madeleinesong wants to merge 3 commits into
mainfrom
eng-456-allow-pasting-btw-command

Conversation

@madeleinesong

Copy link
Copy Markdown
Contributor

Summary

  • Adds the /gpd:btw <text> command so users can paste or type context mid-conversation
  • The command accepts all text as inline $ARGUMENTS — no interactive prompting that would block paste
  • Registers the command in the skill category map as "session" and adds it to both help references

Closes ENG-456

Changes

  • New: src/gpd/commands/btw.md — command definition with context_mode: global, accepts $ARGUMENTS inline
  • Updated: src/gpd/commands/help.md — added /btw to Session Management section and quick-reference
  • Updated: src/gpd/specs/workflows/help.md — matching help updates
  • Updated: src/gpd/registry.py — added gpd-btw to skill category map
  • Updated: tests and repo graph contract to account for the new command

Test plan

  • PYTHONPATH=src python3 -m pytest tests/ -q -o "addopts=" — all tests pass (2133+)
  • Verified command registers correctly via get_command('btw'), get_skill('gpd-btw')
  • Verified all lookup forms work: btw, gpd:btw, gpd-btw
  • Command count, repo graph contract, and workflow exemption tests updated and passing

🤖 Generated with Claude Code

Users could not paste text into conversations via a slash command.
This adds the /gpd:btw command which accepts inline arguments,
enabling both typed and pasted input of any length without
interactive prompting.
@madeleinesong madeleinesong force-pushed the eng-456-allow-pasting-btw-command branch from dc6c0ea to a959967 Compare April 6, 2026 17:25
…-btw-command

# Conflicts:
#	src/gpd/commands/help.md
#	src/gpd/specs/workflows/help.md
#	tests/README.md
#	tests/core/test_prompt_wiring.py
#	tests/repo_graph_contract.json
The forward merge with main brought in main's command-owned help metadata
requirement and the renderer-backed help surfaces, but the btw command
predated that contract and was missing a help: block, so the help renderer
failed closed and btw never appeared in the rendered command inventory.

- Add the required help metadata (group, order, compact_description,
  display_signature, example, note) to src/gpd/commands/btw.md so the
  renderer emits btw into the command index and detailed reference.
- Regenerate the help surfaces, repo-graph contract, and tests/README.md
  scope counts (commands 71 -> 72) to reflect the added command.
- Convert the leftover btw paste-friendly example from an unlabeled code
  fence into a runtime-neutral Common Workflows bullet, matching main's
  prefixless framing and satisfying the command-looking-fence label check.
- Add btw to the command prompt-budget baseline registry with its measured
  expanded surface (52 lines, 1907 chars, 0 raw includes).
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@cmaloney111, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 5 minutes and 34 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e8cac6df-54f9-466f-aea3-19df0a363bf7

📥 Commits

Reviewing files that changed from the base of the PR and between 0f41769 and 35dc15a.

📒 Files selected for processing (8)
  • src/gpd/commands/btw.md
  • src/gpd/registry.py
  • src/gpd/specs/references/help/detailed-command-reference.md
  • src/gpd/specs/workflows/help.md
  • tests/README.md
  • tests/core/test_command_prompt_budget.py
  • tests/core/test_prompt_wiring.py
  • tests/repo_graph_contract.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch eng-456-allow-pasting-btw-command

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants