Skip to content

Agent: models can create and install themes (#488) - #495

Open
MopigamesYT wants to merge 3 commits into
devfrom
feat/488-agent-themes
Open

MopigamesYT wants to merge 3 commits into
devfrom
feat/488-agent-themes

Conversation

@MopigamesYT

Copy link
Copy Markdown
Member

Closes #488

Summary

The agent can now read the theme format on demand, write a theme (and its shader) into the themes folder, and apply it, with errors in plain words.

Screenshots

None: no visual change, the tool is used by the model.

Technical details

  • settings tool gets two actions: theme_format (returns internal/palette/theme_format.md, embedded, ~50 lines, only loaded when asked) and theme_write (name, TOML, optional GLSL). No new tool, so no extra tool definition per chat.
  • palette.CheckThemeFile parses like 1loop does, then checks the shader (no #version, has main, sets gl_FragColor, no redeclared uniforms) and plain file names. Errors are returned to the agent as sentences.
  • Saving asks the user's approval whatever the mode; applying is the existing general.theme = file:<name>.
  • Blur and iMouse (Settings: themes can blur the sidebar, panel, composer, headers, menus and dialogs; shaders get iMouse (#464) #472) are not merged, so not in the reference; per-project binding stays the user's.
  • Tests: palette (CheckThemeFile), agent, settings; gofmt, vet, build clean.

Assisted-by: claude-sonnet-5-5 low

🤖 Generated with Claude Code

@MopigamesYT MopigamesYT added enhancement New feature or request desktop Desktop app (Linux, Windows) agent Agent harness, tools, memory labels Nov 17, 2026
The settings tool gets a theme_format action that returns the theme file reference on demand, and a theme_write action that validates a theme and its shader and saves them to the themes folder, with errors in plain words.
Themes: a theme can be one zip file with its shaders, fonts and licence (#499)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Agent harness, tools, memory desktop Desktop app (Linux, Windows) enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants