feat(20b): dev-agent reads formula from .profile repo #85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Part of #20 — agent .profile repo.
What to do
Modify formula loading in
lib/formula-session.sh(ordev/dev-agent.sh):.profilerepo to a local cache dir (e.g./home/agent/data/.profile/)formula.tomlfrom the cached.profileinstead offormulas/<role>.toml.profilerepo does not exist or clone fails, fall back toformulas/<role>.toml(graceful degradation).profilevs fallbackThe agent identity (user login) is already known from the FORGE_TOKEN. Use the Forgejo API to resolve the
.profilerepo URL.Considerations
git pullat session start, not full clone each timeVerification
dev-qwen/.profile/formula.tomlDependencies
Depends on #84 (hire-an-agent + dev-qwen retrofit).
Lessons context
When loading the .profile, also call
profile_load_lessons()from #97 to injectknowledge/lessons-learned.mdinto the agent context. This is part of the generic journal aspect and does not require .profile-specific code beyond ensuring the cache is available.