Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Enables developers to selectively enable built-in AI tools instead of all-or-nothing via disableBuiltInTools.

Changes

  • Export defaultTools constant from packages/ai/src/plugin.ts with JSDoc documentation
  • Rename internal property from defaultTools to builtInTools to avoid shadowing the export
  • Update AI plugin guide with new "Selectively enabling built-in tools" section and add missing tools (getMemberById, createEmbed) to the built-in tools list
  • Regenerate API docs via pnpm docgen

Usage

import { configureAI, defaultTools } from '@commandkit/ai';

configureAI({
  disableBuiltInTools: true,
  selectAiModel: async (ctx, message) => ({
    model: google.languageModel('gemini-2.0-flash'),
    tools: {
      getAvailableCommands: defaultTools.getAvailableCommands,
      getUserById: defaultTools.getUserById,
      // Omit tools you don't need
    },
  }),
});
Original prompt

This section details on the original issue you should resolve

<issue_title>Allow customizing defaultTools in @commandkit/ai</issue_title>
<issue_description>


It would be great to have a way to customize or override
defaultTools in @commandkit/ai.

In many cases, not all built-in tools are needed—for example, createEmbed. Being able to selectively enable or disable these tools would give developers more flexibility and help keep implementations cleaner and more intentional.

This would make the library easier to adapt to different use cases without having to work around unused defaults.

<agent_instructions>export defaultTools record from the ai package and also update the docs (api docs can be auto generated with script, see root package.json, you just need to update the guide for ai plugin showing how disabling builtin tools and manually injecting the desired ones to the configureAI tools record can fix this issue of default tools customization). No need to run tests or build the changes, only do these tasks.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Review Updated (UTC)
commandkit Ignored Ignored Preview Jan 29, 2026 6:28am

Copilot AI and others added 2 commits January 29, 2026 06:26
Co-authored-by: twlite <46562212+twlite@users.noreply.github.com>
Co-authored-by: twlite <46562212+twlite@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ability to customize defaultTools in @commandkit/ai Export defaultTools from @commandkit/ai for selective tool configuration Jan 29, 2026
Copilot AI requested a review from twlite January 29, 2026 06:29
@twlite twlite marked this pull request as ready for review January 29, 2026 12:25
@twlite twlite merged commit a1ed97a into main Jan 29, 2026
4 checks passed
@twlite twlite deleted the copilot/customize-default-tools-ai branch January 29, 2026 12:25
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.

Allow customizing defaultTools in @commandkit/ai

2 participants