Facebook has built an bogus intelligence tool to help programmers patch buggy code. It’s called SapFix, and it’s currently being used internally to automatically detect anomalies in code and advance accordant fixes to coders.

SapFix has already helped the aggregation with aircraft more robust code for its Android app. Facebook said at its Scale engineering appointment that it will eventually roll out the tool to the developer community. 

In the accepted state, SapFix works on fixing the bugs spotted by Sapienz – Facebook’s able automatic software testing tool. However, SapFix will be able to work independently.


To fix a bug, it either fully or partly reverts the code that caused it. To handle more circuitous bugs, it either picks a arrangement from the ability base of past, fixes or makes small changes until the bug is fixed. SapFix creates multiple fixes and tests them adjoin three parameters:

  • Are there accumulation errors?
  • Does the crash persist?
  • Does the fix acquaint new crashes?

Once the tool picks a fix, it sends it to engineers for review and acknowledgment process.

The aggregation said that to its knowledge, this marks the first time that a machine-generated fix — with automatic end-to-end testing and repair — has been deployed into a codebase of Facebook’s scale.

Read next: Trending tools: 10 ways to take advantage of new social media functionalities