Skip to content
Source
Sign inSign up
TanStack/ai

feat(code-mode): lazy tool support (progressive disclosure) #726

MergedAlemTuzlakmerged 8 commits intomain fromrefs/pull/726/headmerged by AlemTuzlak View on GitHub

AlemTuzlakcommented

Summary

Adds lazy tool support (progressive disclosure) to Code Mode, plus a shared, optional lazyToolsConfig that also tunes chat()'s existing lazy-tool discovery. The goal is context savings: with a large tool catalog, you no longer pay for every tool's type stub + description in the execute_typescript system prompt on every turn.

Lazy behavior is triggered purely by marking a tool lazy: true — lazyToolsConfig is optional everywhere and only tunes how much of each lazy tool's description shows in the pre-discovery catalog.

How it works

  • Shared config: LazyToolsConfig { includeDescription: 'none' | 'first-sentence' | 'full' } (default 'none'), accepted by both chat() and createCodeMode(). 'none' is byte-identical to today's chat catalog.
  • Code Mode: tools marked lazy: true are kept out of the system prompt's full documentation (type stubs omitted) and listed in a lightweight "Discoverable APIs" catalog. A new discover_tools companion tool returns each lazy tool's TypeScript signature on demand; the model then calls external_<name>(...) inside execute_typescript. Lookups tolerate the optional external_ prefix so the model can pass the catalog name verbatim.
  • Documentation-only lazy: all tool bindings are always injected into the sandbox — lazy defers only prompt documentation, not callability. This is stateless/serverless-safe.

API

createCodeMode(config) now returns { tool, discoveryTool, tools, systemPrompt }:

  • tool (= execute_typescript) and systemPrompt are unchanged — fully backward compatible.
  • tools is the array to spread into chat({ tools }); discoveryTool is null when there are no lazy tools.

Testing

  • Unit tests across both packages (helpers, LazyToolManager catalog rendering, eager/lazy partition, discover_tools incl. prefix tolerance + includeDescription, return shape). pnpm test:pr green.
  • E2E: a wire-journal spec asserts the chat lazy discovery catalog renders per includeDescription (none/first-sentence/full).
  • Docs (docs/code-mode/lazy-tools.md), both agent skills, and a changeset updated in the same PR.

Follow-up

There is currently no code-mode E2E harness in testing/e2e/ (no route/fixture exercising createCodeMode). A code-mode-specific lazy E2E (sequencing discover_tools → execute_typescript against a sandbox driver) would need net-new harness wiring disproportionate to this change; the partition/discovery logic is comprehensively unit-covered. Recommend tracking code-mode E2E harness wiring as a separate issue.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Lazy tool discovery: mark tools as lazy to reduce initial prompts and surface them through a discoverable catalog, with on-demand signature/type retrieval
    • Shared lazyToolsConfig ( includeDescription: none, first-sentence, full) controls how much is shown before discovery in both chat() and Code Mode
    • Code Mode: when lazy tools are present, it can provide a discovery companion and includes it in the returned tool set while keeping existing behavior intact
  • Documentation

    • Added guides and examples for configuring lazy tools and discovery catalog verbosity
  • Tests

    • Added unit tests plus end-to-end/wire-format coverage for discovery, verbosity, and expected payloads
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Review Change Stack

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: defaults

      Review profile: CHILL

      Plan: Pro

      Run ID: 231a1c82-3311-4902-82a6-b724c8a4ebfa

      📥 Commits

      Reviewing files that changed from the base of the PR and between bab6ada9c4332c9670ecbae92ba87f9a3ccb29ed and cab200308c620e2d5060c47ef131a43f0f0a3011.

      📒 Files selected for processing (3)
      • docs/code-mode/lazy-tools.md
      • docs/config.json
      • docs/tools/lazy-tool-discovery.md
      ✅ Files skipped from review due to trivial changes (2)
      • docs/tools/lazy-tool-discovery.md
      • docs/code-mode/lazy-tools.md
      🚧 Files skipped from review as they are similar to previous changes (1)
      • docs/config.json

      📝 Walkthrough

      Walkthrough

      Adds lazy-tool progressive disclosure for Code Mode and chat: lazy tools are omitted from initial eager stubs, exposed through a discoverable catalog with configurable description detail, and fetched on demand through discover_tools. Tests, e2e coverage, docs, and skill guides were updated.

      Changes

      Lazy Tools Progressive Disclosure

      Layer / File(s)Summary
      Shared lazy-tool types and catalog helpers
      packages/ai/src/types.ts, packages/ai/src/activities/chat/tools/lazy-tools.ts, packages/ai/src/index.ts, packages/ai/tests/lazy-tools.test.ts
      Introduces LazyToolsConfig, adds firstSentence and renderLazyCatalogEntry, re-exports the helpers, and verifies catalog formatting behavior.
      Chat lazy catalog wiring
      packages/ai/src/activities/chat/index.ts, packages/ai/src/activities/chat/tools/lazy-tool-manager.ts, packages/ai/tests/lazy-tool-manager.test.ts
      Adds lazyToolsConfig to chat activity options, passes it into LazyToolManager, and changes discovery-tool description rendering to use the configurable lazy catalog format.
      Code Mode discovery tool contract
      packages/ai-code-mode/src/types.ts, packages/ai-code-mode/src/create-discovery-tool.ts, packages/ai-code-mode/src/index.ts, packages/ai-code-mode/tests/create-discovery-tool.test.ts
      Extends Code Mode types, adds createDiscoveryTool with schemas and name normalization, re-exports it, and validates discovery and error handling.
      Code Mode prompt and return-shape updates
      packages/ai-code-mode/src/create-code-mode.ts, packages/ai-code-mode/src/create-code-mode-tool.ts, packages/ai-code-mode/src/create-system-prompt.ts, packages/ai-code-mode/tests/create-code-mode.test.ts, packages/ai-code-mode/tests/create-system-prompt.test.ts, .changeset/code-mode-lazy-tools.md
      Updates createCodeMode to return discovery metadata, filters lazy tools out of eager prompt stubs, adds a discoverable section to the system prompt, and covers the new return shape in tests.
      E2E wire-format validation for includeDescription
      testing/e2e/src/routes/api.lazy-tools-wire.ts, testing/e2e/src/routeTree.gen.ts, testing/e2e/src/routes/api.lazy-tools-wire.ts, testing/e2e/fixtures/lazy-tools-wire/basic.json, testing/e2e/tests/lazy-tools-wire.spec.ts
      Adds an API route, generated route wiring, fixture, and Playwright checks for none, first-sentence, and full discovery-catalog descriptions.
      Docs, skills, and changeset updates
      docs/code-mode/lazy-tools.md, docs/tools/lazy-tool-discovery.md, docs/config.json, packages/ai-code-mode/skills/ai-code-mode/SKILL.md, packages/ai/skills/ai-core/tool-calling/SKILL.md
      Adds lazy-tools documentation, updates docs navigation metadata, and expands skill guides with lazy-tool setup and catalog configuration notes.

      Sequence Diagram(s)

      sequenceDiagram
        participant Model
        participant discover_tools
        participant execute_typescript
        Model->>discover_tools: discover_tools({ toolNames })
        discover_tools-->>Model: tools[{ name, description, typeStub }]
        Model->>execute_typescript: call external_<name>(...)
        execute_typescript-->>Model: execution result

      Estimated code review effort

      🎯 4 (Complex) | ⏱️ ~45 minutes

      • TanStack/ai#795: Modifies the same lazy-tool discovery core in packages/ai/src/activities/chat/tools/lazy-tool-manager.ts.

      Suggested reviewers

      • crutchcorn
      • tombeckenham

      Poem

      🐇 I hopped through prompts both big and small, Hid lazy tools from the first call. Then discover_tools lit the way — New stubs appear, and bunnies say: hooray!

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Title check✅ PassedThe title clearly summarizes the main change: lazy tool support with progressive disclosure in Code Mode.
      Description check✅ PassedThe description is detailed and covers the change, API, testing, and follow-up, though it doesn't use the template headings exactly.
      Docstring Coverage✅ PassedDocstring coverage is 88.89% which is sufficient. The required threshold is 80.00%.
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      ✏️ Tip: You can configure your own custom pre-merge checks in the settings.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `feat/code-mode-lazy-tools`

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab)commented

      🚀 Changeset Version Preview

      3 package(s) bumped directly, 29 bumped as dependents.

      🟥 Major bumps

      PackageVersionReason
      @tanstack/ai-code-mode0.2.13 → 1.0.0Changeset
      @tanstack/ai-angular0.1.9 → 1.0.0Dependent
      @tanstack/ai-anthropic0.15.8 → 1.0.0Dependent
      @tanstack/ai-code-mode-skills0.3.2 → 1.0.0Dependent
      @tanstack/ai-elevenlabs0.2.27 → 1.0.0Dependent
      @tanstack/ai-fal0.9.4 → 1.0.0Dependent
      @tanstack/ai-gemini0.18.0 → 1.0.0Dependent
      @tanstack/ai-grok0.14.2 → 1.0.0Dependent
      @tanstack/ai-groq0.4.12 → 1.0.0Dependent
      @tanstack/ai-isolate-node0.1.38 → 1.0.0Dependent
      @tanstack/ai-isolate-quickjs0.1.38 → 1.0.0Dependent
      @tanstack/ai-ollama0.8.8 → 1.0.0Dependent
      @tanstack/ai-openai0.15.6 → 1.0.0Dependent
      @tanstack/ai-openrouter0.15.1 → 1.0.0Dependent
      @tanstack/ai-preact0.9.13 → 1.0.0Dependent
      @tanstack/ai-react0.15.13 → 1.0.0Dependent
      @tanstack/ai-react-ui0.8.10 → 1.0.0Dependent
      @tanstack/ai-solid0.13.13 → 1.0.0Dependent
      @tanstack/ai-solid-ui0.7.9 → 1.0.0Dependent
      @tanstack/ai-svelte0.13.13 → 1.0.0Dependent
      @tanstack/ai-vue0.13.13 → 1.0.0Dependent
      @tanstack/openai-base0.9.2 → 1.0.0Dependent

      🟨 Minor bumps

      PackageVersionReason
      @tanstack/ai0.35.0 → 0.36.0Changeset

      🟩 Patch bumps

      PackageVersionReason
      @tanstack/ai-event-client0.6.6 → 0.6.7Changeset
      @tanstack/ai-client0.18.4 → 0.18.5Dependent
      @tanstack/ai-devtools-core0.4.16 → 0.4.17Dependent
      @tanstack/ai-isolate-cloudflare0.2.29 → 0.2.30Dependent
      @tanstack/ai-mcp0.1.8 → 0.1.9Dependent
      @tanstack/ai-vue-ui0.2.25 → 0.2.26Dependent
      @tanstack/preact-ai-devtools0.1.59 → 0.1.60Dependent
      @tanstack/react-ai-devtools0.2.59 → 0.2.60Dependent
      @tanstack/solid-ai-devtools0.2.59 → 0.2.60Dependent
    3. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit cab200308c620e2d5060c47ef131a43f0f0a3011

      CommandStatusDurationResult
      nx run-many --targets=build --exclude=examples/...✅ Succeeded1m 23sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-06-25 10:16:07 UTC

    4. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented

      Open in StackBlitz

      @tanstack/ai

      npm i https://pkg.pr.new/@tanstack/ai@726

      @tanstack/ai-angular

      npm i https://pkg.pr.new/@tanstack/ai-angular@726

      @tanstack/ai-anthropic

      npm i https://pkg.pr.new/@tanstack/ai-anthropic@726

      @tanstack/ai-client

      npm i https://pkg.pr.new/@tanstack/ai-client@726

      @tanstack/ai-code-mode

      npm i https://pkg.pr.new/@tanstack/ai-code-mode@726

      @tanstack/ai-code-mode-skills

      npm i https://pkg.pr.new/@tanstack/ai-code-mode-skills@726

      @tanstack/ai-devtools-core

      npm i https://pkg.pr.new/@tanstack/ai-devtools-core@726

      @tanstack/ai-elevenlabs

      npm i https://pkg.pr.new/@tanstack/ai-elevenlabs@726

      @tanstack/ai-event-client

      npm i https://pkg.pr.new/@tanstack/ai-event-client@726

      @tanstack/ai-fal

      npm i https://pkg.pr.new/@tanstack/ai-fal@726

      @tanstack/ai-gemini

      npm i https://pkg.pr.new/@tanstack/ai-gemini@726

      @tanstack/ai-grok

      npm i https://pkg.pr.new/@tanstack/ai-grok@726

      @tanstack/ai-groq

      npm i https://pkg.pr.new/@tanstack/ai-groq@726

      @tanstack/ai-isolate-cloudflare

      npm i https://pkg.pr.new/@tanstack/ai-isolate-cloudflare@726

      @tanstack/ai-isolate-node

      npm i https://pkg.pr.new/@tanstack/ai-isolate-node@726

      @tanstack/ai-isolate-quickjs

      npm i https://pkg.pr.new/@tanstack/ai-isolate-quickjs@726

      @tanstack/ai-mcp

      npm i https://pkg.pr.new/@tanstack/ai-mcp@726

      @tanstack/ai-ollama

      npm i https://pkg.pr.new/@tanstack/ai-ollama@726

      @tanstack/ai-openai

      npm i https://pkg.pr.new/@tanstack/ai-openai@726

      @tanstack/ai-openrouter

      npm i https://pkg.pr.new/@tanstack/ai-openrouter@726

      @tanstack/ai-preact

      npm i https://pkg.pr.new/@tanstack/ai-preact@726

      @tanstack/ai-react

      npm i https://pkg.pr.new/@tanstack/ai-react@726

      @tanstack/ai-react-ui

      npm i https://pkg.pr.new/@tanstack/ai-react-ui@726

      @tanstack/ai-solid

      npm i https://pkg.pr.new/@tanstack/ai-solid@726

      @tanstack/ai-solid-ui

      npm i https://pkg.pr.new/@tanstack/ai-solid-ui@726

      @tanstack/ai-svelte

      npm i https://pkg.pr.new/@tanstack/ai-svelte@726

      @tanstack/ai-utils

      npm i https://pkg.pr.new/@tanstack/ai-utils@726

      @tanstack/ai-vue

      npm i https://pkg.pr.new/@tanstack/ai-vue@726

      @tanstack/ai-vue-ui

      npm i https://pkg.pr.new/@tanstack/ai-vue-ui@726

      @tanstack/openai-base

      npm i https://pkg.pr.new/@tanstack/openai-base@726

      @tanstack/preact-ai-devtools

      npm i https://pkg.pr.new/@tanstack/preact-ai-devtools@726

      @tanstack/react-ai-devtools

      npm i https://pkg.pr.new/@tanstack/react-ai-devtools@726

      @tanstack/solid-ai-devtools

      npm i https://pkg.pr.new/@tanstack/solid-ai-devtools@726

      commit: cab2003

    5. Actionable comments posted: 4

      🧹 Nitpick comments (4)
      packages/ai/tests/lazy-tools.test.ts (1)

      1-61: ⚡ Quick win

      Co-locate this unit test with the source module.

      This test should live next to the lazy-tools implementation per repo guideline (for example under packages/ai/src/activities/chat/tools/).

      As per coding guidelines, **/*.test.ts: Place unit tests alongside source code in *.test.ts files.

      🤖 Prompt for AI Agents
      Verify each finding against current code. Fix only still-valid issues, skip the
      rest with a brief reason, keep changes minimal, and validate.
      
      In `@packages/ai/tests/lazy-tools.test.ts` around lines 1 - 61, The tests for
      firstSentence and renderLazyCatalogEntry are currently in the shared tests
      folder and must be co-located with the lazy-tools source module; move the
      lazy-tools.test.ts file that contains tests referencing firstSentence and
      renderLazyCatalogEntry into the same directory as the lazy-tools implementation
      (next to the module that exports those functions), keep the filename ending in
      .test.ts, and update the import paths in the test to use the local module import
      so the tests run alongside the source per repo guidelines.

      Source: Coding guidelines

      packages/ai-code-mode/skills/ai-code-mode/SKILL.md (1)

      383-388: 💤 Low value

      Add language identifier to fenced code block.

      Markdown linters require language identifiers on fenced code blocks. Since this is a flow/sequence diagram rather than executable code, consider using text or remove the fence and use indentation.

      📝 Proposed fix
      -```
      +```text
       Model sees: "Discoverable APIs: external_fetchStocks"
       Model calls: discover_tools({ toolNames: ["fetchStocks"] })
       Response:    { tools: [{ name: "external_fetchStocks", description: "...", typeStub: "declare function external_fetchStocks(...)" }] }
       Model writes inside execute_typescript: const result = await external_fetchStocks({ ticker: "AAPL" })
      </details>
      
      <details>
      <summary>🤖 Prompt for AI Agents</summary>
      

      Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate.

      In @packages/ai-code-mode/skills/ai-code-mode/SKILL.md around lines 383 - 388, The fenced code block containing the flow lines starting with "Model sees: "Discoverable APIs: external_fetchStocks"" in SKILL.md is missing a language identifier; update that triple-backtick fence to use a language tag (e.g.,

      linters accept it, ensuring the block that shows the
      discover_tools/execute_typescript sequence remains unchanged.

      Source: Linters/SAST tools

      docs/code-mode/lazy-tools.md (2)

      119-125: 💤 Low value

      Add language identifier to fenced code block.

      The fenced code block showing example catalog output should specify a language identifier (e.g., text) to satisfy markdownlint.

      📝 Suggested fix
      -```
      +```text
       ### Discoverable APIs
       
       - external_fetchArchive
       - external_runReport
       - external_exportData
      </details>
      
      <details>
      <summary>🤖 Prompt for AI Agents</summary>
      

      Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate.

      In @docs/code-mode/lazy-tools.md around lines 119 - 125, Add a language identifier to the fenced code block containing the "### Discoverable APIs" sample output so markdownlint passes; update the opening backticks to include a language like text (e.g., change the block that lists "external_fetchArchive", "external_runReport", and "external_exportData" to start with ```text).

      
      </details>
      
      <!-- cr-comment:v1:8c8fdffc4537652ad3f97ae4 -->
      
      _Source: Linters/SAST tools_
      
      ---
      
      `141-147`: _💤 Low value_
      
      **Add language identifier to fenced code block.**
      
      The fenced code block showing example catalog output with descriptions should specify a language identifier (e.g., `text`) to satisfy markdownlint.
      
      
      
      
      
      <details>
      <summary>📝 Suggested fix</summary>
      
      ```diff
      -```
      +```text
       ### Discoverable APIs
       
       - external_fetchArchive — Retrieve historical weather archive data for a date range.
       - external_runReport — Generate a summary report for a given time period.
       - external_exportData — Export query results to CSV or JSON format.
       ```
      ```
      </details>
      
      <details>
      <summary>🤖 Prompt for AI Agents</summary>
      

      Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate.

      In @docs/code-mode/lazy-tools.md around lines 141 - 147, The fenced code block containing the "Discoverable APIs" section is missing a language identifier. Add the language identifier text to the opening backticks of this code block (change totext) to satisfy markdownlint requirements. This applies to the code block that lists the external functions like external_fetchArchive, external_runReport, and external_exportData.

      
      </details>
      
      <!-- cr-comment:v1:661e2d957bbb1a6bad28ead9 -->
      
      _Source: Linters/SAST tools_
      
      </blockquote></details>
      
      </blockquote></details>
      
      <details>
      <summary>🤖 Prompt for all review comments with AI agents</summary>
      

      Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate.

      Inline comments: In @docs/code-mode/lazy-tools.md:

      • Line 71: Update the docs examples to use the newer OpenAI model name: in the createCodeMode examples (identify the createCodeMode invocation and any openaiText(...) calls), replace openaiText("gpt-5.2") with openaiText("gpt-5.5"); ensure all occurrences in this file (including the instances around the createCodeMode block and the examples at the other noted locations) are changed so the documentation matches the NEWEST model names defined in OPENAI_CHAT_MODELS.

      In @packages/ai-code-mode/tests/create-discovery-tool.test.ts:

      • Line 1: Reorder the named imports from vitest so they are alphabetized to satisfy ESLint sort-imports: change the import list in the test file (the import statement that currently lists describe, it, expect) to list expect first, then describe, then it (i.e., import { expect, describe, it } from 'vitest'), preserving the same module and spacing.

      In @packages/ai/tests/lazy-tools.test.ts:

      • Line 1: The named imports from 'vitest' are out of alphabetical order and trigger sort-imports linting; update the import specifier in packages/ai/tests/lazy-tools.test.ts to list the members alphabetically (use describe, expect, it) so the import becomes alphabetically ordered and satisfies the linter.

      In @testing/e2e/tests/lazy-tools-wire.spec.ts:

      • Around line 63-67: Remove the global journal reset in the test.beforeEach hook to avoid mutating shared state; specifically delete the await request.delete(http://127.0.0.1:${aimockPort}/v1/_requests) call inside test.beforeEach and rely on the existing per-test isolation header (X-Test-Id) instead, ensuring tests continue to set and use X-Test-Id when calling the aimock server; no other changes to request setup are required.

      Nitpick comments: In @docs/code-mode/lazy-tools.md:

      • Around line 119-125: Add a language identifier to the fenced code block containing the "### Discoverable APIs" sample output so markdownlint passes; update the opening backticks to include a language like text (e.g., change the block that lists "external_fetchArchive", "external_runReport", and "external_exportData" to start with ```text).
      • Around line 141-147: The fenced code block containing the "Discoverable APIs" section is missing a language identifier. Add the language identifier text to the opening backticks of this code block (change totext) to satisfy markdownlint requirements. This applies to the code block that lists the external functions like external_fetchArchive, external_runReport, and external_exportData.

      In @packages/ai-code-mode/skills/ai-code-mode/SKILL.md:

      • Around line 383-388: The fenced code block containing the flow lines starting with "Model sees: "Discoverable APIs: external_fetchStocks"" in SKILL.md is missing a language identifier; update that triple-backtick fence to use a language tag (e.g., ```text) or replace the fenced block with an indented code block so markdown linters accept it, ensuring the block that shows the discover_tools/execute_typescript sequence remains unchanged.

      In @packages/ai/tests/lazy-tools.test.ts:

      • Around line 1-61: The tests for firstSentence and renderLazyCatalogEntry are currently in the shared tests folder and must be co-located with the lazy-tools source module; move the lazy-tools.test.ts file that contains tests referencing firstSentence and renderLazyCatalogEntry into the same directory as the lazy-tools implementation (next to the module that exports those functions), keep the filename ending in .test.ts, and update the import paths in the test to use the local module import so the tests run alongside the source per repo guidelines.
      
      </details>
      
      <details>
      <summary>🪄 Autofix (Beta)</summary>
      
      Fix all unresolved CodeRabbit comments on this PR:
      
      - [ ] <!-- {"checkboxId": "4b0d0e0a-96d7-4f10-b296-3a18ea78f0b9"} --> Push a commit to this branch (recommended)
      - [ ] <!-- {"checkboxId": "ff5b1114-7d8c-49e6-8ac1-43f82af23a33"} --> Create a new PR with the fixes
      
      </details>
      
      ---
      
      <details>
      <summary>ℹ️ Review info</summary>
      
      <details>
      <summary>⚙️ Run configuration</summary>
      
      **Configuration used**: defaults
      
      **Review profile**: CHILL
      
      **Plan**: Pro
      
      **Run ID**: `f340d8aa-df1b-43c4-a30b-4d8305872f91`
      
      </details>
      
      <details>
      <summary>📥 Commits</summary>
      
      Reviewing files that changed from the base of the PR and between 22c9b42baec74914b720e440f29bd02be04eb164 and 20b8d2ab63e333a5cb7ac9f8ecfd65343be77630.
      
      </details>
      
      <details>
      <summary>📒 Files selected for processing (25)</summary>
      
      * `.changeset/code-mode-lazy-tools.md`
      * `docs/code-mode/lazy-tools.md`
      * `docs/config.json`
      * `packages/ai-code-mode/skills/ai-code-mode/SKILL.md`
      * `packages/ai-code-mode/src/create-code-mode-tool.ts`
      * `packages/ai-code-mode/src/create-code-mode.ts`
      * `packages/ai-code-mode/src/create-discovery-tool.ts`
      * `packages/ai-code-mode/src/create-system-prompt.ts`
      * `packages/ai-code-mode/src/index.ts`
      * `packages/ai-code-mode/src/types.ts`
      * `packages/ai-code-mode/tests/create-code-mode.test.ts`
      * `packages/ai-code-mode/tests/create-discovery-tool.test.ts`
      * `packages/ai-code-mode/tests/create-system-prompt.test.ts`
      * `packages/ai/skills/ai-core/tool-calling/SKILL.md`
      * `packages/ai/src/activities/chat/index.ts`
      * `packages/ai/src/activities/chat/tools/lazy-tool-manager.ts`
      * `packages/ai/src/activities/chat/tools/lazy-tools.ts`
      * `packages/ai/src/index.ts`
      * `packages/ai/src/types.ts`
      * `packages/ai/tests/lazy-tool-manager.test.ts`
      * `packages/ai/tests/lazy-tools.test.ts`
      * `testing/e2e/fixtures/lazy-tools-wire/basic.json`
      * `testing/e2e/src/routeTree.gen.ts`
      * `testing/e2e/src/routes/api.lazy-tools-wire.ts`
      * `testing/e2e/tests/lazy-tools-wire.spec.ts`
      
      </details>
      
      </details>
      
      <!-- This is an auto-generated comment by CodeRabbit for review status -->
    6. tombeckenham assignedtombeckenham

    7. tombeckenham approved these changes

      This is good to go after rebasing

    8. AlemTuzlak merged thisfbd3762

    9. AlemTuzlak closed this

Sign in to join this conversation.