AIToday
Large Language ModelsAI Coding AssistantsOpen-Source AIZenn AI/MLPublished: Oct 9, 2026, 10:00 JST

ai-secretary-kit automates AI memory upkeep after 4 months

ai-secretary-kit automates AI memory upkeep after 4 months

The author published the ai-secretary-kit, which Claude Code or Codex can install with one sentence: fetch https://github.com/hobomokha/ai-secretary-kit and follow SETUP.md. After log clean-up, logs fell from about 101,500 to about 17,900 tokens.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The kit is a response to a problem that only appeared after months of daily use. The first version of the memory box held just three parts, but more than 1,400 commits later the assistant read so much material before speaking that sessions had grown slow. Adding new rules made things worse: the same type of mistake recurred a third time even after two rounds of writing extra rules, which is why the author converted repeated failures into checks instead.

A second pressure came from the system's own growth. The author estimates that files always read before a session began reached about 14,000 tokens, while three logs of feedback and failures totaled about 101,000 tokens. Notably, the rule to clean old records quarterly existed in writing, and its first deadline passed without any action, because clean-up was conditioned on the heavy task of confirming nothing had been lost. The fix was to set size limits, let a gate block saving when limits are exceeded, and move old records with a single command.

The kit ships with 14 distilled operating rules, drawn from 118 pieces of feedback and 113 failure records over four months. The author notes the kit was transcribed from an actual repository with personal content removed, and that the figures come from measurements there, with token counts as approximations. Not every part is automated: checks cover structure, such as broken references and oversized files, but not whether the content is correct, and stale information still gets marked and reviewed monthly by a person and the AI.

FAQ
What do I need to run the ai-secretary-kit?
A private GitHub repository (empty or already holding a first-version box), Claude Code or Codex, and Git with Python 3.9 or higher. No additional installation is required.
How does the kit stop the AI from breaking its own rules?
Repeated mistakes become machine checks rather than written rules. A pre-push check blocks saving if it finds a reference to a file that does not exist, a map mismatch, or an oversized file.
What does the monthly maintenance routine look like?
The agent runs three reports covering neglected items, repeated feedback, and growing files. Fixes that are easy get done, and anything needing judgment comes back as a set of options.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleHex cuts wrong edits 7x with evals on Quick Edits