---
title: "Backpass Turns Your AI Agent's Chat History Into Self-Improving Memory"
subtitle: "A new CLI treats AGENTS.md as a set of weights, mining your agent transcripts to propose evidence-backed edits under a strict token budget."
url: "https://alphasignal.ai/news/backpass-turns-your-ai-agent-s-chat-history-into-self-improving-memory"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-09-04T08:00:25.000Z"
updated: "2026-09-05T07:11:59.112Z"
type: "Repo"
topics:
  - "Agents"
  - "Development"
subtopics:
  - "Memory"
  - "Tool Use"
upvotes: 337
source_url: "https://github.com/kunchenguid/backpass"
comments: 0
truncated: true
---

# Backpass Turns Your AI Agent's Chat History Into Self-Improving Memory

> A new CLI treats AGENTS.md as a set of weights, mining your agent transcripts to propose evidence-backed edits under a strict token budget.

Every developer using Claude Code, Codex, or Cursor eventually ends up maintaining an `AGENTS.md` or `CLAUDE.md` file by hand, tacking on rules whenever the agent misbehaves. A new open source tool called [backpass](https://github.com/kunchenguid/backpass) reframes that file as a set of learnable weights and mines the transcripts your agent already leaves on disk to propose concrete edits.

The pitch borrows ML vocabulary directly: your `AGENTS.md` is a set of weights, every agent session is a forward pass, and the transcript that session writes to disk is a loss signal that nothing currently reads. Backpass reads those transcripts, distills them, and proposes edits to your memory files. The project is MIT-licensed, written in JavaScript, and available on npm.

## How the backward pass works

Installation is a single command: `npm install -g backpass`, requiring Node 22.5 or newer plus `acpx` on your PATH. The tool ships with no API keys; every model call goes through acpx to a harness you have already authenticated, so you pay through existing Claude, Codex, or Grok subscriptions rather than adding another billing surface.

The pipeline maps directly onto training loop vocabulary:

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [kunchenguid/backpass](https://github.com/kunchenguid/backpass)
- [backpass on npm](https://www.npmjs.com/package/backpass)
- [kunchenguid on X](https://twitter.com/kunchenguid/status/2096043842013393337)
