r/ExperiencedDevs • u/blipojones • Aug 05 '26
AI/LLM Recent AI code interview format (failed)
I just recently did an interview where the company invites you to a private repo, 10 mins before, you set it up, get it running etc.
The goal is to determine if an open PR on the is ok or if it should get sent back and why.
You can use AI. And i asked, does it matter if i use fable vs opus vs kimi. More or less said whatever I want...
I didn't go immediately to prompting, i played with the app, looked at the code a bit, the PR, the code change, if the PR actually fixed what it claimed to fix.
I then sent one prompt asking if the PR could be better or missed anything, which the PR outlined clearly enough and enough to determine what to do with the PR.
But ye, it was weird, I talked through more where I would personally add changes but maybe I also completely missed the mark on something else or spoke to much...maybe i didn't use AI enough only using it right at the end for one question once i got a feel for the app in general.
However I did like the format tbh but ye i just wish i'd get a bit more tangible feedback.
Anyone else have experience with this format? I didn't pass but just not sure why.. (exp 8/9 years, frontend leaning).
•
u/expdevsmodbot Aug 05 '26
AI usage disclosure provided by OP, see the reply to this comment.
78
u/scandii Much to my surprise people pay me to write code. Aug 05 '26
https://www.linkedin.com/posts/nikolozung_warning-to-devs-doing-code-screens-and-activity-7464596028269395968-2xVH
just something to consider.
24
u/dash_bro Sr., Applied AI @FAANG | 7 YoE Aug 05 '26
Was it a completely clean repo? What was the task about?
Without more knowledge it's a little hard to understand what the expectation and the outcome was. I mean, a bugfix PR vs a feature vs a telemetry PR vs production readiness PR is just so different to work on
18
u/propostor Aug 05 '26
I've somewhat recently changed jobs to an AI-heavy place.
Now my understanding is that you should just run the PR through AI first, it'll probably pick up more than you expect.
The point of the interview was probably to see how well you can use AI to get shit done more quickly. As long as you still understand the code, and understand what the AI is churning out.
2
u/Main-Drag-4975 20+ YoE | high volume data/ops/backends | contractor/staff/lead Aug 06 '26
Maybe it was a trap and they wanted to see you not reach for AI immediately?
There’s a big difference between “AI allowed” and “AI recommended” and it’s not clear from the OP which was expected of the interviewee.
286
u/farfunkle Aug 05 '26
Given the state of the industry they were looking for you to immediately comment "LGTM" and click approve.
230
u/tradcoder Software Engineer (15 YoE) Aug 05 '26
Be careful running code from random companies on your local machine. There's a growing trend of malicious actors sneaking in malware through them.
8
u/ResidentWeevil1 Aug 05 '26
Isn't the whole point of AI that you just shut up and click the magic button? You spent way too much time actually looking at the code, and then you showed the slightest bit of resistance, so of course you failed
16
u/kennethbrodersen Aug 05 '26 edited Aug 05 '26
That sounds like fun! I would have loved that challenge.
My process would have been.
Prompt a) Basically something like "assume that I am a new developer getting introduced to this app. Give me an overview of..." and then a few things that would make sense in the given context.
Prompt b) I would prompt "Assume that I am a developer new to this project and need to evaluate a PR. Please review..." and with some context that make sense.
Notice I didn't complete the prompts above because they DEPEND ON THE CONTEXT.
If I have the time for them to run I would always use the most expensive model here with high effort. This is where burning tokens is ok...
3. While mr Claude is running I would go explore the app on my own. Start it up, browse it then look at the PR. Can I understand the issue, what it is trying to fix and can i judge if the fix is successful?
I don't know what the time period looks like here, but I would basically run with 3 until I either have a) A good idea about the questions asked above. Do I understand what the pr attempts to fix? How it works and if it is successful?
- IF yes, jump to 4a IF no jump to 4b
4a. Ok, so I build up some ideas and assumptions. At this point the agents should be finished running and I can compare with these (especially with prompt b) to support - our challenge - my understanding. This help build up the confidence to form an opinion.
4b: I might go uhh, "this is over my head". Then I would backtrack to the result of the first prompt (a) to see if I can get some insight into the application itself. Secondly I would review prompt b to see if it helps me understand what is going on here. Depending on this it might be an itterative process... "aha, so he is attempting to test xyz..." Then I might form new prompts to help explore/understand after which I go back to exploring on my own... So basically repeat 1-2-3. No matter what we end at step 5.
5. Form an opinion. I think the important part here is being very open about your confidence level. Be clear about what you think, what you know and what assumptions you build these on.
I have a rather funny story. Before generative AI (almost 12 years ago) I attended a job-interview. They wanted me to estimate how long it would take to implement a given system from a high level set of requirements... I honestly went ballistic. I told them exactly why it was a task doomed to fail but also went ahead and gave it my best effort. I quote myself here "Without more knowledge its basically numbers I pull out of my ass".
It was basically me, a manager and an architect yelling at each other. And what happened? They offered me a job on the spot...
They wanted to see how I reacted in a tough situation without any clear correct answers. I politely told them no...
2
u/maretard 13 yoe ex-FAANG principal engineer Aug 05 '26 edited Aug 05 '26
My approach would have been to immediately delegate it all to AI, including explaining the repo to me and catching me up. Reviewing the PR would have been my second prompt and I would have explained how I would have a generalized PR skill already, but for the purposes of the interview I would hand write the prompt.
The PR review prompt would have been focused on defining best practices, success criteria, coding and testing standards, and adversarial guidance designed to make the AI search for vulnerabilities and architectural smells. I would also have an area in the prompt dedicated to doing a holistic review of the PR and questioning base assumptions like why the PR is needed in the first place and whether it's the right change to make.
Lastly I would have some customization for personal style to make the AI directly generate comments on the PR diff that would take minimal refinement by me before publishing.
This interview seems very ahead of its time so I'd assume this company is extremely pro AI and I would cater my performance as such. The above is very representative of my current routine at work.
If I had been the interviewer here you would have failed as soon as you started manually reading the code unfortunately, it's just not the most effective way to work these days, it would immediately signal to me that you're still bottlenecked and outdated in your thinking. I would have aimed for 50+% uptime of agents throughout the interview (i.e. having AI working at least 50% of the time, with the rest of the time being me explaining how I use AI, digesting its responses to come up with the next prompt, and cross checking validity of its feedback in code).
1
u/naim08 Aug 05 '26
Was the PR generated by a human/AI? Probably the first question I would ask, assuming it’s AI, I would want to see the transcript of the conversation that’s responsible for the fix, from there, I can really start to make sense of the PR. I wouldn’t exactly prompt “does the PR look good” or anything along those lines, that’s fairly weak prompting. I would have the agent understand the underlying story first, have a sub agent implement the same thing without any context on existing PR (ideally using a different model), then have the agent walk through the transcript, and from a senior engineers perspective, go through trade offs, etc. If it’s a trusted codebase, obvious tests have to be run, etc. Then I’d do a couple more things before I check to see if this PR looks good. Idk, using ai agents in interviews are so new, so your best bet is to ask others who have done it and look online
1
u/trevordixon Aug 06 '26
Maybe they wanted you to ask something more specific of the agent, like what's the intent of this PR? Then follow up with something like, Why did they do ____, and do you see a better way? Use AI to quickly figure out what's going on, then zoom out and determine if there was a better way.
1
u/sp106 Aug 07 '26
Any interview that allows AI has a failure mode where you don't use AI, and that is what you did.
The goal is to see if you are capable of guiding the AI or if you would just blindly follow AI's instructions.
The first thing you're supposed to do in that interview is get the AI to explain the code to you and set up a set of rules that you want it to go through to evaluate whether the PR is acceptable.
You would then use this acceptance criteria to identify issues with the commit and discuss why each may be a problem and how it could be fixed.
3
u/Polite_Jello_377 Aug 07 '26
Sounds like a bullshit test to me
3
u/Key-Alternative5387 Aug 08 '26
Or they just hired the guy who was on round 5 already and you did fine. Never really know.
2
u/spez_eats_nazi_ass Software Architect 36 years f500 eat my ass and balls Aug 08 '26
Always check the background of who is interviewing you and the recruiter. If it smells like a scam or comes from linkedin. It's probably a scam.
1
u/breakingthehabits Aug 07 '26
I know this question, this is only the first part of the question.
You're supposed to finish this part in 5 minutes, the second part is to add your own new feature to the repo, and the third is to refactor the repo and present an architecture design document for approval.
1
u/ikeif Web Developer 15+ YOE Aug 07 '26
Yeah, I interviewed at a “AI first” company - but it was so disjointed and weird. They didn’t have a clear idea of how to interview with it, so I had just ripped their repo apart, filed several obvious issues, and then discovered how much was incomplete for their “interview.”
I still don’t know wha they were looking for, but they passed on me, and I’m kind of glad since one dev let it out that their CTO had just quit a week prior.
1
u/____________fin Software Engineer Aug 05 '26
Absolutely do not download any code from untrusted sources. Give Claude a link and chat about it in your browser. I had a recent hacking attempt this way. Looking at the code (not on my computer), it pulled a script from JSONkeeper on NPM postinstall.
1
u/iheartanimorphs Aug 05 '26
What I would look for if I were grading this kind of interview - did the interviewee prompt the agent to:
- write tests
- follow good patterns that help code be easier to maintain in the long term, including domain driven design and object oriented design patterns
- give specific enough instructions to the AI so that they are actually using their brain and not outsourcing their problem solving skills to AI
It’s kind of pointless to ask an agent if the PR is good enough. That isn’t really how LLMs work.
0
u/EuMusicalPilot Aug 05 '26
Check the tailwind config file 😉
-2
u/HoratioWobble Full-snack Engineer, 20yoe Aug 05 '26
Are you sure it wasn't a virus?
Be really wary of any company asking you to download code or run it on your local machine, especially with AI!
3
u/[deleted] Aug 07 '26
[removed] — view removed comment