KB

kunchenguid/backpass

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1535 stars 质量 81 趋势 27MIT

你不写 AGENTS.md。你用梯度下降来训练它。

概览

你的 AGENTS.md 是一组权重。每次代理会话都是前向传递。会话留在磁盘上的文字记录是丢失信号——而现在没有任何东西能读取它。只有当有人恰好记起故障并手动编辑文件时,循环才会关闭。 Backpass会关闭它。它会找到实际运行在你仓库中的代理会话,读取其中发生了什么,并在有证据支持的内存表面——内存文件和项目技能——在一个代币预算下提出修改建议,且由你限制。 - - 直接从磁盘读取七个代理线束的文字记录存储。没有API,没有上传;文字记录从不离开你的机器,除非发送到你已认证的代理,且明显的秘密会在此之前被涂黑。- - 每次拟议的编辑都包含真实会话的逐字引用,且每次添加、重写或删除编辑至少需要两个不同会话的证据。小而嘈杂的有界限步骤——不是重写。- - 分析从不写入。

概述(AI 翻译)

回传

为你的代理记忆做梯度下降。

这篇博客文章解释了为什么以及如何。

backpass 帮助你以科学严谨性提升你的 AGENTS.md、CLAUDE.md 和技能。 它会找到实际运行在你仓库中的代理会话,读道 其中发生了什么,并建议对你的记忆表进行有证据支持的编辑—— 内存文件和项目技能——在象征性预算内,由你限制。

  • 本地优先 - 直接从磁盘读取七个代理线束的转录存储, 本地或通过SSH连接到你自己的机器。没有API,没有上传;转录永远不会离开你的 除了机器,无法进入你已经认证过的代理,明显的秘密则被涂黑 在他们之前。
  • 证据门槛 - 每次拟议的编辑都包含真实会议的逐字引用, 每一次add、rewrite或remove编辑至少需要两个不同的证据 会谈。小而吵闹、有界限的步伐——不是重写。
  • 人类在循环中 - 分析从不写。 参见应用——用于审查和明确脚本决策的人类门。

一次运行是一个有界梯度步。

快速启动

需要节点>= 22.5**和acpx在你的PATH上。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

backpass

<a href=“https://github.com/kunchenguid/backpass/actions/workflows/ci.yml” > <a href=“https://github.com/kunchenguid/backpass/actions/workflows/release-please.yml” > <a href=“https://www.npmjs.com/package/backpass” > <a href=“https://img.shields.io/badge/platform-macOS | Linux-blue?style=flat-square” > <a href=“https://x.com/kunchenguid” > <a href=“https://discord.gg/Wsy2NpnZDu” >

Gradient descent for your agent memory.

This blog post explains the why and how.

backpass helps you improve your AGENTS.md, CLAUDE.md and skills with scientific rigor. It finds the agent sessions that actually ran in your repo, reads what happened in them, and proposes evidence-backed edits to your memory surface - the memory file and project skills - under a token budget, gated by you.

  • Local-first - Reads the transcript stores of seven agent harnesses directly from disk, locally or over SSH to your own machines. No API, no upload; transcripts never leave your machines except into an agent you already authenticated, and obvious secrets are redacted before they do.
  • Evidence-gated - Every proposed edit carries verbatim quotes from real sessions, and every add, rewrite, or remove edit needs evidence from at least two distinct sessions. Small, noisy, bounded steps - not a rewrite.
  • Human in the loop - Analysis never writes. See Apply - the human gate for review and explicit scripted decisions.
AGENTS.md / CLAUDE.md + skills (the weights)
  → agent session               (forward pass)
  → transcript on disk          (loss signal)
  → backpass: collect samples, distill, calculate loss, aggregate gradients
  → backpass: gradient descent  (diffs + skill extractions)
  → you accept or reject        (the human gate)
  → back to the weights

One run is one bounded gradient step.

Quick Start

npm install -g backpass
# or run it without installing
npx backpass

Requires Node >= 22.5 and acpx on your PATH.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add kunchenguid/backpass
新手?先看 mcpskill.org 教程 →