Skip to content

Improve AI image analysis to create habits directly#8

Merged
thomasluizon merged 1 commit into
mainfrom
fix/image-habit-creation
Mar 21, 2026
Merged

Improve AI image analysis to create habits directly#8
thomasluizon merged 1 commit into
mainfrom
fix/image-habit-creation

Conversation

@thomasluizon

Copy link
Copy Markdown
Owner

Summary

  • Rewrote image analysis system prompt so the AI creates habits directly from images instead of always forcing SuggestBreakdown
  • Preserves exact hierarchy from screenshots (parent groups become CreateHabit with subHabits)
  • Preserves exact titles, duplicate items created individually
  • Defaults to CREATE when user shows any creation intent, only suggests when ambiguous
  • Added comprehensive example matching a real task app screenshot with 5 nested groups

Before

AI always used SuggestBreakdown for images, requiring user confirmation and flattening hierarchy into a single suggestion.

After

AI uses multiple CreateHabit actions with subHabits, preserving the full parent/child structure from the image in one shot.

Test plan

  • Send image of task list + "create these habits" -- creates all groups with sub-habits directly
  • Send image + "what do you see?" -- uses SuggestBreakdown for review
  • Send image with nested groups -- hierarchy preserved (parents + children)
  • Send image with duplicate items -- each created individually

🤖 Generated with Claude Code

Rewrote image analysis system prompt to be more capable:
- Create habits directly from images instead of forcing SuggestBreakdown
- Preserve exact hierarchy (parents + subHabits)
- Preserve exact titles without renaming or merging
- Create duplicate items individually (e.g., Water x4)
- Default to CREATE when user shows intent, only suggest when ambiguous
- Full example matching real task app screenshots with nested groups

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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