You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Capture can store the rules you state in a later turn, with an opt-in model call. Word patterns store nothing from a rule with no rule word in it, such as "That file is generated, so changes belong in the template it comes from." With {"capture": {"followUpRules": "model"}} in .hippo/config.json and ANTHROPIC_API_KEY set, a session capture sends your turns after the first one, the last 20, to Anthropic in one call. The model returns sentence numbers only, so hippo stores your own sentences, as pinned rules tagged follow-up and from-user. Pasted blocks, fenced code and log lines are removed before the call, and secrets, email addresses and home paths are masked. Each picked rule meets the same checks as a pattern rule, and a pattern rule it holds is not stored a second time. The default is "off". A capture after each reply (--turn) never calls the model.
Fixed
A condition in brackets on its own line stays with its rule. "Always deploy to production" followed by a line "(only if p95 < 200)." was stored without the condition, so the rule read as unconditional. A bracketed line under a sentence with no stop now joins that sentence. A line that starts with an enumerator such as "(1)" does not.
Known limitations
A picked sentence that holds a home path is stored with the path masked, so it can sit beside the pattern rule that kept the path.
A pasted log line outside a paste block can reach the model if it has no log lead, such as Error: ... in plain text. The model decides whether it states a rule, because Warning: never push to main is also how a person writes one.
A condition on its own line that starts with a capital, such as "Only if p95 < 200.", is a separate sentence. If the model picks the sentence above it and not the condition, the rule is stored without the condition.
A rule picked from two or more sentences holds more than any older row of one of them, so it is stored beside that row.