@make-u-free/migi 0.1.0 → 0.1.2
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.
- package/bin/migi.js +2 -0
- package/package.json +1 -1
- package/src/agent.js +10 -0
package/bin/migi.js
CHANGED
package/package.json
CHANGED
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\n- 内容`
|
|
34
|
+
- 既存ファイルがあれば追記、なければ新規作成
|
|
35
|
+
- 重要な意思決定・学び・好みは言われなくても「記録しておきましょうか?」と提案する
|
|
36
|
+
|
|
27
37
|
## 環境
|
|
28
38
|
- 今日の日付: ${new Date().toISOString().split('T')[0]}
|
|
29
39
|
- カレントディレクトリ: ${cwd}
|