BaCheWork and records of a photonics research workhorse
Language

From a seed: my AI assistant Qizhe, and a starter seed kit for newcomers to agents

Qizhe is the AI assistant I work with every day. From its first save in July 2026 until now, it has grown more than forty rule files, over thirty skills, and more than two hundred entries in its lessons log. Most of these were not designed at the start; they grew out of one mistake and one ruling after another. This series looks at how it grew up. The first post gives you a seed: a plain-text set of starter rules that you can have your agent install with a single sentence.

Type
Essay
Published
2026-11-30
Updated
2026-11-30
Status
Ongoing

Qizhe is my AI assistant. I usually work with it in Claude Code on research, coding, and organizing notes, and it also maintains this website for me.

Its settings folder was first saved on July 6, 2026, when it was a very small starting point: 63 files and no rule files at all. By the end of November, the same folder held 47 rule files, more than thirty skills, and 278 lessons log entries, and its save history had more than six thousand entries.

Most of these were not designed from the start. Each rule keeps its reason beside it: many come from one specific mistake, and some from a ruling I made at the time. For example, once it said a task was done when it wasn’t; once it stepped into the same pit a second time; once a rule was written down but it never read it. So I say it “grew up by itself.” It does not evolve on its own. Rather, each time we made a mistake, we left behind something that keeps the next attempt from going wrong.

This series tries to take that growing process apart, one thing per post: what it is, when it is worth adding, and how I got to that point myself.

Why I don’t just give you the whole thing

Early on, I really did install a whole large package of rules directly on other people’s machines. The results showed five kinds of bad outcome:

  1. Paths don’t match. The rules hard-code folders on my computer, so on another machine they can’t be found.
  2. Questions can’t be answered. During installation it asked a whole batch of options the other person had never dealt with.
  3. Clashes with existing settings. The other person’s own rules get overwritten, or contradict each other.
  4. Tools don’t run. Some rules depend on a particular program or folder, so after installing, nothing happens.
  5. The agent never uses the rules. It is installed, yet it carries on exactly as before.

Later I realized: my system grew out of my mistakes. Moving the whole thing over is like asking someone to carry the fixes for a pile of problems they never ran into.

One more thing to say up front: my computer runs Windows. Quite a few of Qizhe’s rules deal with things that are especially troublesome on Windows, such as how paths are written, which folder data is kept in, and the encoding of Chinese text on the command line. People on Linux or Mac may never run into much of this, which could save them a lot of trouble. But this is only my judgment: I simply don’t have a Linux or Mac machine, so it has never been tested there.

So here’s a seed to start with

The seed kit for this series (bache-agent-system-seed-kit) is designed as the reverse of those five bad outcomes:

  • All plain text. Just over a dozen files, no program to run, and installing needs neither Python nor git.
  • No hard-coded paths. Every path is relative to the seed’s own folder, and the agent looks at your environment itself.
  • Asks at most three questions. Each one comes with a suggested answer; if you reply “not sure,” it uses the suggested one.
  • Only adds, never changes. It appends a few lines to the end of your CLAUDE.md, plus a new folder, bache-seed, to hold the rule files; for topics you have already written, yours take precedence.
  • Verify after installing. The last step asks you to open a new conversation and run three small tests to confirm the rules actually loaded.

The core rules in the seed cover only ten situations, such as “when a file has been changed,” “when saying something is done,” and “when an error occurs.” Each rule applies only when its own situation comes up.

How to install is on the repo’s front page. I deliberately don’t copy it here: an install guide on the website goes out of date whenever the repo is revised.

If you already have an agent, how to read this series

If you already have your own agent and a set of settings, you don’t need to install the seed. What is more useful to you in this series is the growth order that comes with the seed:

Post What grows When it’s worth adding
1 Seed: starter rules Just getting started
2 Lessons log The same mistake shows up a second time
3 Project notes A new conversation has to rediscover where things stand
4 Version control for the settings folder You want to roll back a rule and can’t
5 Rules loaded only when a certain file type is touched A rule concerns only one kind of file, yet takes up attention every time
6 Pre-action guards (hooks) A written rule has been broken twice
7 Packaged workflows (skills) The same multi-step manual process has been done three times
8 Tools and scripts The AI keeps retyping the same fixed-format thing

The right-hand column is the key: each one waits until the problem shows up. For problems you haven’t run into yet, don’t build a mechanism for them first; mechanisms take time to build, and they can break too.

For where lessons log entries need to be written so they actually get read, I wrote an earlier post, “Both the Child and the Teacher”, and Post 2 picks up where it leaves off.

Three ideas behind the seed

The seed kit includes a set of “beliefs” written for people to read, ten in all. The three I come back to most often are these:

  • Rules are a substitute for judgment. A rule exists because judgment was not strong enough in that moment. But a few of them encode my values (never fabricate citations, evidence before calling something done, archive rather than delete), and no amount of judgment loosens them.
  • Evidence matters more than claims. “It should be fine” does not count as done; only a result from actually running it counts.
  • If the system can block it, don’t rely on memory. Rather than hoping the AI will “remember to comply,” make the violating action impossible to carry out in the first place.

Current limitations

  • This is the first version. I had Claude Code’s subagents rehearse the installation three times in a temporary settings folder on this machine. In two of those runs, a few rules I had written myself were placed in advance, and the answers playing the user were also written beforehand. No real newcomer has installed it yet. Fetching files directly from a URL, opening a new conversation after installing, restoring, and upgrading have also not been rehearsed in practice.
  • All rehearsals were done on Windows. Linux and Mac should go more smoothly, but since I don’t have either kind of machine, they are completely untested.
  • The seed is written for Claude Code’s settings setup. Other agents that can read and write files should be able to use it too, but I have not tested that.
  • The repo includes seven of my current rule files for reference. That is one example, not a target: a system that grows out of your own mistakes will fit you better than one copied from elsewhere.

Prompt: first see how far your agent has grown

Paste the text below into your agent, and replace the words inside the angle brackets < > with your own situation. The prompt asks it to ask you questions first and then give you a draft inventory, without changing your settings directly.

I want to know where our way of working together has grown to (“how far it has got”), and what to add next.
I mainly use you for: <for example, writing code, organizing notes, doing research>.

Please do the following in this order:
1. First, read through my settings (instruction files, rules, skills, hooks, etc.) in read-only mode. Do not modify any files.
2. Ask me at most 5 questions to clarify: whether I have made the same mistake a second time recently, whether I have to re-explain progress when starting a new conversation, and whether there is multi-step work I keep doing by hand.
3. Against this sequence, tell me for each stage whether it is “already in place / not yet / not needed,” with one sentence of reasoning for each:
   Starter rules → lessons log → project notes → version control for settings → rules loaded by file type → automatic checks before acting → packaged workflows (skills) → tools and scripts.
4. Suggest only the “next” thing to add, and explain which real problem that actually happened makes it worth adding. For problems that have not happened, do not suggest a mechanism.

Give me the draft first, and do not change my settings directly. Keep the draft to one page.