Memory
CCD has two kinds of long-term context. Use the right one.
| Instruction files | Memory | |
|---|---|---|
| Lives in | Your repository (CCD.md) |
CCD, scoped to your company |
| Written by | You, reviewed like code | The agent (remember) or you (Memory panel / API) |
| Best for | Rules every teammate and session must follow | Facts learned along the way that are not worth committing |
| Versioned | Yes, with git | No |
See Instruction files for the first kind.
Memory types
Every memory has one of four types:
| Type | Use it for |
|---|---|
user |
Who you are: role, expertise, preferences. |
feedback |
How to work: corrections you gave, and approaches you confirmed. |
project |
Ongoing work, goals and constraints that are not derivable from the code or git history. |
reference |
Pointers to external things: URLs, dashboards, tickets. |
feedback and project memories carry two lines in the body: **Why:** and **How to apply:**. They are what let the agent judge edge cases later instead of following the note blindly.
Staleness
Memories age. A memory older than the limit for its type is flagged "verify before use" when it is shown to the agent:
| Type | Flagged after |
|---|---|
project |
14 days |
reference |
30 days |
feedback |
90 days |
user |
180 days |
If a memory names a file, function or setting, the agent is expected to check it still exists before relying on it.
How the agent uses memory
The agent has these tools in every run: remember, recall, forget and update_notes.
remembertakescontent(required), pluscategory,importance(1 normal, 2 important, 3 critical),type,name,whyandhow_to_apply. Reusing an existingnameupdates that memory instead of adding a duplicate.- A session-start index of your memories is added to the agent's context, so it knows what exists and can
recallthe details. - Turn on Memory mode for a run and the agent proactively saves project learnings as it goes.
You can also just say it: "remember that we deploy from the release branch".
Manage memories
Use the Memory panel in Hyper Agent, or the API:
# list (optional ?search= and ?type=)
curl -H "X-API-Key: $CCD_API_KEY" "$CCD_URL/api/agent/memory?type=feedback"
# add
curl -X POST -H "X-API-Key: $CCD_API_KEY" -H "Content-Type: application/json" \
-d '{"content":"Deploys come from the release branch","type":"project","name":"deploy-branch","why":"main is auto-deployed to staging","how_to_apply":"never push release without a green main"}' \
"$CCD_URL/api/agent/memory"
# edit or delete one
curl -X DELETE -H "X-API-Key: $CCD_API_KEY" "$CCD_URL/api/agent/memory/<memory_id>"
Content is limited to 2,000 characters per memory.
What not to store
Do not put secrets in memory. Agent logs and transcripts are redacted for credential-shaped strings, but the safest place for a secret is your project's environment configuration, not a note. Do not save things the repository already records, such as code structure or git history.