Skip to content

feat: add plan manager and budgeting layer#1535

Open
chaddevmachine wants to merge 2 commits intoassafelovic:mainfrom
chaddevmachine:deep-research-align-A
Open

feat: add plan manager and budgeting layer#1535
chaddevmachine wants to merge 2 commits intoassafelovic:mainfrom
chaddevmachine:deep-research-align-A

Conversation

@chaddevmachine
Copy link

deep-research-align:A – Planning & Budget Layer

Current Proposed (Deep Research)
Planner returns string list only; no artifact. PlanManager keeps structured steps + budgets with trace metadata.
Costs tracked post-hoc; no budgets or stops. Configurable token/cost/web budgets with optional enforcement.
No plan trace or token accounting. Plan trace persists to JSON/logs; tokens recorded with costs.
Summary: PlanManager tracks steps and budgets and can emit plan traces without altering CLI/API behaviour.
Verify: pip install pytest; pytest tests/test_plan_manager.py

@chaddevmachine
Copy link
Author

Branch merged.

@assafelovic
Copy link
Owner

@chaddevmachine this is super powerful love it. Will review thoroughly after focusing on some urgent bug fixes

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