gemini-cli/packages/core
Keir Mierle 32dd298351
fix: Push tool calls to absolute paths (#1055) (#1057)
Make several changes to guide the model to request absolute paths,
reducing frequent accidental relative path tool call failures.

- Switch the parameter name: path --> absolute_path.
- Update the tool definition to strongly require an absolute path.
- Update the system prompt to indicate absolute paths are required.
- Update the system prompt tool use examples to use absolute paths.

Test case:

Open GC in GC: "Locate the primary file calling genai"
- Expected: Model opens files with absolute path, successfully.
- Actual (pre-patch): Failure, attempts to read with relative path.
- Actual (post-patch): Success, attempts to read with absolute path.
2025-06-14 21:16:11 -07:00
..
src fix: Push tool calls to absolute paths (#1055) (#1057) 2025-06-14 21:16:11 -07:00
README.md refactor: rename gemini-code to gemini-cli (#822) 2025-06-07 14:27:22 -07:00
index.ts refactor: Use default centralized Flash & Pro models everywhere (#994) 2025-06-13 08:25:42 +00:00
package-lock.json Improvements to web-fetch tool (#1030) 2025-06-13 17:44:14 -07:00
package.json Improvements to web-fetch tool (#1030) 2025-06-13 17:44:14 -07:00
tsconfig.json Rename server->core (#638) 2025-05-30 18:25:47 -07:00
vitest.config.ts Reduce coupling between core and cli packages (#961) 2025-06-12 17:17:29 -07:00

README.md

Nested package template. Either fill this out with "backend" functionality or create similar packages that you want built separate from the CLI.

To use this package from another dependent package in this monorepo:

  1. Add "@gemini-cli/core" to the dependent package's package.json
  2. Import a dependency by calling import { } from "@gemini-cli/core"