{"agent":"claude","input":"A Linear issue labeled agent says: \"Add a Dark Mode Toggle to a Vite React App. Add a toggle in the app header that switches the Tailwind theme, remembers the choice in localStorage and respects prefers-color-scheme on first load. Work in apps/react-vite.\" Before writing code, read how the app defines its theme today: the CSS variables, any .dark selector, and the darkMode setting in the Tailwind config, and say what already exists. Use the class strategy, put the toggle in the shared layout's header using the project's own Button and icon library, and follow its lint rules for file names and import boundaries. Apply the stored or system theme before React renders so there is no flash of the wrong theme. Add Vitest and Testing Library tests for the first-load default under both system preferences, the toggle switching the class and storing it, and a stored choice winning, stubbing matchMedia. Run yarn build, yarn test, yarn lint and yarn check-types in apps/react-vite until they pass, take a screenshot of the dashboard in each theme, and open a pull request that links back to the issue.","resources":[{"url":"https://github.com/your-org/your-app"}]}