Skip to content

fix(pi): preserve requested coverage within Context7 call budget - #3154

Open
jmclaughlin724 wants to merge 1 commit into
upstash:masterfrom
jmclaughlin724:master
Open

fix(pi): preserve requested coverage within Context7 call budget#3154
jmclaughlin724 wants to merge 1 commit into
upstash:masterfrom
jmclaughlin724:master

Conversation

@jmclaughlin724

Copy link
Copy Markdown

The packaged Pi skill says "Do not call either tool more than 3 times per question." For a multi-concept question, that cap can silently drop explicitly requested coverage: the skill also requires one query-docs call per distinct concept, so four concepts cannot all be covered within three calls. This keeps the call budget but clarifies that it limits Context7 calls, not requested coverage — use other authorized sources for remaining concepts, or state the unresolved coverage instead of claiming completion. Verified: the only behavioral change is one sentence in the skill guidance; no runtime code touched.

Copilot AI lite review requested due to automatic review settings September 7, 2026 15:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new sentence introduces potentially conflicting guidance (“other authorized sources”) relative to earlier “don’t rely on training data / prefer Context7” instructions, which could lead to unverified answers being presented as complete.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the Context7 Docs skill’s constraint wording to clarify that the 3-call limit applies to Context7 tool invocations and should not silently truncate the user’s requested conceptual coverage.

Changes:

  • Expands the “3 calls per question” constraint to explicitly distinguish tool-call budget from requested coverage expectations.
File summaries
File Description
packages/pi/skills/context7-docs/SKILL.md Clarifies the meaning and implications of the 3-call Context7 constraint in the skill guidance.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

## Constraints

- Do not call either tool more than 3 times per question.
- Do not call either tool more than 3 times per question. This limits Context7 calls, not requested coverage: use other authorized sources for remaining concepts, or identify the unresolved coverage without claiming completion.
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