Repository navigation
Conversation
Drives a local 'tinycode serve' to work through the open-issue backlog: - writes an isolated TINYCODE_CONFIG_DIR with autoApprove enabled - requires SI_ALLOW=1 before starting - picks the oldest actionable open issue (skipping $SEEN, $SI_SKIP_ISSUES, and $SI_LABEL_SKIP), creates a session, prompts the agent to fix it and open a PR, polls until idle, archives the session - respects SI_LABEL_FILTER, --rounds N, and a SPECIFIC_ISSUE positional - reuses the 'Authorization: Bearer $TOKEN' header for every request
… to CLAUDE.md GOTOOLCHAIN=auto keeps bumping go.mod to 1.27.1 and tinycode sessions were reverting exit tool additions. Document the constraint in CLAUDE.md so agents know not to touch the go directive. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
The server reads its auth token from $DATADIR/web_token — there is no way to inject a custom token via env var. Drop the unused random TOKEN, use TINYCODE_FORCE_NO_AUTH=1 (safe: server binds to 127.0.0.1 only). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Owner
|
Interesting concept, but several issues:
Closing — the self-improve loop concept is worth exploring separately once the exit tool has a subscriber and the script supports Gitea. |
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.
What this does
Adds
scripts/self-improve.sh, an unattended loop that drives a localtinycode servethrough the open-issue backlog: picks an actionable issue, creates a session, prompts the agent to fix it and open a PR, polls until idle, then archives.Key points
SI_ALLOW=1is set; writes an isolatedTINYCODE_CONFIG_DIRwithautoApproveenabled.$SI_SKIP_ISSUES, and labels in$SI_LABEL_SKIP(defaultdup,help wanted,wontfix).Authorization: Bearer $TOKEN(no ad-hoc env toggles).--rounds N,--model provider/model,--label L, a positional SPECIFIC_ISSUE, and--list-issues.internal/server/router.go:POST /session,POST /session/{id}/prompt_async,GET /session/{id}/message,GET /session/status,POST /session/{id}/abort,POST /session/{id}/archive.Validation
bash -npasses (syntax clean).jqfilter logic (number-exclusion + label-skip) unit-tested against fixture data.Notes
go buildis gated on the repo'sgo 1.27.1requirement vs. a 1.26 local toolchain — unrelated to this script, which is pure bash.)