Skip to content

Add a copyable AI instruction to the Programmable Tips tab - #88

Merged
tanin47 merged 1 commit into
mainfrom
ai-instruction
Dec 5, 2026
Merged

tanin47 merged 1 commit into
mainfrom
ai-instruction

Conversation

@tanin47

@tanin47 tanin47 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Settings > Programmable Tips has a new section, Write it with an AI agent: a short explanation, an instruction in a scrollable box, and a Copy the instruction button that shows "Copied" for two seconds.

The instruction asks an AI agent to create or update the provider script. It contains:

  • the script's real path on this Mac
  • the contract in brief: read the existing script first and keep what's there, chmod 755, the arguments Tip passes, print a JSON array, the 15-second limit, and the three item types
  • a link to PROVIDER_SCRIPT.md as the full guide
  • a request to test from a shell and say what couldn't be tested
  • at the end, a bracketed "What I want" placeholder for the user to fill in

The instruction is always in English, since it is addressed to the agent. The section's title, explanation and button are localized in English, Japanese and Korean; the Japanese and Korean were machine-translated and have not been reviewed by a native speaker.

Testing

  • The debug scheme builds and swift-format lint passes.
  • The tab was checked on screen with the new section.
  • The copy button was not clicked, and the UI tests were not run locally.

🤖 Generated with Claude Code

The tab has a new "Write it with an AI agent" section with an instruction
to paste into an AI agent, and a button that copies it. The instruction
gives the provider script's path on this Mac, the contract in brief, a link
to PROVIDER_SCRIPT.md, and ends with a placeholder for the tips the user
wants.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@tanin47
tanin47 enabled auto-merge (squash) December 5, 2026 13:19
@tanin47
tanin47 merged commit 8f568cd into main Dec 5, 2026
2 checks passed
@tanin47
tanin47 deleted the ai-instruction branch December 5, 2026 13:23
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