tessera

Reviewed at commit 09113e2

Previews pasted images and collapsed pasted text above the prompt in any terminal, draws replies with CJK-aligned tables and charts, and refuses recursive…

Made by
OG-Matcha
What we checked

Redraws Claude's replies with themes, tables, diagrams and folded diffs, previews pasted images and text above the prompt (reading the clipboard for text), and offers unfinished tasks next session. Guards question risky deletes, git discards, database resets and Simplified Chinese, secrets in tool results are masked before Claude reads them, and Haiku picks a model for agents. It makes no network calls and stores settings locally.

Review details

Static review of the source at the pinned commit; not run. Full re-review of the whole plugin (the diff since b5c2b94 was too large for a delta review), with the changed files looked at closely. Registers session.start, session.end, session.compact, turn.start and turn.complete (cache clock, prompt log), prompt.submit, command.run (/tessera and, for the prompt log, every command), tool.call (all tools for the guards and secret masking, Agent, Workflow, Bash, PowerShell and TaskStop for the background watch, TaskCreate, TaskUpdate, TodoWrite, and its own inbox_fixed tool registered via $.tool.register only when the off-by-default feedback inbox is on), ui.render for AssistantMessage, UserMessage, CommandOutput, ToolGroup, ToolUse, ToolResult, TurnDuration, AbovePrompt and two Panes (setup, prompt log), plus ui.focus, ui.scroll and ui.close for the log pane. The resumeAfterLimit auto-continue of the previous version (classic.StopFailure) is gone. prompt.submit adds disclosed context notes: a reply-language note for CJK prompts and a one-time ~300-token rendering hint. New: maskSecrets (on by default, disclosed) replaces API keys, tokens, private keys, URL passwords and secret-named assignments in every tool result with dots before Claude, the transcript and the screen see it, and adds a note to Claude; Claude cannot see those values, so a file it rewrites whole from a masked read would carry the dots. Guards return deny for recursive deletes of root, drive, home or the session directory, deletes through junctions or symlinks, node_modules links, git tree rewrites and add -A in the main tree while agents run, CJK \u escapes, Simplified Chinese or glossary terms, unquoted heredocs; force pushes to main/master, git discards (naming the files), database resets (prisma, rails, artisan, docker volumes, dropdb), non-UTF-8 file edits and files another session edited in the last 30 minutes are refused once and pass when resent. agentModel auto (default) calls $.model.classify with Haiku on the Agent prompt (first 2000 chars) and fills in the model with a toast; it uses tokens. $.process.run is used for read-only git (rev-parse, status --porcelain, diff --name-only, clean -n with requireForce pinned), cmd /c dir /AL /S /B to detect junctions (paths with cmd metacharacters skipped), id -u, the clipboard readers (PowerShell Get-Clipboard, pbpaste, wl-paste, xclip, xsel) once per new [Pasted text #n] placeholder found by a 250 ms poll of the prompt box, explorer/open/xdg-open/code/orca when you press an image's original button, and, only with the off-by-default stashBeforeDiscard, git stash create and git stash store before a resent discard (writes a stash entry). $.fs reads Claude Code's paste image cache and background task output sizes in the temp folder, the session ids in Claude Code's running-session registry (~/.claude/sessions/*.json, sessionId only, new in this version), the file named in /tessera peek, the target of a write being checked (encoding, zh-TW and glossary guards), a Workflow scriptPath and the project CLAUDE.md (glossary guard, off by default). $.settings.read is read only (language; extraKnownMarketplaces from the user and flag sources only, to offer a button that fills /plugin or copies marketplace commands). $.env.set sets CLAUDE_CODE_ENABLE_TODO_TOOLS=1 while carry-over is on and PYTHONUTF8=1 on Windows (both disclosed, session only, never over a value the user set). $.config.set only writes tessera's own options. $.store keeps carry-over task lists per repository (last 5 sessions, 30 repositories), edited file paths with session id for 30 minutes, inbox items and small flags; the prompt log is plugin state, not written to disk. $.prompt.fill only fills the prompt box on a button press; nothing is submitted by itself. Read fully: register.tsx, guard.ts, guard-hooks.ts, paste-hooks.tsx, background-hooks.tsx, background.ts, cache-hooks.tsx, cache.ts, prompt-log-hooks.tsx, prompt-log.ts, mask.ts, edits.ts, carry.ts, features.ts, fold.ts, encoding.ts, paste.ts, platform.ts, update.ts, session.ts. Rendering and text modules (render.tsx, markdown.ts, mermaid.tsx, theme.ts, presets.ts, rtl.ts, help files, i18n.ts, inbox.ts, peek.ts, voice.ts, hans.ts, glossary.ts, png.ts, raster.ts) were skimmed and grepped for runtime calls, network and dynamic code (none). Vendored minified code (prism.js, mermaid-text.js, inflate.js, hans.js) is unchanged since the previous review and was checked again in the clone by targeted search: no fetch, eval, Function, process or dynamic import; prism keeps its standard web-worker message handler. scripts/ (build and e2e) are developer tools not loaded by the plugin; the opencc-js dependency was not reviewed. Failures are caught and fall through to the default behaviour.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Screenshot of tessera

One mod for Claude Code, Windows and CJK first: pasted-image and text previews in any terminal, themed replies with CJK-correct tables and charts, long edit diffs folded, unfinished tasks carried into the next session, and guards for multi-agent runs and Traditional Chinese writing

Made this mod? Add a badge to your README

modsforClaude badge for tessera

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/tessera.svg)](https://modsforclaude.com/mods/tessera/)

← All mods