GPT/vibe-coding SFOS apps

No, on Apple Silicone you can’t use SailfishSDK

3 Likes

Thank you for the comprehensive answer including the links. There will no doubt be a lot to look into.

I’ve been riding on the community with both my N9 and JP1, and if I manage to get an app somewhat functioning I will be happy to give something back.

2 Likes

I just started coding apps with AI last month.
I used it to help me learning the basics, how to write qml and use the sailfish APIs, but also the first time using git. I started to rewrite code generated by the AI in this stage, because I do not trust myself to truly understand everything it did.
I use AI to generate repetetive work, something like: here I did this, look at the code and do the same thing for these cases.
I use it to find mistakes, like: here I expect…, but instead it shows… , why?
Every bit of code I copy from the AI I try to understand, not just how it works, but also why the AI took the approach it did. And I put an AI warning in the comments.
Probably some AI generated snippets still fall through the cracks, but I try my best.

9 Likes

I like your approach.

I’m not expert in AI-coding, but the little tests I have done with LLMs, you can ask questions about why they AI chose to do things the way it did or explain the code. Start with small snippets and describe to it your suggestions on how you want to change the code and/or the logic behind it and then pick and mix the results you like the best. Then keep testing and reporting back to the AI how you want to change the code.

2 Likes

Just read this comment on the fediverse:

I’m a Normie. Can Normies Really Vibe Code?

You can get an AI to plagiarize a bunch of open source projects that people have volunteered time to create, bypassing the licensing of those projects and mashing them together into something that sort of resembles what you want it to do on a basic level and is full of horrifying security holes and feature gaps that may not matter for your particular usage.

So, yes, you can vibe code. That’s what vibe coding is. Enjoy.

:innocent:

3 Likes

:face_with_hand_over_mouth:

Although I do not expect many hardcore normies use SailfishOS, which is one barrier of protection for many of those horrible security holes.

On Topic:

I’m playing around with lovable on macOS and in the test environment using ungoogled-chromium browser (or chrome on an android phone), my apps have access to both location and bluetooth. This opens up for more functionality in these React web apps than I first thought. After a few prompts I have a basic OSM cycling navigator and a basic fitness tracker recording heart rate from a Polar cheststrap with BLE.

The best of all: Data stored on device and no requirement to register, sign up or create accounts.

1 Like

I figured out that it will be quite a hassle to convert the React + TypeScript applications from Lovable to native apps in SFOS. At least for a non-coder/dev like me. I’m in batch 3 and still waiting for my JP2, so currently unable to test things by SSH to the phone from my apple silicon MB pro.

My new question:

Are there any sailors out there doing local agentive coding of SFOS apps?

What are your workflow? Anyone tried Goose? (https://goose-docs.ai/)

You can install Pi pretty easily, whether any local model is good enough for anything, doubtful, but I did manage to get Pi on phone to speak with a local laptop hosted qwen3.6 35b-a3b over wlan, but was too scared to do anything more with it, if you like yolo, you should be fine (and it should be pretty easy to write it skills to use sms through dbus, so a nice mac mini replacement if you want to throw some openclaw etc at it, no need for iMessage)

Based om your response, I assume the only viable path for vibe-coding SFOS apps at this moment is subscribing to big tech, e.g. Claude Code.

Nah, if you have a dgx spark on your local network (or use wireguard or tailscale for mobile connection) you should be able to configure pi-on-phone to speak with it and should be able to serve pretty capable ds-flash on it, it really depends on what you mean by local, running on phone… Yeah nah, maybe the bonzai things can run acceptably fast, but it’s highly doubtful, wait for the AI hypers to release an actual capable model for phones, in '23 the predictions were 2026, so we should be close (right after 2027 AGI) soon^tm

1 Like

I have a Apple M1 Max 64 Gb, and I just want to vibe code locally on it. By that I mean I would like to have all software/models/processing locally on the Mac.

See what speed you can get from qwen3.6 27b, 3.8 is coming out soon, 3.6 was surprisingly capable, with some sfos skill preparation (just ask it to parse online sfos docs to use silica properly, the pain point of all vibe coded apps so far) it might be doable

1 Like

The speed isn’t an issue for me, as long as the results are somewhat usable. I have tried goose with qwen 3.6 and I created a tetris clone with some iterations.

I think the models might be capable enough for writing code, but the agentic part, with planning, scaffolding etc is probably what holds me back. Lovable is excellent in that part.

If speed is not an issue then have at it, SOTA right there:

1 Like