fix: feat(20g): migrate all remaining agents to .profile + remove ops repo journal dirs (#90)
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
Agent 2026-04-01 13:06:40 +00:00
parent 56b5f8647f
commit 95893aa1f2
8 changed files with 35 additions and 26 deletions

View file

@ -68,16 +68,17 @@ load_formula_or_profile "agent-role" "formulas/agent-role.toml"
At session start, agents load `knowledge/lessons-learned.md` from `.profile` and inject it into the prompt:
```bash
profile_load_lessons || true
LESSONS_INJECTION="${LESSONS_CONTEXT:-}"
formula_prepare_profile_context
```
This single function call replaces the previous boilerplate of `profile_load_lessons` + `LESSONS_INJECTION` assignments.
### Journal writing
After each session, agents write reflection journals to `.profile/journal/`:
```bash
profile_write_journal "$ISSUE" "$ISSUE_TITLE" "$outcome" "$FILES_CHANGED"
profile_write_journal "session-name" "Session title" "outcome" "files-changed"
```
Journals are automatically digested into `lessons-learned.md` when undigested count exceeds 10.