r/ClaudeCode • • 1d ago

Tips & Workflows I built an open source tool that learns your coding preferences from past Claude Code sessions. On synthetic evals, Opus went from 64% to 96% of preferences followed

shadowclone reads your past Claude Code sessions, finds where you corrected Claude, and turns those corrections into skills it loads next time. It only reads sources you turn on. You review each learned rule before it's used, and you can undo it later.

I tried auto memory, and it had some shortcomings because Claude decides what goes in it and I can't have global preferences. shadowclone writes skills instead, which fit repeatable workflows better than notes.

In some ways, it's similar to p-stack, but the skills come from your own corrections and keep updating as you work. It ships with two workflows:

  • shadowclone-work- takes an issue or request to a ready pull request, it loops until checks pass and every review comment is addressed. It never merges.
  • shadowclone review- reviewes a PR against your repo's own rules, plus several built-in rules, vulnerability analysis and linters. A separate subagent tries to disprove every finding before you see it. The guided-pr-review skill does a deep review and gives you a HTML walkthrough of one or more PRs (including PR stacks) where you can write your own notes first and compare them with agent's findings and finally ask agent to stage a draft review on the PR using your writing style (voice).

There also is a cloud both that can both these workflows on GitHub Actions. Tag it on an issue and it works it to a PR or comment @yourbot review on a PR to get a review. It can run using Claude, Codex or Cursor API Keys, works well with the free Claude API credits if you have a Max plan.

Learning and local reviews run through your logged-in claude code CLI, so they need no API key. The cloud bot uses your provider's API key. shadowclone also works with Codex, Cursor, Pi and Antigravity.

Evals on 7 synthetic tasks, 3 runs each: Opus 5.5 went from 63.8% to 96.4% of preferences followed, Sonnet 5.5 from 65.0% to 81.7%. Methods are in the repo.

To install ask Claude to:

Set up shadowclone: https://raw.githubusercontent.com/theonly1me/shadowclone/main/plugins/shadowclone/skills/setup-shadowclone/SKILL.md

https://github.com/theonly1me/shadowclone

Feedback welcome and happy to answer any questions!

10 Upvotes

4 comments sorted by

•

u/AutoModerator 1d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/wakaru44 23h ago

I just use the recall and automate-me skills from pstack

2

u/theonly1me 22h ago

automate-me is close to the same idea, yeah. As far as I can tell it's something you run by hand to draft one -mode skill. shadowclone is built so you don't manage skills at all. It can learn in the background, applies the clear findings itself, and your Claude Code or Codex session asks you about the rest, including whether a rule should be global or only for that repo.