Working with an agent
Share one codebase between the agent and the editor.
Either side can pick up where the other left off:
- The agent reads
docs/agents.md, the rules for code the editor can edit. - The agent writes the animation, with an
idon each call. - You open the page, tune the timing, eases and values in the editor, and save your edits into the file.
- The agent reads the file again and sees your tuned values.
- A change the agent makes to the file shows up in the editor after the page reloads.
Divide the work
| Task | Best done by |
|---|---|
| Create animations, timelines, layouts and timeline children | The agent, since the editor cannot create them |
| Wire callbacks, events and scroll triggers | The agent |
| Tune durations, delays, eases and values by eye | You, in the editor |
| Adjust timing and overlap between timeline children | You, on the timeline |
| Refactor or move animation code | The agent |
Before you hand back to the agent
Save your edits first. Unsaved edits live only in your browser tab, so the agent cannot see them.