Skip to content

Give Sharpie the whole softcode guide in every request - #5

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-j6eyxq
Dec 2, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-j6eyxq

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Requested by Grave · project thread

Sharpie had the softcode guide (skills/writing-sharpmush-softcode/SKILL.md) only as a searchable page. It is 65 KB, and read_page returns 24,000 characters at a time, so Sharpie had to read it in three goes or rely on a search hit.

  • The whole guide now sits in the cached request prefix, before the docs map. It is read from the local index, so it follows the 6-hour refresh like everything else, and changes the prefix only when the guide itself changes.
  • The rules tell Sharpie to follow it for any code they write, cite it, and not read it again with read_page.
  • The prefix grows from about 22,000 to about 40,000 tokens (an estimate from the file size; not measured). Cached reads cost about 0.4 cents more per request; a cold cache write about 14 cents more. README's cost section says so.

Tests: 67 pass. Not live-tested.


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7WBN7Ha3pbdd9RHEQs
@HarryCordewener HarryCordewener self-assigned this Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 7 billable files and costs up to $1.75.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 9 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 62 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c3754b56-795e-4050-b746-41592726790b
Commits

Reviewing files that changed from the base of the PR and between f12b10a and a289bbe.

Files selected for processing: 7

  • CHANGELOG.md
  • README.md
  • src/Sharpie.Core/Answering/Answerer.cs
  • src/Sharpie.Core/Answering/SharpiePrompt.cs
  • src/Sharpie.Core/Search/DocsIndex.cs
  • src/Sharpie/IndexService.cs
  • tests/Sharpie.Tests/PromptTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener merged commit 398b483 into main Dec 2, 2026
3 checks passed
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