Skip to content

Give a new assistant connection a $5 monthly spend cap by default #3381

Done

Description

@akoita

Problem

A newly connected assistant (ChatGPT, Claude) cannot start any draft or run until the person finds Settings > Agents and sets a monthly cap. The first try fails with "no monthly spend cap". A directory reviewer would hit the same wall.

Outcome

The first time a connection asks to spend in a workspace, it gets a $5 monthly cap and the start goes ahead. The person can change or remove the cap. A removed cap keeps the connection listed without one, so it starts nothing and never gets the default again.

Boundary

The API spend gate (apps/api/src/agent-spend-gate.ts) and the connection cap store (adopt, and remove keeps the row), in memory and on Postgres.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions