Local Code Assistant local-code-assistant
Spins up a local Gemini Live Avatar code assistant with server-side function calling (filesystem inspection and Graphviz diagramming) and Google Search.
Use it when the user requests an interactive voice session to explore, explain, or diagram their codebase.
- Our test
- —
- not tested yet
- GitHub stars
- 18k
- googlecloudplatform/generative-ai
- Added by
- 0
- members
- Updated
- Dec 6
- commit 6a45112
- Content
- 2 files
- 1 script · 3 KB
- License
- Apache 2.0
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: local-code-assistant description: Spins up a local Gemini Live Avatar code assistant with server-side function calling (filesystem inspection and Graphviz diagramming) and Google Search. Use when the user requests an interactive voice session to explore, explain, or diagram their codebase. license: Apache-2.0 compatibility: Requires Go 1.26+, Google Cloud Application Default Credentials (us-central1), and optional Graphviz CLI (dot). metadata: author: ghchinoy version: "0.3.0"
Local Code Assistant
This skill spins up a dedicated local Go server with an embedded Lit WebComponent UI that acts as a standalone Gemini Live Avatar. The avatar has been explicitly granted Server-Side Function Calling capabilities (list_directory, read_file, and Graphviz generate_diagram) as well as Google Search, allowing it to explore your workspace, look up documentation, generate architecture diagrams, and answer questions about it verbally.
Usage
When requested to invoke the Local Code Assistant, execute the bundled launcher script or Go server:
- Ensure you have a
.envfile or Google Cloud Application Default Credentials (gcloud auth application-default login). _(Note: The Gemini Live API requires a regional endpoint, so if your location is empty or set toglobal, the server will automatically default tous-central1)_. - (Optional) If the user's request pertains to specific documentation (e.g., Gemini SDK docs, Lit, Vite), export the
AVATAR_EXTRA_CONTEXTenvironment variable with URLs or summaries before running the server so the Avatar is aware of them. - Run the launcher script from the skill directory:
scripts/launch.sh_Alternatively, run the app directly (from assets/local-code-assistant in a packed bundle, or from the example directory in the repository):_
AVATAR_EXTRA_CONTEXT="Please reference https://pkg.go.dev/google.golang.org/genai" go run .- Instruct the user to open their browser to
http://localhost:8081and click "Start Assistant Session" to begin talking to their local code assistant!