Kyle Fox

35.2K posts

Kyle Fox banner
Kyle Fox

Kyle Fox

@kylefox

Probably hacking on a Rails app. 🏋🏻‍♂️🎸☕️💻

Edmonton, Alberta, Canada Katılım Haziran 2007
617 Takip Edilen3.3K Takipçiler
Sabitlenmiş Tweet
Kyle Fox
Kyle Fox@kylefox·
There are 3 personalities required to start a business: 1) Builder 🔨 2) Seller 💵 3) Organizer 👉 (Doesn't need to be 3 different people)
English
6
31
136
0
Kyle Fox
Kyle Fox@kylefox·
Just overheard my wife say “I’m not attracted to Will Forte at all” which is reassuring to hear.
English
0
0
3
150
Kyle Fox
Kyle Fox@kylefox·
@bradgessler I chose the first option, but I typically don't add `account_id` everywhere unless denormalizing for performance. I scope all queries off the tenant (Current.account.projects) to the point that querying models directly (Project.where) becomes an anti-pattern in the codebase.
English
0
0
0
34
Brad Gessler
Brad Gessler@bradgessler·
Curious how most people deal with multi-tenancy in Rails apps, particularly from those who have done it so many times they feel they've unlocked a formula for it. It's def trade-offs all the way down.
English
15
0
4
1.8K
Kyle Fox
Kyle Fox@kylefox·
@erick_tmr @claudeai Unless you’re @levelsio ! 😅
@levelsio@levelsio

✨ A dream I had finally came true: I can now chat directly with my sites to build any feature or fix any bug just via Telegram I've been playing with OpenClaw for 3 weeks now and it's great but I was always too scared to run it on any production server And I was right a bit as @marckohlbrugge was able to hack it by social engineering and acting as if it was me, and with enough tries it believed him, and was able to modify the server, change SSH keys etc. of course I had it isolated properly on its own VPS and it didn't touch anything sensitive (as it should!) Marc then reported that bug to @steipete who patched it fast But I wanted to try something more basic and simple, and I think maybe more secure: to just connect Claude Code on my server to Telegram which would be hard locked to only messages from me So I installed claude-code-telegram by @RichardAtCT on the server and run it as a system daemon and it works really well The cool thing is that I was already using Telegram for server errors like this: > Photo AI - ❌ Random credits giveaway failed (Attempt 30/30) with an exception: SQLSTATE[HY000]: General error: 5 database is locked So now I can just reply, "Ok fix this", and Claude Code on the server in production will try (and probably succeed) in fixing it In the video below I asked it to make show [🌳 Parks ] on the map by default on load, it did that, then I reloaded the page and it instantly worked One thing it still needs is sending actual messages while it's doing stuff which OpenClaw does really well, it's annoying to just wait while it says "Working..." but that's probably next

English
0
0
0
30
Erick Takeshi
Erick Takeshi@erick_tmr·
@kylefox @claudeai Could be 😄 That's also why we are far from having autonomous code agents, there's no way to run production code professionally without human review
English
1
0
0
32
Kyle Fox
Kyle Fox@kylefox·
Claude Code added this validation code to a Rails CONTROLLER. Opus 4.6, high-effort, 1M context. WTF has Anthropic done to @claudeai? 😭
Kyle Fox tweet media
English
15
1
54
20.4K
Kyle Fox
Kyle Fox@kylefox·
@erick_tmr @claudeai Yes, I understand the code is probabilistically generated. And when it suddenly starts consistently generating dramatically terrible results over the course of weeks when no other variable has significantly changed, I’m inclined to suspect the black box is the problem.
English
1
0
1
27
Erick Takeshi
Erick Takeshi@erick_tmr·
@kylefox @claudeai You do realize that LLM models are not deterministic right? A lot of things could have influenced that, I do believe that you can achieve way better code than that, but also its a fancier auto complete machine, there's no real understanding 😗
English
1
0
0
37
Kyle Fox
Kyle Fox@kylefox·
@jakeonrails @claudeai Probably the last ~4 weeks. I’ve shipped thousands of lines of code with Claude over the last 6+ months and I’ve never seen it do the absurd stuff it’s done in the last few weeks.
English
1
0
0
192
Jake Moffatt
Jake Moffatt@jakeonrails·
@kylefox @claudeai When did it get bad for you? Just the start of this week I told a colleague I felt like it was way off
English
1
0
2
321
Kyle Fox
Kyle Fox@kylefox·
@erick_tmr @claudeai I told it to add validations, in fact I even specified model validations. How come I’ve shipped thousands of lines of code over the last 6 months and not once has Claude used such an obvious anti-pattern. Sometimes it IS the agent’s fault.
English
1
0
0
205
Erick Takeshi
Erick Takeshi@erick_tmr·
@kylefox @claudeai Now show us the prompt that generated this 😅😅😅 The result is 100% correlated with the input given
English
1
0
0
225
Kyle Fox
Kyle Fox@kylefox·
@rodloboz I can guarantee we don’t have any code like this in our codebase 😳 I like the idea of having a parallel session doing a “real-time” review though! I’m going to try that 👍
English
0
0
1
51
Rui Freitas
Rui Freitas@rodloboz·
I think AI agents are great picking up the patterns in a codebase. That being said, when one pattern that I've recently been enjoying is after the main work is done spin another Claude session to code review what's done, and then go back and forth between both session with code review feedback and address it prompts
Kyle Fox@kylefox

Claude Code added this validation code to a Rails CONTROLLER. Opus 4.6, high-effort, 1M context. WTF has Anthropic done to @claudeai? 😭

English
1
0
0
101
Kyle Fox
Kyle Fox@kylefox·
@nateberkopec @claudeai That’s a good point, never thought of it that way. That said, I’ve never really seen this kind of poor output due to context / compacting 🤔 I usually see it forgetting requirements or decisions, not implementing total anti-patterns that exist nowhere in our codebase.
English
1
0
0
361
Nate Berkopec
Nate Berkopec@nateberkopec·
@kylefox @claudeai so, ~100% deep into the old context window. I suspect these 1m context windows are at least partly just the model providers feeling like they _have_ to show progress. just because they say you can use a million tokens doesn't mean you should.
English
2
0
6
417
Kyle Fox
Kyle Fox@kylefox·
@nateberkopec @claudeai I think was around 20%-30% at this point. I specifically used the 1M model because I knew it would likely be a long / complex session.
English
1
0
0
1K
Kyle Fox
Kyle Fox@kylefox·
@inazarova @claudeai But why have I not needed this for the last 6 months and thousands of lines of nice Rails code Claude has shipped for me previously? Why in the last month has it started sneaking in terrible code?
English
6
0
6
1.5K
Kyle Fox
Kyle Fox@kylefox·
@kanniball @claudeai Cool, I'll check it out. But I wonder why this behavior has started recently (~4 weeks) when for months I've shipped thousands of lines of code without issues like this 🤷🏻‍♂️
English
1
0
0
866
Kyle Fox
Kyle Fox@kylefox·
@jordanyeo Damn. We've put a ton of effort into optimizing ours and the fastest I got them to run was ~10 minutes on my M5 😭
English
0
0
0
17
jordanyeo
jordanyeo@jordanyeo·
@kylefox Running ci locally and then signing off on GitHub has drastically sped us up! Parallel rspec, and an hour of Claude performance tuning our tests means <2 min to run!
English
1
0
0
23
Kyle Fox
Kyle Fox@kylefox·
Hot take: don't run your entire test suite as part of your CI & deployment pipeline. Only tests related to *critical* system functionality should block deployments. All other tests can run nightly to catch non-critical regressions. Failures enter your bug-triage process.
English
2
0
4
150
Kyle Fox
Kyle Fox@kylefox·
@chriskottom Yeah, I now understand what "belt and suspenders" means and it does make sense in this context ... but come on, the only people who say that in the real world are old grandpas *actually* named Claude.
English
0
0
0
19
Chris Kottom
Chris Kottom@chriskottom·
@kylefox Would be nice if Claude could take a hint now and then from devs with 20 years experience in Rails rather than getting cute. It’s like, dude, you’re only like 3 years old.
English
1
0
1
31
Kyle Fox
Kyle Fox@kylefox·
Is "belt and suspenders" the new "You're absolutely right"?? I have never heard this phrase in my life, but Claude Code dropped it on me twice in the last 24 hours 🤨
Kyle Fox tweet mediaKyle Fox tweet media
English
2
0
1
277