What Goes in a Peer Card
Peer cards are designed for durable, biographical information—things that remain true across sessions and contexts. Each fact is stored as a single string in a list.| Category | Examples |
|---|---|
| Identity | "Name: Alice", "Age: 28", "Location: Portland, OR" |
| Occupation | "Works as a senior engineer at Acme Corp" |
| Relationships | "Has a dog named Max", "Married to Bob" |
| Instructions | "INSTRUCTION: Always address as Dr. Chen" |
| Preferences | "PREFERENCE: Prefers concise responses" |
| Traits | "TRAIT: Detail-oriented, prefers data over anecdotes" |
How Peer Cards Are Created
Peer cards are populated through two paths: 1. Automatic (via Dreaming) When dreaming runs, the deduction and induction specialists extract stable biographical facts from existing conclusions and write them to the peer card. This happens without any manual intervention—Honcho identifies facts like names, occupations, and preferences from conversation history and records them automatically. 2. Manual (via SDK or API) You can set a peer card directly. This is useful for bootstrapping a peer with known information before any conversation has occurred, or for correcting facts that Honcho hasn’t yet discovered.Directional Peer Cards
Peer cards follow the same observer-observed model as representations. Whenobserve_others is enabled, a peer can have a different card for each peer it observes.
For example, if Alice and Bob are in a session together and Alice has observe_others: true, Alice will build her own peer card for Bob—separate from Honcho’s peer card for Bob. You can read and write these directional cards using the target parameter.
Where Peer Cards Are Used
In the Dialectic (Chat Endpoint)
When you callpeer.chat(), Honcho automatically injects the relevant peer cards into the system prompt. The dialectic agent sees both the observer’s own card and the observed peer’s card, giving it immediate grounding without needing to search memory.
In Context Retrieval
Thesession.context() method includes the peer card when you specify a peer_target:
During Dreaming
The dreaming process reads the current peer card before consolidation, then updates it with any new stable facts discovered during the deduction and induction phases.Limits
| Constraint | Value |
|---|---|
| Maximum facts per card | 40 |
| Data type | list[str] (each fact is a string) |
Configuration
Peer card behavior is controlled through the configuration hierarchy. You can independently toggle whether agents use existing peer cards and whether they create/update them.| Field | Type | Default | Description |
|---|---|---|---|
use | bool | true | Whether agents read the peer card during reasoning and chat |
create | bool | true | Whether agents can create or update peer cards |
Best Practices
- Bootstrap with known facts. If you already know the user’s name or preferences at signup, set the peer card immediately. This gives the agent grounding from the very first interaction instead of waiting for dreaming to discover it.
-
Use structured prefixes. Prefixing facts with
INSTRUCTION:,PREFERENCE:, orTRAIT:makes it easier for the agent to distinguish categories and act on them appropriately. -
Keep facts atomic. Each string should contain one fact. Avoid combining multiple pieces of information into a single entry—
"Name: Alice"and"Location: Portland"are better than"Alice lives in Portland and works at Acme". - Let dreaming handle updates. For most applications, you don’t need to manually manage the peer card after bootstrapping. The dreaming process will discover and record new facts as conversations progress.
-
Use
set_cardfor corrections. If the automatic system has recorded something incorrect, manually set the card with the corrected facts. Remember this replaces the entire card.
Representations
Understand the full representation system that peer cards complement
Dreaming
Learn how dreaming automatically populates peer cards
Configuration
Configure peer card behavior at workspace, session, or message level
Get Peer Card API
API reference for retrieving peer cards