runtime opravy

This commit is contained in:
lachtan
2026-09-04 07:23:23 +02:00
parent f136f507e4
commit 9555b2ba4c
9 changed files with 87 additions and 8 deletions

View File

@@ -19,6 +19,23 @@ Explicit memory store. User says "keep X" → reformulate, write to
`workspace/keep.md`. Flat bullet list. One entry = one line: `- <terse fact>`.
**No dates.** Date adds noise, has no value for keep/discard decisions.
## Triage — before writing anything
`keep.md` is read on **every turn**, so only a durable fact / preference /
decision **about the user** belongs here. Check the input against these first
and redirect instead of writing:
- A rule about how the agent should work (conventions, tooling, workflow) →
**`AGENTS.md`**. Tell the user that is where it goes.
- Something to try or read later, a link, an article, reference material →
**`/note`**.
- A fact that only matters inside one named project → **`/project`**
(`projects/<slug>/`).
- A scheduled reminder → **`/remind`**.
Only when it is genuinely a durable user fact, continue with the write protocol
below. Mixed input (a fact plus a to-do) → split it and route each part.
## Write protocol
1. Extract the core fact. Drop filler ("you know", "important is that", "watch
@@ -69,6 +86,8 @@ Trigger: line count > 150, or user says "keep compact" / "udělej compaction".
## Rules
- Never store the verbatim input. Always reformulate.
- Never store an agent working rule, a link, or a to-try item — route those
per **Triage** above.
- Reason (why) only for decisions / preferences / dead-ends — never for plain
facts. Always terse and inline on the same line; never a separate Why: block.
- Preserve input language; never translate.