Deep dives • Series Part 3 of 3
Building a General AI Agent, Part 3: Turn the Log into Better Skills
Part 2 gave the agent memory: a running log and a set of skills. Part 3 covers how it gets better. Improvement means one thing: turning what the log shows into new or updated skills and rules. A person approves every change.
Read the log for patterns
The log already records decisions, corrections, what worked, and what broke. Look for three signals:
- The same correction more than once. The skill is missing a rule.
- The same failure more than once. A step is wrong or a check is missing.
- The same task done from scratch a few times. It needs a skill.
One-off mistakes stay in the log. Patterns become changes. The agent can run this review itself on a regular schedule. Its output is a proposed change, not an applied one.
Fix the skill, not just the log
Each pattern maps to a small edit: add a rule, fix a step, add a check, or write a new skill. A lesson that lives only in the log has to be found again. A lesson written into the skill runs every time the skill loads.
Rules that apply to every task go in startup context. Rules for one kind of task go in that task's skill. A new skill also gets its one line in the skill index.
A person reviews every change
The agent proposes edits to its skills and rules. It does not apply them. A person reads each change and approves it before it takes effect.
- No silent changes to rules.
- No change that lets the agent do more on its own without a person saying yes.
- No change without the log entries that justify it.
Keep changes small and reversible
Skills and rules are plain-text files. Keep them under version control, such as git, so every change is a commit with a reason. Make one change per problem. If something gets worse, you know which edit did it, and you roll it back in one step.
Check that it helped
A change is done when the problem stops. Watch the log the next few times the skill runs. If the correction stops coming back, keep the change. If it does not, roll it back and try again. A change you never checked is a guess.
The improvement loop
- Read the log for repeated corrections, failures, and tasks.
- Find what the skill or rule is missing.
- Propose a small edit, or a new skill.
- A person reviews and approves it.
- Commit it, so it can be rolled back.
- Watch the log to confirm the problem stopped.
Skip a step and you are patching, not improving.
Series conclusion: bare-bones minimum
- Lean startup context with a short skill index (Part 1).
- A dated running log and a skill for every repeated task (Part 2).
- A reviewed loop that turns the log into better skills and rules (Part 3).
Plain files, a person in the loop, and changes you can undo. That is enough for one agent to work across domains and get better over time.
Rather have us do this step?
We build agents like this for your business, starting with a free 30-minute call.