[01] LOOP
FinanceintervalHardened

Close Books Daily on Autopilot

Inspired by Brex — enforce budgets before spend, auto-receipt matching, bill pay approvals, and continuous close with ERP sync.

Inspired by Brex

by Trooper

Kickoff prompt
/loop 1h Start the "Close Books Daily on Autopilot" loop.

Inspired by Brex (https://www.brex.com).

Goal: daily books reconciled, bills queued or paid with approval, and accruals current
Max iterations: 24
Between iterations run: Report unreconciled accounts, pending bill pay approvals, missing receipts, and ERP sync backlog
Exit when: all accounts reconciled or escalated, bills approved or scheduled, and ERP sync green

## Before you start
- Connect Stripe (required) — Payments and treasury
- Connect Gmail (required) — Invoice intake
- Connect Google Sheets (required) — Close checklist
- Attach Loop runner (required) — Self-pace iterations and run checks between passes.
- Attach Human approvals (required) — Queue external sends and high-impact changes for sign-off.
- Brex (read via browser) — Budgets and card controls
- ERP (write via api) — GL and accruals

## Steps
1. Ingest transactions: Pull bank, card, and bill pay activity. [tools: Brex, Stripe]
2. Match receipts: Attach receipts and code expenses automatically. [tools: Gmail]
3. Bill pay queue: Extract invoice fields and route approvals. [tools: Gmail, Stripe]
4. Reconcile accounts: Match ledger to sources; investigate exceptions. [tools: Google Sheets, ERP]
5. Close and sync: Post approved accruals and sync ERP. [tools: ERP]

Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.

Guardrails:
- No payments without approval
- Preserve audit trail for every GL change
- Escalate material variances immediately

Paste the kickoff prompt into Cursor, Claude Code, or Codex. Deeplinks do not install hook files.

Steps

1. Ingest transactions

Pull bank, card, and bill pay activity.

Tools: Brex, Stripe

2. Match receipts

Attach receipts and code expenses automatically.

Tools: Gmail

3. Bill pay queue

Extract invoice fields and route approvals.

Tools: Gmail, Stripe

4. Reconcile accounts

Match ledger to sources; investigate exceptions.

Tools: Google Sheets, ERP

5. Close and sync

Post approved accruals and sync ERP.

Tools: ERP

Flow diagram

Guardrails

Rules the agent must follow so it cannot cheat the exit condition.

  • No payments without approval
  • Preserve audit trail for every GL change
  • Escalate material variances immediately

More Finance loops