checkpoint: gemini_cli_parity track
This commit is contained in:
@@ -27,4 +27,4 @@ To serve as an expert-level utility for personal developer use on small projects
|
||||
- **Automated UX Verification:** A robust IPC mechanism via API hooks and a modular simulation suite allows for human-like simulation walkthroughs and automated regression testing of the full GUI lifecycle across multiple specialized scenarios.
|
||||
- **Headless Backend Service:** Optional headless mode allowing the core AI and tool execution logic to run as a decoupled REST API service (FastAPI), optimized for Docker and server-side environments (e.g., Unraid).
|
||||
- **Remote Confirmation Protocol:** A non-blocking, ID-based challenge/response mechanism for approving AI actions via the REST API, enabling remote "Human-in-the-Loop" safety.
|
||||
- **Gemini CLI Integration:** Allows using the `gemini` CLI as a headless backend provider. This enables leveraging Gemini subscriptions with advanced features like persistent sessions, while maintaining full "Human-in-the-Loop" safety through a dedicated bridge for synchronous tool call approvals within the Manual Slop GUI.
|
||||
- **Gemini CLI Integration:** Allows using the `gemini` CLI as a headless backend provider. This enables leveraging Gemini subscriptions with advanced features like persistent sessions, while maintaining full "Human-in-the-Loop" safety through a dedicated bridge for synchronous tool call approvals within the Manual Slop GUI. Now features full functional parity with the direct API, including accurate token estimation, safety settings, and robust system instruction handling.
|
||||
@@ -19,7 +19,7 @@
|
||||
- **google-genai:** For Google Gemini API interaction and explicit context caching.
|
||||
- **anthropic:** For Anthropic Claude API interaction, supporting ephemeral prompt caching.
|
||||
- **DeepSeek (Dedicated SDK):** Integrated for high-performance codegen and reasoning (Phase 2).
|
||||
- **Gemini CLI:** Integrated as a headless backend provider, utilizing a custom subprocess adapter and bridge script for tool execution control.
|
||||
- **Gemini CLI:** Integrated as a headless backend provider, utilizing a custom subprocess adapter and bridge script for tool execution control. Achieves full functional parity with direct SDK usage, including real-time token counting and detailed subprocess observability.
|
||||
- **Gemini 3.1 Pro Preview:** Tier 1 Orchestrator model for complex reasoning.
|
||||
- **Gemini 3 Flash Preview:** Tier 2 Tech Lead model for rapid architectural planning.
|
||||
- **Gemini 2.5 Flash Lite:** High-performance, low-latency model for Tier 3 Workers and Tier 4 QA.
|
||||
|
||||
@@ -35,7 +35,7 @@ This file tracks all major tracks for the project. Each track has its own detail
|
||||
|
||||
---
|
||||
|
||||
- [ ] **Track: Make sure gemini cli behavior and feature set have full parity with regular direct gemini api usage in ai_client.py and elsewhere**
|
||||
- [x] **Track: Make sure gemini cli behavior and feature set have full parity with regular direct gemini api usage in ai_client.py and elsewhere**
|
||||
*Link: [./tracks/gemini_cli_parity_20260225/](./tracks/gemini_cli_parity_20260225/)*
|
||||
|
||||
---
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
# Implementation Plan: Gemini CLI Parity
|
||||
|
||||
## Phase 1: Infrastructure & Common Logic
|
||||
- [ ] Task: Initialize MMA Environment `activate_skill mma-orchestrator`
|
||||
- [ ] Task: Audit `gemini_cli_adapter.py` and `ai_client.py` for parity gaps
|
||||
- [ ] Task: Implement common logging utilities for CLI bridge observability
|
||||
- [ ] Task: Conductor - User Manual Verification 'Infrastructure & Common Logic' (Protocol in workflow.md)
|
||||
- [x] Task: Initialize MMA Environment `activate_skill mma-orchestrator`
|
||||
- [x] Task: Audit `gemini_cli_adapter.py` and `ai_client.py` for parity gaps (Findings: missing count_tokens, safety settings, and robust system prompt handling in CLI adapter)
|
||||
- [x] Task: Implement common logging utilities for CLI bridge observability
|
||||
- [x] Task: Conductor - User Manual Verification 'Infrastructure & Common Logic' (Protocol in workflow.md)
|
||||
|
||||
## Phase 2: Token Counting & Safety Settings
|
||||
- [ ] Task: Write failing tests for token estimation in `GeminiCLIAdapter`
|
||||
- [ ] Task: Implement token counting parity in `GeminiCLIAdapter`
|
||||
- [ ] Task: Write failing tests for safety setting application in `GeminiCLIAdapter`
|
||||
- [ ] Task: Implement safety filter application in `GeminiCLIAdapter`
|
||||
- [ ] Task: Conductor - User Manual Verification 'Token Counting & Safety Settings' (Protocol in workflow.md)
|
||||
- [x] Task: Write failing tests for token estimation in `GeminiCLIAdapter`
|
||||
- [x] Task: Implement token counting parity in `GeminiCLIAdapter`
|
||||
- [x] Task: Write failing tests for safety setting application in `GeminiCLIAdapter`
|
||||
- [x] Task: Implement safety filter application in `GeminiCLIAdapter`
|
||||
- [x] Task: Conductor - User Manual Verification 'Token Counting & Safety Settings' (Protocol in workflow.md)
|
||||
|
||||
## Phase 3: Tool Calling Parity & System Instructions
|
||||
- [ ] Task: Write failing tests for system instruction usage in `GeminiCLIAdapter`
|
||||
- [ ] Task: Implement system instruction propagation in `GeminiCLIAdapter`
|
||||
- [ ] Task: Write failing tests for tool call/response mapping in `cli_tool_bridge.py`
|
||||
- [ ] Task: Synchronize tool call handling between bridge and `ai_client.py`
|
||||
- [ ] Task: Conductor - User Manual Verification 'Tool Calling Parity & System Instructions' (Protocol in workflow.md)
|
||||
- [x] Task: Write failing tests for system instruction usage in `GeminiCLIAdapter`
|
||||
- [x] Task: Implement system instruction propagation in `GeminiCLIAdapter`
|
||||
- [x] Task: Write failing tests for tool call/response mapping in `cli_tool_bridge.py`
|
||||
- [x] Task: Synchronize tool call handling between bridge and `ai_client.py`
|
||||
- [x] Task: Conductor - User Manual Verification 'Tool Calling Parity & System Instructions' (Protocol in workflow.md)
|
||||
|
||||
## Phase 4: Final Verification & Performance Diagnostics
|
||||
- [ ] Task: Implement automated parity regression tests comparing CLI vs Direct API outputs
|
||||
- [ ] Task: Verify bridge latency and error handling robustness
|
||||
- [ ] Task: Conductor - User Manual Verification 'Final Verification & Performance Diagnostics' (Protocol in workflow.md)
|
||||
- [x] Task: Implement automated parity regression tests comparing CLI vs Direct API outputs
|
||||
- [x] Task: Verify bridge latency and error handling robustness
|
||||
- [x] Task: Conductor - User Manual Verification 'Final Verification & Performance Diagnostics' (Protocol in workflow.md)
|
||||
|
||||
Reference in New Issue
Block a user