Re-Engineer Treasury
Open-source plugin for Claude, ChatGPT, DeepSeek Harness and Hermes Agent · MIT licence

Treasury Cash Forecast

A 12-month direct cash forecast with scenarios. A tested engine does the maths. The AI never calculates a number; it only explains the result.

View on GitHub Choose your AI

How it works

1. Fill in one template

Four tables, as an Excel workbook or CSV files: inputs, your past cash-flow statement, cash flows you already know, and your scenarios.

2. Ask your AI

The plugin checks that every past month ties, runs the forecast model on each line, then applies known amounts and scenario changes.

3. Get one workbook

A cash-flow statement per scenario with opening and closing cash, a summary, and a sheet that splits every figure into model, known amount and scenario change.

The template

TableWhat goes in
inputsCurrency, last month of actuals, optional model and minimum cash
historyPast direct cash-flow statement, from opening cash to closing cash
known_eventsAmounts you already know, by line and month
scenariosWhat-ifs in percent or fixed amounts, by line and period

The result workbook

SheetWhat it shows
SummaryClosing cash per scenario, lowest month, minimum-cash breaches
How this is builtThe method in plain words
One statement per scenarioTwelve months, every month tying from opening to closing cash
Where numbers come fromModel figure, known amounts, scenario change and total for each figure
NotesModel used and library versions
Example run · illustrative data

A made-up manufacturer: opening cash EUR 1.18m, minimum cash EUR 250k

Base case
EUR 1.59m
closing cash after 12 months
Downside
From June
below minimum cash, and just below zero in September
Base case with EUR 1m refinancing in March
EUR 2.59m
closing cash after 12 months
Example run · illustrative data

A made-up seasonal hotel: opening cash EUR 690k, minimum cash EUR 150k

Base case
EUR 766k
closing cash after 12 months (October 2027)
Weak season
Feb to Jun 2027
below minimum cash, and below zero in March and April 2027
Weak season with seasonal credit line
No breach
lowest month July 2027, EUR 181k
ScenarioClosing cash after 12 monthsLowest monthBelow minimum cash
Base caseEUR 766kMarch 2027, EUR 181knone
Group cancelsEUR 721kMarch 2027, EUR 181knone
More direct bookingsEUR 828kFebruary 2027, EUR 177knone
Refurbishment overrunEUR 706kMarch 2027, EUR 121kMarch to April 2027
Weak seasonEUR 192kApril 2027, EUR −30kFebruary to June 2027; below zero in March and April 2027
Weak season with seasonal credit lineEUR 184kJuly 2027, EUR 181knone

Treasury Cash Forecast 0.2.1, ETS model, 12 months from November 2026. Download the example (made-up data): filled template · result workbook

Choose your AI

ClaudeChatGPTDeepSeek HarnessHermes Agent
Where it runsClaude chat on web, desktop and phoneChatGPT desktop app (Work mode or Codex)DeepSeek Harness on your own machineYour own Hermes Agent server
What you needA Claude accountChatGPT desktop app, Python 3.9+, TerminalDeepSeek Harness, Python 3.9+, git, TerminalHermes Agent 0.22.2 or later, terminal access
InstallAdd the GitHub link under Customize → PluginsCodex command line, five stepsCopy the skill folder, four stepsTwo commands

Claude

Where it runs: normal Claude chat on web, desktop and phone. The engine runs in Claude’s own sandbox.

You need: a Claude account. Nothing to install on your computer.

Install:

  1. Open Claude and go to Customize → Plugins.
  2. Click Add, then Add marketplace.
  3. Paste https://github.com/Prabhusekaran/treasury-cash-forecast and confirm.
  4. Find Treasury Cash Forecast in the list and click Install.
  5. Start a new chat. The plugin loads in new chats only.

First run: “Use the Treasury Cash Forecast plugin: create the hotel example and run the forecast.”

Update: Customize → Plugins → Treasury Cash Forecast → Update.

Your data: processed in Claude’s sandbox under your Claude account.

Claude Code users: /plugin install treasury-cash-forecast --marketplace Prabhusekaran/treasury-cash-forecast

ChatGPT

Where it runs: the ChatGPT desktop app, in Work mode or Codex. Not the website or the phone app. Tested on Mac; Windows not tested.

You need: the ChatGPT desktop app, Python 3.9 or newer (check with python3 --version), and the Terminal.

Install:

  1. Install OpenAI’s Codex tool: curl -fsSL https://chatgpt.com/codex/install.sh | sh
  2. Open a new Terminal window, type codex, choose Sign in with ChatGPT, then press Ctrl+C twice to leave.
  3. Add the plugin: codex plugin marketplace add Prabhusekaran/treasury-cash-forecast
  4. Install the two libraries: python3 -m pip install "statsmodels>=0.14,<1" "openpyxl>=3.1,<4"
  5. Restart the ChatGPT desktop app. Go to Work mode → Plugins → Treasury Cash Forecast → Install.

First run: open a new Work chat in an empty folder and type: “Use the Treasury Cash Forecast plugin: create the hotel example and run the forecast.”

Update: codex plugin marketplace upgrade treasury-cash-forecast, then restart the app.

Your data: stays on your own computer.

DeepSeek Harness

Where it runs: DeepSeek Harness on your own machine.

You need: DeepSeek Harness installed, Python 3.9 or newer, git, and the Terminal.

Install:

  1. Download the plugin: git clone https://github.com/Prabhusekaran/treasury-cash-forecast.git
  2. Copy the skill into the Harness skills folder: mkdir -p ~/.agents/skills && cp -r treasury-cash-forecast/skills/cash-forecast ~/.agents/skills/
  3. Install the two libraries: python3 -m pip install "statsmodels>=0.14,<1" "openpyxl>=3.1,<4" (if your system refuses, add --break-system-packages)
  4. Restart the Harness: stop dsh web, then start it again.

First run: in a new Harness chat: “Use the Treasury Cash Forecast plugin: create the hotel example and run the forecast.”

Update: cd treasury-cash-forecast && git pull, then repeat step 2 and restart.

Your data: stays on your own machine.

Hermes Agent

Where it runs: your own Hermes Agent server.

You need: Hermes Agent 0.22.2 or later, and terminal access to the server.

Install:

  1. Install the plugin: hermes plugins install Prabhusekaran/hermes-treasury-cash-forecast
  2. Switch it on: hermes plugins enable treasury-cash-forecast
  3. Restart Hermes.

First run: in a Hermes chat: “Use the Treasury Cash Forecast plugin: create the hotel example and run the forecast.”

Update: see the README at github.com/Prabhusekaran/hermes-treasury-cash-forecast

Your data: stays on your Hermes server.

Listed in the Hermes plugin catalog (version 0.2.1).

What to know before you use it

  • Validated on made-up data only. No claim is made about accuracy on any real company.
  • The model comparison shows how much the result depends on the model. It is not an accuracy test.
  • Default model is ETS; SARIMA and four simple models can be selected.
  • No network calls and no credentials. Where your data is processed depends on the AI you use (see each install block above).
  • The workbook holds values, not live formulas, so the reconciliation cannot be broken by accident.
  • More than 100 automated tests cover the engine and the plugin.
  • Same engine everywhere: Claude, ChatGPT and DeepSeek Harness use the package at github.com/Prabhusekaran/treasury-cash-forecast (version 0.2.5); Hermes uses its own package (version 0.2.1).