Add structured ask mode with intent routing and AI-generated commits - #1
Merged
Conversation
…ion, and impact analysis - Add AskIntentRouter to classify user queries (explain_code, locate, architecture, compare, implement_here, debug_explain, general_knowledge, cross_project) - Add AskScopeResolver to detect workspace projects and resolve query scope - Add ImpactAnalyzer for read-only change impact analysis before implementations - Add ProjectCatalog to detect workspace packages, roots, and entry files - Add AskOrchestrator to compose routing + scoping + prompting into final responses - Add askPrompts with specialized system prompts per intent type - Add askTypes with TypeScript interfaces for all ask mode data structures - Extend builtinTools with ask-mode-only tools (analyze_change_impact, project_catalog, repo_map, retrieve_context) - Update TaskAnalyzer to route queries through the new ask pipeline - Update ChatOrchestrator and ThunderController to support ask mode responses - Add comprehensive unit tests for ask intent routing and scope resolution - Minor: update .gitignore, package.json deps, and config schema
New src/core/scm/ module streams a Conventional Commits message from the LLM using staged diffs and recent commit style, with sensitive-line redaction. Wired to VS Code Source Control via thunder.generateCommitMessage command with clipboard fallback. Ask-mode gains configurable depth (auto|quick|standard|deep) mapped to step budgets, plus askAutoContinue and askMaxAutoContinues settings. Context retrieval sources (vector, FTS, indexed files, search tools) now support scopeRoot filtering to constrain results to one project or package.
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.
This pull request introduces several new features and configuration options to enhance the "Ask" mode and commit message generation in the Mitii AI Agent extension, as well as improvements to project catalog support and tool registration. The most important changes are grouped below:
Ask Mode Enhancements:
package.json, includingaskDepth,askMaxSteps,askAutoContinue, andaskMaxAutoContinues, allowing users to control exploration depth, step limits, and auto-continuation behavior.ChatOrchestratorandThunderControllerto utilize and propagate these new Ask mode settings, and to leverage a newAskOrchestrator.preparemethod for more nuanced Ask-mode planning and context scoping. [1] [2] [3] [4] [5] [6] [7] [8] [9]Commit Message Generation Feature:
thunder.generateCommitMessageto the extension manifest, with associated menu integration in the Source Control view, and a new setting to enable or disable this feature. [1] [2] [3]ThunderController, including staged/unstaged diff validation and LLM-powered message creation.Project Catalog Support:
ThunderControllerfor richer workspace awareness. [1] [2] [3] [4]General Improvements & Maintenance:
2.6.22and specified the package manager version inpackage.json. [1] [2]These changes collectively improve the flexibility and intelligence of Ask mode, add a convenient AI-powered commit message workflow, and expand the extension’s contextual understanding of the workspace.