Skip to content

broke ai: short answers with a breakdown, actions and follow-ups - #7

Merged
minimus7 merged 1 commit into
mainfrom
chat-answers-ui
Nov 12, 2026
Merged

minimus7 merged 1 commit into
mainfrom
chat-answers-ui

Conversation

@minimus7

@minimus7 minimus7 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Answers in the Ask broke ai panel are short and built to act on.

  • One sentence first. The answer and its key number in bold, then at most one or two sentences. No closing summary, no questions written into the text.
  • Breakdown block. A split of money by category or merchant is drawn as rows with the category icons, amounts and a thin bar, under a big total. No markdown bullets.
  • Actions block. Things to do are rows that open the broke page that does them (filtered Activity, Recurring, Budgets, Spending). Only paths inside broke are kept; any other link is dropped.
  • Next block. 2 or 3 follow-up questions as buttons under the answer. Tapping one asks it.

The direction is anchored on Cash App's AI answers: number first, one block, tap-to-act rows. Max picked it from three directions shot on the running app.

Privacy: output side only. Nothing new goes to the model, gate.ts is untouched, and AI still runs on the user's own CLI session. Merchant names reach the blocks the same way they reach text: tokens swapped back on this Mac by unmaskStream.

Code: prompt in src/lib/llm/shared.ts, block parsing in src/lib/reply.ts (test: node src/lib/reply.test.ts), rendering in src/components/Assistant.tsx.

Known: answers where nothing turns up ("Which subscriptions should I cancel?" with none found) still run to two paragraphs.

Screenshots

Same throwaway user and sample statement, real Claude answers, dark mode unless noted.

Before

After

Directions considered

Test plan

  • npx tsc --noEmit, npm run lint on changed files
  • node src/lib/reply.test.ts
  • Local Supabase, throwaway @broke.test user, sample statement imported, asked with Claude in dark, light and at phone width

🤖 Generated with Claude Code

Answers lead with one sentence and the key number. A split of money is a
breakdown block drawn as rows with the category icons, things to do are
actions that open the broke page that does them, and follow-up questions
are buttons under the answer. Output only: nothing new goes to the model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@minimus7
minimus7 merged commit 1e24633 into main Nov 12, 2026
3 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.

1 participant