Repository navigation
Releases
v1.5.6
1.5.6 — 管理台「现在做梦」
管理员在 Hub 管理页「组织做梦」点一下,指定设备就跑一次整理并上传。
- 管理台:「现在做梦」按钮 + 状态行(等待领取 / 已领取 / 正在做梦 / 上次结果),忙时每 10 秒刷新。
POST /native/v1/admin/dream/run、GET /native/v1/admin/dream。 - Hub:一个组织同一时间只记一条请求;只有指定设备能领取,只有领取的设备能回报;领取后 6 小时没回报视为丢失。
POST /native/v1/dream/request(poll/claim/finish),健康接口能力dream-request-v1。 - 客户端:指定设备的后台同步进程每分钟问一次,有请求就拉起
amh-native dream --on-request(先领取、再按常规租约整理上传、最后回报)。非指定设备和旧 Hub 每小时问一次。 - 默认仍然关闭:不装定时、不自动上传。文档列出三种开法:手动一次、每晚定时、管理台按钮。
升级:服务器 sudo bash hub.sh --version 1.5.6;客户端 amh-native update --now。不改设置项,不改数据库已有表(新增一张 dream_requests)。
v1.5.5
1.5.5 — 2026-11-09
Fixed
- Literal mode injects memory named by a Chinese word joined to a code with a hyphen, such as
澄海交付验收-3d7ae9or青帆周报试验-1103. The identifier extractor keeps only the ASCII part of such a name, and the whole-name check took the hyphen before it as proof of a longer identifier, so the Hub returned nothing for a prompt naming the project outright. A separator now joins a longer name only when the character on its other side is ASCII alphanumeric;terminal-benchis still notagentos-terminal-bench-local. retrieval.modereaches clients asliteral: the Hub response projection and the client recall worker only knewlexicalandhybrid, so the prompt-time line said "Hub 检索" instead of "字面(像 grep)" and the cockpit's mode breakdown showed the raw word.
No schema, settings or environment changes. Upgrade a Hub with hub.sh --version 1.5.5; clients follow the Hub version on their next check (amh-native update --now).
v1.5.4
1.5.4 — 2026-11-08
召回默认改为字面匹配(像 grep),一个开关切回混合模式;维基页在混合模式下多一档门槛。
- Hub 新开关
AMH_NATIVE_RETRIEVAL=literal|hybrid(默认literal)。字面模式下,搜索工具按命中词数和出现次数排序,提示词钩子只注入提示里点名的记忆;语义索引照常维护但不查询,自动调参跳过。 AMH_NATIVE_WIKI_MARGIN(默认 0.08):混合模式下维基页需要比普通记忆更高的相关性才注入;字面模式不经过门控,余量不生效。- health 新增
retrieval-mode-v1能力与retrieval字段;管理页显示当前模式;MCP 研究预算放宽到 8 次搜索。 - 不改数据库结构,Hub 与客户端可分别升级。
升级:Hub 重新部署即可;客户端跟随 Hub 版本自动更新。
v1.5.3
Client-side release; the Hub is unchanged (a 1.5.2 Hub serves 1.5.3 clients).
Added
- Codex's second memory store,
~/.codex/memories_v2/, is now watched. Codex puts a fresh machine on v2 and keeps a machine that already hasmemories/on v1 unless[memories] versionsays otherwise (codex-rscore/src/config/mod.rs, unchanged through rust-v0.167.0).amh-native installfollows the same rule, shares the store Codex actually reads, and lists the other one so a later switch needs no reinstall.
Changed
- When a machine moves from v1 to v2, the v1 copies already on the Hub stay and stop updating, the way
raw_memories.mdwas handled in 1.4.27; the v2 store takes over. Inside a v2 store, Codex's.git/baseline and itsphase2_workspace_diff.mdprompt artifact are never uploaded.
Fixed
- Installation no longer creates
~/.codex/memorieson a machine Codex would put on v2. Codex reads the mere existence of that directory as "this machine is on v1", so the old behaviour silently moved such a machine back to v1 and abandoned its v2 store.
Upgrade
- Clients:
amh-native update --now(or the installer). Machines already contributing Codex v1 memory are unaffected. A machine whose Codex is on v2 needs oneamh-native installrun to bind the new store. - Hub: no change;
hub.sh --version 1.5.3is fine but not required.
v1.5.2 — the error code survives a gzipping proxy
1.5.2 — the error code survives a gzipping proxy
Fixed
- The client now reads a Hub error code even when a proxy gzips the error body, as aihub's nginx does. Before this, every refusal over such a link read as the generic
request_rejected:amh-native dream --publishon a device the Hub had not designated crashed withHub HTTP 409instead of reportingnot_designated, and the sync client could not tellstale_versionfrom anything else. The warm transport already decoded before reading the status; the plain one now does the same.
Upgrade notes
- No Hub-side change beyond the version number;
hub.sh --version 1.5.2is still the one-step upgrade and needs no data migration. Clients:amh-native update --now. - 1.5.1's "the organization dreams in one place" (designated devices, dreaming lease, admin-only wiki upload) is included; see the v1.5.1 notes.
v1.5.1 — the organization dreams in one place
1.5.1 — the organization dreams in one place
Decision: the personal layer belongs to the products themselves (Claude Code's and Codex's own memory passes keep each machine's notes; AMH reads what they produce). AMH does the organization layer only, and it runs in one place.
Hub
- New setting
dream_devices: the devices allowed to runamh-native dream --publishand upload the organization wiki. Set it on the admin page under 「组织做梦」 (device IDs are now shown in the device table) or withPOST /native/v1/admin/settings. Empty means nobody, which is where a fresh Hub starts. POST /native/v1/assetsrefuses wiki pages (productamh) from any other device with409 dream_not_designated; a tombstone from the owning device is still accepted, so a wiki can always be withdrawn.- New
POST /native/v1/dream/lease(status/acquire/release): one dreaming lease per organization, renewable, returned when done, lapsing on its own after four hours (six at most). New additive tabledream_leases; health listsdream-lease-v1.
Client
- A publishing pass takes the lease before it reads a document or calls a model and gives it back when done. Refused, it records
not_designated,lease_heldorhub_too_oldwith a plain message and does nothing else. amh-native dream --schedule onasks the Hub first and installs nothing on a machine the Hub would refuse.- A review-only pass needs no lease and reports where the device stands.
- Requests the Hub refuses outright (HTTP 4xx) are no longer retried.
Upgrade notes
- Hubs:
hub.sh --version 1.5.1; no data migration, rollback needs no database restore. After upgrading, designate the dreaming device indream_devices. - Clients:
amh-native update --now. A client on 1.5.1 against a Hub below 1.5.1 reportshub_too_oldfor--publishand keeps everything else working.
Docs: docs/native-memory/dreaming.zh.md, docs/native-memory/operations.zh.md.
v1.5.0
[1.5.0] — 2026-11-07
Added
amh-native dream: an offline pass that reads back over everything the organization
shares and keeps a small linked wiki beside it, each fact dated, attributed and marked
verified, inferred or in conflict, with an index the catalog shows every session. It
runs on the operator's machine through headless Claude Code with no shell, no network,
nothing readable outside a temporary work tree and a spending ceiling; code then checks
front matter, links, the index and credentials before anything may leave the machine.
Nothing is uploaded unless--publishis given;--schedule ondreams nightly. The
pages are memory assets of a new product,amh, underorg-wiki/; an older Hub
rejects them and keeps everything else. Seedocs/native-memory/dreaming.zh.md.- The change feed names who recorded each document, so a dreaming pass can cite them.
- A dreaming pass reads the change feed as metadata and fetches only the bodies it
needs through/native/v1/read; transcript parts and superseded revisions never
travel.report.jsoncounts them underfeed. GET /native/v1/changestakeskinds=memory,ruleand serves only those asset
kinds; a dreaming pass asks formemory. Older Hubs ignore the parameter.
Changed
- The catalog puts the whole wiki index first with its own budget (6000 chars), each
line carrying the page's short name as a search term; a page the index lists and a
document a wiki page was written from are not repeated; the rest keeps 2400 chars.
It tells the model to verify facts marked inferred or in conflict; the injection
header says the same. - A dreaming pass drops a page holding a credential, phone number, ID, card or e-mail
and keeps a page that merely uses words such as 诊断 or 贷款, listing it in the report
asflaggedfor the reviewer.
Changed
- The recall table is the default again, and under it Claude Code shows the text the model
actually received for each injected memory. The host keeps this message out of the
model's context, so it costs no tokens.amh-native recall-display summarygives the
one line when injected.
Fixed
- A recall shown in Claude Code stays out of the transcript's search text. The one-line
gists in the table used to reach it, a leak of other members' text into your own index.
v1.4.32
Changed
- The recall table is the default again, and under it Claude Code shows the text the model
actually received for each injected memory. The host keeps this message out of the
model's context, so it costs no tokens.amh-native recall-display summarygives the
one line when injected.
Fixed
- A recall shown in Claude Code stays out of the transcript's search text. The one-line
gists in the table used to reach it, a leak of other members' text into your own index.
v1.4.31
Changed
- Organization recall now works the way Claude Code's and Codex's native memory do: an
index when a session starts, then the model searches and reads. Injection stays only for
a topic memory that clears the gate (probability 0.7, lift 0.08) and for a document naming
something rare from the prompt as a whole token, summaries and indexes included. All of it
is decided on the Hub, so existing clients get it on upgrade. - Search finds what a native reader's grep would: a document literally containing a name
from the question comes first, opening where the name appears. Summaries get semantic
vectors and no longer rank at 0.55. - The hook says one line when something was injected and nothing otherwise. The table is
amh-native recall-display table. A handbook part is named by its own section heading. - The session catalog leaves out what the asking machine already has.
Removed
- The title-only tier: 30 hinted turns, 0 reads.
hintsstays in the reply, always empty. - The literal shortcut that dropped the injection bar to 0.1 for any identifier in a body.
terminal-benchmatchedagentos-terminal-bench-local, andAgentOsmatched everything. - Injecting an index file on its score, a machine's own memory back to it, and searching a
short reply with the previous prompt.
Added
amh-native recall --no-prompt: nothing is injected or sent at prompt time; the catalog
and the model's own search stay.
Measured
Held-out tasks written by an independent agent, real claude -p with no access outside the
workspace, blind judge, correct / partial / wrong: Sonnet 43/11/15 to 44/14/11 (not a
significant difference), Opus 16/3/4 to 18/3/2, Haiku 9/2/12 to 13/3/7. Cost per run fell
about 25% on Sonnet and 40% on Opus. No real Codex process took part.
v1.4.30
A finished session can now leave a short record that another machine or member can find. Off until someone runs amh-native digests --enable.
A session's own file stays on its machine, and a product only turns it into memory later, if at all, so recent work could not be found elsewhere.
- Once a Claude Code or Codex session has been idle for 30 minutes, the worker writes its title, what was asked, its last three replies and the files changed, and syncs that as memory. No model is called.
- Lines naming a credential are removed whole. Unlabelled values, IP addresses and home paths are masked, and a flagged digest is not written. These rules cannot catch everything, which is why it is off by default.
- Sessions begun before enabling are never read.
--add <id>includes one by name, and--forget <id|all>withdraws them. - Digests are never injected and never listed in the catalog. Search finds them by meaning.
Both Hub and client change. Clients write digests only to a Hub reporting session-digest-v1.
Measured blind on 8 real sessions against a 50-document corpus: with Sonnet, at least partly correct pick-ups rose from 3/16 to 14/16 and fully correct from 0 to 3; with Opus, at least partly correct rose from 5/8 to 7/8 and fully correct fell from 1 to 0. The same sessions were used to tune the digest, so this is not a held-out result.
Also fixes the quickstart benchmark taking a phase that had been reported as stopped for one that had failed.