npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gemma-cli

v0.1.10

Published

Unofficial local-first coding agent optimized for Gemma models.

Downloads

918

Readme

Gemma CLI

Gemma CLI is an unofficial coding agent for terminal-based software work. It can inspect a workspace, edit files, run commands, keep local session diagnostics, and drive multi-turn coding tasks through local model providers.

This is not an official Google, DeepMind, Gemma, Ollama, or LM Studio project. It is provided as-is, without warranties. It can run commands and modify files in your workspace, so use it at your own risk and review changes before trusting them.

Install

npm install -g gemma-cli

Then start the terminal UI:

gemma

Run a single prompt:

gemma --prompt "summarize this repository"

Supported Inference Stacks

Gemma CLI currently supports:

  • Ollama, the default local provider. The default Ollama model is gemma4:26b.
  • LM Studio, through its local server API.

Common examples:

gemma --provider ollama --model gemma4:26b
gemma --provider lmstudio --model google/gemma-4-31b

List local models:

gemma --provider ollama --list-models
gemma --provider lmstudio --list-models

Gemma-Focused Behavior

The CLI is designed to work especially well with Gemma models. It includes Gemma 4 prompt formatting, reasoning controls, model profile labels, thinking stream handling where the provider exposes it, and fallback behavior for providers that do not expose the same reasoning controls.

The default settings intentionally favor long-context coding sessions. Ollama instability should be treated as a provider/runtime recovery problem rather than solved by shrinking context.

Basic Capabilities

  • Terminal UI with model selection and resumable local sessions.
  • Headless prompt mode for scripts and test runs.
  • JSON and JSONL streaming output for diagnostics and automation.
  • Workspace tools for reading, writing, patching, and inspecting files.
  • Command execution with visible tool results.
  • Local diagnostics under .gemmacli/ for session snapshots and event logs.
  • Optional skills loaded from workspace skill files.

Useful Commands

gemma --help
gemma --resume
gemma --resume <session-id>
gemma --json-stream --prompt "build and test this"
gemma --cwd /path/to/project

Inside the TUI, useful slash commands include:

/model
/status
/stats
/sessions
/resume
/clear
/debug:prompt
/quit

Warranty And Risk

Gemma CLI is experimental software. It may generate incorrect code, run the wrong command, misunderstand a repository, or corrupt files. Keep important work in version control, inspect diffs, and run your own validation before using its output.