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

blevinstein-github-agent

v2.0.1

Published

**Automate your GitHub workflows using natural language.**

Downloads

26

Readme

Github Agent

Automate your GitHub workflows using natural language.

Github Agent lets you write human language instructions—not shell scripts—to automate your repository. Just add the blevinstein/github-agent GitHub Action to your workflow, and the agent will use AI to:

  • Write and edit code
  • Commit changes to git
  • Create or update pull requests and issues
  • Respond to comments
  • Run custom tools (MCP servers)

By default, the agent can access your repo's filesystem, git, and GitHub API. You can easily extend it with other tools (see below).


Why use Github Agent?

  • No scripting required: Describe what you want in plain English. The agent figures out the steps.
  • Flexible automation: Automate bug fixes, code reviews, documentation, and more—using natural language.
  • Context-aware: Reference GitHub contexts and event data in your instructions using mustachejs syntax.
  • Extensible: Add custom MCP tools (e.g., Wikipedia lookup, browser automation, Docker) to expand the agent's capabilities.

Quick Start

1. Add the Github Agent to your workflow

Create (or edit) a workflow file (see agent.yaml for some examples)

on:
  pull_request:
    types: [opened]
jobs:
  my_agent_job:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
    env:
      OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
      - uses: actions/checkout@v4
      - name: Github Agent: Review PR
        uses: blevinstein/github-agent@v1
        with:
          instructions: |
            Please review the code in pull request {{pull_request.number}} and suggest improvements.
          model: anthropic/claude-3.7-sonnet
  • Write instructions inline, or use a file from your repo like so: instructions: file://path/to/agent-instructions.md
  • Reference GitHub context using mustachejs syntax.
  • Add Custom MCP tools as needed for additional capabilities.

2. Set up OpenRouter API Key:

  • Go to your repository's Settings > Secrets and variables > Actions.
  • Add a new secret named OPENROUTER_API_KEY with your OpenRouter API key as the value.

3. (Optional) Enable GitHub Actions to create and approve pull requests:

  • This is only needed if you want the agent to create or approve PRs.
  • Go to your repository's Settings > Actions > General.
  • Under Workflow permissions, enable Allow GitHub Actions to create and approve pull requests.

Warnings and Best Practices

Warning: The Github Agent may try to push to any branch in your repository, merge pull requests, delete issues, etc. If something is misconfigured or if the agent misbehaves, it could make unwanted changes.

Best Practices:

  • Enable branch protection rules for important branches (e.g., main, release branches).
    • Require pull requests before merging.
    • Restrict who can push directly to protected branches.
    • Require status checks and/or code reviews before merging.
  • Review and limit the agent's permissions as appropriate for your workflow.
  • Test the agent in a fork or test repository before deploying to production.
  • Monitor the agent's activity using GitHub's audit logs and PR history.

Backlog

  • [ ] Add setting rules_path which allows a user to configure .cursor/rules/* or .github/copilot-instructions.md etc, to include additional LLM instructions from their repo. Handle cursor mdc headers.
  • [ ] Add ability to split instruction templates into multiple files

Other MCP examples

  • [ ] Integrate puppeteer to allow the agent to use a browser https://github.com/modelcontextprotocol/servers/tree/main/src/puppeteer
  • [ ] Integrate docker to allow the agent to run local development containers https://github.com/ckreiling/mcp-server-docker