Blog

Refrag and AI

by Stefan Dorresteijn

Refrag and AI

AI has impacted the way companies and people work more than any other technology in the last couple of decades. Especially tech companies are changing rapidly, and Refrag is no exception. We’ve been experimenting with LLMs and self-built AI models over the last two years, and have started using both in a couple very specific ways. As Refrag’s CTO I believe it’s important to explain to our users how we’re using AI, and more importantly, how we are not using it.

As a CS coaching and improvement platform we see a few uniquely valuable opportunities to use AI to actively improve the way we communicate with our users, but we also see pitfalls; there are many ways we could use AI to accidentally lower the value of Refrag Coach and we’ve been very diligent in making sure we don’t let that happen. Today I want to explain to you how and why we do those things.

Refrag Coach and AI

Let’s dive into Refrag Coach, and then especially our statistical analysis functionality. Whenever one of our users plays a CS match, we download the demo of that game, parse it using our custom demo parsing pipeline and calculate stats for them. Deciding upon which stats we calculate and how those stats are calculated is done by our team of CS experts (including professional players, high-level amateurs and low level CS players who know what they want in a stats platform), but we often leave the implementation – the writing of code – to an AI model. Before this functionality is seen by users, it’s always first reviewed by the same team, as well as our development team.

We believe it’s incredibly important that the stats we show our users are as accurate as possible. Let me give you an example. We’ve recently changed what “counter-strafe %” means on Refrag. Previously it was simply the % of shots you took while at a low enough velocity to allow your weapon to be fully accurate. Now we actually look at whether you tried to counter-strafe (meaning you pressed a movement button opposite from where you were moving towards) and whether you successfully did that long enough to get to that lower velocity.

At the same time, we introduced a “velocity control” stat, which is a version of the old counter-strafe stat with the new one mixed in. The idea to do this did not come from an AI, it came from the developer who built the new demo processing pipeline, was reviewed and discussed by the rest of the team, and eventually implemented. AI was responsible for code review, and writing tooltips to explain this new stat to our users. We knew that the precision required to implement this feature could not be left to an AI, but that that same AI could help us explain it to users. This is how we approach every feature where AI could be used. We first talk about a feature with our team of experts, then figure out where AI can and can’t be used, and only use it wherever it can’t do any harm.

Secondly, we have our Refrag Coach Feedback system, which we recently introduced. This is one of our bolder uses of AI, but also a great example of how we approach it.

The Coach Feedback system exists of 3 systems; the demo system that detects and stores duels, utility usage and a few other events, the decision analysis system which takes those events and calculates which decisions you take that better players don’t and/or finds decisions where you make mistakes in execution. Lastly we have the feedback generator. This is where we take the analysis and turn it into language.

AI is used in 3 parts of this system. First, we use our impact score system to find which events had the largest impact on your chances of winning a round. This impact score system relies on our self-built machine learning model. Our analysis, just like in our statistical work, is entirely designed by our experts so results are accurate and not AI-hallucinated (we notice that other platforms have built this functionality by simply throwing stats at an LLM instead).

Lastly, we turn those decisions into human-readable language by providing an LLM very strict guidelines on how to use the data we give it so it can return accurate human-readable language and advice. This is then checked to see if it hallucinated anything or simplified stats that shouldn’t be, again by our self-built systems. We believe this allows us to give users valuable, readable feedback without running the risk of giving users nonsensical, incorrect information.

Feature development and AI

Now let’s look at our feature development habits, and our use of AI. This is the one that feels least relevant to our users, but actually ensures that the features we do launch are free from serious bugs (mostly) and that our team is happy working for Refrag.

Refrag has been around for 8 years now, and the thing we are proudest of building in that time is our team. We have some of the most skilled, best human beings I’ve ever worked with. This is also why we use AI quite a lot in our product development cycles. We feel that we’re able to offload a lot of our development work to AI, because we have very senior developers who both manage the work being done, and reviews it when it’s ready to go out to our users. Nothing we build ever goes live without a human first making sure it’s at the level we expect; as well as testing it for security, privacy and user experience issues.

The same is true for our UX and UI design cycles. As you may have seen, we’ve recently released a new user interface, landing page and in-game menu. All of these were designed and developed with an AI agent in some form. Sometimes we used agents to provide us with ideas that we then implemented, sometimes we used it to turn our ideas into a prototype, and sometimes it only changed colors and fonts. For all of these, we’ve had our UX/UI designer guide, influence, review and eventually accept or reject the changes being made. Our use of AI here is purely about efficiency, allowing the people we have to focus more on the work they enjoy, and less on the grunt work that AI is good at doing without us.

AI in Refrag’s Marketing

Lastly, I wanted to mention marketing. Marketing is a sensitive area for us, where AI doesn’t get to do much. We believe in paying writers (which is why our blog is entirely human written, including this post), graphic designers, and marketing experts to do the type of marketing we like; honest, clear, and kind marketing. While AI is being used to build tools and dashboards for our marketing team, we refuse to use it to replace our designers or writers; AI makes average-level product. This is often good enough for code, but not good enough for this type of work.


Hopefully I’ve sketched a clear view of how we use AI at Refrag, and made it clear why we use it. We care a lot about providing users with the best possible platform, while keeping our team employed and happy to do the work they chose to do for a living.

We believe there’s definite value in AI but that caution is required to make sure it’s not used lazily and doesn’t end up giving our users a worse experience, or incorrect information. As a company we have used our relationships with professional CS players like Jonathan “EliGE” Jablonowski, and Jacob “Pimp” Winneche to prove that our product can be trusted by our users. We continue to ask our users for this trust as we further develop our platform into new directions, and that requires us respecting our users enough to make sure that what we’re telling them is true and that their data is safe.