Skip to main content
cohaku memory add <content>

Arguments

ArgumentRequiredDescription
contentYesThe memory content text

Options

OptionShortDefaultDescription
--layer-llong_termMemory layer: rule, working, long_term
--type-tnoteMemory type: rule, decision, fact, note, skill
--tagsComma-separated tags
--expiresExpiration date (ISO 8601)
--scope-sprojectScope: project, global

Examples

# Add a project rule
cohaku memory add "Always use ESM imports" --layer rule --type rule

# Add a long-term fact with tags
cohaku memory add "API rate limit is 100 req/min" --type fact --tags "api,limits"

# Add a global preference
cohaku memory add "Prefer functional style" --scope global --type note

# Add a temporary working note
cohaku memory add "Investigating OOM in GraphService" --layer working