Trama is a tool that helps AI agents write code by visualizing software behavior as state machine diagrams. Users describe requirements in natural language, the agent asks clarifying questions, and Trama displays proposed changes as a visual map before code is generated, flagging discrepancies between code and design.