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

antigravity-codex-patch

v0.1.0

Published

macOS CLI to patch Antigravity IDE so the OpenAI Codex extension can start reliably.

Downloads

19

Readme

antigravity-codex-patch

English | 한국어 | 中文

这是一个仅适用于 macOS 的 CLI,用于修补 Antigravity IDE,让 OpenAI Codex extension 能够稳定启动本地 Codex app server。

为什么需要它

在某些 Antigravity IDE 环境中,Codex extension 可能会一直停留在加载状态。常见原因有两个:

  • Antigravity 的 argv.json 需要启用 OpenAI extension 使用的 proposed API:openai.chatgpt
  • extension 可能需要指向一个可正常工作的系统 codex 可执行文件,而不是使用内置二进制文件

这个工具会安全地应用这两个修复,并提供备份和回滚。

快速开始

pnpm dlx antigravity-codex-patch doctor
pnpm dlx antigravity-codex-patch apply

运行 apply 后,请重启 Antigravity IDE。也可以让工具自动重启:

pnpm dlx antigravity-codex-patch apply --restart

命令

antigravity-codex-patch doctor [--json]
antigravity-codex-patch apply [--dry-run] [--restart] [--codex-path <path>] [--json]
antigravity-codex-patch rollback [--backup <dir>] [--json]

该包也提供较短的命令名:

pnpm dlx --package antigravity-codex-patch ag-codex-patch doctor

apply 会修改什么

apply 会确保 ~/.antigravity-ide/argv.json 包含以下配置:

{
  "enable-proposed-api": ["openai.chatgpt"]
}

它还会确保 ~/Library/Application Support/Antigravity IDE/User/settings.json 指向一个可工作的 Codex CLI:

{
  "chatgpt.cliExecutable": "/opt/homebrew/bin/codex"
}

Codex CLI 路径会从 PATH/opt/homebrew/bin/codex/usr/local/bin/codex 自动检测。你也可以手动指定:

pnpm dlx antigravity-codex-patch apply --codex-path /opt/homebrew/bin/codex

安全性

  • apply 会在 ~/.antigravity-ide/backups/ 下创建带时间戳的备份
  • rollback 默认恢复最新备份
  • --dry-run 可以在不写入文件的情况下查看计划修改
  • 写入前会解析 JSON/JSONC 文件
  • 多次运行 apply 是安全的,不会添加重复项

本地开发

pnpm install
pnpm check
pnpm pack

许可证

MIT