{"prompt":"You have access to Human Memory — a human-owned persistent workspace that survives across sessions and agents.\n\nAll requests require `Authorization: Bearer <your-token>`. For endpoint schemas with example requests and responses, call `GET https://memory.agentcafe.io/bootstrap`.\n\n## Key format\n\nKeys must match `^[a-z0-9][a-z0-9/_-]{2,127}$`. Use the pattern: {category}/{project}/{artifact}\n\nExamples: `travel/miami-2026/plan`, `research/paper-v3/draft`, `workflow/abc123/index`\n\n## Getting started\n\nFirst move: call `POST https://memory.agentcafe.io/memory/briefing` to see what is already stored and orient yourself.\n\nIf you do not have a token, ask the human to create one at https://memory.agentcafe.io/dashboard\n\n## Tips\n\n**Concurrent updates.** Retrieve responses include a `revision` field. To avoid overwriting another agent's changes, pass it back as `\"if_revision\"` when storing. A 409 means the document changed since your retrieve — retrieve again, reconcile with the new content, then store again.\n\n**Scopes.** Your token may not have all scopes. If an operation returns 403 with `scope_insufficient`, your token lacks permission for that endpoint. Work with the scopes you have — don't retry.\n\n**Index documents.** Use `{category}/{project}/index` as a coordination artifact — a manifest that lists related keys and their purpose. This helps other agents (and future sessions) discover what's stored without listing every key.\n\n**Store silently.** When writing to memory, just do it — don't narrate each store operation to the user. Memory is your workspace, not a conversation topic.\n\n**Token delegation.** If your token is in a config file (e.g., CLAUDE.md or .env), every sub-agent in the session inherits it automatically. Use prefix-scoped tokens to limit what sub-agents can access.","endpoints":[{"method":"POST","path":"https://memory.agentcafe.io/memory/briefing","description":"Get a structured summary of what's in memory (start here)","scope":"memory:list","request":{},"response_example":{"total_documents":9,"total_bytes":4521,"last_activity":"2026-03-28T14:23:00Z","top_prefixes":[{"prefix":"travel/","count":6}],"recent_keys":[{"key":"travel/tokyo-2026/plan","revision":3,"size_bytes":812,"updated_at":"2026-03-28T14:23:00Z"}],"quota":{"used_bytes":4521,"max_bytes":10485760,"used_documents":9,"max_documents":1000}}},{"method":"POST","path":"https://memory.agentcafe.io/memory/store","description":"Store a JSON document at a key","scope":"memory:store","request":{"key":"travel/tokyo-2026/plan","value":{"any":"json document"}},"request_optional":{"if_revision":3,"metadata":{"category":"travel","status":"draft"}},"notes":"metadata values must be primitives (string, number, boolean) — no arrays or objects","response_example":{"status":"stored","key":"travel/tokyo-2026/plan","revision":4,"size_bytes":42}},{"method":"POST","path":"https://memory.agentcafe.io/memory/retrieve","description":"Retrieve a document by exact key (returns found: false, never 404)","scope":"memory:retrieve","request":{"key":"travel/tokyo-2026/plan"},"response_example":{"found":true,"key":"travel/tokyo-2026/plan","value":{"any":"json document"},"revision":3,"size_bytes":812,"updated_at":"2026-03-28T14:23:00Z","metadata":null}},{"method":"POST","path":"https://memory.agentcafe.io/memory/retrieve-batch","description":"Retrieve multiple documents by exact keys in one request (max 50)","scope":"memory:retrieve","request":{"keys":["travel/tokyo-2026/plan","travel/tokyo-2026/budget"]},"response_example":{"results":[{"found":true,"key":"travel/tokyo-2026/plan","value":{"any":"json document"},"revision":3,"size_bytes":812,"updated_at":"2026-03-28T14:23:00Z","metadata":null},{"found":false,"key":"travel/tokyo-2026/budget"}]}},{"method":"POST","path":"https://memory.agentcafe.io/memory/list","description":"List keys by prefix (metadata only, never values)","scope":"memory:list","request":{},"request_optional":{"prefix":"travel/","limit":50,"cursor":"opaque-pagination-cursor"},"response_example":{"keys":[{"key":"travel/tokyo-2026/plan","revision":3,"size_bytes":812,"updated_at":"2026-03-28T14:23:00Z","metadata":null}],"next_cursor":null,"total_count":6}},{"method":"POST","path":"https://memory.agentcafe.io/memory/search","description":"Full-text search across your memories (returns snippets, never full values)","scope":"memory:search","request":{"query":"tokyo restaurant"},"request_optional":{"limit":20},"response_example":{"results":[{"key":"travel/tokyo-2026/plan","snippet":"...dinner at a traditional <b>tokyo restaurant</b>...","score":1.5,"revision":3,"size_bytes":812,"updated_at":"2026-03-28T14:23:00Z"}],"query":"tokyo restaurant","total_results":1}}]}