Skip to content

Add structured ask mode with intent routing and AI-generated commits - #1

Merged
codewithshinde merged 2 commits into
mainfrom
v2.7.x
Jul 1, 2026
Merged

Add structured ask mode with intent routing and AI-generated commits#1
codewithshinde merged 2 commits into
mainfrom
v2.7.x

Conversation

@codewithshinde

Copy link
Copy Markdown
Member

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:

  • Added new configuration options for Ask mode in package.json, including askDepth, askMaxSteps, askAutoContinue, and askMaxAutoContinues, allowing users to control exploration depth, step limits, and auto-continuation behavior.
  • Updated ChatOrchestrator and ThunderController to utilize and propagate these new Ask mode settings, and to leverage a new AskOrchestrator.prepare method for more nuanced Ask-mode planning and context scoping. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Improved task analysis for Ask mode by integrating Ask intent routing and response profiling, enabling more tailored behavior and summaries. [1] [2] [3]

Commit Message Generation Feature:

  • Added a new command thunder.generateCommitMessage to 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]
  • Implemented the backend logic for commit message generation in ThunderController, including staged/unstaged diff validation and LLM-powered message creation.

Project Catalog Support:

  • Introduced project catalog discovery and context sourcing, registering related tools and context sources in ThunderController for richer workspace awareness. [1] [2] [3] [4]

General Improvements & Maintenance:

  • Updated the extension version to 2.6.22 and specified the package manager version in package.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.

…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.
@codewithshinde
codewithshinde merged commit b8a9a54 into main Jul 1, 2026
@codewithshinde codewithshinde self-assigned this Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant