@gemini-mcp-bridge/** このディレクトリのファイルを見て次をアップデートせよ @gemini-mcp-bridge/README.md
- User
@gemini-mcp-bridge/** このディレクトリのファイルを見て次をアップデートせよ @gemini-mcp-bridge/README.md
- User
--- Content from referenced files ---
- User
Content from @gemini-mcp-bridge/CLAUDE.md:
- User
Gemini Bridge Usage Guidelines
When to use Gemini bridge
For coding and technical tasks, prefer delegating to Gemini via MCP tools before doing the work yourself. This applies to:
- Code review: Use
mcp__gemini-bridge__consult_gemini_with_stdinto send code for review - Test generation: Use
mcp__gemini-bridge__consult_gemini_with_stdinto generate tests from source code - Code explanation: Use
mcp__gemini-bridge__consult_gemini_with_stdinto explain complex code - Technical questions: Use
mcp__gemini-bridge__consult_geminifor general coding questions
How to call
Simple query (no large input)
mcp__gemini-bridge__consult_gemini({ "query": "<task description>", "directory": ".", "format": "text", "timeout": 180, "sandbox": "read-only" })With large input (file content, diffs, logs)
- Code review: Use
- User
Content from @gemini-mcp-bridge/README.md:
- User
- User
Content from @gemini-mcp-bridge/docs/claude-gemini-subagent-qa.md:
- User
- User
- User
Q9. Claude Code와 OpenCode의 순차/병렬 트리거 방식 비교
두 시스템 모두 모델이 자동 판단한다
사용자가 명시적으로 지시할 필요가 없다. 메인 에이전트(모델)가 작업 의존성을 판단해서 결정한다.
트리거 메커니즘: 둘 다 동일한 원리
병렬 실행 조건: LLM이 한 응답에 여러 Tool Call을 생성 ┌─ LLM 응답 ──────────────────────┐ │ Tool Call 1: Task(explore, A) │ │ Tool Call 2: Task(explore, B) │ ← 동시에 실행됨 │ Tool Call 3: Task(librarian, C) │ └──────────────────────────────────┘ 순차 실행 조건: LLM이 응답마다 Tool Call을 하나씩 생성 ┌─ LLM 응답 1 ─────────────┐ │ Tool Call: Task(분석) │ → 결과 대기 └───────────────────────────┘ ┌─ LLM 응답 2 ─────────────┐ │ Tool Call: Task(구현) │ → 분석 결과 활용 └───────────────────────────┘비교표
Claude Code OpenCode 병렬 트리거 한 응답에 Task 여러 개 한 응답에 tool call 여러 개 순차 트리거 응답마다 Task 하나씩 tasks.pop()루프로 하나씩결정 주체 LLM이 자동 판단 LLM이 자동 판단 프롬프트 가이드 - User
Q8. 컨텍스트 격리란 정확히 무엇인가?
Q3에서 "컨텍스트가 오염된다 → 별도 에이전트로 격리"라고 설명했으나, 서브에이전트도 이전 컨텍스트를 전달받지 않느냐는 질문에서 비롯됨.
서브에이전트는 이전 컨텍스트를 받지 않는다
Claude Code의 서브에이전트는 새로운 빈 컨텍스트에서 시작한다:
메인 에이전트의 컨텍스트: ┌─────────────────────────────────┐ │ 사용자 질문 │ │ 파일 A 읽은 내용 (500줄) │ │ 파일 B 읽은 내용 (300줄) │ │ 이전 대화 10턴 │ │ 검색 결과 5건 │ │ ... (컨텍스트가 점점 커짐) │ └─────────────────────────────────┘ 서브에이전트가 받는 것: ┌─────────────────────────────────┐ │ prompt: "runner.py의 보안 분석" │ ← 이것만 받음 │ │ │ (이전 대화, 파일 내용 등 없음) │ └─────────────────────────────────┘"컨텍스트 오염"의 정확한 의미
오염 = 서브에이전트의 컨텍스트가 더러워진다는 뜻이 아니다. 오염 = 메인 에이전트의 컨텍스트 윈도우가 불필요한 정보로 가득 차는 것이다.
서브에이전트 없이 직접 탐색하면: 메인 컨텍스트에 쌓이는 것: ├─ Grep 결과 1 (200줄) ← 메인 컨텍스트에 들어감 ├─ Grep 결과 2 (150줄) ← 메인 컨텍스트에 들어감 ├─ 파일 읽기 1 (400줄) ← 메인 컨텍스트에 들어감 └─ ... 탐색할수록 계속 쌓임 → 정작 중요한 작업을 할 때 컨텍스트 공간이 부족해짐 서브에이전트에 위임하면: 서브에이전트 내부 (격리됨): ├─ Grep 결과 1 (200줄) ├─ 파일 읽기 1 (400줄) └─ ... 여기서 다 처리하고 버려짐 메인 컨텍스트에 돌아오는 것: └─ "분석 결과: 3가지 취약점 발견..." ← 요약된 결과만 받음 → 메인 컨텍스트가 깨끗하게 유지됨 - User
Q7. 서브에이전트의 순차/병렬 실행은 어떻게 동작하는가?
Q3에서 "병렬로 나눠서 동시 실행"이라고 설명했으나, 일반적인 서브에이전트는 순차 실행이 기본이 아닌가?라는 질문에서 비롯됨.
순차 실행이 기본이다
메인 ─── 작업 위임 ──→ 서브에이전트 (대기 중...) 작업 수행 중... (대기 중...) 작업 수행 중... 메인 ←── 결과 반환 ─── 완료 이어서 작업 계속위임 → 대기 → 결과 수신 → 계속 진행. 이것이 기본이자 가장 흔한 패턴이다.
병렬은 특수한 경우
서로 의존성이 없는 독립 작업이 여러 개일 때만 가능하다:
메인 ─┬─ Task A (파일 A 분석) ──→ 결과 A ─┐ ├─ Task B (파일 B 분석) ──→ 결과 B ─┼─→ 종합 └─ Task C (파일 C 분석) ──→ 결과 C ─┘대부분의 실제 작업은 이전 결과에 따라 다음 단계가 달라지므로 순차 실행이 맞다:
메인 → 서브A: "구조 분석해줘" ↓ 결과에 따라 메인 → 서브B: "A 결과를 바탕으로 리팩토링해줘" ← 병렬 불가 - User
Q6. Task 도구(서브에이전트 스포너)를 직접 구현하려면?
핵심 구성요소
┌─ 오케스트레이터 (메인 에이전트) ──────────────────┐ │ │ │ 1. 에이전트 루프 (while loop + LLM 호출) │ │ 2. 도구 레지스트리 (허용 도구 정의) │ │ 3. 서브에이전트 스포너 │ │ ├─ 컨텍스트 격리 (별도 메시지 히스토리) │ │ ├─ 도구 권한 관리 (에이전트별 허용 도구) │ │ ├─ 프로세스 관리 (병렬 실행, 타임아웃) │ │ └─ 결과 수집 (완료 후 메인에 반환) │ │ 4. 상태 관리 (공유 상태 또는 메시지 패싱) │ └──────────────────────────────────────────────────┘최소 구현 예시 (~400줄 Python)
- User
Q5. 다른 에이전트 프로그램에서도 서브에이전트 개념이 있는가?
주요 도구별 비교
도구 서브에이전트 상태 Claude Code O Task 도구로 네이티브 지원. 병렬 실행, 팀 구성 가능 Codex CLI X 미구현. GitHub 이슈 #2604에서 305+ 투표로 요청 중 OpenCode O 10개 내장 에이전트 + Sisyphus-Junior (카테고리별 동적 생성) Aider X Architect/Editor 모드만 존재 (순차 실행) Continue △ 서브에이전트 내부 테스트 중. 미공개 Cline △ 기본 CLI 서브프로세스만 가능. 멀티에이전트는 논의 중 Codex CLI의 우회 방법
네이티브 서브에이전트가 없지만 외부 오케스트레이션으로 유사 구현 가능:
방법 A: MCP Server + Agents SDK (공식) ┌─ Agents SDK (오케스트레이터) ─┐ │ ├─ Codex (MCP 서버로 실행) │ │ ├─ Codex (또 다른 인스턴스) │ │ └─ 다른 에이전트 │ └──────────────────────────────┘ 방법 B: 수동 병렬 실행 (커뮤니티) supervisor가 작업 목록 생성 → 여러 codex exec 병렬 실행 - User
Q4. 서브에이전트(Task 도구)란 무엇인가?
정의
Claude Code의 Task 도구로 생성되는 독립적인 에이전트 프로세스.
Task( subagent_type="general-purpose", prompt="runner.py의 보안 취약점 분석해줘", name="security-analyzer" )핵심 특징
- 별도 프로세스로 실행 (메인 에이전트와 컨텍스트 분리)
- 병렬 실행 가능 (여러 서브에이전트 동시 실행)
- 작업 완료 후 결과만 메인에게 반환
에이전트 종류별 가용 도구
에이전트 타입 가용 도구 Task 도구 보유 특징 메인 Claude 모든 도구 O 서브에이전트 생성 가능 general-purpose 모든 도구 O 서브에이전트 중첩 생성 가능 Explore Glob, Grep, Read 등 X 읽기 전용, 코드 탐색 특화 Plan Glob, Grep, Read 등 X 읽기 전용, 설계/계획 특화 Bash Bash만 X 명령어 실행만 claude-code-guide - User
Q3. 서브에이전트/멀티에이전트로 어떻게 활용할 수 있는가?
활용 패턴 3가지
패턴 1: 직접 도구 호출 — 생성→검토 파이프라인
Gemini가 코드를 생성하고 Claude가 검토/수정하는 방식. 서브에이전트를 사용하지 않는다.
Claude (메인) ├─ Read (소스 코드 읽기) ← 도구 호출 ├─ consult_gemini_with_stdin ← 도구 호출 (Gemini에 생성 위임) └─ Edit (결과 검토 후 적용) ← 도구 호출패턴 2: 서브에이전트 + Gemini 병렬 분석
같은 문제를 Claude 서브에이전트와 Gemini가 동시에 다른 관점으로 분석하는 방식.
Claude (메인) ├─ Task(서브에이전트) → Claude가 코드 분석 ← 서브에이전트 (병렬) └─ consult_gemini → Gemini가 코드 분석 ← 도구 호출 (병렬) │ └─ 두 결과 종합패턴 3: 테스트/보일러플레이트 대량 생성
기존 코드 기반으로 Gemini가 테스트 코드를 생성하고 Claude가 검증하는 방식.
Claude → 소스 + 기존 테스트 읽기 → Gemini에 누락 테스트 생성 위임 → 생성된 테스트 검토 + 적용 → pytest 실행해서 확인패턴별 비교
패턴 서브에이전트 사용 방식 Claude 토큰 절약 생성→검토 파이프라인 아니오 Claude가 도구를 순차 호출 높음 병렬 분석 예 서브에이전트 + Gemini 병렬 중간 테스트 대량 생성 아니오 Gemini에 생성 위임 후 검증 높음 - User
Q2. Claude 사용량이 소진됐을 때 모든 동작을 Gemini로 대체할 수 있는가?
A: 불가능하다.
구조적 한계
┌─────────────────────────────────┐ │ Claude Code 세션 (오케스트레이터) │ ← Claude API 사용량 소비 │ │ │ ┌───────────┐ ┌────────────┐ │ │ │ Read/Edit │ │ Gemini MCP │ │ ← 도구들 (Claude가 호출) │ └───────────┘ └────────────┘ │ └─────────────────────────────────┘- Claude가 오케스트레이터 역할을 한다. 요청 이해, 도구 선택, 결과 종합 모두 Claude API를 소비한다.
- Gemini MCP는 Claude가 호출하는 도구 중 하나일 뿐, Claude를 대체하지 않는다.
- Claude 사용량이 소진되면 세션 자체가 멈추므로 Gemini를 호출할 주체가 없어진다.
대안
- Gemini CLI 직접 사용 — 터미널에서
gemini명령어를 직접 실행하면 Gemini(Google) 사용량만 소비 - 작업 분배 — 단순 코드 생성/변환은 Gemini MCP로 위임하고, Claude는 오케스트레이션만 담당하면 Claude 토큰 소비 절감 가능
- User
Q1. Claude에서 Gemini CLI를 사용할 수 있는가?
A: 가능하다.
gemini-bridgeMCP 서버를 통해 Claude Code 세션 안에서 Gemini CLI를 호출할 수 있다.사용 가능한 도구 2가지:
consult_gemini— 단일 프롬프트를 보내고 결과를 받음consult_gemini_with_stdin— 큰 입력 콘텐츠와 함께 작업 프롬프트를 보냄
검증 방법:
consult_gemini(query="Say hello and confirm you are working.") → "Hello — I'm here and working on your request." - User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-ask/SKILL.md:
- User
name: Gemini Ask description: Delegates a general question to Gemini and returns the answer. Use for technical questions, research, or analysis. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini context: fork argument-hint: Your question for Gemini
Delegate the question below to Gemini and return the answer.
Steps
- Call
mcp__gemini-bridge__consult_geminiwith:query: the user's question from the argumentsformat: "text"timeout: 180sandbox: "read-only"
- Return the Gemini result directly, adding your own commentary only if the result needs clarification or correction.
$ARGUMENTS
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-explain/SKILL.md:
- User
name: Gemini Explain description: Delegates code explanation to Gemini. Reads target code and returns a clear breakdown of purpose, logic flow, design decisions, and gotchas. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini_with_stdin
- Read
- Glob
- Grep context: fork argument-hint: File path or code to explain
Explain the specified code using Gemini as a sub-agent.
Steps
- Read the target file(s) specified in the arguments.
- Call
mcp__gemini-bridge__consult_gemini_with_stdinwith:stdin_content: the full content of the target file(s)prompt: "Explain this code clearly and concisely. Cover: 1) What it does (purpose), 2) How it works (key logic flow), 3) Important design decisions, 4) Potential gotchas or non-obvious behavior. Use plain language."format: "text"timeout: 180sandbox: "read-only"
- Present the explanation. Add any additional context from the broader project if relevant.
$ARGUMENTS
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-fix/SKILL.md:
- User
name: Gemini Fix description: Delegates bug fixing to Gemini. Reads the broken code, sends it for repair, and applies the fix with a diff preview. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini_with_stdin
- Read
- Glob
- Grep context: fork argument-hint: File path and description of the bug to fix
Fix the bug or issue in the specified code using Gemini as a sub-agent.
Steps
- Read the target file(s) mentioned in the arguments.
- Call
mcp__gemini-bridge__consult_gemini_with_stdinwith:stdin_content: the full content of the target file(s)prompt: "Fix the following issue in this code: [ISSUE]. Return the complete fixed code with no omissions. Add a brief comment at each fix location explaining what was changed and why."format: "code"timeout: 180sandbox: "workspace-write"
- Replace
[ISSUE]with the user's description from the arguments. If no specific issue is described, analyze the code for obvious bugs, type errors, and logic issues. - Show the diff of changes before applying.
- Apply the fix to the original file.
$ARGUMENTS
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-generate/SKILL.md:
- User
name: Gemini Generate description: Delegates new code generation to Gemini. Gathers project context and generates code following existing conventions. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini
- mcp__gemini-bridge__consult_gemini_with_stdin
- Read
- Glob
- Grep context: fork argument-hint: Describe what code to generate
Generate new code using Gemini as a sub-agent.
Steps
- If additional context is needed (existing types, interfaces, or related code), read those files first.
- Call the appropriate Gemini tool:
- Without context:
mcp__gemini-bridge__consult_geminiwith:query: the generation task described in the arguments, including context about the project's tech stack, conventions, and where the generated code will be usedformat: "code"timeout: 180sandbox: "workspace-write"
- With context:
mcp__gemini-bridge__consult_gemini_with_stdinwith:
- Without context:
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-refactor/SKILL.md:
- User
name: Gemini Refactor description: Delegates code refactoring to Gemini. Reads target code, sends for structural improvement while preserving behavior, and shows diff before applying. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini_with_stdin
- Read
- Glob
- Grep context: fork argument-hint: File path and refactoring goals
Refactor the specified code using Gemini as a sub-agent.
Steps
- Read the target file(s) specified in the arguments.
- Call
mcp__gemini-bridge__consult_gemini_with_stdinwith:stdin_content: the full content of the target file(s)prompt: "Refactor this code to improve readability, maintainability, and structure. Preserve all existing behavior. Apply these principles: extract repeated logic, simplify conditionals, improve naming, reduce nesting. Return the complete refactored code."format: "code"timeout: 180sandbox: "workspace-write"
- Show the diff between original and refactored code.
- Apply changes only after the user confirms the refactoring intent.
$ARGUMENTS
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-review/SKILL.md:
- User
name: Gemini Review description: Delegates code review to Gemini. Reads target files and sends them for analysis focusing on bugs, security, performance, and readability. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini_with_stdin
- Read
- Glob
- Grep context: fork argument-hint: File path or description of code to review
Review the code specified below using Gemini as a sub-agent.
Steps
- Read the target file(s) specified in the arguments. If no file is specified, ask the user.
- Call
mcp__gemini-bridge__consult_gemini_with_stdinwith:stdin_content: the full content of the target file(s)prompt: "Review this code. Focus on: bugs, security issues, performance problems, and readability. Return a structured list of findings with severity (critical/warning/info), location, and suggested fix."format: "json"timeout: 180sandbox: "read-only"
- Summarize findings, highlighting the most critical issues first.
$ARGUMENTS
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-search/SKILL.md:
- User
name: Gemini Search description: Delegates a web search query to Gemini via MCP bridge. Gemini uses Google Search Grounding to return up-to-date information with source URLs. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini context: fork argument-hint: Search query to research
Perform a web search using Gemini as a sub-agent via the MCP bridge.
Steps
- Call
mcp__gemini-bridge__consult_geminiwith:query: "Use the google_search tool to research the following query. Do NOT answer from training data — always perform a live web search first. After searching, summarize the findings and cite URLs for each key claim.\n\nQuery: [QUERY]"format: "text"timeout: 180sandbox: "read-only"
- Replace
[QUERY]with the user's search query from the arguments. - Present the results in the following structure:
## 🔍 Gemini Web Search: [クエリ] ### 主な発見 [検索結果の要約。各ポイントに出典 URL を付記] ### 📎 ソース [引用 URL リスト]- If the result lacks URLs or grounding evidence, note that Gemini may have answered from training data and suggest refining the query.
$ARGUMENTS
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-subagent/SKILL.md:
- User
- User
Content from @gemini-mcp-bridge/examples/claude-skills/_archived/gemini-test/SKILL.md:
- User
name: Gemini Test description: Delegates test generation to Gemini. Reads source code and generates comprehensive unit tests matching the project's testing framework. user-invocable: true allowed-tools:
- mcp__gemini-bridge__consult_gemini_with_stdin
- Read
- Glob
- Grep context: fork argument-hint: File path to generate tests for
Generate tests for the specified code using Gemini as a sub-agent.
Steps
- Read the target file(s) specified in the arguments.
- Detect the project's testing framework by checking existing test files, config, and dependencies.
- Call
mcp__gemini-bridge__consult_gemini_with_stdinwith:stdin_content: the full content of the target file(s)prompt: "Generate comprehensive unit tests for this code. Include edge cases, error cases, and happy path. Use [FRAMEWORK] as the testing framework. Return only the test code."format: "code"timeout: 180sandbox: "read-only"
- Replace
[FRAMEWORK]with the detected framework (pytest, vitest, jest, etc.). - Write the tests to the appropriate test file location following the project's test structure.
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/description-optimization-results.json:
- User
{ "description_before": "Unified Gemini delegation skill. Automatically analyzes the task, selects the right tool/sandbox/format, and orchestrates single or multi-step workflows with validation and error recovery.", "description_after": "Delegate tasks to Google Gemini via MCP bridge. Use this skill whenever the user asks Gemini to do something, wants a second opinion from another AI, or explicitly mentions Gemini — including code review, bug fixing, refactoring, test generation, code explanation, web search (via Gemini's google_search), code generation, technical questions, or any task the user wants Gemini to handle. Also trigger when the user says "Geminiに聞いて", "Geminiにレビュー", "Geminiに書かせて", "Geminiで検索", or similar Japanese delegation phrases. Supports stdin for large inputs and multi-step orchestration with validation and error recovery.", "eval_iterations": [ { "iteration": 1, "description_version": "before (original)", "competing_skills": 9, "results": { "should_trigger_passed": 0, "should_trigger_total": 10, "should_not_trigger_passed": 10, "should_not_trigger_total": 10, "recall": 0.0, "precision": 1.0, "accuracy": 0.5 }, "note": "9 competing old skills present. Eval used temporary command proxy." }, { "iteration": 2, "description_version": "after (improved) + old skills archived", "competing_skills": 0, "results": { "should_trigger_passed": 2, "should_trigger_total": 10, "should_not_trigger_passed": 10, "should_not_trigger_total": 10, "recall": 0.2, "precision": 1.0, "accuracy": 0.6 }, "note": "Eval framework has false negatives — counts as miss when Claude invokes the real /gemini skill instead of the eval proxy command." } ], "manual_verification": { "method": "claude -p with --output-format json --max-turns 1", "query": "runner.pyにバグがないかGeminiにレビューしてもらって", "result": "Claude correctly invoked Skill('gemini') — blocked only by claude -p permission denial", "conclusion": "Description works correctly. Eval false negatives were caused by: (1) permission_denials in non-interactive mode, (2) eval matching temporary command name instead of real skill name." }, "changes_applied": [ "Improved description with explicit trigger conditions and Japanese phrases", "Archived 9 old competing skills to .claude/skills/_archived/" ] }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/benchmark.json:
- User
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-1-code-review/eval_metadata.json:
- User
{ "eval_id": 1, "eval_name": "code-review", "prompt": "/gemini runner.pyのコードレビューをして。バグとセキュリティの問題を重点的に", "assertions": [ {"name": "used_stdin_tool", "type": "contains", "target": "output", "value": "consult_gemini_with_stdin", "description": "Used consult_gemini_with_stdin for code review"}, {"name": "read_target_file", "type": "contains", "target": "output", "value": "runner.py", "description": "Read the target file before delegating"}, {"name": "findings_present", "type": "custom", "description": "Review output contains specific findings/issues"} ] }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-1-code-review/with_skill/grading.json:
- User
{ "eval_id": 1, "eval_name": "code-review", "run_type": "with_skill", "expectations": [ { "text": "Used consult_gemini_with_stdin for code review", "passed": true, "evidence": "Output states: 'Gemini MCP bridge (consult_gemini_with_stdin) failed 3 times' — the correct tool was attempted" }, { "text": "Read the target file before delegating", "passed": true, "evidence": "Output references runner.py with specific line numbers and code analysis" }, { "text": "Review output contains specific findings/issues", "passed": true, "evidence": "13 findings total: 2 critical, 7 warning, 4 info — with specific line numbers and suggested fixes" } ], "notes": "Gemini MCP was unavailable (Connection closed). Skill correctly fell back to direct review per its retry/caveat protocol. Output is well-structured JSON findings in markdown." }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-1-code-review/with_skill/outputs/review_result.md:
- User
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-1-code-review/with_skill/timing.json:
- User
{ "total_tokens": 30641, "duration_ms": 663804, "total_duration_seconds": 663.8 }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-1-code-review/without_skill/grading.json:
- User
{ "eval_id": 1, "eval_name": "code-review", "run_type": "without_skill", "expectations": [ { "text": "Used consult_gemini_with_stdin for code review", "passed": false, "evidence": "No Gemini tools used — review performed by Claude directly" }, { "text": "Read the target file before delegating", "passed": true, "evidence": "runner.py was read and analyzed with specific line references" }, { "text": "Review output contains specific findings/issues", "passed": true, "evidence": "12 findings: 3 HIGH, 5 MEDIUM, 4 LOW — detailed analysis" } ], "notes": "Baseline: no skill, no Gemini. Claude reviewed directly. Quality is comparable to with_skill run." }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-1-code-review/without_skill/outputs/review_result.md:
- User
- User
Summary Table
# Severity Category Description 1 HIGH Security/Bug Built-in TimeoutErrorshadowed2 HIGH Security modelparameter not validated against flag injection3 MEDIUM Security Directory validation depends on mutable cwd4 MEDIUM Security DANGER_FULL_ACCESShas no additional safeguard5 LOW Security Query content logged without redaction 6 HIGH Bug Global semaphore ignores parameter after first init 7 MEDIUM Bug Timeout discards partial output 8 MEDIUM Bug No backoff on retries (especially for 429) 9 MEDIUM Bug Heavy code duplication across two sync functions 10 LOW Bug Retryable detection may false-positive on substrings 11 LOW - User
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-1-code-review/without_skill/timing.json:
- User
{ "total_tokens": 20554, "duration_ms": 73667, "total_duration_seconds": 73.7 }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-2-web-search/eval_metadata.json:
- User
{ "eval_id": 2, "eval_name": "web-search", "prompt": "/gemini Python 3.14の新機能について教えて。ウェブ検索で最新情報を取得して", "assertions": [ {"name": "used_simple_tool", "type": "contains", "target": "output", "value": "consult_gemini", "description": "Used consult_gemini for search query"}, {"name": "search_instruction", "type": "contains", "target": "output", "value": "google_search", "description": "Instructed Gemini to use google_search"}, {"name": "urls_present", "type": "regex", "target": "output", "value": "https?://", "description": "Result contains source URLs"} ] }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-2-web-search/with_skill/grading.json:
- User
{ "eval_id": 2, "eval_name": "web-search", "run_type": "with_skill", "expectations": [ { "text": "Used consult_gemini for search query", "passed": true, "evidence": "Output states: '4 times with the web search prompt pattern' — consult_gemini was attempted" }, { "text": "Instructed Gemini to use google_search", "passed": false, "evidence": "Gemini was unreachable. The agent fell back to WebFetch instead of google_search via Gemini." }, { "text": "Result contains source URLs", "passed": true, "evidence": "Output includes URL: https://docs.python.org/3.14/whatsnew/3.14.html and references official documentation" } ], "notes": "Gemini MCP unavailable. Agent creatively fell back to WebFetch to get real web content — good resilience but not the intended Gemini path. Content quality is excellent with comprehensive Python 3.14 coverage from official docs." }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-2-web-search/with_skill/outputs/search_result.md:
- User
- User
- User
廃止予定と削除
- 各モジュールで従来の廃止予定機能が段階的に削除予定
- 詳細は公式ドキュメントの"Removed"セクション参照
- User
その他の改善
- デフォルトREPL: 構文ハイライト、インポート自動補完
- Windowsコードページ: 全てのコードページが'cpXXX'で対応
- 複素数と実数の混合演算: C99準拠の計算規則
- User
セキュリティ関連
- PGP署名廃止 (PEP 761)
configparser: 読めないファイルは書き込み不可にos.path.realpath():ALLOW_MISSINGパラメータで部分的なシンボリックリンク解決
- User
プラットフォーム対応
- Emscripten: 公式サポート(Tier 3)追加
- Android: バイナリリリース提供開始
- JIT コンパイラ: Windows/macOSで実験的サポート
- User
組み込み関数の変更
int():__trunc__()呼び出し廃止map():strictフラグ追加(zip()と同様)memoryview: ジェネリック型に対応NotImplemented: ブール値コンテキスト使用時にTypeErrorsuper(): コピー・ピクル対応pow():__rpow__()呼び出しサポート
- User
新しいモジュール
annotationlib: アノテーション検査compression: 圧縮関連 (compression.zstd含む)concurrent.interpreters: マルチインタプリタサポートstring.templatelib: テンプレート文字列
- User
標準ライブラリの改善
asyncio
- 非同期タスク検査用CLI:
python -m asyncio ps/pstree PID capture_call_graph()とprint_call_graph()関数
argparse
suggest_on_errorパラメータで引数提案機能- カラーサポート
concurrent.futures
InterpreterPoolExecutorクラス追加- Unix系: デフォルト開始メソッドが'fork'から'forkserver'へ変更
ProcessPoolExecutorにterminate_workers()とkill_workers()メソッド
pathlib
- 再帰的なコピー/移動:
copy(),copy_into(),move(),move_into() info属性で型情報キャッシュ
pdb
- リモートアタッチ:
python -m pdb -p PID - hardcoded breakpoint時のPdbインスタンス再利用
- 非同期タスク検査用CLI:
- User
エラーメッセージの改善
- キーワードタイポの提案
whille True: # "Did you mean 'while'?" を提案elif後のelseエラー改善- 文字列関連の改善 - インポート/例外ハンドラ時の詳細なメッセージ
- User
言語仕様の変更
PEP 758:
except/except*の括弧省略try: connect_to_server() except TimeoutError, ConnectionRefusedError: # 括弧不要に print('The network has ceased to be!')PEP 765:
finallyブロック内の制御フローfinallyブロックから抜けるreturn/break/continueでSyntaxWarningが発生-Werror -Wignore::SyntaxWarningで制御可能
インクリメンタルガベージコレクション
- サイクルGCがインクリメンタル化
- 最大一時停止時間が大幅削減(1桁以上)
- 世代が2つ(Young/Old)に簡略化
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-2-web-search/with_skill/timing.json:
- User
{ "total_tokens": 20348, "duration_ms": 721504, "total_duration_seconds": 721.5 }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-2-web-search/without_skill/grading.json:
- User
{ "eval_id": 2, "eval_name": "web-search", "run_type": "without_skill", "expectations": [ { "text": "Used consult_gemini for search query", "passed": false, "evidence": "No Gemini tools used" }, { "text": "Instructed Gemini to use google_search", "passed": false, "evidence": "No Gemini used at all" }, { "text": "Result contains source URLs", "passed": false, "evidence": "Output explicitly states: 'ウェブ検索を使用していないため' — no real URLs, knowledge cutoff limited" } ], "notes": "Baseline: no skill, no Gemini, no web access. Output is based on training data cutoff only. Explicitly notes limitation." }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-2-web-search/without_skill/outputs/search_result.md:
- User
Python 3.14 の新機能
注意: この情報はウェブ検索を使用せず、モデルの知識(2025年5月時点)に基づいています。Python 3.14 は 2025年10月にリリース予定であり、以下は開発段階での情報です。
主な新機能・変更点
1. テンプレート文字列 (t-strings) — PEP 750
Python 3.14 の目玉機能の一つ。f-string に似た構文だが、即座に文字列に変換されるのではなく、
Templateオブジェクトを返す。これにより、テンプレートの中間表現にアクセスでき、SQLインジェクション防止やHTMLエスケープなどのセキュリティ用途に活用できる。name = "World" template = t"Hello, {name}!" # template は Template オブジェクトであり、文字列ではない2.
except*の改善とExceptionGroup関連の強化例外グループの取り扱いがさらに改善され、より使いやすくなった。
3.
typingモジュールの改善- PEP 728:
TypedDictで閉じていないキーを許容する パラメータの追加
- PEP 728:
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-2-web-search/without_skill/timing.json:
- User
{ "total_tokens": 10613, "duration_ms": 40136, "total_duration_seconds": 40.1 }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/eval_metadata.json:
- User
{ "eval_id": 3, "eval_name": "refactor", "prompt": "/gemini config.pyのTruncateResultクラスにdataclassデコレータを使うようにリファクタして", "assertions": [ {"name": "used_stdin_tool", "type": "contains", "target": "output", "value": "consult_gemini_with_stdin", "description": "Used consult_gemini_with_stdin for refactoring"}, {"name": "read_target_file", "type": "contains", "target": "output", "value": "config.py", "description": "Read the target file before delegating"}, {"name": "code_output", "type": "contains", "target": "output", "value": "dataclass", "description": "Refactored code uses dataclass decorator"} ] }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/with_skill/grading.json:
- User
{ "eval_id": 3, "eval_name": "refactor", "run_type": "with_skill", "expectations": [ { "text": "Used consult_gemini_with_stdin for refactoring", "passed": false, "evidence": "consult_gemini_with_stdin failed 4 times. Fell back to consult_gemini which succeeded." }, { "text": "Read the target file before delegating", "passed": true, "evidence": "Output shows the full original class and proposed replacement" }, { "text": "Refactored code uses dataclass decorator", "passed": true, "evidence": "Output contains '@dataclass(slots=True)' with properly typed fields" } ], "notes": "Gemini MCP partially available — consult_gemini worked but consult_gemini_with_stdin failed. Agent successfully delegated to Gemini via the simpler tool. Meta header was validated (status: ok, format_valid: true). Diff was shown. Good overall execution." }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/with_skill/outputs/refactor_diff.txt:
- User
--- a/gemini-mcp-bridge/src/gemini_bridge_mcp/config.py +++ b/gemini-mcp-bridge/src/gemini_bridge_mcp/config.py @@ -1,6 +1,7 @@ from future import annotations
+from dataclasses import dataclass import json import logging import os @@ -170,14 +171,11 @@ def resolve_directory(directory: str, settings: Settings, base_dir: Path | None return target
+@dataclass(slots=True) class TruncateResult: """Result of output truncation with metadata."""
- slots = ("text", "was_truncated", "original_length")
- def init(self, text: str, was_truncated: bool, original_length: int) -> None:
-
self.text = text -
self.was_truncated = was_truncated -
self.original_length = original_length
- text: str
- was_truncated: bool
- original_length: int
def truncate_output(value: str, max_chars: int) -> TruncateResult:
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/with_skill/outputs/refactor_result.md:
- User
Refactor TruncateResult to use @dataclass decorator
Task
Refactor the
TruncateResultclass inconfig.pyto use Python's@dataclass(slots=True)decorator instead of manually defining__slots__and__init__.Gemini Response
Meta validation:
- status: ok
- truncated: false
- format_valid: true
- elapsed_seconds: 20.8
Proposed refactored class:
from dataclasses import dataclass @dataclass(slots=True) class TruncateResult: """Result of output truncation with metadata.""" text: str was_truncated: bool original_length: intChanges Summary
- Added import:
from dataclasses import dataclassadded to the imports section (line 3 area)
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/with_skill/timing.json:
- User
{ "total_tokens": 23541, "duration_ms": 696492, "total_duration_seconds": 696.5 }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/without_skill/grading.json:
- User
{ "eval_id": 3, "eval_name": "refactor", "run_type": "without_skill", "expectations": [ { "text": "Used consult_gemini_with_stdin for refactoring", "passed": false, "evidence": "No Gemini tools used" }, { "text": "Read the target file before delegating", "passed": true, "evidence": "config.py was read and analyzed" }, { "text": "Refactored code uses dataclass decorator", "passed": true, "evidence": "Proposed @dataclass(slots=True) replacement" } ], "notes": "Baseline: no skill, no Gemini. Claude performed the refactor directly. Result is identical in substance to the with_skill version." }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/without_skill/outputs/refactor_diff.txt:
- User
--- a/gemini-mcp-bridge/src/gemini_bridge_mcp/config.py +++ b/gemini-mcp-bridge/src/gemini_bridge_mcp/config.py @@ -1,6 +1,7 @@ from future import annotations
import json import logging import os +from dataclasses import dataclass from pathlib import Path from typing import Any, Iterable @@ -170,12 +171,11 @@ return target
+@dataclass(slots=True) class TruncateResult: """Result of output truncation with metadata."""
- slots = ("text", "was_truncated", "original_length")
- def init(self, text: str, was_truncated: bool, original_length: int) -> None:
-
self.text = text -
self.was_truncated = was_truncated -
self.original_length = original_length
- text: str
- was_truncated: bool
- original_length: int
def truncate_output(value: str, max_chars: int) -> TruncateResult:
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/without_skill/outputs/refactor_result.md:
- User
Refactoring: TruncateResult to dataclass
Target
- File:
gemini-mcp-bridge/src/gemini_bridge_mcp/config.py - Class:
TruncateResult(lines 173-180)
Current Implementation
class TruncateResult: """Result of output truncation with metadata.""" __slots__ = ("text", "was_truncated", "original_length") def __init__(self, text: str, was_truncated: bool, original_length: int) -> None: self.text = text self.was_truncated = was_truncated self.original_length = original_length - File:
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/iteration-1/eval-3-refactor/without_skill/timing.json:
- User
{ "total_tokens": 14525, "duration_ms": 33731, "total_duration_seconds": 33.7 }
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini-workspace/trigger-eval.json:
- User
[ {"query": "runner.pyにバグがないかGeminiにレビューしてもらって。セキュリティ周りが特に気になる", "should_trigger": true}, {"query": "このプロジェクトのREADMEの英語がちょっと怪しいので、Geminiに校正させたい。自然な英語に直してほしい", "should_trigger": true}, {"query": "Python 3.14のPEP 750 t-stringsについて最新情報をウェブで調べて。Geminiのgoogle searchを使ってほしい", "should_trigger": true}, {"query": "config.pyのTruncateResultクラスをもっとPythonicにリファクタリングして。Geminiの意見も聞きたい", "should_trigger": true}, {"query": "このAPIのレスポンス形式が変わったらしいんだけど、Geminiに新しい仕様を調べさせて対応コードを書いてほしい", "should_trigger": true}, {"query": "server.pyのセッション管理のロジックが複雑すぎる。Geminiに説明させて、リファクタの提案もほしい", "should_trigger": true}, {"query": "テストが足りてない気がする。test_gemini_bridge.pyを見て、カバーできてないエッジケースのテストをGeminiに書かせて", "should_trigger": true}, {"query": "FastAPIでWebSocketのハートビート実装を作りたい。Geminiに雛形を生成してもらいたいんだけど", "should_trigger": true}, {"query": "このエラーログの原因をGeminiに分析させたい。stderrの内容をstdinで渡してほしい", "should_trigger": true}, {"query": "Rustのlifetimeがよくわからない。Geminiに聞いて簡単に教えてもらって", "should_trigger": true}, {"query": "runner.pyの12行目のimport文を削除して", "should_trigger": false}, {"query": "git logで最近のコミット一覧を見せて", "should_trigger": false}, {"query": "このプロジェクトのディレクトリ構造を教えて", "should_trigger": false}, {"query": "pytest を実行してテスト結果を見せて", "should_trigger": false}, {"query": "config.pyを読んで内容を説明して", "should_trigger": false}, {"query": "Claude APIでtool_useを使ったチャットボットを作りたい。Anthropic SDKの使い方を教えて", "should_trigger": false}, {"query": "requirements.txtにpydantic>=2.0を追加して", "should_trigger": false}, {"query": "OpenAIのGPT-4oでfunction callingを実装してるんだけど、レスポンスのパースがうまくいかない", "should_trigger": false}, {"query": ".envファイルにGEMINI_API_KEY=xxx を設定して。あとgitignoreにも追加", "should_trigger": false}, {"query": "MCPサーバーのserver.pyにヘルスチェックエンドポイントを自分で追加して。外部には聞かなくていい", "should_trigger": false} ]
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini/SKILL.md:
- User
- User
Content from @gemini-mcp-bridge/examples/claude-skills/gemini/evals/evals.json:
- User
{ "skill_name": "gemini", "evals": [ { "id": 1, "prompt": "/gemini runner.pyのコードレビューをして。バグとセキュリティの問題を重点的に", "expected_output": "runner.pyを読み取り、Geminiにconsult_gemini_with_stdinでstdin経由でコード全文を送信。format=json, sandbox=read-only。結果をparse後、重要度順に整理して報告。[meta]ヘッダのformat_validを確認すること。", "files": [], "assertions": [ {"name": "used_stdin_tool", "type": "contains", "target": "output", "value": "consult_gemini_with_stdin", "description": "Used consult_gemini_with_stdin for code review (large input)"}, {"name": "read_target_file", "type": "contains", "target": "output", "value": "runner.py", "description": "Read the target file before delegating"}, {"name": "findings_present", "type": "custom", "description": "Review output contains specific findings/issues"} ] }, { "id": 2, "prompt": "/gemini Python 3.14の新機能について教えて。ウェブ検索で最新情報を取得して", "expected_output": "ウェブ検索モードを自動選択し、consult_geminiでgoogle_search toolを使うようGeminiに指示。sandbox=read-only, format=text。結果にソースURLが含まれること。", "files": [], "assertions": [ {"name": "used_simple_tool", "type": "contains", "target": "output", "value": "consult_gemini", "description": "Used consult_gemini (not stdin) for search query"}, {"name": "search_instruction", "type": "contains", "target": "output", "value": "google_search", "description": "Instructed Gemini to use google_search tool"}, {"name": "urls_present", "type": "regex", "target": "output", "value": "https?://", "description": "Result contains source URLs"} ] }, { "id": 3, "prompt": "/gemini config.pyのTruncateResultクラスにdataclassデコレータを使うようにリファクタして", "expected_output": "config.pyを読み取り、Geminiにconsult_gemini_with_stdinでリファクタ指示。format=code, sandbox=workspace-write。Gemini結果のdiffを表示し、ユーザー確認後に適用。", "files": [], "assertions": [ {"name": "used_stdin_tool", "type": "contains", "target": "output", "value": "consult_gemini_with_stdin", "description": "Used consult_gemini_with_stdin for refactoring (large input)"}, {"name": "read_target_file", "type": "contains", "target": "output", "value": "config.py", "description": "Read the target file before delegating"}, {"name": "code_output", "type": "contains", "target": "output", "value": "dataclass", "description": "Refactored code uses dataclass decorator"} ] } ] }
- User
Content from @gemini-mcp-bridge/scripts/check_stdout_clean.sh:
- User
#!/usr/bin/env bash set -euo pipefail
cd "0")/.."
uv run --with . python - <<'PY' import io import contextlib
from gemini_bridge_mcp import server
server.mcp.run = lambda **kwargs: None buf = io.StringIO() with contextlib.redirect_stdout(buf): server.main()
captured = buf.getvalue() if captured: raise SystemExit(f"FAIL: stdout polluted: {captured!r}")
print("OK: stdout is clean for server.main()") PY
- User
Content from @gemini-mcp-bridge/scripts/claude_gemini_audit.sh:
- User
#!/usr/bin/env bash set -euo pipefail
- User
Content from @gemini-mcp-bridge/scripts/claude_gemini_launcher.sh:
- User
#!/usr/bin/env bash set -euo pipefail
Default launcher for Gemini-first usage in Claude CLI.
You can override defaults with environment variables below.
DEFAULT_APPEND_PROMPT='For coding and technical tasks, call mcp__gemini-bridge__consult_gemini first. If the input is large (diff/log/file content), call mcp__gemini-bridge__consult_gemini_with_stdin. Use explicit tool arguments with sandbox read-only and timeout 180 unless the task requires otherwise.' DEFAULT_ALLOWED_TOOLS='mcp__gemini-bridge__consult_gemini,mcp__gemini-bridge__consult_gemini_with_stdin'
APPEND_PROMPT="{CLAUDE_GEMINI_APPEND_PROMPT:-DEFAULT_APPEND_PROMPT}" ALLOWED_TOOLS="{CLAUDE_GEMINI_ALLOWED_TOOLS:-DEFAULT_ALLOWED_TOOLS}"
exec claude
--append-system-prompt "ALLOWED_TOOLS" "$@" - User
Content from @gemini-mcp-bridge/scripts/it_smoke_gemini_bridge.sh:
- User
#!/usr/bin/env bash set -euo pipefail
cd "0")/.."
if ! command -v gemini >/dev/null 2>&1; then echo "FAIL: gemini CLI not found in PATH" exit 1 fi
uv run --with . python - <<'PY' import asyncio
from gemini_bridge_mcp.server import ( ConsultGeminiInput, ConsultGeminiWithStdinInput, consult_gemini, consult_gemini_with_stdin, ) from gemini_bridge_mcp.types import OutputFormat, SandboxMode
async def main() -> None: r1 = await consult_gemini( ConsultGeminiInput( query='Return a compact JSON object with key "status" and value "ok".', directory='.', format=OutputFormat.JSON, timeout=45, sandbox=SandboxMode.READ_ONLY, ) ) print("consult_gemini:", (r1[:240] + "...") if len(r1) > 240 else r1)
- User
Content from @gemini-mcp-bridge/src/gemini_bridge_mcp/init.py:
- User
"""Gemini CLI MCP Bridge — standalone MCP server for Google Gemini CLI.""" version = "0.1.0"
- User
Content from @gemini-mcp-bridge/src/gemini_bridge_mcp/config.py:
- User
- User
Content from @gemini-mcp-bridge/src/gemini_bridge_mcp/runner.py:
- User
- User
Content from @gemini-mcp-bridge/src/gemini_bridge_mcp/server.py:
- User
- User
Content from @gemini-mcp-bridge/src/gemini_bridge_mcp/types.py:
- User
from future import annotations
from enum import Enum
class OutputFormat(str, Enum): TEXT = "text" JSON = "json" CODE = "code"
class SandboxMode(str, Enum): READ_ONLY = "read-only" WORKSPACE_WRITE = "workspace-write" DANGER_FULL_ACCESS = "danger-full-access"
- User
Content from @gemini-mcp-bridge/tests/test_backends.py:
- User
- User
Content from @gemini-mcp-bridge/tests/test_config.py:
- User
- User
Content from @gemini-mcp-bridge/tests/test_gemini_bridge.py:
- User
- User
Content from @gemini-mcp-bridge/tests/test_llm_config.py:
- User
- User
Content from @gemini-mcp-bridge/tests/test_llm_server.py:
- User
- User
Content from @gemini-mcp-bridge/tests/test_runner.py:
- User
- User
Content from @gemini-mcp-bridge/tests/test_server.py:
- User
- User
--- End of content ---
Assistant
I will read the current
gemini-mcp-bridge/README.mdto identify the exact sections that need updating based on the recent move to a unified skill and the addition of session context features.Assistant
- User
内容を全て英語にして書き込んで
Assistant
I will read the current
gemini-mcp-bridge/README.mdto identify all non-English sections for translation.