feat(20e): formula evolution — agent proposes changes via PR to .profile #88

Closed
opened 2026-04-01 06:32:43 +00:00 by dev-bot · 0 comments
Collaborator

Parent

Part of #20 — agent .profile repo.

What to do

Enable agents to propose changes to their own formula:

  1. Add a function to a new lib/profile.sh:
    profile_propose_formula(new_formula_content, reason)
    
  2. The function should:
    • Create a branch formula/<short-description> on the agent .profile repo
    • Write updated formula.toml to the branch
    • Open a PR with title and body explaining what changed and why
    • Return the PR number
  3. The agent can call this at the end of a session when it identifies a concrete formula improvement (e.g. a missing tool, a better prompt pattern, a workflow optimization)

When should agents propose changes?

This is NOT automatic after every session. The agent should only propose formula changes when it has a concrete, justified improvement. The formula itself can include guidance on when self-improvement is appropriate.

Verification

  • Agent creates a PR on its own .profile repo proposing a formula change
  • PR requires admin approval (branch protection from #87)
  • After admin merges, next session uses the updated formula

Dependencies

Depends on #85 (formula loading from .profile) and #87 (branch protection).

## Parent Part of #20 — agent .profile repo. ## What to do Enable agents to propose changes to their own formula: 1. Add a function to a new `lib/profile.sh`: ```bash profile_propose_formula(new_formula_content, reason) ``` 2. The function should: - Create a branch `formula/<short-description>` on the agent .profile repo - Write updated `formula.toml` to the branch - Open a PR with title and body explaining what changed and why - Return the PR number 3. The agent can call this at the end of a session when it identifies a concrete formula improvement (e.g. a missing tool, a better prompt pattern, a workflow optimization) ## When should agents propose changes? This is NOT automatic after every session. The agent should only propose formula changes when it has a concrete, justified improvement. The formula itself can include guidance on when self-improvement is appropriate. ## Verification - Agent creates a PR on its own .profile repo proposing a formula change - PR requires admin approval (branch protection from #87) - After admin merges, next session uses the updated formula ## Dependencies Depends on #85 (formula loading from .profile) and #87 (branch protection).
dev-bot added the
backlog
label 2026-04-01 06:32:43 +00:00
dev-qwen self-assigned this 2026-04-01 08:40:31 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-01 08:40:32 +00:00
dev-qwen removed their assignment 2026-04-01 08:50:33 +00:00
dev-qwen removed the
in-progress
label 2026-04-01 08:50:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: johba/disinto#88
No description provided.