#CatCode
\catcode エージェントはこわい😨
November 21, 2026 at 9:43 AM
It a travesty!!! What about #catcode?
October 25, 2026 at 7:37 PM
#catcode says no box can effur be thrown out!! FKM is out of control! 🙀🙀🙀
October 25, 2026 at 11:42 PM
How a desktop pet finds out your AI agent has finished a task
CatCode is a pixel pet that lives on the Windows desktop and reacts when a coding agent finishes a task. This is a walkthrough of how that detection works, taken from the app's code (an Electron app). It is simpler than you might expect, and support differs by agent, so I will be specific about what is and is not covered. ## No log scraping, no process polling CatCode does not tail agent logs, inspect processes or read any agent's internal files. I checked: there is no such code. The whole mechanism is a **drop folder** : ~/.catcode/events/ Anything that can write a small JSON file there can tell the pet a task is done: { "source": "Codex", "task": "update the UI", "message": "finished the check" } That is the entire protocol: `source`, `task` and `message`. Missing values fall back to defaults. ## The watcher The main process consumes those files with `fs.watch`. Trimmed from `main.js`: function consumeEvent(file) { const full = path.join(EVENTS_DIR, file), data = loadJSON(full, null); try { fs.unlinkSync(full); } catch {} if (!data) return; // ...append to a per-day log (only the last 3 days are kept) celebrate(`Task complete\n${src} ${msg}`); } function watchEvents() { for (const f of fs.readdirSync(EVENTS_DIR)) if (f.endsWith('.json')) consumeEvent(f); fs.watch(EVENTS_DIR, (_e, file) => { if (file && file.endsWith('.json')) setTimeout(() => { if (fs.existsSync(path.join(EVENTS_DIR, file))) consumeEvent(file); }, 150); }); } Details that come straight from this code: * Events that piled up while the app was closed are consumed on startup. * There is a 150 ms delay before reading, so a half-written file is less likely to be read. It is a mitigation, not a guarantee: the writer uses a plain `writeFileSync`, and a file that fails to parse is deleted anyway. * Each event file is deleted after it is handled. The app keeps a short in-memory list of recent tasks and a three-day per-agent log for a small "agent report" window. ## Claude Code: a real hook For Claude Code the trigger is its `Stop` hook. The app has a tray item that writes the hook into `~/.claude/settings.json` for you. The resulting entry has this shape (the path to the script is yours to set): { "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "node C:\\catcode\\tools\\emit-event.js \"Claude Code\" \"\" \"finished the task\"" } ] } ] } } `emit-event.js` is about 30 lines: it creates the folder if needed and writes `{source, task, message}` as a timestamped `.json` file. It also accepts JSON on stdin and uses `session_id` as the task, if you call it without arguments. Two honest caveats. First, `Stop` fires when Claude Code finishes responding, so "task finished" really means "the agent stopped and handed control back". Second, the hook command starts with `node`, so Node.js needs to be on your PATH. ## Codex and Cursor: partial, and manual This is the part to read carefully. The code has **no Codex-specific or Cursor-specific integration**. No config file for either is written, and nothing watches either tool. The names appear in the README, in the description, and in the tray's "test" button, which just plays a canned message. What exists is the generic path: if your tool has a "run a command when finished" mechanism, call the same script with a different source: node tools/emit-event.js "Codex" "update the UI" "finished the check" If it has no such hook, you can run that line by hand. The pet reacts identically. So: Claude Code has a tray item that writes the hook for you (or you add it by hand, as above), Codex and Cursor work only if you wire a completion command yourself, and I can't tell you from this code whether either tool offers a suitable hook. ## What the pet does about it `celebrate()` sends the `happy` state to the renderer, shows a speech bubble for 6 seconds, then restores whatever state the pet was in before. There is no sprite sheet. The pet is drawn procedurally: `Sprite.makeRenderer(28)` creates a 28x28 offscreen canvas, and primitives such as `pdisc`, `ptri` and `pline` plot pixels, which are then scaled up (110, 140 or 180 px depending on the size setting). A `pose()` function maps the state to parameters. For `happy`, the code makes the pet bounce, smile, stick out its tongue and wag its tail faster, while the renderer spawns sparks and hearts. The full state list is: `idle`, `working`, `waiting`, `sleeping`, `happy`, `play`, `run`, `pull`. Note that `working` (the laptop pose) is set by the Pomodoro focus timer or by hand from the tray, not by agent activity. The pet never knows a task is _in progress_ , only that one ended. Skins are small JSON files rather than images: { "id": "ginger-cat", "species": "cat", "pattern": "tabby", "palette": { "body": "#f2954e", "shade": "#c26a2c", "belly": "#fbe0c2", "stripe": "#b8531f", "eye": "#4fae5a", "nose": "#d98c9a", "inner": "#f0a9b3" } } Species, pattern (`solid`, `tabby`, `patch`), optional accessory and a palette drive the same drawing code, so a new colour scheme needs no art. ## The rest, briefly It also does the desktop-pet things: eyes and head follow the cursor, Pomodoro focus and break timers, water and stretch reminders, user reminders, and skin import. Memes and images from the internet are off by default and need to be enabled in the tray. The privacy note lists the services the app contacts directly: ipapi.co and open-meteo.com for weather, plus meme/image services only if you opt in. ## Get it CatCode is a Windows app, and the source is closed (proprietary EULA). It costs $5: CatCode on Gumroad. The installer is not code-signed, so Windows SmartScreen will show an "unknown publisher" warning on first launch. Disclosure: I am the author of CatCode.
dev.to
October 18, 2026 at 10:15 PM
これは流石にバグと認定して差し支えないよなあ🤔
#TeX #ratex

[Bug]: Unexpandable active characters change strangely in full expansion
github.com/leoliu0/rate...
[Bug]: Unexpandable active characters change strangely in full expansion · Issue #11 · leoliu0/ratex
Minimal TeX Reproduction \documentclass{article} % '?' is active and unexpandable \catcode`?=\active \let?\relax \def\macroA{?} \edef\macroB{?} \begin{document} \number\expandafter`\macroA/% `?=65 ...
github.com
September 20, 2026 at 2:49 PM
Interesting - Fable 5.1 has some phonetic representation. I wonder if it has had explicit multilingual or linguistics RL.
September 19, 2026 at 5:33 PM
Just rigged my old TV to display a live feed of my cat doing parkour while I code. Every crash now comes with a majestic leap and a “meow‑tastic” soundtrack. If your monitor starts meowing, you’re either cursed or finally sane. 🤘🐱 #techshit #catcode

September 13, 2026 at 1:00 PM
\makeatletter
\catcode`\'=\active
\def'{\ifmmode\expandafter\active@math@prime\else\textquotesingle\fi}
\gdef\pr@m@s{%
\ifx'\@let@token
\expandafter\pr@@@s
\else
\ifx^\@let@token
\expandafter\expandafter\expandafter\pr@@@t
\else
\egroup
\fi
\fi}
\makeatother
September 2, 2026 at 4:12 PM
Feed: "ctan-ann"
Published on Saturday, December 20, 2025
CTAN update: systeme
Christian Tellechea submitted an update to the systeme package. Version: 0.51 2025-12-19 License: lppl1.3c Summary description: Format systems of equations Announcement text: - bugfix : le token "_" a un catcode correct lorsque l’argument optionnel est lu ...
www.ctan.org
December 21, 2025 at 6:47 PM
April 10, 2026 at 12:42 PM
March 10, 2026 at 3:42 AM
(u)pTeXは欧文部分は8bitエンジンなのに、和文文字トークンという "異質な" ものがある:

- \catcodeが0-15の範囲にない
- 文字コードが256以上になり得る
- \lowercaseトリックが使えない
November 11, 2023 at 5:10 AM
it's like an eagerly-evaluated higher-order functional stream-based language???

I wonder if anyone has ever tried to write down a semantics for it?
October 6, 2025 at 4:22 PM
📦 catcode-nl/module-environment-information 1.0.1

Magento 2 module that can show environment information

🔗 https://github.com/catcode-nl/module-environment-information
December 1, 2025 at 9:58 AM
It's #catcode! 😺😹😺
June 23, 2026 at 11:01 AM
Of course we do! #catcode
May 7, 2026 at 10:47 AM
There's no pfftt when it comes to #catcode! The law is the law!
Hope you're feeling better today FKM! ((HUGGLES)) 💞😽OxO😽💞
January 9, 2026 at 12:40 PM
January 9, 2026 at 11:38 AM
Meowning and happy #MeowMonday FKM, Sydney and @blazetheninja.bsky.social! Hope yoo all have a day full of sunpuddles and cuddles today! Blaze should get unlimited lap time, #catcode requires it! ((HUGGLES)) Luvs yoo all! 💞😽OxO😽💞
October 27, 2025 at 10:43 AM
What's yours is mine mom! #catcode 😹😺😹
October 14, 2025 at 10:40 AM
Oh! My! Cat! That crazy #ginger is playing in water?!?!? *faints* Does he not know page 2 of #CatCode says we hate water, we're desert creatures! I'm afraid your Staff has her hands full with Trickle, he's not properly catting! 🙀🙀🙀 purrhaps Matilda can have a talk with him? ((HUGGLES)) Luv yoo all!
September 7, 2025 at 12:02 PM
It's #catcode FKM! 😺💞😽💞😺
August 23, 2025 at 11:44 AM