Skip to content

feat(brand): replace the Cortex icon with a Möbius ouroboros mark - #572

Merged
dovvnloading merged 1 commit into
mainfrom
feat/cortex-mobius-mark
Nov 23, 2026
Merged

dovvnloading merged 1 commit into
mainfrom
feat/cortex-mobius-mark

Conversation

@dovvnloading

Copy link
Copy Markdown
Owner

What changes

Cortex gets a new icon and brand mark. One strip, paper on one face and copper on the other, makes a single half-twist and lays its end over its own beginning. It is a Möbius band that closes like an ouroboros, and its loop reads as a speech bubble.

The same file appears everywhere the icon does:

  • the window, taskbar and title bar (assets/cortex.ico);
  • the browser tab, the sidebar imprint and the onboarding card (frontend/public/cortex.svg);
  • the README header.

Why

The previous icon was a folded orange aperture with a light dot. It had no idea behind it that related to the product, and it shipped only 9 frames. Windows asks for 30, 36, 60, 72, 80 and 96 px at 125–300% display scale, so the taskbar on a typical 125% or 150% laptop was resampling a neighbouring frame.

Research behind it

  • Platform rules. Microsoft's Windows 11 app-icon guidance was the baseline: a single metaphor built from simple forms, a distinctive silhouette, minimal detail at small sizes, subtle gradients lit from the top left, and enough contrast on both light and dark taskbars. The size table runs from 16 to 256 px across scale factors.

  • The category. I looked at the marks of current AI products so this one avoids their common tropes: sparkles and bursts, knots, gradient ribbons, brains and node graphs, stacked bars.

  • Routes that were explored and rejected:

    • folded-path monograms read as letters;
    • a walnut ("cortex" is Latin for shell) became a coffee bean at 16 px;
    • a lantern read as a generic object;
    • a flat tapered loop read as a refresh arrow.

    The mark needed depth to escape UI-glyph territory, which led to the Möbius band.

The idea

  • Self-reference. A language model reads its own output back as context. Code loops and recurses, and the REPL feeds results back in. The ouroboros has always stood for that.
  • Mathematics. A Möbius band is the simplest strange loop: one trip around brings you back on the other face.
  • Language and computation. The paper face is the page and the copper face is the machine. The twist turns one into the other.
  • Chat. The closed loop with a point at its lower left reads as a speech bubble.

The palette comes from the app itself: the warm plate of the archive cover, paper close to the light theme's ground, and the copper accent.

How it is built

  • Generated from geometry, not drawn by hand. tools/cortex_mark.py draws the mark from a parametric Möbius surface. The half-width grows along the strip, the strip runs 26° past a full turn so its end overlaps its start, and it is rotated into a three-quarter view and projected. Each run of the strip takes the colour of the face the viewer sees, and outlines are simplified with Ramer–Douglas–Peucker. The result is an 11.8 KB SVG with one continuous shape per face, so there are no seams.
  • Small sizes are hinted. The SVG holds a second, bolder drawing on a full-bleed plate, so edges land on whole pixels. CSS media queries inside the SVG select it at 36 px and below. Ruled lines on the paper face appear from 96 px. Renderers that ignore CSS fall back to the full drawing only, because the small drawing and the rules are hidden by presentation attributes.
  • tools/generate_cortex_icons.cjs now writes 15 PNG frames: 16, 20, 24, 30, 32, 36, 40, 48, 60, 64, 72, 80, 96, 128 and 256. Rasterising each size at its own viewport makes the media queries choose the right drawing per frame.
  • tests/test_cortex_mark.py checks three things: the committed SVG is exactly what the generator produces, the fallback shows only one drawing, and the ICO has an exact 32-bit PNG frame for every shell size.

To change the mark, run python tools/cortex_mark.py, then npm run icons from frontend/.

Checks

  • python -m ruff check tools/cortex_mark.py tests/test_cortex_mark.py: passed.
  • python -m mypy tools/cortex_mark.py: no issues.
  • python -m pytest -q tests/test_cortex_mark.py tests/test_launcher.py::test_frontend_public_icon_matches_canonical_asset: 4 passed.
  • Pre-push quick tier (scripts/check.ps1 -Tier quick): all 12 checks passed in 552 s. That covers the dependency pins and lockfiles, ruff, workflow lint, mypy, backend pytest, harness contracts, the artifact-boundary review, API contracts, tsc, eslint and vitest.
  • Visual check in the real UI, using the staged showcase server (tools/screenshots/showcase_server.py):
    • the sidebar imprint at 19 px renders the small drawing;
    • the onboarding mark at 38 px renders the full drawing.
  • ICO frames were decoded one by one and inspected on dark and light grounds at 1:1 and zoomed.

Risk and rollback

  • Only assets, a developer tool and tests change. No runtime code changes.
  • The ICO grows from 72 KB to 100 KB.
  • Media queries inside an <img> SVG are supported by Chromium, WebView2 and GitHub. Elsewhere the full drawing is shown.
  • Rollback is a revert of this commit.

Limits

  • I did not launch the packaged desktop app to photograph the live Windows taskbar. The ICO frames were verified by decoding them instead.
  • There is no separate light-theme taskbar asset. Windows 11 does not require one, and the dark plate keeps contrast on both themes.

🤖 Generated with Claude Code

One strip, paper on one face and copper on the other, makes a single
half-twist and lays its end over its own beginning: a Möbius band that
closes like an ouroboros, and whose loop reads as a speech bubble.

The mark is generated from its geometry by tools/cortex_mark.py rather
than drawn by hand, so it can be reproduced and adjusted exactly. The SVG
carries a second, bolder drawing that media queries select at 36px and
below, so the mark stays legible in the title bar and taskbar; renderers
without CSS fall back to the full drawing only.

The Windows icon now has an exact PNG frame for every size the shell
requests at 100-400% scale (16 to 256 px), so the taskbar at 125% and
150% no longer resamples a neighbouring frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dovvnloading
dovvnloading merged commit 8dce32e into main Nov 23, 2026
16 checks passed
@dovvnloading
dovvnloading deleted the feat/cortex-mobius-mark branch November 23, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant