You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
ai-rem run --secret ITEM=ENV … -- <cmd>: starts a command with mykeyvault secrets
in its environment, fetched per run via the vault access from /api/client-config —
for local stdio MCP servers (tools, paperless) that previously kept their token in the
Claude Code keychain (locked on SSH-only Macs → server silently ran without a token).
A missing item or unreachable vault aborts with exit 1 and a message naming the item,
never the secret. Admin device token required (only then does /api/client-config
carry vault data) (#205).
Keychain choice without an env variable, macOS fallback, headless pairing: keychain_backend in client.json selects the file backend persistently — install/update/pair record a set AI_REM_KEYCHAIN_BACKEND, so mcp-proxy, svc proxy and vault-mcp started from /bin/sh or older shells make the same choice
(env still wins). The macOS backend falls back to the 0600 file when the login keychain
is locked (rc 36) or security times out, like libsecret does; token --forget stays
strict. ai-rem pair / svc pair open no browser over SSH (or on Linux without a
display); AI_REM_TOKEN=<token> ai-rem pair stores a token without pairing. ai-rem update ends with a token self-test against /api/client-config. ai-rem doctor prints
the active backend plus the client.json value and warns when macOS keychain and file
hold different tokens (#204).
AI_REM_KEYCHAIN_BACKEND=file selects the 0600 file backend
(~/.config/ai-rem/keyring/<account>) on every OS. For Macs used only over SSH,
where the login keychain stays locked without a GUI login, and for setups whose
keychain holds a stale token: without it, ai-rem update reverted such clients to the
macOS keychain and mcp-proxy/svc proxy/vault-mcp failed with 401 (#203).
Fixed
Misleading "kein Token (Keychain leer)":mcp-proxy and doctor now name the
backend and, on a keychain error, the error itself with the file backend as the way out,
instead of claiming the keychain is empty (#204).
Preference-Klassifikation verschärft:Preference ist nur noch für forcierte
Verhaltensregeln (Imperativ, Format Regel: … Why: … How to apply: …) vorgesehen —
in lib/extractor.py (Session-Extractor) und in den MCP-instructions. Fakten, Konfig,
Env-Vars, DNS, Entscheidungen, Lösungen und PR-/Issue-Referenzen landen als
Topic/Decision/Solution statt als Preference.
Duplikat-Prävention für Preferences: der Session-Extractor listet alle aktiven
Preferences vollständig im Prompt (statt sie unter das 50-Namen-Limit fallen zu
lassen) und wird angewiesen, existierende Regeln gleichen Themas zu aktualisieren statt
neue Namen zu erfinden. memory_add verweigert bei Neuanlage einer Preference, die
per Embedding-Similarity (≥ 0.65, aus Live-Messung kalibriert) einem bestehenden Eintrag nahesteht.