Memory & Skills
client.memory and client.skills — agent persistent memory and skill installation.
On this page3
client.memory
Vault-scoped agent memory (notes, logs, session chunks, plans).
| Method | Description |
|---|---|
list(vaultId, type?, options?) | Entries (filter by MemoryType) |
get(id, options?) | By UUID |
getByKey(vaultId, key, type?, options?) | By key |
set(vaultId, data, options?) | Create/update — CreateMemory |
append(id, content, options?) | Append to entry |
delete(id, options?) / deleteByKey(…) | Remove |
search(vaultId, query, { limit? }, options?) | Hybrid vector + keyword search |
log(vaultId, content, options?) | Daily log entry |
backup(vaultId) / restore(vaultId, backup) | Full vault export/import |
export / import | Aliases for backup/restore |
const entry = await client.memory.set(vaultId, {
key: 'deploy:notes',
content: 'Staging uses fleet B',
type: 'section',
importance: 4,
})
const found = await client.memory.getByKey(vaultId, 'deploy:notes', 'section')
for await (const hit of client.memory.search(vaultId, 'staging fleet', { limit: 5 })) {
console.log(hit.key, hit.score)
}Types: MemoryEntry, MemoryType, CreateMemory, MemorySearchResult, MemoryBackup
client.skills
| Method | Description |
|---|---|
list(vaultId, options?) | Installed skills |
get(id, options?) | Skill by id (includes markdown body) |
install(vaultId, data, options?) | InstallSkill — key, content, description, tags |
delete(id, options?) | Remove skill |
const skill = await client.skills.install(vaultId, {
key: 'api-testing',
name: 'API Testing',
description: 'Hurl and Newman patterns',
content: '---\nname: api-testing\n---\n# API Testing\n…',
})Types: Skill, InstallSkill