THE PORTFOLIO — Allocation & Rebalancing OS Brain

$49.00
◆ rebalance.py · drift bands, not calendar dates

THE PORTFOLIO — Allocation & Rebalancing OS Brain

For a long-term allocation you can actually hold. One orchestrator plus ten specialists that set target weights you can defend, rebalance on drift rather than on the calendar, and sequence the trades so tax does not eat the benefit.

What makes it different

Rebalancing on a fixed date is arbitrary. Rebalancing on drift bands is not, and it trades far less. The script takes your targets and current weights and returns the trades needed, but only for holdings that have actually breached their band, with the tax consequence attached to each. Rebalancing frequently inside a taxable account regularly costs more than the drift it corrects, which is why trades are ranked by benefit net of tax rather than by how far each holding has moved. The uncomfortable output is often that the correct action is nothing.

It ships working code, not just prompts rebalance.py

Compares current weights to targets, triggers only on breached drift bands rather than dates, generates the required trades, and ranks them by benefit net of estimated tax so the trades that cost more than they fix drop out entirely. Every OS Brain in this drop carries its own executable component, so the judgement calls stay with you and the arithmetic stops being a matter of opinion. Runs anywhere Python runs, and the specialists still work on their own if you never open it.

Say it in plain words — it works out the rest

"Should I rebalance?"→ 03 · only if a band broke
"What should my targets be?"→ 01 · derived, not borrowed
"It's all in one thing now"→ 04 · concentration you did not choose
"Markets dropped thirty percent"→ 07 · what you wrote down beforehand
"Should I sell to rebalance?"→ 06 · check the tax first

Inside · orchestrator + 10 specialists

01The ObjectiveWhat this money is for, and when
02Target WeightsDerived from the objective
03Drift BandsWhen to act, and when not to
04ConcentrationWhat you accumulated by accident
05Contributions FirstRebalancing without selling
06Tax SequenceWhich account, which lot
07The Drawdown PlanWritten while calm
08Costs and FeesThe drag you control
09Review CadenceAnnual, not daily
10Portfolio LedgerDecisions and their reasons

Where it refuses to skip ahead

  • No targets without an objective — an allocation copied from someone else has no way of being right for you.
  • No rebalance without a breached band — calendar rebalancing trades for no reason and pays tax for the privilege.
  • Use new contributions before selling — it corrects drift with no tax consequence at all.
  • No plan without the drawdown paragraph — the plan you write during a fall is not a plan, it is a reaction.
Works in all 7 channels
1Any chatupload the zip
2Claude Projectsadd as knowledge
3ChatGPT / GPTsknowledge files
4Gemini Gemsknowledge files
5Claude Codeskills folder
6Agent frameworkssystem instruction
7Paste-onlydegrades gracefully
The habit it is really selling: write down why you chose each target weight, because in three years you will not remember, and an allocation you cannot justify is one you will abandon at the worst possible moment. Single-seat license. This is a planning and arithmetic tool and explicitly not investment advice, not a recommendation of any allocation, and no indication of returns. Tax treatment of rebalancing varies by jurisdiction and account type and is worth professional input.
Bargain amount
You've got 3 shots to bargain, so use them wisely!