Add self-improvement: markdown-only improvement PRs from session insights#3
Merged
zizzle6717 merged 2 commits intoJun 8, 2026
Conversation
…ghts
tiny-code now reflects on a session's transcript and, when it finds concrete
friction (tool errors, retries, denials, missing capabilities), asks the user
for permission to open a pull request proposing an improvement.
The PR contains only a single markdown file under improvements/ for a
maintainer to implement separately — never code. This is enforced structurally
(regex-validated slug, one explicit staged path, staged-set assertion) so a
prompt-injected session cannot smuggle code changes into a PR. Reflection runs
with no tools, so it can never execute anything from a transcript.
- src/improve/{slug,reflect,pr,run}.ts: new module group
- config: opt-out `improve` block (on by default; TINY_CODE_IMPROVE=0 disables)
- repl: `/improve` command + auto-reflection on /exit
- PRs opened via the gh CLI; tests cover the markdown-only guarantee
…o claude/tiny-code-self-improve-d4MmR # Conflicts: # README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tiny-code now reflects on a session's transcript and, when it finds concrete
friction (tool errors, retries, denials, missing capabilities), asks the user
for permission to open a pull request proposing an improvement.
The PR contains only a single markdown file under improvements/ for a
maintainer to implement separately — never code. This is enforced structurally
(regex-validated slug, one explicit staged path, staged-set assertion) so a
prompt-injected session cannot smuggle code changes into a PR. Reflection runs
with no tools, so it can never execute anything from a transcript.
improveblock (on by default; TINY_CODE_IMPROVE=0 disables)/improvecommand + auto-reflection on /exit