AGENT SKILL

self-improvement-cron

Set up periodic self-improvement using cron-scheduled reflect/evaluate/improve cycles

License 许可
MIT
所属仓库
timainge/picobot
最近更新
2026-04-07
Stars
★ 1
Forks
0

01 前言 Front Matter

name
self-improvement-cron
metadata
{}
description
Set up periodic self-improvement using cron-scheduled reflect/evaluate/improve cycles

03 SKILL.md 正文

Self-Improvement Cron

This skill documents how to set up automated self-improvement cycles using the cron tool. The self-improvement pipeline (self-reflect -> self-evaluate -> self-improve) can be scheduled to run periodically, building up the knowledge base over time without manual prompting.

This is opt-in. No self-improvement cron jobs are created by default. The user must explicitly ask to set them up.

The Pipeline

The three self-improvement skills form a pipeline:

  1. self-reflect -- Reads session history, captures raw observations in journal/
  2. self-evaluate -- Scores recent interactions on 5 dimensions, stores evaluations in self/
  3. self-improve -- Promotes journal observations to stable knowledge, records improvement actions

Each step depends on output from the previous one. Reflect produces the raw data, evaluate scores it, improve acts on it.

Recommended Schedule

Option A: Lightweight (reflection only)

Run reflection daily to capture observations. Evaluate and improve manually when needed.

{
  "action": "add",
  "message": "Run the self-reflect skill: read the most recent session history, extract patterns (corrections, failures, successes, preferences, knowledge gaps), and store each significant observation as a journal entry in the knowledge base.",
  "cron_expr": "0 22 * * *"
}

This runs at 10 PM daily. Reflections accumulate in journal/ for the user to review or for a manual improve pass.

Option B: Full cycle (weekly)

Run the complete pipeline once a week. This is more thorough but heavier.

{
  "action": "add",
  "message": "Run a full self-improvement cycle: first, run self-reflect to capture observations from recent sessions into journal entries. Then run self-evaluate to score recent interactions on accuracy, efficiency, helpfulness, knowledge use, and communication. Finally, run self-improve to promote journal observations into stable knowledge and record improvement actions.",
  "cron_expr": "0 3 * * 0"
}

This runs at 3 AM every Sunday. The full pipeline runs in a single agent turn.

Option C: Split schedule (recommended)

Reflect daily, full cycle weekly. This balances capture frequency with processing overhead.

Daily reflection (every evening):

{
  "action": "add",
  "message": "Run the self-reflect skill: read the most recent session history, extract patterns (corrections, failures, successes, preferences, knowledge gaps), and store each significant observation as a journal entry in the knowledge base.",
  "cron_expr": "0 22 * * *"
}

Weekly evaluate + improve (Sunday morning):

{
  "action": "add",
  "message": "Run self-evaluate to score recent interactions on all 5 dimensions and store the evaluation in self/. Then run self-improve to process journal entries since the last improvement pass, promote observations to stable knowledge, and record what was done.",
  "cron_expr": "0 9 * * 0"
}

Setting It Up

When the user asks to set up self-improvement cron jobs, use the cron tool with the schedule they prefer. A typical interaction:

  1. Ask the user which schedule option they prefer (A, B, or C)
  2. Confirm the times work for them (adjust cron expressions as needed)
  3. Create the jobs using cron(action="add", ...)
  4. Use cron(action="list") to confirm the jobs were created

Checking Results

After the cron jobs have been running, the user can check results by:

  • Searching journal for recent reflections: kb(action="search", query="reflection", topic="journal")
  • Searching self for evaluations: kb(action="search", query="evaluation", topic="self")
  • Searching self for improvement records: kb(action="search", query="improvement", topic="self")

Managing the Jobs

List active self-improvement jobs:

{
  "action": "list"
}

Remove a job if the user wants to stop automated improvement:

{
  "action": "remove",
  "job_id": "<id from list output>"
}

Important Notes

  • Opt-in only. Never create self-improvement cron jobs without the user explicitly requesting them.
  • Session data required. The reflect step reads from ~/.picobot/sessions/cli_default.jsonl. If there are no recent sessions, the reflection will find nothing to capture.
  • Resource usage. The full pipeline (Option B/C) involves reading session history, multiple KB searches, and several KB stores. Schedule it during low-usage periods.
  • Accumulation. Daily reflections will create many journal entries over time. The weekly improve pass processes and promotes them, keeping the journal from growing unboundedly.
  • No automatic behavior changes. The pipeline only writes to the knowledge base. It does not modify picobot source code, configuration, or system files.

04 同仓库更多 Skills