DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to show live agent status in a SwiftUI chat app with Thinking Orbs

Map each agent step to a matching orb so users see what the AI is doing.

Short answer: In Xcode, choose File > Add Package Dependencies and paste https://github.com/haplollc/ThinkingOrbs, or add the package line to Package.swift and add Thinking Orbs to your target's dependencies; then Define an enum for your agent phases and a computed property that returns an OrbDesign for each case, such as .searching for web lookups and .solving for reasoning. All steps.

Who it is forAn iOS developer building a chat or assistant screen where the agent moves between searching, reasoning, calling tools and writing.

The problemA plain spinner says nothing about what the agent is doing, so users cannot tell a web lookup from a long reasoning step.

The outcomeEach agent phase shows its own orb design, with a smooth crossfade between phases and a status line beside it.

What you need first

  • Xcode 16 or later with Swift 6, on a Mac
  • An app targeting iOS 17+, macOS 14+, tvOS 17+, watchOS 10+ or visionOS 1+
  • Node, only if you want to run Scripts/differential-sweep.sh (inferred from the README, which says the script runs the original engine under Node)

Steps

  1. In Xcode, choose File > Add Package Dependencies and paste https://github.com/haplollc/ThinkingOrbs, or add the package line to Package.swift and add Thinking Orbs to your target's dependencies.
  2. Define an enum for your agent phases and a computed property that returns an OrbDesign for each case, such as .searching for web lookups and .solving for reasoning.
  3. Place ThinkingOrb(phase.orb) in a ZStack with .id(phase.orb) and a .transition(.opacity.animation(.easeInOut(duration: 0.25))) so the old and new orb share one slot.
  4. Add ThinkingOrbLabel("Searching the web…", design: .searching) next to the orb where the status text should appear.
  5. Run the app in a simulator and step through each phase to confirm the orb and label change together.

Prompt for your agent

In the ThinkingOrbs repo (https://github.com/haplollc/ThinkingOrbs), read the README's Recipes section and add a phase-to-OrbDesign mapping for <target agent app>. Output the Swift enum, the ZStack view code and one ThinkingOrbLabel per phase. Verify that every case in the enum returns a valid OrbDesign case from the README table.

Caveat. The package only draws the indicator, so your app still has to decide which agent phase is active and when it changes.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for haplollc/ThinkingOrbs and "Show live agent status in a SwiftUI chat app"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer