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

@amuedespacher/agent-git

v0.1.2

Published

> **Experimental** — This is an early-stage hobby project. Expect rough edges and breaking changes. Use with care on repositories that matter to you.

Downloads

39

Readme

Agent Git

Experimental — This is an early-stage hobby project. Expect rough edges and breaking changes. Use with care on repositories that matter to you.

agent-git is a terminal-native, chat-first Git assistant powered by an LLM agent loop. Instead of memorising subcommands, you describe what you want in plain language and Agent Git reasons about your repository, calls structured Git tools, and asks for your approval before making any changes.

npx @amuedespacher/agent-git

Run that inside any Git repository to open the interactive UI.


How it works

Agent Git connects to an OpenAI model and drives an internal agent loop:

  1. You send a natural-language message.
  2. The LLM decides which Git tools to call.
  3. Tools are executed locally against your repository.
  4. Results feed back into the model until the task is complete.

Write operations (commit, push, branch changes, etc.) are guarded — the agent presents the action and waits for your explicit y or n before executing anything.


Requirements


Setup

Via npx (no install)

npx @amuedespacher/agent-git

On first launch without a saved key, the app will walk you through connecting to OpenAI.

Global install

npm install -g @amuedespacher/agent-git
agent-git

What you can ask

Repository inspection

  • what's going on in this repo?
  • show me the staged diff
  • show recent commit history
  • list all branches
  • what remotes are configured?

Committing

  • help me commit my staged changes
  • stage everything and write a commit message
  • suggest a conventional commit message for my diff

Branching

  • create a branch called feature/my-thing
  • switch to main
  • delete the branch fix/old-thing
  • validate my current branch name

Syncing with remotes

  • push my branch
  • pull the latest from origin
  • fetch and prune stale remote branches

Remote management

  • add a remote called upstream
  • change the origin URL

Slash commands

| Command | Description | | --------------------- | ----------------------------------------------- | | /help | Show available chat patterns and slash commands | | /settings | Open the settings panel | | /connect-openai | Enter and save your OpenAI API key | | /chat | Return to the chat panel | | /refresh | Re-scan repository state | | agent-git --help | CLI flag reference | | agent-git --version | Print the installed version |


Configuration

Configuration is resolved via cosmiconfig: place a agent-git.config.json file in your project root, or add a "agent-git" key to package.json. Your OpenAI credentials are stored separately in ~/.agent-git/config.json.

{
  "provider": {
    "kind": "openai",
    "model": "gpt-5.4-nano"
  },
  "commitStyle": "conventional",
  "branchPattern": "^(feature|fix|chore|docs|refactor|test)/[a-z0-9._-]+$",
  "safetyLevel": "balanced",
  "verbosity": "normal"
}

You can also supply the API key via environment variable instead of the interactive setup:

export OPENAI_API_KEY=sk-...

Limitations

Agent Git is experimental. The following are known gaps in the current implementation:

  • OpenAI only. No support for other providers (Anthropic, Ollama, local models). An API key is required — there is no offline or heuristic-only mode.
  • No rebase tool. Interactive or standalone rebase is not implemented. Pull with --rebase is supported, but the agent cannot drive a rebase workflow step-by-step.
  • No reset tool. git reset (soft, mixed, or hard) is not available as an agent action. Recovery from bad commits must be done manually.
  • No stash tool. The agent cannot stash or pop changes. It may suggest stashing, but cannot execute it.
  • No conflict resolution. The agent cannot walk you through resolving merge conflicts. It can detect conflicted files in the status but cannot act on them.
  • Diff and log size limits. Diffs are capped at 400 lines and logs at 200 entries. Very large changesets may be truncated before the model sees them.
  • Single repository. The agent operates only in the directory it was launched from. Monorepo or multi-root scenarios are not supported.
  • macOS/Linux only. Untested on Windows. The terminal UI may not render correctly in all Windows terminals.

Development

git clone https://github.com/amuedespacher/agent-git.git
cd agent-git
npm install
npm run dev        # run from source with tsx
npm test           # run the test suite
npm run build      # compile TypeScript to dist/