Skip to content

Clean up after agents so heavy use doesn't slow down your machine #5954

Description

@brsbl

Running many agents for long stretches leaves things behind: idle agent sessions, dev servers nobody is using, and processes agents started and never stopped. Over time they use up memory and slow down bb and the machine, and today the only fix is cleaning up by hand.

bb should handle this for you:

  • agents stop the processes they started when they're done, unless you asked to keep one (like a preview you're reviewing);
  • when memory runs low, bb releases idle agent sessions and unused dev servers, and brings them back when you need them;
  • active work is never interrupted to free memory.

Related: #477 (updating without losing work).

Activity

  1. added
    host
    on Oct 21, 2026
  2. bb-slop-cop commented on Oct 21, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied and verified the previously missing classification:

    • Type: Feature — adds process ownership, safe reclamation, and recovery behavior.
    • Priority: High — addresses severe resource pressure and major interruptions to sustained agent use; an active outage is not established.
    • Effort: High — spans lifecycle design, containment, recovery, and cross-platform verification.
    • Labels: host, perf.

    No existing classification values or labels were replaced. Final Type re-read: Feature. Bug reproduction/report and fix steps were skipped; no PR was safe because this requires product and architecture decisions rather than a contained bug fix.

  3. added
    enhancement
    on Oct 21, 2026
  4. changed the title [-]Process hygiene: keep long-running agent work from leaving users to manage processes[/-] [+]Clean up after agents so heavy use doesn't slow down your machine[/+] on Oct 21, 2026
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

    enhancementhostperf

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions