Skip to content

DOC-6692 Agent memory use case#3466

Merged
andy-stark-redis merged 19 commits into
mainfrom
DOC-6692-agent-memory-use-case
Jun 10, 2026
Merged

DOC-6692 Agent memory use case#3466
andy-stark-redis merged 19 commits into
mainfrom
DOC-6692-agent-memory-use-case

Conversation

@andy-stark-redis

@andy-stark-redis andy-stark-redis commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Note: the ignoreFiles in the config might solve the Hugo continual rebuild problem but I can't confirm that (spurious watched files might explain the rebuilds too).


Note

Low Risk
Documentation and local demo code only; Hugo config change is limited to ignoring build/cache paths and does not affect production site behavior.

Overview
Adds a new Agent memory develop use case: a hub page describing working memory (Hash), long-term recall (JSON + Search/HNSW with write-time dedup), and per-thread audit logs (Streams), plus links to language-specific walkthroughs.

Hugo gets ignoreFiles for demo trees (vendor/, node_modules/, target/, bin/, obj/, __pycache__, models/, transformers cache) so hugo serve does not watch thousands of build/model files under use-case demos.

Runnable demos land for .NET (NRedisStack, ONNX MiniLM embedder, HttpListener on :8093) and Go (go-redis, Hugot embedder, net/http on :8090), each with shared index.html UI and endpoints (/turn, /state, /new_thread, /reset, /drop_memory). Implementation covers session TTL refresh via transactions, FT.SEARCH KNN + TAG filters, stream MAXLEN ~, and seed data for first-run recall.

Reviewed by Cursor Bugbot for commit c32a92d. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

DOC-6692

Comment thread content/develop/use-cases/agent-memory/redis-py/demo_server.py
Comment thread content/develop/use-cases/agent-memory/redis-py/_index.md Outdated
Comment thread content/develop/use-cases/agent-memory/redis-py/demo_server.py
@jit-ci

jit-ci Bot commented Jun 8, 2026

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Comment thread content/develop/use-cases/agent-memory/redis-py/demo_server.py
@jit-ci

jit-ci Bot commented Jun 8, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

Comment thread content/develop/use-cases/agent-memory/nodejs/longTermMemory.js
Comment thread content/develop/use-cases/agent-memory/nodejs/sessionStore.js Outdated
Comment thread content/develop/use-cases/agent-memory/nodejs/index.html Outdated
Comment thread content/develop/use-cases/agent-memory/nodejs/longTermMemory.js Outdated
Comment thread content/develop/use-cases/agent-memory/redis-py/demo_server.py
@jit-ci

jit-ci Bot commented Jun 8, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

Comment thread content/develop/use-cases/agent-memory/dotnet/LongTermMemory.cs Outdated
@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

Comment thread content/develop/use-cases/agent-memory/dotnet/AgentEventLog.cs Outdated
Comment thread content/develop/use-cases/agent-memory/dotnet/AgentSession.cs Outdated
@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

Comment thread content/develop/use-cases/agent-memory/dotnet/Program.cs Outdated
@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

Comment thread content/develop/use-cases/agent-memory/go/long_term_memory.go Outdated
@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

Comment thread content/develop/use-cases/agent-memory/dotnet/LongTermMemory.cs
@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

Comment thread content/develop/use-cases/agent-memory/dotnet/LongTermMemory.cs
Comment thread content/develop/use-cases/agent-memory/dotnet/Program.cs
@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

There are 4 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 15d32c9. Configure here.

Comment thread content/develop/use-cases/agent-memory/go/embeddings.go Outdated
Comment thread content/develop/use-cases/agent-memory/dotnet/Program.cs
@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@jit-ci

jit-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

❌ Jit Scanner failed - Our team is investigating

Jit Scanner failed - Our team has been notified and is working to resolve the issue. Please contact support if you have any questions.


💡 Need to bypass this check? Comment @sera bypass to override.

@andy-stark-redis andy-stark-redis added clients Client library docs and removed do not merge yet labels Jun 9, 2026
@andy-stark-redis andy-stark-redis requested a review from a team June 9, 2026 15:15
@andy-stark-redis andy-stark-redis self-assigned this Jun 9, 2026
Comment thread config.toml
Comment on lines +15 to +30
# Stop Hugo's filesystem watcher from opening fds for build artifacts
# and language-package directories that ship inside use-case demos but
# are never referenced from a page as a resource. Without these the
# Rust `target/` and PHP `vendor/` trees alone account for ~8,500 of
# the files under `content/`, which pushes the watcher past macOS's
# default `kern.maxfilesperproc` ceiling on `hugo serve`.
ignoreFiles = [
"/vendor/", # composer / bundler deps
"/node_modules/", # npm deps
"/target/", # rust + maven build output
"/bin/", # .NET build output
"/obj/", # .NET intermediate output
"/__pycache__/", # Python bytecode cache
"/models/", # Hugot model cache
"/\\.transformers-cache/", # TransformersPHP cache
]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I've only seen the continuous rebuild problem a few times, so I don't know that this is a root cause. That said, I don't think it will hurt anything.

@dwdougherty dwdougherty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't review any code; just the page that describes the use case. LGTM.

@andy-stark-redis

Copy link
Copy Markdown
Contributor Author

Thanks @dwdougherty !

@andy-stark-redis andy-stark-redis merged commit 1a9ced1 into main Jun 10, 2026
70 of 71 checks passed
@andy-stark-redis andy-stark-redis deleted the DOC-6692-agent-memory-use-case branch June 10, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants