feat(self-improvement-assistant): add autonomous codebase analysis plugin#114
Closed
konard wants to merge 3 commits intoxlabtg:mainfrom
Closed
feat(self-improvement-assistant): add autonomous codebase analysis plugin#114konard wants to merge 3 commits intoxlabtg:mainfrom
konard wants to merge 3 commits intoxlabtg:mainfrom
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: xlabtg#113
…ugin Implements the plugin requested in issue xlabtg#113. The plugin provides: - self_analyze_codebase: heuristic analysis of JS/TS files for security, performance, readability, and test-coverage issues using regex patterns - self_create_issue: creates structured GitHub issues (admin-only) from findings - self_schedule_analysis: enables/disables periodic autonomous analysis - self_list_analysis_history: lists past runs from the local SQLite log All tokens are handled via sdk.secrets. Issue creation requires admin scope and auto_create_issues defaults to false for safety. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: 56.2K + 1.6M cached input tokens, 17.3K output tokens, $0.954452 cost 🤖 Models used:
📎 Log file uploaded as Gist (715KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Author
🔄 Auto-restart triggered (iteration 1)Reason: CI failures detected Starting new session to address the issues. Auto-restart-until-mergeable mode is active. Will continue until PR becomes mergeable. |
…iable Replace usage of Node.js `global.__selfImproveTimer` with a module-level `_selfImproveTimer` variable to fix ESLint no-undef errors in CI lint check. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
🔄 Auto-restart-until-mergeable Log (iteration 1)This log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: 33.8K + 855.0K cached input tokens, 3.7K output tokens, $0.438425 cost 🤖 Models used:
📎 Log file uploaded as Gist (1256KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
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.
Summary
Implements the
self-improvement-assistantplugin requested in issue #113.The plugin provides four tools for autonomous codebase analysis and GitHub issue creation:
self_analyze_codebase— fetches a GitHub repo's file tree, reads JS/TS source files, and applies heuristic pattern analysis to detect bugs, security vulnerabilities, performance issues, and readability problems. Results are persisted to a local SQLite database.self_create_issue— creates a well-formatted GitHub issue from any analysis finding, with severity badge, file path, description, and fix suggestion. Requires admin scope.self_schedule_analysis— enables or disables periodic autonomous analysis (configurable interval). Requires admin scope.self_list_analysis_history— lists past analysis runs from the local log.Detected patterns (heuristic, no LLM required)
eval()usagenew Function()innerHTML =assignmentasyncinforEach==)console.*callsSecurity
sdk.secrets— never loggedscope: admin-onlyauto_create_issuesdefaults tofalse— requires explicit user actionAbortSignal.timeout(15_000)Files added
plugins/self-improvement-assistant/index.js— plugin implementationplugins/self-improvement-assistant/manifest.json— plugin metadataplugins/self-improvement-assistant/README.md— documentationregistry.json— plugin entry addedHow to reproduce / test
Fixes #113
This PR was created automatically by the AI issue solver