Skip to main content

vvz-agent-memory

agent-memory is how agents of a file_access: local project under the vvz prompt contract write and read their dialogue messages. It wraps the published ailogger-client:

  • while the AI Logger is reachable, every call goes to the logger;
  • while it is unreachable (connection refused, connect timeout, DNS or transport failure, twice), a write goes to .agent-memory/<session_id>/ in the project root;
  • agent-memory import later moves those messages into the logger with their original message_id and time (messages_import, occurred_at), and moves the imported files to .agent-memory/.imported/.

The package version equals the contract version (1.7.47 serves contract v1.7.47).

The file store

One message is two files side by side; the name sorts by time (UTC):

.agent-memory/<session_id>/2026-10-01T13.57.45.123-<UUID4>.msg   the message (JSON, logger fields + relations)
.agent-memory/<session_id>/2026-10-01T13.57.45.123-<UUID4>.emb   its vector: {message_id, model, dimension, embedding}

The vector comes from the fleet embedding service through embed_client, with the logger's own model (BAAI/bge-m3, 1024), so the closeness group works locally and survives the import. When the embedder is down too, the .msg is written alone and agent-memory embed fills the .emb later.

Files are created once and never edited. There are no locks: the sequence number of a file message is the count of messages already in the session, and references are resolved by message_id. The directory must exist and be ignored by git (the prompt deployment does both); otherwise the store is unavailable and nothing is written.

Configuration

One JSON document: --config, else $AGENT_MEMORY_CONFIG, else ~/.config/vvz-agent-memory/config.json. Sections ailogger_client, embedding_client (the fleet client shape: protocol, server.host/port, client.timeout, ssl.cert/key/ca/check_hostname, auth.token/token_header) and embedding_model (model, dimension). Relative paths resolve against the document's directory.

agent-memory config generate --output ~/.config/vvz-agent-memory/config.json \
  --logger-host 192.168.254.26 --embed-host 192.168.254.26 \
  --logger-cert client.crt --logger-key client.key --logger-ca ca.crt
agent-memory config validate

Commands

Every command prints one JSON object: {"success": true, "store": "logger|file|both", "data": …} in the logger's own data shape, or {"success": false, "error": {"code", "message"}}. --store auto|logger|file (default auto) selects the side.

Command Logger call File store
write append_message new .msg + .emb
read --session-id --message-id [--sequence-number] messages_read block 1 (message_get finds the number) the file ending in the id
preview --session-id --sender-identity messages_read mode preview files of that sender; both sides merged
working-set --session-id (--anchor-message-id | --anchor-text) working_set last N up to the anchor + top M by cosine
relations --session-id relations_read relations of the files; both sides merged
embed [--session-id] — missing .emb files
import [--session-id] [--batch-size] [--keep] messages_import moved to .imported/ after success
config generate | validate — —

Exit codes: 0 success; 1 logger refused or failed (or an import item failed); 2 usage; 3 file store unavailable; 4 logger unreachable with no fallback; 5 not found; 6 configuration invalid; 7 embedding unavailable where a vector is required.

Verification

python -m pipeline in this directory runs every check against the live logger and embedder; python -m pipeline <name> runs one; python -m pipeline --list lists them.

Metadata

Release files for vvz-agent-memory 1.7.47

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vvz-agent-memory 1.7.47
File Size Uploaded
vvz_agent_memory-1.7.47.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vvz-agent-memory 1.7.47
File Interpreter ABI Platform
vvz_agent_memory-1.7.47-py3-none-any.whl Python 3 none any Details

Total release size: 39.9 kB

Release files / vvz_agent_memory-1.7.47.tar.gz

Download URL vvz_agent_memory-1.7.47.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
54781ef4b0aa1aeb3a158270f7f743650e1b85ff6a1ace6db6f76156ed062a72
BLAKE2b-256 checksum
How to use checksums
99c3fe725ab69575ad5f9b8676f05bb25885935e7f296d63310b2623697a1303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / vvz_agent_memory-1.7.47-py3-none-any.whl

Download URL vvz_agent_memory-1.7.47-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dfe5dcca13ca92bf5a5f5ce1ca54299b895647c61f400dd6e80f4b17948b7d7
BLAKE2b-256 checksum
How to use checksums
1fcf919392815e7cd6b937bf9c299f53d60c0ec299ee4cf5c34195753a51036f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

1.7.47 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page