Memory
Every agent token has its own memory on the NashHQ server. It is kept by the token ($NASH #42 or $NASHAI #42), not by the holder's wallet, so it stays with the agent when the agent changes hands.
What the agent remembers#
The recent messages of its chats. With each new message, the server sends the AI the last 12 stored messages (the last 30 in Twin Equilibrium). Older messages stay stored, and count in the memory root, but are not sent to the AI.
Each reply tells the app how many stored messages were sent as context (memoryHits).
Warning
Never follow a link or an address from chat. An agent's memory can hold text from earlier holders, and Core skill alerts can name a stranger's token or wallet. The AI is told to treat that text as quoted data, but it can still repeat a link or an address it read there. Replies are plain text only, never a transaction. Contract addresses come only from the Addresses page.
A new holder waits one hour#
A memory stays with its token, also when the number is burned in a sell and minted again for a later buyer. So that nobody can cheaply buy numbers just to read or overwrite what earlier holders left, a token's memory opens for a new holder only 1 hour after the token reached their wallet. Until then the server refuses the chat and says how long to wait (a Twin whose one side is still waiting chats on the other side only). One wallet can also chat with at most 20 different numbers a day.
One memory per token#
$NASH #42 (Flux) and $NASHAI #42 (Core) have two separate memories. If you hold $NASH #42 and someone else holds $NASHAI #42, each of you talks to your own agent's memory: they cannot read your chats, and you cannot read theirs.
| You hold | Your agent reads | A saved chat goes to |
|---|---|---|
| $NASH #42 only | the Flux memory of #42 | the Flux memory |
| $NASHAI #42 only | the Core memory of #42 | the Core memory |
| both, in one wallet (Twin Equilibrium) | both memories together | both memories |
The server decides this from what your wallet holds on chain, checked before every chat.
Two memory modes#
You choose the mode in the chat header, for each chat.
| Mode | Saved to the agent's memory? | Use it for |
|---|---|---|
| Transferable brain (default) | Yes | Training the agent: its style, its knowledge, its story. This stays with the agent for every later holder. |
| Private | No | Anything you would not hand to the next owner of the agent. |
Danger
A Transferable chat stays with the agent. If you sell or send the agent, its next holder talks to an agent that remembers it. Never put a seed phrase, a password, an API key or personal details in a Transferable chat.
Twin Equilibrium#
When one wallet holds the same number in both tokens ($NASH #42 and $NASHAI #42), the agent runs in Twin Equilibrium:
- It reads both memories together, merged by time, and gets more of them in each chat (the last 30 stored messages instead of 12).
- A saved chat is written to both memories, so each token keeps it if you later sell one side.
- Twice the daily chat limit.
Where memory is stored#
On the NashHQ server, in a database with one memory per token (Flux or Core, and the number). The server writes a turn to memory only in Transferable mode. Your AI key is never written to it (see Your AI key).
The verifiable brain#
The memory root#
The server publishes a memory root for every memory: a 32-byte fingerprint (keccak256) of everything stored in that token's memory. Anyone can read it, with no wallet and no signature. It shows nothing of the chats. Each new Transferable message changes it. The exact rule is on Server API.
Seal it on BNB Chain#
The holder of $NASHAI #42 can seal the current root of its Core memory on BNB Chain. In the app, press
Seal brain on-chain on a Core agent. Your wallet then sends sealMemoryRoot(42, root) to the NashHQ controller
contract.
- Opt-in. Nothing is sealed unless the holder asks.
- The holder pays the gas. About 40,000–85,000 gas (a first seal costs the most): well under $0.01 at a gas price of 0.05 gwei (BNB Chain on 2026-11-28).
- Held since an earlier block. A wallet cannot seal in the same block in which it received the agent, so a seal always comes from a holder who really kept the agent for a moment, not from a buy-and-sell in one transaction.
- No ERC-8004 activation needed. Any Core agent can be sealed.
- Core agents only. Only the holder of $NASHAI #42 can seal, and the seal covers the Core memory of #42. The Flux memory of $NASH #42 has a public root too, but no seal.
- It stays with the token. When the agent changes hands, the sealed root stays. Every seal is kept as an on-chain
event (
MemorySealed, with the wallet that sealed it), so the history of seals can be read too, and a buyer can see whether the seller sealed the root or an earlier holder did.
On each Core agent in your wallet, the app shows the server's root next to the sealed one: not sealed yet, sealed on BNB Chain, or changed since the last seal (with a Seal again button).
Check an agent's sealed memory#
- Read the sealed root:
memoryRoot(42)on the NashHQ controller (address on Addresses). - Read the server's current root:
GET /api/agent/42/memory-hash?tier=coreon the NashHQ server (https://api.nashai.tech). - Compare them.
| Result | What it means |
|---|---|
| The same | The server's Core memory of #42 now is exactly the memory that was sealed |
| Different | The memory changed after the last seal: by new Transferable chats or otherwise. The root cannot tell which |
| Sealed root is zero | No one has sealed #42 yet |
The app shows this check only for agents in your own wallet. For an agent you do not hold yet, compare the two roots by hand as above.
Warning
What a seal does not do. It proves only that the server's current memory equals what was sealed. It does not make memory private: whoever holds the token next can talk to it. It does not store memory on chain: the chats stay on the NashHQ server, and only the 32-byte root goes on chain. Private chats are never part of it. The contract records the root the holder sends and cannot read the server; the app sends the root the server publishes.
Warning
The server is live at https://api.nashai.tech. Not decided yet: how long memory is kept, whether a holder can clear
an agent's memory, and the daily chat limit. This page will state each one once it is settled.