Honcho - memory that reasons across sessions

4 months ago

Honcho is memory infrastructure for stateful agents. Instead of only searching old chat logs, it stores sessions, reasons in the background, and gives your agent useful context later. Here is the quickstart path from empty workspace to a user insight.

Ask about this presentation

Chapters

  1. 0:00Memory that reasons across sessions
  2. 0:13The shape is simple
  3. 0:29Install and create the client
  4. 0:42Create the actors in memory
  5. 0:53Add signals across sessions
  6. 1:09Ask what Honcho learned
  7. 1:25Memory your agent can use
Show transcript
  1. Honcho is memory infrastructure for stateful agents. Instead of only searching old chat logs, it stores sessions, reasons in the background, and gives your agent useful context later. Here is the quickstart path from empty workspace to a user insight.

    Slide text
    Honcho

    Store conversations, reason in the background, and ask what changed.

    sessions → reasoning → context
  2. The data model is deliberately small. A workspace contains peers, like a user and an assistant. Sessions are the threads between them. Messages are the units you write. When messages land, Honcho updates peer representations and conclusions your app can query.

    Slide text
    Honcho architecture diagram

    Workspaces hold peers and sessions. Messages trigger reasoning.

  3. Start with the Python SDK. The docs show uv add honcho ai, or pip install honcho ai. Then initialize the client with a workspace ID and your Honcho API key. This workspace isolates the memory for the quickstart.

    Slide text
    uv add honcho-ai
    # or
    pip install honcho-ai
    from honcho import Honcho
    
    honcho = Honcho(
        workspace_id="first-honcho-test",
        api_key=HONCHO_API_KEY,
    )
  4. Next, create two peers, user and assistant. Then create a session and add both peers to it. The important idea is that peers persist across sessions, while each session captures one bounded interaction.

    Slide text
    user = honcho.peer("user")
    assistant = honcho.peer("assistant")
    
    session = honcho.session("session_1")
    session.add_peers([user, assistant])

    Peers persist over time. Sessions are temporal threads.

  5. The quickstart loads fourteen messages from four sessions. Some are about debugging a CI memory issue. Others reveal a side project: a personal finance assistant, friends asking to pay for it, and early thinking about unit economics. Honcho receives those messages with the right peer attribution.

    Slide text
    for session_data in data["sessions"]:
        session = honcho.session(session_data["id"])
        session.add_peers([user, assistant])
        session.add_messages(messages)
    CI OOM issue finance app idea friends want to pay unit economics
  6. Now comes the payoff. Ask the user peer what you should know about this user. Honcho synthesizes the pattern across all four sessions: they are building a personalized finance assistant, thinking about the balance between known and surveilled, seeing early demand, and working through pricing.

    Slide text
    response = user.chat(
        "What should I know about this user? "
        "3 sentences max"
    )
    print(response)
    The user is building a personalized finance assistant, thinking carefully about "known" versus "surveilled", seeing early demand, and working through pricing.
  7. That is Honcho's first win. Store messages, let Honcho reason over them, query the synthesized context, and inject it into your next model call. Follow the quickstart at honcho dot dev slash docs, then go deeper with session context, MCP, or self hosting.

    Slide text
    • Store conversations, events, and documents as messages.
    • Reason into peer representations and conclusions.
    • Query synthesized context with SDK calls.
    • Inject that context into your next model call.

    honcho.dev/docs  ·  Python + TypeScript SDKs  ·  AGPL-3.0

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York