メインコンテンツへスキップ
cohaku memory add <content>

引数

引数必須説明
contentはいメモリの内容テキスト

オプション

オプション短縮形デフォルト説明
--layer-llong_termメモリレイヤー: rule, working, long_term
--type-tnoteメモリタイプ: rule, decision, fact, note, skill
--tagsカンマ区切りのタグ
--expires有効期限(ISO 8601)
--scope-sprojectスコープ: project, global

使用例

# プロジェクトルールを追加
cohaku memory add "Always use ESM imports" --layer rule --type rule

# タグ付きの長期ファクトを追加
cohaku memory add "API rate limit is 100 req/min" --type fact --tags "api,limits"

# グローバルな設定を追加
cohaku memory add "Prefer functional style" --scope global --type note

# 一時的な作業メモを追加
cohaku memory add "Investigating OOM in GraphService" --layer working