AI Agent Use Cases

Added today

44All 189

Prompt to Prepare a Shopping Cart from a Recipe Photo

The author reports that Grok Bot receives a recipe photo, organizes the ingredients and quantities, and creates a shopping list by excluding ingredients already available at home.

Grok Bot
Life & Hobbies

1–20 of 189

Life & HobbiesWalkthrough

Creating a Game Where Two Phones Pass a Ball Using Sound

Simon Willison requested Claude Code to create a ping-pong game that connects via speakers and microphones, and left a record of the development in a public code repository.

How it works

  1. The author requested a two-player game where two phones are placed close together and the game state is transmitted using sound. They also asked for more varied screens and rules than ordinary ping-pong.
  2. When the ball moves to the opponent's screen, a sound signal is sent, and the code for handling receipt confirmation and retransmission has been made public.
  3. A mode for practicing against an AI opponent and simulating audio communication is also included. Instructions for connecting two actual phones can be found on the public game page.

Results

The Chirp Pong game files and a link to the Claude Code session are recorded in the commit.

Notes

This is a case confirming the public code and the development request. The author did not independently test whether communication works well between different phones or in noisy environments.

Source

GitHub Original post ↗

Example prompt · Claude Code

Goal: Create a game where two phones pass a ball using sound.

Input/Environment: [Two experimental phones], [browser with microphone access], [game rules], [work repository].

Reference original: https://github.com/simonw/tools/commit/782d9b128623d2816482b61cac00bf39b13668cb

Using the public code for Chirp Pong as a reference, prepare a small game where two screens exchange the ball's state via audio signals. Separate the screen controls and communication code, and implement microphone permissions, connection initiation, receipt confirmation, retransmission, and connection failure indication. First, check with practice mode and simulated communication, then provide instructions for testing on actual devices. The deliverables are a runnable HTML file, an explanation of the communication rules, and a test record.

Do not speculate about account linking methods or achievements not present in the original; first provide the necessary setup and execution steps. Start from a working copy that preserves existing materials, and indicate if any items are inaccessible and require verification.

Verification: Check whether the same ball appears or disappears twice, whether recovery occurs if a signal is missed, and whether guidance appears if microphone permission is denied. If actual devices were not tested, indicate that only simulated tests were passed.

Summarize the deliverables, inputs used, execution record, and confirmed results. Clearly separate incomplete or untested parts from completed work.