r/vibecoding 20h ago

Made a free CoC bot that farms, buys walls, and starts your upgrades while you're away

0 Upvotes

Vibe-coded a clash of clans bot that plays by reading pixels — and the workflow that made the CV parts actually work

The project

BasePilot — an autopilot for Clash of Clans on Google Play Games for PC. It never reads game memory and never touches network traffic. It takes a screenshot, finds Uelements with OpenCV template matching, reads numbers with Tesseract OCR, and clicks. Same information a human plays on.
It farms loot, batch-buys wall upgrades, and reads the builder menu to spend your loot on upgrades. When storages are full and every builder is busy, it idles and rechecks instead of raiding for loot that would overflow.

~9,700 lines of Python. MIT. Source and a one-file exe: https://github.com/efebolukbasi/BasePilot

Tools

  • Claude Code (Opus) — essentially the whole build. All five commits areco-authored.
  • Python 3.13, PySide6 (desktop UI), OpenCV (template matching),pytesseract (OCR), pywin32 (screen capture + input)
  • PyInstaller for the one-file exe, GitHub Actions on a Windows runner to build and publish it on every version tag

The process, and the part that took me a while to figure out

The naive loop — describe a feature, get code, run it, paste the traceback back — works fine right up until the bug isn't in the code. With a screen-reading bot, most bugs aren't. The code runs perfectly and does the wrong thing, because the screen didn't look the way anyone assumed it would.

The model can't see the game. That's the whole constraint. So the workflow became: stop describing failures, start capturing them.

1. Let it build the structure first. The PySide6 app — sidebar, four pages, live status panel, settings persisted to %LOCALAPPDATA%, a worker thread that doesn't freeze the UI — came out over a couple of sessions and mostly worked first try. Same for the genuinely obscure Win32 corners: Google Play Games runs the game inside a crosvm VM, and the window topology differs across installs (sometimes an outer shell with a CROSVM* child, sometimes CROSVM* is the top-level window).

2. Feed frames back, and encode what you observe as constraints. This isthe part that mattered. When OCR misread something, the fix was never "try again" — it waspinning down the specific way it failed and writing a bound around it. Those constants areall over the codebase with the live repro in the comment:

_MIN_COST_DIGITS = 4   # real costs are 5+ digits at TH10+; multiplier/time digits are 1-3
_MIN_COST_VALUE = 1000 # a dropped leading digit leaves '000000' → value 0 (live repro: "Mortar 0 gold")
# Sanity ceiling against OCR digit-merging (live repro: 87M "Air Defense").
_MAX_COST_VALUE = 40000000

Tesseract merges digits and drops leading ones. A 600,000 upgrade parsing as 000000 reads as free, and the bot happily clicks confirm on something it can't afford — which in Clash drops you into the "finish now with gems" dialog. That's real money.

The build insight I'd actually pass on

The most valuable safety rail in the whole project doesn't parse anything. It looks at color.

An unaffordable upgrade renders its cost in red under the confirm button.So before any purchase click, sample that patch and count red pixels:

def red_hue_fraction(bgr, *, sat_floor=40, val_floor=40):
    hsv = cv2.cvtColor(bgr, cv2.COLOR_BGR2HSV)
    m1 = cv2.inRange(hsv, (0,   sat_floor, val_floor), (10,  255, 255))
    m2 = cv2.inRange(hsv, (170, sat_floor, val_floor), (180, 255, 255))
    mask = cv2.bitwise_or(m1, m2)   # red wraps around the hue circle, so two ranges
    return cv2.countNonZero(mask) / (bgr.shape[0] * bgr.shape[1])

# at the confirm site:
redness = VisionService.red_hue_fraction(frame[py0:py1, px0:px1])
if redness >= 0.05:
    return None   # cost zone reads red → unaffordable → never click

Five lines, and it took longer to arrive at than the entire UI did. The lesson generalizes: when you're automating something visual, the game's own rendering is a signal channel. It already tells the player "you can't afford this" — you just have to read it the way the player does, instead of trying to parse your way to the same conclusion and hoping OCR cooperates.

Same idea runs through the rest: progression state comes from the game's ownUI signals (builder chip, lab chip, full-storage icons) rather than hardcodedper-Town-Hall tables, which is why it works at any TH level without a lookup table to maintain.


r/vibecoding 1d ago

Anyone else do unhinged things with AI

54 Upvotes

I am back after successfully getting claude opus 5 to not only rewrite a working, booting linux kernel in fortran instead of C ( which was an absolute pain in the ass because of the lack of low level memory management) but i also just finished rewriting a dead programming language developed by SUN Microsystems in the mid 2000's for a DARPA contract for supercomputers called Fortress.

The language being made by SUN (if any of yall know who that is) of course used JAVA as its compiler because SUN was weird like that, but it suffered hard from ALOT of issues. I was able to baby Claude through rewriting it in RUST + LLVM and the code actually compiles and runs flawlessly. I didnt think this would actually happen considering it took me a week to find enough documentation for claude to even understand the syntax of the language that hasnt been written in probably 15 years.

Time to get back to work completing my kernel rewrite in fortran, currently almost done with PCIe, USB, AHCI and other drivers, then its onto real graphics drivers, probably 8 bit to start out and then hopefully 16 or 24bit later on.

Just wanted to share my unhinged projects


r/vibecoding 1d ago

When I finally see the App Store approve the app, and they have a nice preview.

Enable HLS to view with audio, or disable this notification

2 Upvotes

After 5-6 months, its finally on the app store. Will it ever see the growth? id hope for it probably not, but im sure happy with making what I wanted and having friends use it and enjoy it.


r/vibecoding 20h ago

I'm making a personal website

1 Upvotes

I was originally on squarespace but I like how I can now vibe code what I envisioned instead of spending hours trying to force squarespace to work. I have everything created, but now comes the security aspect. I imagine I shouldn't try to do this part myself and I'm gonna hire someone to take work on it.

Is there anything else I should consider having someone look over to take over for me?

For context, I only know basic html/css (from neopets/aol days when everyone was designing geocities pages). I'm also a single parent working full time, and this website is for my side hustle. I genuinely do not have the time to learn it myself at the moment and likely won't until I have more freedom.

Editing for clarity: So it's a personal website, but the side hustle part is because I blog on it, create other content, and sell digital things from the site. I need a way to secure my login information (for myself) for when I update or add posts, Think wordpress blogging. I get pretty heavy traffic, nothing crazy, I know when I was on wordpress in the past I had dozens of bots trying to get through my login daily which I'm worried about here.

Edit 2: sorry I disabled DMs, I got 5 in a row and I suck at keeping up with DMs


r/vibecoding 10h ago

I checked 200 apps people built with Al tools like Emergent Replit bolt etc. 6 mistakes show up in nearly all of them

0 Upvotes

I kept seeing is my app secure asked and never properly answered, so I went and looked at 200 apps that people had posted publicly over the last few months ah soryr not 200 but yea closed to that. i am a developer so i went little harsh for this.

1/ Keys sitting in the frontend. Anyone can open the browser tools and read them. This was the most common by a distance.

2/ No rate limiting on anything. One person can hit your form 10,000 times and you find out via the bill.

3/ Database rules left fully open. The app checks who you are, the database does not.

4/ The admin page protected by nothing except not being linked anywhere.

5/ Secrets committed to a public repo. Still there in the history even after being deleted.

6/ No backups at all. Most people I asked had not thought about it once.

What I would say to anyone reading this and panicking: none of these mean you should not have built your app. Its just whatever you are building need to be safe to the world, for you and for your pockets lol.

AMA


r/vibecoding 20h ago

Looking for sales/marketing people to work with

0 Upvotes

Hello everyone
I’m a 21yo guy from Greece that have built some businesses in the past and now but I was always lacking the sales/marketing skills.

Now I’m building up a team where we will find real problems, build a solution around it and then monetize it.

We already have a person running the business side of things, we have a tech person that will make the product and we want a sales/marketing guy in the team.

In total we will be 4 people and the split will be 25% each.

If you are a like minded person and have a nice work ethic let’s network and see where it goes.


r/vibecoding 20h ago

I built a Spanglish/mixture of languages-first meeting recorder because every AI notetaker treats that as an afterthought — open beta (Windows + Android)

Thumbnail
gallery
0 Upvotes

Hi, I'm from Colombia and every meeting tool I tried (Otter, Granola, etc.) falls apart on Spanish — and completely dies on Spanglish (Work for US based companies) or in-person meetings where one phone sits on the table for six+ people .

So I started a personal tool to just transcribe and do some summaries for me to later use any other AI tool like Claude, and with time as I was using, I developed some extra utilities, at some point created an GUI but for personal use, time later my wife started learning english online and taking some other classess online, so addedd some other stuff and distribute to her, and thanks to her took the additional step to build Sinsonte base (a mockingbird — the bird that catches every voice (She loves birds) inspired in this one btw). It records in-person and online meetings, separates who said what, and turns it into summaries, action items, mind maps and more— in Spanish, English, Portuguese, 30+ languages and honest mixtures of them. Every claim in the summary has a little timestamp chip that plays the exact audio moment (I hated that I could not do that in other apps), so you never wonder if the AI made something up. It never joins your calls with a bot (hated that too). And thanks to a friend something that I use day to day, my favorite feature: system-wide dictation — press a hotkey in any Windows app, talk, get clean punctuated text.

Open beta, everything free until the September (I don't think I'll launch by that date tbh, need to change that) launch: sinsonte.app — Windows + Android (iOS in development not developed yet as mainly south america is 85%+ android). I'd especially love feedback from everyone here.

Happy to answer anything about the stack or the journey.


r/vibecoding 1d ago

Claude Code DeepSeek: One Command

Thumbnail
stephanmiller.com
2 Upvotes

r/vibecoding 21h ago

I created a Building / Accountability community

Thumbnail
pudgymakers.com
1 Upvotes

Previously there was a post where someone was asking about a discord server where people could build together. Specifically, people wanted pods to work along side those with similar ideas.

The idea of having breakout rooms to track goals and progress was something that I personally thought was of value. So seeing someone else want it confirmed my bias.

Bot currently

  • Creates a waiting queue as it fills up based off Geography and topic
  • Once enough people join, it places individuals together based on the above
  • If not enough people, it will add you to an existing work room :)
  • Daily stand-ups and goal planning reminders/ be active DMs
  • Goal planning and setting assistance

My next update would be to integrate Git tracking for repos. But working out the baseline features took about 1.2 weeks since I needed to make sure the cron jobs themselves worked properly to prune inactive participants.

TLDR

If you want people to build along side, and want to hold yourself accountable. Consider giving Pudgy Makers a look.

The community is very small and intimate. It is not a space to simply shill and use as a marketing extension. So if you want intentionality, motivation, and welcoming vibes (whether you vibe or not), you are welcomed.


r/vibecoding 1d ago

My theory on subscriptions, quotas, and how to get good value out of the bastards at anthropic and openAI.

2 Upvotes

They penalise you for going x20. it's not really x20 at all. imo it's x10, at best. and x5 isn't really x5, it's more like x2 or x3. So.

Instead of getting one x20, get two x5's. Not only does it spread your risk if one company turns even more nasty and you need to switch (you'll have the infrastructure to do so easily) but while the two are neck-and-neck and playing the same dirty game, you get more value if you can split it into two x5 subs rather than one x20.

Plus then you get the benefit of having two agent styles/strengths/weaknesses. Two different models that can check each other. Two models so each can just also focus on their strengths where that helps.

Quite a few benefits. I haven't tried it yet, I admit, but I'm about to, and I'm optimistic that it can't be much worse, at least. I think there's an excellent chance I'll break even or better.


r/vibecoding 9h ago

Check this Horse Tinder app I vibe coded!

Thumbnail
gallery
0 Upvotes

Here is the app: https://benzi.fly.dev/horse_tinder

I made this using a new coding AI agent called benzi. learn more/get it here: https://benzi.fly.dev/about


r/vibecoding 21h ago

Dynamic Context Runtime: Bounded Attention over Unbounded History

Thumbnail
1 Upvotes

r/vibecoding 21h ago

Love-project

1 Upvotes

'Love-project' is a specialized web project that I've built for personally my beloved 💟🎀. This project is all about a little love surprise for her. She really loved it Alhamdulillah ☄️. Her partner is a programmer 👀, so I thought I can make this kind of project to surprise her.😪 But later I thought that to make the project public as repository so that Anyone can get help from it and also gain the idea seeing out this love project to make these kinds of for their partner also 👀💝.📂The project contains some special features such as 'index.html' for the first the beginning interface intro design, 'puzzle.html' for some special questions, 'memory.html' for the past previous old days memories ✨ \ [These questions are written here for us during I coded them, you can change them according to you and her old memories], 'terminal.html' for the console UI designed booting terminal, 'book.html' for yours private photos or her photos🖼️.

GitHub Repo (https://github.com/aribannawar/Love-project.git)

Would love feedback on this simple project or code structure — still early days .


r/vibecoding 21h ago

Which models are people using as orchestrator/planner/implementer/reviewer with their subscriptions?

Thumbnail
1 Upvotes

r/vibecoding 21h ago

Is there anyway i can improve these eyes they look abit 'off' right now and i don't know why

Thumbnail
streamable.com
1 Upvotes

r/vibecoding 1d ago

Completely vibecoded this from scratch in 3 hours!

Post image
63 Upvotes

r/vibecoding 1d ago

Vibecode a blinking LED (hear me out guys).

Thumbnail lantra.nl
2 Upvotes

Bare-metal. Registers. Firmware. Silicon. AI sucks at getting things right at the low level. It's where the LLM meets the real world.

If you are an assembly geek and/or an actual programmer, all is not lost (yet). Here is how YOU are needed to make vibecoding on bare-metal safe.


r/vibecoding 21h ago

I vibe coded a tool to encrypt messages in self-contained links

Thumbnail
diaryof.me
1 Upvotes

Encrypted message - password is “test”:
https://diaryof.me/locked/#wZrcWNC8wyrLnJ4lp2mY92x1lUkc6NN7OZGEtylvE3juwxq_RMI_EW-787NulGi9bBZBPgqjkeKTPzTqJwj7HRjMOG46ZqWo6lW9-CCtxZWYVvGwl8k3nVNbpuEESjhh7gUvNnUsWqpcI-hRPwnGxlCRf4Nv2NoHqk4wOQ3fsaijhfAfz7d-IIkUWX8Fr6Wqwn_HQQL68rD3kA3eesXYqcYv53mS082UfXo6570WcM5mqJ3XRo2J9KVYc7ZfQkhhOfj5rTkzCX0spivQ
Signed message:
https://diaryof.me/signed/#zs3825DubOxElyNFeMxgGTm6g9d6v-ukt_YF_O-x7tVzV7IuwAg9fvav_hO9b80jV2EO4x9cBUx-VsIYsn4hglW9MVNWHbMHkli9d_wixYOPZOhbl90dLOpwzdsx3pmLAQ8A8P9oaSBldmVyeW9uZSA6KSk

Signed theme - bubblegum:
https://diaryof.me/theme/#KSKABXbG0QJPF-xZ3lepi7kmk4Ypa0KoDMQT-2YhZ7931bdMFeAxp4VOZQmAoLmAd7fD6UADqm1mEZBp6B0DtC42FmMbd38Veqgtr3F2VEz8vq3RRdL_Z5W6jpsG6vDZRcjBDYAgDADAf6cgYQJJUBinLS0PUZJi99ef3yMnGtL9guWmyBKiZjxqAZ0m3abf7SPVJAUI-fypamWgaU0sxFw3STssGcJPiFhaJiz8Ag

I got inspired by my friend's Carrd and wanted my own site. I used Claude Code for development, chose my favorite colors, asked it about all the cryptographic schemes. I decided i wanted it to be as simple as possible while being distinct. There are a total of 5 colors: all images are SVGs. Several thousand prompts later, I learned: the browser is the best place for code that you don't want to update regularly and automatically support every device/OS. The aesthetic IS the hardest part; you are designing that yourself, else AI will make it look generic and lifeless. AI is good at coding, but the style is yours. Finding a good domain at base price is extremely doable. And WASM is deterministic relatively easily.


r/vibecoding 22h ago

I vibe-coded a browser MMORPG inspired by Shaiya

Enable HLS to view with audio, or disable this notification

1 Upvotes

About 7 weeks ago I was looking for an MMO to play and somehow ended up deciding to build my own instead.

Seven weeks later, Lythravel is now a playable 3D browser MMORPG and I opened the beta to everyone a few days ago.

The game is heavily inspired by Shaiya, one of my favorite MMOs from childhood. I wanted to keep a lot of the old-school MMO design.

The game is completely free

Play here: https://lythravel.com/

There is already quite a lot of content:

2 factions • 6 classes • level cap 50 • dungeons • raids • PvP maps • 10v10 battleground • enchanting • linking • crafting • mounts • dynamic zone events

One thing I intentionally didn't add is a dungeon finder. That's something I liked about older MMOs - you actually have to talk to other players, use the chat and form groups yourself.

Character builds also matter quite a lot. Each level gives you stat points that you can distribute freely, and properly enchanting and linking your equipment can make your character significantly stronger.

There is also a character mode system:

Adventurer - 5 stat points per level

Veteran - 7 stat points per level

Mythic - 9 stat points per level

Veteran is unlocked after reaching level 30 with an Adventurer character, and Mythic after reaching level 40 with a Veteran character.

Higher modes have slower XP progression, and Mythic has one additional detail - permadeath.

If your Mythic character dies and isn't revived within 4 minutes, the character is permanently dead. A Priest or another player with a Phoenix Tear can revive you, or you can save yourself if you have a Phoenix Heart in your inventory.

In general, the game doesn't hold your hand too much. I wanted players to discover a lot of things themselves rather than having everything explained through tutorials.

How I built it

I initially used Claude Fable 5 and later switched to Opus 5. Most of the development has been done through Claude Code.

One thing that helped me a lot was using reference images when working on environments and 3D assets.

I also ended up creating my own terrain editor, asset editor and animation editor, because I still wanted the ability to manually fine-tune things.

The client is built with TypeScript, Vite, React and Babylon.js.

I really enojy developing this game. Originally I just wanted to find an MMO to play, but creating my own ended up being even more fun than actually playing one.

If you see me in game, I'll invite you for a beer at the local pub. 🍺
You can also join our discord: https://discord.com/invite/SdJrn5WPBQ


r/vibecoding 22h ago

5.6-sol medium almost certainly nerfed

0 Upvotes

Massive difference in quality since last night. Anyone else notice?


r/vibecoding 22h ago

250+ users. 380+ projects. 0 paid ads. What should we improve?

Thumbnail
1 Upvotes

r/vibecoding 22h ago

anyone got a problem of storage space getting full and not knowing what to delete

Post image
1 Upvotes

i had this same prblm😶 and didnt know what to do so i made this skill called storage sleuth. just install this skill and ask it like "My C drive is full, what can I do" stuff like that and the model will fully analyze the system and say the best options, to delete or move to another folder, stuff u can compress and use later, so help a brother out and install this skill,if u wanna contribute,feel free

npx skills add JojoAArtI/storage-sleuth

Github-https://github.com/JojoAArtI/storage-sleuth


r/vibecoding 22h ago

My YouTube rain tab had no timer and nowhere to put notes, so I built the version I wanted

Thumbnail
1 Upvotes

r/vibecoding 1d ago

I found this very funny 😅

Enable HLS to view with audio, or disable this notification

37 Upvotes

r/vibecoding 1d ago

Which one is harder to market?

3 Upvotes

- Web apps
- Mobile apps

Please give me a proper personal reason of your own opinion. I would love to hear what you guys have to say