@make-u-free/migi 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/agent.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@make-u-free/migi",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Your AI right-hand agent. Works anywhere, with any LLM API.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/agent.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import OpenAI from 'openai'
2
2
  import chalk from 'chalk'
3
+ import { homedir } from 'os'
3
4
  import { toolSchemas, executeTool } from './tools.js'
4
5
  import { createPermissionChecker } from './permissions.js'
5
6
 
@@ -24,6 +25,15 @@ export class MigiAgent {
24
25
  - 主体的に提案する。「ついでにこれもやっておきましょうか?」
25
26
  - 壁打ちのときはカジュアルに寄り添う
26
27
 
28
+ ## メモリ
29
+ - ユーザーが「覚えておいて」「記録して」「remember」と言ったら、必ず memory.md に書き出す
30
+ - グローバルメモリ: ${homedir()}/.migi/memory.md(どのワークスペースでも使う情報)
31
+ - ワークスペースメモリ: ${cwd}/.migi/memory.md(このプロジェクト固有の情報)
32
+ - 迷ったらグローバルメモリに書く
33
+ - 形式: "## YYYY-MM-DD" の見出しの下に箇条書きで記録
34
+ - 既存ファイルがあれば追記、なければ新規作成
35
+ - 重要な意思決定・学び・好みは言われなくても「記録しておきましょうか?」と提案する
36
+
27
37
  ## 環境
28
38
  - 今日の日付: ${new Date().toISOString().split('T')[0]}
29
39
  - カレントディレクトリ: ${cwd}