The Autonomous Coder that Never Makes the Same Mistake Twice.
AI Coding Agents are amnesiacs. If they fail to solve a bug, they often retry the exact same solution in the next session, wasting tokens and time.
S.C.A.R. implements Loop 10 (Memory Anvil). It maintains a persistent JSON file of "Traumas" (failures). Before writing any code, it consults this file to ensure it avoids previously known bad paths.
from scar.agent import ScarAgent
agent = ScarAgent()
# If the agent fails:
agent.report_failure("task", "bad_code()", "Error: Function not found")
# Next time, the agent knows better.