/greennode-agentbase:agentbase-memoryfrom greennode-agentbase
Manages AI agent memory stores on the GreenNode AgentBase platform — conversation history, semantic fact extraction, and long-term memory records with LangChain/LangGraph integration.
Ships in greennode-agentbase. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Manage memory stores for AI agents on the GreenNode AgentBase platform — conversation history (short-term events) and semantic fact extraction (long-term memory records). Parse the user's arguments to determine the operation and optional name/ID.
https://agentbase.api.vngcloud.vn/memoryRead the shared auth setup reference at /agentbase skill's references/auth-setup.md for full IAM credential configuration. In brief: run bash .claude/skills/agentbase/scripts/check_credentials.sh iam to verify credentials are configured, then use TOKEN=$(bash .claude/skills/agentbase/scripts/get_token.sh) to obtain a token. NEVER read .greennode.json or .env directly — always use the helper scripts. On 401: re-run with --force. If check_credentials.sh iam returns MISSING, STOP — you MUST read the "If Credentials Are Not Found" section in /agentbase skill's references/auth-setup.md and follow it exactly. Do NOT skip this or provide your own credential setup instructions.
IMPORTANT: Before constructing any API URL, read /agentbase skill's references/endpoints.md for the domain validation whitelist. Only use domains listed there.
yes, confirm, ok, approve, proceed, go ahead, do it, ship it, lgtm, or equivalent affirmative. If the user responds with ANYTHING ELSE (parameter changes, questions, corrections, additional info, or ambiguous text), treat it as adjustment input — update the plan and re-present the full summary for confirmation again. NEVER interpret a non-confirmation response as approval. For destructive operations (delete memory, delete event, delete memory record), additionally warn that the action is irreversible.--dry-run or preview, show the exact API request (method, URL, headers, payload) and explain the expected outcome WITHOUT executing. Let user review before proceeding.When an agent is deployed on AgentBase Runtime, the IAM service account and Agent Identity are managed by the runtime system and automatically injected into the container as GREENNODE_CLIENT_ID, GREENNODE_CLIENT_SECRET, and GREENNODE_AGENT_IDENTITY. The SDK automatically uses these — no manual credential configuration needed in agent code. Memory operations and LangGraph bridge integrations all work automatically.
The IAM credentials and memory management described in this skill are for local development and platform management (creating/listing/updating resources from outside the runtime). See /agentbase-deploy runtime for details on runtime environment management.
The Memory Service provides conversation history (short-term events) and semantic fact extraction (long-term memory records) for AI agents.
| Concept | Description | Lifetime |
|---|---|---|
| Memory | Top-level container that holds events and records | Permanent until deleted |
| Event | Single conversation turn (role + content) | Expires after eventExpiryDuration days |
| Actor | Participant identifier (user ID or agent ID) | Created on first event |
| Session | Conversation thread within an actor | Created on first event |
| Memory Record | Distilled long-term fact extracted from events | Permanent until deleted |
| Long-Term Memory Strategy (LTMS) | Extraction rules for generating memory records | Permanent, configured at memory creation |
SEMANTIC - General semantic fact extractionUSER_PREFERENCE - Extract user preferences and habitsCUSTOM - Custom fact extraction with a user-defined prompt (customFactExtractionPrompt). When using customFactExtractionPrompt, the type MUST be CUSTOM — using SEMANTIC or USER_PREFERENCE with a custom prompt will silently ignore the prompt without any error. Always validate: if user provides a custom prompt, auto-correct type to CUSTOM and warn the user about the change. The custom prompt is prepended to the built-in extraction prompt, not a replacement.Controls how memory records are partitioned. Default: /strategies/{memoryStrategyId}/actors/{actorId}
Available variables: {memoryStrategyId}, {actorId}, {sessionId}
Note on
actorId: TheactorIdrepresents the end-user (the person interacting with the agent), not the agent itself. Use any string that uniquely identifies the user (e.g. a user ID likealice,user-123). This allows the memory system to partition and recall facts per user. Do not confuseactorIdwith the agent's identity — for agent identity management, see/agentbase-identity.
| Operation | Method | Endpoint |
|---|---|---|
| Create | POST | /memories |
| List | GET | /memories?page=1&size=10 |
| Get | GET | /memories/{id} + /memories/{id}/long-term-memory-strategies |
| Delete | DELETE | /memories/{id} |
| List Events | GET | /memories/{memoryId}/actors/{actorId}/sessions/{sessionId}/events |
| Create Event | POST | /memories/{memoryId}/actors/{actorId}/sessions/{sessionId}/events |
| List Actors | GET | /memories/{memoryId}/actors |
| Browse Records | GET | /memories/{memoryId}/memory-records?namespace=...&limit=100 |
| Search Records | POST | /memories/{memoryId}/memory-records:search?namespace=... |
| Generate from Session | POST | /memories/{memoryId}/memory-records:generate-from-session?actorId=...&sessionId=...&longTermMemoryStrategyId=... |
| Generate from Content | POST | /memories/{memoryId}/memory-records:generate-from-content |
| Insert Directly | POST | /memories/{memoryId}/memory-records:insert-directly |
| Delete Memory Record | DELETE | /memories/{memoryId}/memory-records/{memoryRecordId} |
| List Sessions | GET | /memories/{memoryId}/actors/{actorId}/sessions |
| Delete Event | DELETE | /memories/{memoryId}/actors/{actorId}/sessions/{sessionId}/events/{eventId} |
| List Strategies | GET | /memories/{memoryId}/long-term-memory-strategies |
Note: Memory Service uses 1-indexed pagination (page=1 is first page). This differs from Identity Service which uses 0-indexed pagination.
Read references/memory-ops.md for full API details, SDK examples, curl commands, and framework integration guides.
name, description, eventExpiryDuration, and strategy details (name, type, namespaceTemplate, enableAutomaticMemoryRecordGeneration, optionally customFactExtractionPrompt). If user provides customFactExtractionPrompt, always set type to CUSTOM.GET /memories/{id}) and strategies (GET /memories/{id}/long-term-memory-strategies) to present a complete view.actorId, sessionId, or namespace, ask the user for these values.AgentBaseMemoryEvents as checkpointer via create_agent(checkpointer=...). For LangGraph, use builder.compile(checkpointer=...). For complete examples, read references/memory-ops.md for the integration section, and references/langchain.md / references/langgraph.md for complete examples. Do NOT provide integration code without reading these first.| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Expired or invalid IAM token | Re-obtain token with valid credentials. Ensure GREENNODE_CLIENT_ID and GREENNODE_CLIENT_SECRET are set correctly (on AgentBase Runtime, these are auto-injected) |
| 403 Forbidden | Service account lacks permissions | Check IAM roles at https://iam.console.vngcloud.vn |
| 404 Not Found | Memory does not exist | Verify the memory ID exists with GET /memories |
.greennode.json not found | Config file missing or wrong directory | Create .greennode.json with client_id, client_secret fields |
| Memory not found | Memory ID does not exist | Verify the memory ID exists with GET /memories |
| No records returned | Namespace mismatch or asynchronous processing | Check the namespace matches the strategy template. Records are generated asynchronously — wait a few seconds and retry |
| Events not appearing | Events expired or filtered out | Events expire after eventExpiryDuration days. Check the timestamp filters |
| Auto-generation not working | Strategy misconfigured | Verify enableAutomaticMemoryRecordGeneration is true on the strategy |
| "Missing required headers" error | Request missing X-GreenNode-AgentBase-User-Id or X-GreenNode-AgentBase-Session-Id | Include both headers in the request. Short-term memory requires user_id + session_id; long-term memory requires user_id (maps to actor_id) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-memory, conversation-history, semantic-facts, langchain, langgraph
npx claudepluginhub vngcloud/greennode-agentbase-skills --plugin greennode-agentbase10 skills in this plugin
/agentbasePlatform reference and getting-started guide. Use for general questions about the platform, architecture, available services, SDK, IAM setup, credentials, or which skill to use. IMPORTANT - If the user wants to BUILD an agent (not just learn about the platform), use /agentbase-wizard instead — do not answer with reference material. Trigger phrases include how does the platform work, what services are available, platform overview, explain the architecture, which skill should I use, how do I get started, what can I do here, how do I set up credentials, IAM setup. This is a reference guide — for specific operations, invoke the dedicated skill./agentbase-deployDeploy and operate AI agents on GreenNode AgentBase — covers runtime deploy & lifecycle (Custom Agent and OpenClaw), and the managed Container Registry. Trigger: deploy my agent, ship it, deploy a chatbot agent for Telegram/Zalo, list/scale/delete runtimes, switch OpenClaw version, docker login, push image. DO NOT use for scaffolding agent code (use /agentbase-wizard), platform LLM API keys (/agentbase-llm), agent memory (/agentbase-memory), agent identity or outbound auth (/agentbase-identity), logs or metrics (/agentbase-monitor), tearing down all resources (/agentbase-teardown), or general platform questions (/agentbase)./agentbase-gatewayManage GreenNode AgentBase Resource Gateway (MCP) — a managed proxy in front of user MCP servers with inbound auth, per-target outbound auth, and policy enforcement. Trigger: create/list/update/delete a gateway, register an MCP target, configure inbound auth (NONE/IAM/JWT) or per-target outbound auth (APIKEY/OAUTH, each with 2LO or 3LO flow), change VPC routes, bind a Policy Group. DO NOT use for agent runtimes (/agentbase-deploy) or for authoring policy rules (/agentbase-policy)./agentbase-identityRegister agent identities and manage outbound authentication providers for AI agents. Covers CRUD for agent identities, storing API keys or secrets for external services (OpenAI, Google, Slack), OAuth2 providers, and delegated keys. When user mentions an external service name with API key or credentials, trigger this skill — not /agentbase-llm. DO NOT use for agent source code (use /agentbase-wizard), platform LLM API keys (use /agentbase-llm), agent memory (use /agentbase-memory), or runtime logs (use /agentbase-monitor)./agentbase-llmManage platform LLM model access and API keys for AI agents. Use when user wants to set up LLM access, get a platform API key, browse available models, choose which LLM to use, configure model access, check rate limits, or get an OpenAI-compatible endpoint. Trigger for which models are available, set up LLM, API key for the model, list models, LLM key, connect to LLM. When user says API key without specifying an external service name, default to this skill. DO NOT use for storing API keys for external services (OpenAI, Google, Slack) — use /agentbase-identity instead./agentbase-monitorMonitor, debug, view logs, metrics, and status dashboard for DEPLOYED AI agents. View runtime logs, endpoint logs, and resource metrics (CPU/RAM). Show unified dashboard of all platform resources. Trigger for show logs, check logs, what is wrong with my agent, agent crashed, debug my deployed agent, tail logs, agent is slow, agent status, show dashboard, platform overview, what do I have, list all resources, show my agents, inventory, performance, check metrics, resource usage, or any debugging/monitoring of a deployed agent. DO NOT use for managing runtime lifecycle (create/update/delete) — use /agentbase-deploy runtime. DO NOT use for local testing — use /agentbase-wizard test.Other plugins' skills for the same job