Skip to content

docs(9-ai-sessions): profile memory bank + user-level Bedrock/Vertex + system_prompt_suffix#220

Draft
maximelb wants to merge 3 commits into
masterfrom
feat/profile-memory-bank
Draft

docs(9-ai-sessions): profile memory bank + user-level Bedrock/Vertex + system_prompt_suffix#220
maximelb wants to merge 3 commits into
masterfrom
feat/profile-memory-bank

Conversation

@maximelb
Copy link
Copy Markdown
Contributor

@maximelb maximelb commented May 6, 2026

Summary

Documentation for the three features bundled in refractionPOINT/ai-sessions#71.

1. Per-profile memory bank

User-scoped, profile-attached store of markdown files that mounts into the runner workspace at /workspace/.memory/ whenever a session is launched from the profile. The user-side complement to the org-scoped ai_memory Hive.

2. User-level AWS Bedrock and Google Vertex Claude providers

The same Bedrock / Vertex provider blocks already supported on the org-scoped ai_agent Hive record are now accepted on the per-user BYOK path via POST /v1/auth/claude/bedrock and POST /v1/auth/claude/vertex. Lets a single user route Claude through their own AWS or GCP account from the dashboard, instead of an Anthropic API key or OAuth.

3. Per-profile system_prompt_suffix

Optional 16 KB free-form string on a profile that the runner appends to the agent's system prompt whenever a session is launched from that profile. Snapshotted onto the session at creation time so live profile edits don't reach already-running sessions.

Pages added/changed

  • New: 9-ai-sessions/profile-memory.md — full reference for the memory bank: mounting, sync, naming rules, limits, REST endpoints, lifecycle, security
  • 9-ai-sessions/user-sessions.md
    • Step 2 grows two new options (Amazon Bedrock, Google Cloud Vertex AI) alongside the existing API key and OAuth flows
    • New system_prompt_suffix row in the Profile Options table
    • Short pointer under "Session Profiles" to the new memory page
  • 9-ai-sessions/api-reference.md
    • GET/PUT/DELETE /v1/profiles/{id}/memories[/content] endpoint reference
    • POST /v1/auth/claude/bedrock and POST /v1/auth/claude/vertex endpoints with request body, response, error responses, and cross-links to provider setup
    • Extended credential_type enum on GET /v1/auth/claude/status (api_key | oauth | bedrock | vertex)
    • system_prompt_suffix example on the Create Profile body and the new system_prompt_suffix_too_long error code
  • 9-ai-sessions/memory.md — top-of-page pointer to the per-user equivalent
  • 9-ai-sessions/alternative-providers.md — new "Where to configure" subsection cross-linking to the per-user flow on user-sessions.md, so readers landing on the org-scoped page can find the user-scoped one
  • mkdocs.yml — nav entry for the new profile-memory.md

Test plan

  • mkdocs builds locally (mkdocs build)
  • Internal links resolve (memory.md ↔ profile-memory.md ↔ user-sessions.md ↔ api-reference.md ↔ alternative-providers.md)
  • Memory API examples copy-paste cleanly (note the --data-urlencode for the path query parameter)
  • Bedrock / Vertex curl examples copy-paste cleanly
  • Limits in the memory doc match the implementation (100 entries / 64 KiB per entry / 5 MiB aggregate / max 5-segment depth / 256-char path)
  • system_prompt_suffix max length matches the implementation (16 KB / 16384 bytes)

This is a draft until refractionPOINT/ai-sessions#71 lands and the features ship.

🤖 Generated with Claude Code

maximelb and others added 2 commits May 5, 2026 17:52
Add a new page explaining the per-profile memory bank that user AI
Sessions can use as the user-scoped equivalent of the org-scoped
ai_memory hive. Covers mounting semantics, naming rules, limits, REST
endpoints, lifecycle (cascade on profile delete, decoupled from session
suspend), and the trust model for runner-driven syncs.

Cross-links from the existing AI Memory and User Sessions pages, and
adds the new endpoints to the API reference.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Document the two remaining features that ship in
refractionPOINT/ai-sessions#71 alongside the profile memory bank:

1. User-level Bedrock and Vertex providers — adds Options C and D under
   "Step 2: Store Claude Credentials" on user-sessions.md, and the two new
   `POST /v1/auth/claude/bedrock` and `POST /v1/auth/claude/vertex` endpoints
   on api-reference.md. Updates `GET /v1/auth/claude/status` to show the
   extended `credential_type` enum (api_key | oauth | bedrock | vertex).
   Cross-links from alternative-providers.md to the user-side path so
   readers landing on the org-scoped page can find the user-scoped one.

2. Per-profile system_prompt_suffix — new row in the user-sessions Profile
   Options table, plus a worked example and the new
   `system_prompt_suffix_too_long` error response on api-reference.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@maximelb maximelb changed the title docs(9-ai-sessions): document profile memory bank docs(9-ai-sessions): profile memory bank + user-level Bedrock/Vertex + system_prompt_suffix May 6, 2026
…tion

Document the new "## Profile Memory Bank" system-prompt section the
runner injects for user-based sessions. Without this hint Claude has
no reason to look in /workspace/.memory/ — the Agent SDK has no
built-in auto-discovery for arbitrary workspace subdirs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant