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

shift-ax

v0.5.9

Published

Agentic software delivery platform for teams that are not AX experts yet

Readme

Shift AX

一个在项目之上减少重复工作的易用 AX helper。

减少跨仓库重复注入上下文,让工具逐步学会你的领域语言,并把 request-to-commit 交付流程变成一条有引导的闭环。

npm version npm downloads GitHub stars License: MIT Node.js

English | 한국어 | 简体中文 | 日本語 | Español

它是给这样的人准备的:想把 AI 真正用进交付流程里,但并不想先变成一个 prompt 技巧专家。

shift-ax 是一个运行在 单个项目之上 的易用 AX helper。它以全局方式维护可复用上下文,持续学习你的领域语言,并把编码代理运行时组织成一条 request-to-commit 的引导式交付流程。


为什么是 Shift AX?

AI 辅助开发里最麻烦的事,通常并不是“模型会不会写代码”。

真正的痛点往往是这些:

  • 你要在多个项目之间反复注入同一套上下文
  • 团队的领域术语和工作语言没有被稳定沉淀下来
  • 很多例行业务依然要靠人持续盯着
  • 你知道设计很重要,但后续交付流程还是很脆弱
  • 你并不确定怎样才算“把 AI 用好”,所以上手门槛依旧很高

Shift AX 的目标,就是把这一层变简单。

只要设计和需求先梳理清楚,Shift AX 就会尽量减少重复提示,把后续交付流程放进一套更强、更稳的过程引导里。


你会直接得到什么

  • 全局可复用上下文 重要上下文不再被锁在某个项目里,也不用一个仓库一个仓库地重复注入。

  • 会随着使用逐步学会的领域语言 把组织里的术语、政策、流程和高频概念教给 Shift AX,一次沉淀,持续复用。

  • 为例行交付工作优化过的工作流 特别适合那些请求、计划、评审、验证需要重复稳定执行的工程工作。

  • 细致 onboarding + 强默认值 即使你并不擅长使用 AI 编码工具,也能更快进入一条真正可用的路径。

  • request-to-commit 护栏 先解上下文,再审计划,然后再进入实现、验证、评审和提交,减少整条链路里的模糊地带。

  • 确定性的 agent harness 不把编排交给 LLM 即兴处理,而是在脚本拥有的 FSM、SQLite queue、DAG readiness、retry、idempotency 轨道里运行 agent 工作。


安装与快速开始

npm install -g shift-ax@latest
shift-ax --version
shift-ax update
shift-ax --codex

如果你想用 Claude Code:

shift-ax --claude-code

这样就能开始了。 首次运行时,Shift AX 会询问你偏好的语言,以及是否默认开启 full-auto,然后把你带进正确的运行时流程。 启动时最多每 24 小时检查一次 npm latest。如果本机版本落后,会询问是否更新;如果选择跳过当前版本,该版本和上次检查时间会写入 ~/.shift-ax/settings.json,之后不会反复提示。 运行时 skills 只安装到全局,而不是每个项目各装一份。Codex 使用 ~/.codex/skills~/.codex/prompts,Claude Code 使用 ~/.claude/commands~/.claude/hooks。如果 Codex 要求你批准新安装的 Shift AX skill 或 prompt,只需批准一次;之后其他 repo 会复用同一份全局安装。旧版本生成的项目本地 Shift AX skill 副本会被自动清理,避免命令显示两次。

之后只需要完成一次 onboarding,把可复用上下文教给它,然后就可以开始处理请求。

  • CLI 命令: shift-ax
  • 要求: Node.js 20+

如果你想直接从源码运行,而不是全局安装:

npm install
npm run build
npm link

常用操作

先把可复用上下文 onboard 一次

Shift AX 会把可复用知识放在:

  • ~/.shift-ax/index.md:包含可搜索 label、alias、repository、workflow 和领域术语的单一 dictionary
  • ~/.shift-ax/role/
  • ~/.shift-ax/work-types/
  • ~/.shift-ax/repos/
  • ~/.shift-ax/procedures/
  • ~/.shift-ax/domain-language/

在运行时里:

  • Codex: $onboard
  • Claude Code: /onboard

这一步就是 Shift AX 开始学习你的工作语言和工作方式的地方。它会分别检查相关 repo,根据已合并 PR 历史和你给出的规则生成 repo 级 review gate,并在把 onboarding 视为完成之前验证 dictionary 是否指向真实文档、保存下来的上下文是否可用。

开始一个请求

在运行时里:

  • Codex: $request <text>
  • Claude Code: /request <text>

Shift AX 会先解析上下文,创建请求专属 topic/worktree,在聊天里用用户语言展示详细审批包并让用户用 1/2/3 完成评审。批准后,它会继续进入实现、验证、评审与提交流程。内部的 approve/resume 命令是恢复工具,不是常规用户路径。

之后再评审 / 查看状态

常用运行时命令:

  • Codex: $doctor, $status, $topics, $review, $export-context
  • Claude Code: /doctor, /status, /topics, /review, /export-context

需要时也可以直接用 CLI 跑完整流程

shift-ax onboard-context --discover
shift-ax onboard-context --gctree-reference /path/to/reference
shift-ax run-request --request "Build safer auth refresh flow"
shift-ax topic-status --topic .shift-ax/topics/<topic>

在 product-shell 自动化中,agent 会先检查请求中提到的文件和仓库结构,再生成具体的 brainstorm/spec/plan 文件并传给 run-request。空的非交互式 planning 输入会被拒绝,避免占位计划被误批准。


为什么它用起来会很顺手

Shift AX 工作在项目之上,但又能自然地接进你已经在用的工具。

这很重要,因为很多 AX 的重复成本,本来就不属于某一个仓库本身。 它们更多来自这些东西:

  • 团队如何命名概念
  • 领域里如何表达政策和业务规则
  • 什么才算真正完成
  • 哪些评审和验证步骤每次都不能少
  • 哪些例行任务会不断重复出现

Shift AX 不会要求你在每个仓库里一遍遍重建这些上下文,而是把它们保存在全局层。

所以你不再需要每次开新会话都从零重新搭上下文栈,而是会逐渐积累出一层可复用的运作层:

  • 全局上下文
  • 被学会的领域语言
  • 可复用的流程
  • 可重复的 request 处理方式

这也是为什么它更像一个真实系统,而不是一堆 prompt 技巧拼出来的东西。


一个更贴近现实的工作流

假设你平时同时在这些地方工作:

  • 多个产品仓库
  • 一个内部平台仓库
  • 一两个客户专用仓库
  • 稳定重复出现的交付任务

如果没有 Shift AX,每开一个新的 AI 会话,都会重复同样的额外开销:

  • 再讲一遍领域背景
  • 再讲一遍公司内部语言
  • 再讲一遍评审规则
  • 再讲一遍期望的交付流程

有了 Shift AX,你可以先把这层可复用能力 onboard 一次,并以全局方式保存下来,让每个新请求都从一个更强的默认状态开始。

它的核心承诺就是:

减少重复性的上下文注入, 让交付流程随着使用不断变得更稳、更顺。


核心概念

  • 全局上下文 超出单个仓库、可以反复复用的工作知识。

  • 领域语言 组织里反复出现的术语、概念与政策表达方式。

  • topic/worktree 一个请求专属的工作通道,以及与之配套的工件和状态。

  • 计划评审关卡 在实现开始前,先强制停下来让人确认计划。

  • 独立评审关卡 最终评审包含一个只读取已保存工件的 clean-context 关卡,在提交前重新检查 onboarding compliance、PRD 证据、路径范围、副作用风险以及测试相关性。

  • request-to-commit 闭环 把上下文解析、计划、确定性编排、实现、验证、评审和提交组织成一条有引导的流程。


把这段提示词交给另一个 LLM

如果你希望另一个 LLM 替你完成 Shift AX 的安装与使用,可以把下面这段交给它:

You are setting up and using Shift AX in this repository.

Goal:
- install Shift AX
- start the correct runtime shell
- onboard reusable context
- start the first request safely

Rules:
- use `shift-ax`, not `ax`, in user-facing commands
- if Shift AX is not installed, run `npm install -g shift-ax@latest`
- if Shift AX says npm latest is newer, choose update unless the user explicitly wants to skip that version
- use `shift-ax update` to reinstall npm latest and refresh global runtime commands
- if working from a source checkout instead of a global install, run:
  - `npm install`
  - `npm run build`
  - `npm link`
- prefer `shift-ax --codex` unless the user explicitly wants Claude Code
- on first run, answer the language question using the user's language preference
- on first run, answer the full-auto question cautiously
- if `~/.shift-ax/index.md` does not exist, onboard first
- in Codex use `$onboard` and `$request ...`
- in Claude Code use `/onboard` and `/request ...`
- do not start implementation before plan approval
- if shared policy/context docs must change first, update them before implementation continues

Suggested first commands:
1. `shift-ax --codex`
2. run `$onboard`
3. run `$request <the user's task>`

客观质量指标

shift-ax eval 用数字验证 request-to-commit 质量,而不是只靠定性描述。当前 objective eval baseline 是 objective score 100% (18/18)、相对 raw matched context 的 token reduction 89%、review gate allow/block accuracy 100%、deterministic harness checks 100%。

shift-ax eval --output .shift-ax/evals/latest
npm run eval:objective
npm run eval:all

结果会写入 objective-eval-report.jsonobjective-eval-report.md。只要任一指标低于 threshold,命令就会以 exit code 1 失败。


文档