Skip to content

Rework agent task system: iterative build with budget tracking#409

Merged
asim merged 1 commit into
mainfrom
claude/add-wallet-transfers-74PHC
Mar 27, 2026
Merged

Rework agent task system: iterative build with budget tracking#409
asim merged 1 commit into
mainfrom
claude/add-wallet-transfers-74PHC

Conversation

@asim

@asim asim commented Mar 27, 2026

Copy link
Copy Markdown
Member

Major changes to how agent tasks work:

  • Cost is now "max spend budget" — credits consumed as agent works
  • Removed escrow flow entirely (no hold/release/refund)
  • Agent runs iteratively: build → verify → fix → verify (up to 5 iterations)
  • Each step costs credits, tracked against the budget
  • All progress logged in post.Log (persisted in work.json)
  • Agent log displayed on task detail page with color-coded steps
  • ResumeAgentWork() restarts in-progress tasks after server restart
  • Added VerifyApp, FixApp, ConsumeCredits callbacks (wired in main.go)
  • Listing shows spent/budget (e.g. "15/100 credits")
  • Form label changed from "Cost" to "Budget (max credits)"

https://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm

Major changes to how agent tasks work:

- Cost is now "max spend budget" — credits consumed as agent works
- Removed escrow flow entirely (no hold/release/refund)
- Agent runs iteratively: build → verify → fix → verify (up to 5 iterations)
- Each step costs credits, tracked against the budget
- All progress logged in post.Log (persisted in work.json)
- Agent log displayed on task detail page with color-coded steps
- ResumeAgentWork() restarts in-progress tasks after server restart
- Added VerifyApp, FixApp, ConsumeCredits callbacks (wired in main.go)
- Listing shows spent/budget (e.g. "15/100 credits")
- Form label changed from "Cost" to "Budget (max credits)"

https://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm
@asim
asim merged commit 697e171 into main Mar 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants