Artifact ea30762e35cc1b245a1dd91a62028da1835c05e80d4a34e2652f4b9451ec17bb:
- File
src/ctx.c
-
2026-11-10 18:10:01
— part of check-in
[b70296c566]
on branch rules
— Keep standing rules: ctx remember, ctx rules, and CLAUDE.md and memory files imported
A rule is an instruction for every future session. Each is a technote in the private repository tagged rule, so every version is kept and rules sync. Its header records key, project, source file, origin session, until date, and status with the rule that replaced it and why.
ctx remember TEXT [--project P] [--until DATE] adds one. ctx rules lists those in force for this project and every project; --all shows retired, replaced and expired ones; ctx rules retire KEY --reason WHY [--by KEY] retires or replaces. Every scan imports ~/.claude/CLAUDE.md, each project's CLAUDE.md and AGENTS.md, and Claude Code's memory files, redacted as transcripts are: a changed file makes a new version, a removed one retires its rule. A memory file's project is the one its neighbouring transcripts were archived under, then the session it names, then the folder its name stands for, decoded against the disk.
Rules are indexed from the technotes as their own kind, newest technote per key, and search returns those in force for this project and every project. Technotes tagged rule are never indexed as sessions. The derived schema version rises to 3, so the index rebuilds once.
On the real archive: 507 rules from memory files and CLAUDE.md files, imported in about a second.
eval: --via FILE routes every model call through the env of a Claude Code settings file, such as a proxy to cheaper models; --yolo runs answers without permission checks. Each run records its route and the commands it was denied; compare refuses runs with different models, routes or permissions. The test suite now never reads the real Claude config. (user: dmestas, size: 223546) [annotate] [blame] [check-ins using]
- 2026-11-10 18:26:04 — part of check-in [c98075c647] on branch trunk — Keep standing rules: ctx remember, ctx rules, and CLAUDE.md and memory files imported (user: context-bot, size: 223546) [annotate] [blame] [check-ins using]
-
2026-11-10 18:10:01
— part of check-in
[b70296c566]
on branch rules
— Keep standing rules: ctx remember, ctx rules, and CLAUDE.md and memory files imported