
Honcho Memory
FreeEnable persistent memory for AI agents across sessions.
Free · Opens the source repo
What Honcho Memory does
Honcho Memory is a skill designed to enhance AI agents by providing them with persistent memory capabilities. By utilizing the Honcho API, this skill allows AI agents to automatically save and retrieve user context, ensuring that they remember user preferences, conversation history, and relevant facts across different sessions. This feature is particularly useful for applications where continuity in user interaction is critical, such as personal assistants or customer support bots.
The skill consists of three primary tools: save_memory, query_memory, and get_context. The save_memory function enables the AI to store messages from both the user and the assistant, allowing it to build a comprehensive memory of interactions. This is essential for creating a personalized experience, as the AI can recall specific details about the user’s interests and preferences during future conversations.
The query_memory tool allows the AI to retrieve specific information from its memory when prompted by the user. This functionality is vital for maintaining a coherent dialogue, as it enables the AI to answer questions about past interactions accurately. Finally, the get_context function helps in preparing the context for the AI's responses, ensuring that the assistant can provide relevant information based on previous conversations.
Overall, Honcho Memory is ideal for developers and designers looking to implement AI agents that require a deeper understanding of user interactions over time. By integrating this skill, you can significantly enhance the user experience by making interactions more fluid and context-aware.
When to use it
Use Honcho Memory when you want your AI agent to retain information across sessions, improving user engagement and personalization.
When not to use it
This skill may not be suitable for applications where user privacy is a concern or where temporary interactions are preferred without memory retention.
What you can build with it
Personal Assistant Development
Integrate Honcho Memory into a personal assistant application to remember user preferences and provide tailored responses.
Customer Support Bots
Utilize Honcho Memory in customer support bots to recall previous interactions, improving response accuracy and user satisfaction.
Interactive Learning Tools
Implement this skill in educational applications to track user progress and customize learning experiences based on past interactions.
How to install Honcho Memory
View source1. Install with the skills CLI
npx skills add plastic-labs/honcho/zo --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by plastic-labsHoncho Memory Skill
This skill provides three tools for storing and retrieving AI memory using Honcho.
Setup
-
Get a Honcho API key at honcho.dev.
-
Set environment variables:
HONCHO_API_KEY=your-api-key HONCHO_WORKSPACE_ID=default # optional, defaults to "default" -
Install dependencies:
pip install honcho-ai python-dotenv
Tools
save_memory
Saves a conversation turn (user or assistant message) to Honcho.
When to use: After every message exchange to build up the user's memory.
from tools.save_memory import save_memory
save_memory(
user_id="alice", # unique user identifier
content="I love hiking", # message text
role="user", # "user" or "assistant"
session_id="chat-1", # conversation session ID
assistant_id="assistant" # optional: assistant peer ID (default: "assistant")
)
query_memory
Asks a natural language question against stored memory using Honcho's Dialectic API.
When to use: When the user asks "do you remember...?", or when you need to recall facts about the user before responding.
from tools.query_memory import query_memory
answer = query_memory(
user_id="alice",
query="What are Alice's hobbies?",
session_id="chat-1" # optional: scope to a session
)
# Returns: "Alice enjoys hiking."
get_context
Retrieves recent conversation history formatted for direct use in an LLM API call.
When to use: At the start of each LLM call to inject relevant context from past conversations.
from tools.get_context import get_context
messages = get_context(
user_id="alice",
session_id="chat-1",
assistant_id="assistant",
tokens=4000 # max tokens to include
)
# Returns: [{"role": "user", "content": "..."}, ...]
Concept Mapping
| Zo Computer | Honcho |
|---|---|
| Account | Workspace |
| User | Peer |
| Conversation | Session |
| Message | Message |
Example: Full Conversation Flow
from tools.save_memory import save_memory
from tools.query_memory import query_memory
from tools.get_context import get_context
user_id = "alice"
session_id = "session-1"
# 1. Save user message
save_memory(user_id, "I'm learning Rust and love rock climbing", "user", session_id)
# 2. Save assistant reply
save_memory(user_id, "That's great! Both require patience.", "assistant", session_id)
# 3. In a later session, recall what you know
print(query_memory(user_id, "What does Alice do in her free time?"))
# → "Alice is learning Rust and enjoys rock climbing."
# 4. Get context window for next LLM call
messages = get_context(user_id, session_id, "assistant", tokens=4000)
Frequently asked questions about Honcho Memory
Similar skills
Skill Creator
Efficiently create and manage skills for Gemini CLI.
Agent Development
Create and manage autonomous agents for Claude Code.
Math Olympiad Solver
Solve and verify competition math problems effectively.
Microsoft Skill Creator
Create specialized skills for Microsoft technologies.
Doublecheck
A verification pipeline for AI-generated claims.
Skill Development for Claude Code
Create and enhance skills for Claude Code plugins.
