# SleekByte 3.0: Snippets on Any Website and an AI Assistant

SleekByte 3.0 is a major release built on the new shared foundation of every
SleekWP plugin. Your CSS, SCSS and JavaScript snippets can now load on other
websites, an assistant in the workspace writes snippets from a description, and
every PHP file Byte writes is guarded against direct requests.

## Snippets on other websites

CSS, SCSS and JavaScript snippets load on any other website through one script
tag. A public key from the workspace's **Public keys** settings decides which
sites may load them, and `external` in a snippet's `snippet.json` assigns the
snippet to those sites and limits it to the pages its URL path patterns name. A
saved SCSS file is compiled at once. [Other sites](/docs/byte/snippets/external-sites.md)
in the docs shows the setup.

## An assistant in the workspace

The new [assistant](/docs/byte/ai/chat.md) writes, edits and enables snippets
from a description, using the AI provider keys in **Settings**. It asks before
it writes a file, creates a snippet or enables one.

It replaces the built-in AI chat of 2.0, which is retired together with its
Claude Code and Codex terminal and chat sharing. With SleekAI installed, its
Agent works on any page. API keys saved in the earlier chat move to Settings
once.

## Safer by default

- Every PHP file Byte writes, and on updating every PHP file already in
  `uploads/sleek-byte`, starts with `defined('ABSPATH') || exit;`, so a snippet
  requested by its URL runs nothing on servers that ignore Byte's `.htaccess`,
  such as nginx.
- On a network only network administrators edit snippets, and on a single site
  administrators who may post unfiltered HTML.
- A snippet whose `snippet.json` is not valid JSON no longer runs with default
  settings; it waits until the file is fixed.
- The standalone recovery editor is gone. [Safe mode](/docs/byte/snippets/errors.md)
  recovers a site a snippet broke: `?sleek-byte-safe-mode=1` keeps it on for an
  hour of your own requests, the workspace and its preview included.

## Faster and more precise

Snippets load from a saved list instead of reading every snippet folder on each
request, and Byte's code loads only where it works. Browser conditions now tell
Edge, Opera and Samsung Internet apart from Chrome, and Chrome and Firefox on
iOS from Safari. Conditions on admin and block editor assets work again, and
day-of-week, time-of-day and post ID lists match as they should.

## A rebuilt workspace

- A rebuilt administration application.
- A **Docs** page after License holds the documentation inside the workspace.
- **Settings** holds the AI provider keys, shared with every SleekWP plugin on
  the site.
- A light, dark and system theme selector in the header replaces the
  Appearance page.

## Before you update

SleekByte 3.0 requires **PHP 8.2 and WordPress 6.9**. A site below either keeps
its current release, so the updater never moves it. Your snippets keep running
while the update moves Byte's data, and plugins exported before this release
keep their earlier loader until you export them again. As with any major
release, back up your database and files first, because downgrading after the
migration is not supported.

The full list of changes is in the [changelog](/byte/changelog/), and the
[SleekByte docs](/docs/byte.md) cover every feature.
