Skip to content

Commit 31b91e8

Browse files
popup-kayclaude
andcommitted
fix: Gemini CLI v0.29.0+ compatibility - fix all tool names (Issue #5)
BREAKING: Minimum Gemini CLI version changed from v0.28.0 to v0.29.0 - Add centralized Tool Registry module (lib/adapters/gemini/tool-registry.js) with all 17 built-in tool names verified from Gemini CLI source code - Fix glob_tool→glob in 16 agents and 29 skills (was never a valid name) - Fix web_search→google_web_search in 7 agents and 10 skills - Fix Grep→grep_search, Skill→activate_skill in adapter TOOL_MAP - Remove spawn_agent from cto-lead agent and pdca skill (not a built-in tool) - Remove experimental.skills block from gemini-extension.json (GA since v0.26.0) - Update hook scripts to use Tool Registry instead of hardcoded tool names - Fix hooks.json AfterTool matcher: skill→activate_skill - Bump version to v1.5.3 across all config files - Add 4 new test cases (CFG-03, CFG-06~08) for tool name validation - Test suite: 70/72 pass (97.2%) Resolves #5 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b2e137f commit 31b91e8

File tree

61 files changed

+1723
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1723
-124
lines changed

.gemini/context/tool-reference.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Tool Name Reference
22

3-
bkit uses Gemini CLI native tool names:
3+
bkit uses Gemini CLI native tool names (v0.29.0+ verified):
44

55
| Tool | Purpose | Example |
66
|------|---------|---------|
@@ -10,10 +10,14 @@ bkit uses Gemini CLI native tool names:
1010
| `read_many_files` | Read multiple files | Batch analysis |
1111
| `run_shell_command` | Execute shell commands | Git, npm, docker |
1212
| `glob` | Find files by pattern | `**/*.tsx` |
13-
| `grep` | Search file contents | Finding definitions |
13+
| `grep_search` | Search file contents | Finding definitions |
1414
| `list_directory` | List directory contents | Exploring structure |
15-
| `web_search` | Search the web | Finding documentation |
15+
| `google_web_search` | Search the web | Finding documentation |
1616
| `web_fetch` | Fetch URL content | Reading web pages |
17-
| `spawn_agent` | Launch sub-agent | Complex multi-step tasks |
18-
| `task_write` | Manage tasks | Task tracking |
1917
| `activate_skill` | Load skill context | On-demand expertise |
18+
| `write_todos` | Manage task lists | Task tracking |
19+
| `save_memory` | Save to long-term memory | Cross-session persistence |
20+
| `ask_user` | Ask user a question | Clarifying requirements |
21+
| `get_internal_docs` | Get extension docs | Internal reference |
22+
| `enter_plan_mode` | Enter planning mode | Structured planning (v0.29.0+) |
23+
| `exit_plan_mode` | Exit planning mode | Plan completion (v0.29.0+) |

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,43 @@ All notable changes to bkit-gemini will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.5.3] - 2026-02-19
9+
10+
### Added
11+
12+
- **Tool Registry Module**: `lib/adapters/gemini/tool-registry.js` - Centralized Source of Truth for all 17 Gemini CLI built-in tool names, verified from source code
13+
- **v0.30.0 Policy Engine Detection**: Compatibility layer that detects Policy Engine TOML files and logs warnings for future migration
14+
- **Plan Mode Tool Mapping**: `enter_plan_mode`, `exit_plan_mode` added to TOOL_MAP (v0.29.0+ new tools)
15+
- **New TOOL_MAP Entries**: `SaveMemory` -> `save_memory`, `TodoWrite` -> `write_todos`
16+
17+
### Fixed
18+
19+
- **CRITICAL: All 16 Agents Loading Failure** (Issue #5): `glob_tool` was never a valid Gemini CLI tool name - corrected to `glob` across all 16 agent frontmatter files
20+
- **7 Agents Web Search Failure**: `web_search` corrected to `google_web_search` (cto-lead, enterprise-expert, frontend-architect, gap-detector, product-manager, security-architect, starter-guide)
21+
- **29 Skills Tool Name Errors**: `glob_tool` -> `glob` in all skill `allowed-tools` frontmatter
22+
- **11 Skills Web Search Errors**: `web_search` -> `google_web_search` in affected skill frontmatter
23+
- **TOOL_MAP Corrections**: `Grep: 'grep'` -> `'grep_search'`, `WebSearch: 'web_search'` -> `'google_web_search'`, `Skill: 'skill'` -> `'activate_skill'`
24+
- **Hook Scripts**: `before-tool-selection.js` readOnlyTools array updated to use Tool Registry (removed invalid `glob_tool`, `web_search`, `task_write`, `spawn_agent`)
25+
- **hooks.json Matcher**: `"skill"` -> `"activate_skill"` for AfterTool skill matcher
26+
- **after-tool.js**: `toolName === 'skill'` -> `toolName === 'activate_skill'`
27+
- **cto-lead Agent**: Removed non-existent `spawn_agent` from tools (not a built-in tool)
28+
- **pdca Skill**: Removed non-existent `spawn_agent` from allowed-tools
29+
30+
### Changed
31+
32+
- **Minimum Gemini CLI Version**: v0.28.0 -> **v0.29.0** (tool name changes require v0.29.0+)
33+
- **gemini-extension.json**: Removed `experimental.skills` block (Skills/Hooks GA since v0.26.0)
34+
- **TOOL_MAP Architecture**: Now imports from Tool Registry instead of hardcoded values
35+
- **before-tool-selection.js**: Uses `getReadOnlyTools()` from Tool Registry instead of hardcoded array
36+
- **hooks.json**: Version description updated to v1.5.3
37+
- **README.md**: Updated version badges, tool mapping table, compatibility requirements, component map
38+
39+
### Documentation
40+
41+
- **tool-reference.md**: Complete rewrite with all 17 built-in tools (v0.29.0+ verified)
42+
- **README.md**: Added v1.5.3 highlights section, updated all version references
43+
- **Philosophy Docs**: Updated bkit-system/philosophy for v1.5.3 Tool Registry and Context Engineering principles
44+
845
## [1.5.2] - 2026-02-14
946

1047
### Added
@@ -124,6 +161,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
124161

125162
---
126163

164+
[1.5.3]: https://github.com/popup-studio-ai/bkit-gemini/compare/v1.5.2...v1.5.3
127165
[1.5.2]: https://github.com/popup-studio-ai/bkit-gemini/compare/v1.5.1...v1.5.2
128166
[1.5.1]: https://github.com/popup-studio-ai/bkit-gemini/compare/v1.5.0...v1.5.1
129167
[1.5.0]: https://github.com/popup-studio-ai/bkit-gemini/compare/v1.4.0...v1.5.0

README.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# bkit - Vibecoding Kit (Gemini CLI Edition)
22

33
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4-
[![Gemini CLI](https://img.shields.io/badge/Gemini%20CLI-v0.28.0+-blue.svg)](https://github.com/google-gemini/gemini-cli)
5-
[![Version](https://img.shields.io/badge/Version-1.5.2-green.svg)](CHANGELOG.md)
4+
[![Gemini CLI](https://img.shields.io/badge/Gemini%20CLI-v0.29.0+-blue.svg)](https://github.com/google-gemini/gemini-cli)
5+
[![Version](https://img.shields.io/badge/Version-1.5.3-green.svg)](CHANGELOG.md)
66
[![Author](https://img.shields.io/badge/Author-POPUP%20STUDIO-orange.svg)](https://popupstudio.ai)
77

88
> **PDCA methodology + Context Engineering for AI-native development**
@@ -62,7 +62,7 @@ Event 10: SessionEnd -> Session cleanup, memory persistence
6262

6363
```
6464
bkit-gemini/
65-
|-- gemini-extension.json # Extension manifest (v1.5.2)
65+
|-- gemini-extension.json # Extension manifest (v1.5.3)
6666
|-- GEMINI.md # Global context with 6 @import modules
6767
|-- bkit.config.json # Centralized configuration (12 sections)
6868
|-- CHANGELOG.md # Version history
@@ -165,6 +165,8 @@ bkit-gemini/
165165
| | |-- agent-memory.js # Per-agent persistence (214 lines)
166166
| | +-- permission.js # Glob pattern permission engine (381 lines)
167167
| +-- adapters/gemini/
168+
| |-- index.js # Platform adapter with TOOL_MAP
169+
| |-- tool-registry.js # Centralized tool name registry (v0.29.0+ verified)
168170
| |-- context-fork.js # Snapshot isolation, LRU(10) (477 lines)
169171
| +-- import-resolver.js # @import resolution (118 lines)
170172
|
@@ -176,6 +178,13 @@ bkit-gemini/
176178

177179
## Features
178180

181+
### v1.5.3 Highlights
182+
183+
- **Gemini CLI v0.29.0+ Compatibility** -- All tool names verified from source code (Issue #5 fix)
184+
- **Tool Registry Module** -- Centralized tool name management for future-proof maintenance
185+
- **17 Built-in Tools Mapped** -- Including new Plan Mode tools (enter_plan_mode, exit_plan_mode)
186+
- **v0.30.0 Readiness** -- Policy Engine detection layer for smooth migration
187+
179188
### v1.5.2 Highlights
180189

181190
- **8 bkend.ai Domain Skills** -- quickstart, auth, data, storage, mcp, security, cookbook, guides
@@ -206,7 +215,7 @@ bkit-gemini/
206215
207216
### Prerequisites
208217

209-
- [Gemini CLI](https://github.com/google-gemini/gemini-cli) v0.28.0 or later
218+
- [Gemini CLI](https://github.com/google-gemini/gemini-cli) v0.29.0 or later
210219
- [Git](https://git-scm.com/) installed on your machine
211220

212221
### Installation
@@ -238,7 +247,7 @@ gemini extensions list
238247

239248
### Hooks Configuration
240249

241-
Hooks are **enabled by default** in Gemini CLI v0.28.0+. If you need to manually configure:
250+
Hooks are **enabled by default** in Gemini CLI v0.29.0+. If you need to manually configure:
242251

243252
```json
244253
// ~/.gemini/settings.json
@@ -363,7 +372,7 @@ All 16 agents remember context across sessions automatically:
363372

364373
### Team Mode Foundation
365374

366-
bkit v1.5.2 includes team mode foundation with 3 MCP tools:
375+
bkit v1.5.3 includes team mode foundation with 3 MCP tools:
367376
- `team_create` -- Create agent teams with configurable strategies
368377
- `team_assign` -- Assign tasks to team members
369378
- `team_status` -- Monitor team progress
@@ -487,7 +496,7 @@ Current status:
487496

488497
## Tool Name Mapping
489498

490-
bkit uses Gemini CLI native tool names:
499+
bkit uses Gemini CLI native tool names (v0.29.0+ verified from source):
491500

492501
| Claude Code Tool | Gemini CLI Tool |
493502
|------------------|-----------------|
@@ -496,12 +505,15 @@ bkit uses Gemini CLI native tool names:
496505
| Read | read_file |
497506
| Bash | run_shell_command |
498507
| Glob | glob |
499-
| Grep | grep |
500-
| WebSearch | web_search |
508+
| Grep | grep_search |
509+
| WebSearch | google_web_search |
501510
| WebFetch | web_fetch |
502-
| Task | spawn_agent |
503-
| TodoWrite | task_write |
504-
| TodoRead | task_read |
511+
| AskUserQuestion | ask_user |
512+
| Skill | activate_skill |
513+
| TodoWrite | write_todos |
514+
| SaveMemory | save_memory |
515+
| EnterPlanMode | enter_plan_mode |
516+
| ExitPlanMode | exit_plan_mode |
505517

506518
---
507519

@@ -581,7 +593,7 @@ These hooks are non-interactive, performance-optimized, and essential for the Co
581593

582594
| Requirement | Version |
583595
|-------------|---------|
584-
| Gemini CLI | v0.28.0+ |
596+
| Gemini CLI | v0.29.0+ |
585597
| Node.js | v18+ (for hook scripts) |
586598
| Git | Any recent version |
587599

@@ -593,7 +605,7 @@ These hooks are non-interactive, performance-optimized, and essential for the Co
593605
| 10 Hook Events | All 10 events registered with matcher patterns |
594606
| @import syntax | 6 context modules in `.gemini/context/` |
595607
| TOML commands with `@{}`, `!{}`, `{{}}` | 18 enhanced commands |
596-
| Agent Skills (experimental) | 29 skills with progressive disclosure |
608+
| Agent Skills (GA since v0.26.0) | 29 skills with progressive disclosure |
597609
| MCP servers | 6 tools via `spawn-agent-server.js` |
598610
| Extension manifest `settings` | 2 user-configurable options |
599611
| `${extensionPath}` variable | Used in hooks.json for portable paths |
@@ -629,7 +641,7 @@ bkit-gemini is a fork of [bkit-claude-code](https://github.com/popup-studio-ai/b
629641
| Variables | N/A | `${extensionPath}`, `${workspacePath}` |
630642
| Hooks | Claude Code hooks | Gemini CLI 10-event hook system |
631643
| Commands | Slash commands | TOML commands with `@`, `!`, `{{}}` syntax |
632-
| Skills | Native skills | Experimental skills (enabled via manifest) |
644+
| Skills | Native skills | Skills (GA since v0.26.0) |
633645
| Agent format | .md with custom fields | .md with Gemini native frontmatter |
634646

635647
---

agents/bkend-expert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tools:
2626
- read_file
2727
- write_file
2828
- replace
29-
- glob_tool
29+
- glob
3030
- grep_search
3131
- run_shell_command
3232
- web_fetch

agents/code-analyzer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tools:
2222
- read_file
2323
- read_many_files
2424
- grep_search
25-
- glob_tool
25+
- glob
2626
- list_directory
2727
temperature: 0.2
2828
max_turns: 20

agents/cto-lead.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ tools:
2828
- write_file
2929
- replace
3030
- grep_search
31-
- glob_tool
31+
- glob
3232
- list_directory
3333
- run_shell_command
34-
- web_search
34+
- google_web_search
3535
- web_fetch
36-
- spawn_agent
3736
temperature: 0.3
3837
max_turns: 30
3938
timeout_mins: 15

agents/design-validator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tools:
2222
- read_file
2323
- read_many_files
2424
- grep_search
25-
- glob_tool
25+
- glob
2626
- list_directory
2727
temperature: 0.1
2828
max_turns: 15

agents/enterprise-expert.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ tools:
2222
- read_file
2323
- write_file
2424
- replace
25-
- glob_tool
25+
- glob
2626
- grep_search
27-
- web_search
27+
- google_web_search
2828
temperature: 0.2
2929
max_turns: 25
3030
timeout_mins: 10

agents/frontend-architect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ tools:
2727
- read_file
2828
- write_file
2929
- replace
30-
- glob_tool
30+
- glob
3131
- grep_search
3232
- run_shell_command
33-
- web_search
33+
- google_web_search
3434
temperature: 0.3
3535
max_turns: 20
3636
timeout_mins: 10

agents/gap-detector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ tools:
2121
- read_file
2222
- read_many_files
2323
- grep_search
24-
- glob_tool
24+
- glob
2525
- list_directory
26-
- web_search
26+
- google_web_search
2727
temperature: 0.1
2828
max_turns: 20
2929
timeout_mins: 10

0 commit comments

Comments
 (0)