harness: auto-skill general + memory spesifik + lossless compaction
ci / check (macos-latest) (push) Canceled after 0s
ci / check (ubuntu-latest) (push) Canceled after 0s
ci / check (windows-latest) (push) Canceled after 0s

Memory balik spesifik per-project (keep paths, THIS repo), general jadi
skill auto-create ke ~/.shiro-neko/skills/auto-*.md. Compaction lossless
dengan head preserved + droppedSpan normalized + retained note. Learner
throttled tiap 3 turn / delta 8, pakai subagentModel (learnerModel) dan
ceiling guard, hash dedup, JSON fallback, TTL tiap 6 turn.
This commit is contained in:
asepharyana
2026-09-08 22:52:31 +07:00
parent 7db69f19da
commit 4848db308a
7 changed files with 203 additions and 103 deletions
+2 -2
View File
@@ -234,8 +234,6 @@ const externalTools = await loadExternalTools(process.cwd(), async (command) =>
const memory = has('--no-memory') ? undefined : new Memory(process.cwd(), languageModel);
if (memory) {
await memory.load();
try { await memory.loadGlobal(); } catch {}
// Best-effort TTL cleanup so lifelong store doesn't bloat with stale 0-hit notes.
try { await memory.pruneExpired(); } catch {}
}
@@ -307,6 +305,8 @@ const session = new Session({
model: languageModel ?? unconfiguredModel,
modelId: cfg.model,
...(cfg.subagentModel ? { subagentModelId: cfg.subagentModel } : {}),
...(subagentModel !== unconfiguredModel ? { learnerModel: subagentModel } : {}),
onNotice: (t) => notices.emit(t),
askApproval: bridge.ask,
yolo,
instructions,