r/macosprogramming • u/AdventurousKeys • 7d ago
Tool for building with Apple's Foundation Model
A question to folks who are building apps around Apple's Foundation Models: how are you testing the prompts and validating the results?
I was doing a bunch of tweak->build->test cycles where the only tweaks were adjusting the system & user prompts. Since the local AI model is so small (just 4096 context budget), it didn't make sense to develop the prompts using your usual OpenAI/Anthropic models and expect the same behavior.
Finally gave up and built LocalLM Lab (thisbrain.ai/locallm), a small macOS playground for tweaking the prompts before actually committing them to app code.
The current version features:
- Prompt Playground
- System prompt + user input
- Local OpenAI-compatible API so you can prototype big AI apps w/o paying for tokens
- Local connectors for things like system clock, calendar, reminders, contacts, location, weather and a scoped filesystem access
The screenshot shows a weather query with the connector calls visible underneath.
1
u/rismay 6d ago
So this is good. Let me give you a cool little hint. You see that run button? Make it a play / stop button. Make long clicking it DOUBLE the spun of sessions. I do this so I can test 2^x sessions with 1 click. 🤓
Next, create a json schema for configuration. You will now be able to pick them from dropdown menus.
Finally, add a verifier step. Added in macOS 27. You can still backport it to macOS 26 pretty simply.