Quiz 5 Question 9 of 20

In a multi-agent system, Agent A generates a parseTimestamp() utility function in src/utils/time.ts, while Agent B independently generates a nearly identical formatTimestamp() function in src/helpers/dates.ts. Neither agent knew the other was generating similar code. This duplication leads to inconsistent behavior across the codebase. What mechanism should be added to the multi-agent system to detect and prevent this type of duplicated effort?

Select an answer to reveal the explanation.

Motivation