atlas
Adds /atlas: a file explorer in a pane beside Claude Code, with git marks, search by name or text, and micro to edit a file.
What it does
- Draws a pane, toasts
- Adds /atlas
- Hooks session.end, session.start, ui.close, ui.focus and 2 more
- Keeps its own state between turns
- Calls the network
Good points
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like atlas by jamubc (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/jamubc-atlas/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Atlas" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const printable = '…'
const printable2 = '…'
const printable3 = '…'
const changed = '…'
const line = '…'
const nameOf = '…'
const name = '…'
const relOf = '…'
const size = '…'
const items = '…'
const date = '…'
const MARK_NAMES = '…'
const tilde = '…'
const program = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box flexShrink={0}>
<Text bold color="cyan">
Atlas
</Text>
</Box>
<Box flexDirection="row" flexShrink={1} flexWrap="wrap">
<Text dimColor>
{"… "}
</Text>
<Box flexDirection="row">
<Text bold>
{printable}
</Text>
<Text dimColor>
{" › "}
</Text>
</Box>
<Box flexDirection="row">
<Text bold>
{printable2}
</Text>
<Text dimColor>
{" › "}
</Text>
</Box>
<Box flexDirection="row">
<Text bold>
{printable3}
</Text>
<Text dimColor>
{" › "}
</Text>
</Box>
</Box>
<Box flexGrow={1} />
<Text color="yellow">
{`${changed} changed`}
</Text>
<Button plain hotkey="u" label="Up" />
<Button plain hotkey="h" label="Hide dotfiles" />
<Button plain hotkey="z" label="Collapse" />
<Button plain hotkey="g" label="Refresh" />
</Box>
<Text color="yellow" wrap="truncate-end">
{line}
</Text>
<Box flexDirection="row" gap={2}>
<Box flexShrink={0} flexDirection="column" />
<Box flexDirection="column" flexGrow={1}>
<Text bold>
Properties
</Text>
<Box flexDirection="column">
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Name
</Text>
</Box>
<Text wrap="truncate-middle">
{nameOf}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Class
</Text>
</Box>
<Text wrap="truncate-middle">
{name}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Path
</Text>
</Box>
<Text wrap="truncate-middle">
{relOf}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Size
</Text>
</Box>
<Text wrap="truncate-middle">
{size}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Items
</Text>
</Box>
<Text wrap="truncate-middle">
{items}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Modified
</Text>
</Box>
<Text wrap="truncate-middle">
{date}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Git
</Text>
</Box>
<Text wrap="truncate-middle">
{MARK_NAMES}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Links to
</Text>
</Box>
<Text wrap="truncate-middle">
{tilde}
</Text>
</Box>
</Box>
<Text bold>
Actions
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Button plain hotkey="e" label={`Edit in ${program}`} />
<Button plain hotkey="o" label="Open as root" />
<Button plain hotkey="p" label="Add to prompt" />
<Button plain hotkey="c" label="Copy path" />
<Button plain hotkey="a" label="Open with app" />
<Button plain hotkey="r" label="Rename" />
<Button plain hotkey="d" label="Duplicate" />
<Button plain hotkey="x" label="Trash" />
<Button plain hotkey="n" label="New file" />
<Button plain hotkey="f" label="New folder" />
</Box>
<Text bold>
Preview
</Text>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const relOf = '…'
await $.ui.toast(`Added @${relOf} to your prompt.`)
await $.ui.toast(`Copied the path.`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
plugins/atlas/hooks/register.tsx lines 818–977 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const elements = $.ui.resolve(e)
const { Box, Button, Code, Markdown, Text } = elements
paneBody = { columns: e.props.bodyColumns, rows: e.props.scroll.bodyRows }
// Drawn from what this process kept after a /clear; the host gets it back off the render.
if (!(await read($, seeded))) $.clock.after(0, () => void reseed($).catch(() => {}))
const shown = await read($, snapshot)
const { editing: now, root: base } = shown
if (now !== null) {
const rel = relOf(now.path, base)
if (now.status === 'error' || e.surface !== 'terminal') {
editorView = null
return (
<Box flexDirection="column">
<Text color="red">{now.message ?? `${program} draws only in Claude Code's terminal.`}</Text>
<Button key="back" variant="primary" label="Back to files" onPress={() => write($, 'editing', () => null)} />
</Box>
)
}
const { Client, Raster } = $.ui.resolve(e)
const view = { columns: e.props.bodyColumns, rows: Math.max(3, e.props.scroll.bodyRows - EDITOR_HEADER_ROWS) }
editorView = view
const fits = frame !== null && frame.columns === view.columns && frame.rows === view.rows
// Ctrl+C and Ctrl+Z never reach the editor (Claude Code keeps them), and
// Escape hands the keys back to the prompt: these send them instead.
const send = (text: string) => () => call($, '/text', { text })
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Button key="esc" label="Esc" onPress={send('\x1b')} />
<Button key="copy" label="Copy" onPress={send('\x03')} />
<Button key="undo" label="Undo" onPress={send('\x1a')} />
<Text wrap="truncate-end">
<Text bold>{now.status === 'starting' ? `Starting ${program}…` : program}</Text>
<Text dimColor>{` ${rel} · click the text to type · Ctrl+S save · Ctrl+Q quit`}</Text>
</Text>
</Box>
<Box width={view.columns} height={view.rows}>
<Raster key="editor" columns={view.columns} rows={view.rows} cells={fits ? (frame as Frame).cells : blankCells(view)} />
<Box position="absolute" top={0} left={0}>
<Client key="terminal" module="./terminal.tsx" width={view.columns} height={view.rows} />
</Box>
</Box>
</Box>
)
}
editorView = null
const hidden = shown.showHidden
const marks = shown.git
// Indexed once for this drawing: every folder row asks it below.
const marksByPath = indexMarks(marks, base)
const allListings = shown.listings
const shownListings = hidden
? allListings
: Object.fromEntries(Object.entries(allListings).map(([dir, entries]) => [dir, entries.filter(entry => !isHidden(entry.name))]))
const tree = rows(base, shownListings, shown.expanded, TREE_LIMITS)
const hiddenCount = (allListings[base] ?? []).filter(entry => isHidden(entry.name)).length
const chosen = shown.selected
const info = shown.details
const hits = shown.results
const named = shown.naming
const line = shown.notice
const typed = shown.query
const how = shown.mode
const pixels = shown.hasPixels
const width = e.props.bodyColumns
const isWide = width >= 90
const treeWidth = isWide ? Math.min(48, Math.floor(width * 0.42)) : width
const canType = e.surface !== 'mobile' // mobile draws no Input: naming needs one
const changed = Object.keys(marks).length
const setMode = async (next: SearchMode) => {
await write($, 'mode', () => next)
if (typed.trim()) await search($, typed)
}
const toggleHidden = async () => {
const next = !hidden
await write($, 'showHidden', () => next)
try {
await $.store.set('showHidden', next)
} catch {}
}
const collapseAll = async () => {
await write($, 'expanded', () => [])
await remember($)
}
let finder = null
if (e.surface !== 'mobile') {
const { Input } = $.ui.resolve(e)
finder = (
<Box flexDirection="row" gap={1}>
<Box flexGrow={1} flexShrink={1}>
<Input key="find" label="⌕ " placeholder={how === 'text' ? 'text inside files under this folder' : 'part of a name under this folder'}
value={typed} submitLabel="search" onSubmit={value => search($, value)} />
</Box>
{how === 'names'
? <Text bold inverse>{' names '}</Text>
: <Button key="mode-names" plain label="names" onPress={() => setMode('names')} />}
{how === 'text'
? <Text bold inverse>{' text '}</Text>
: <Button key="mode-text" plain label="text" onPress={() => setMode('text')} />}
</Box>
)
}
let asking = null
if (named !== null && e.surface !== 'mobile') {
const { Input } = $.ui.resolve(e)
const label = named.action === 'rename' ? `Rename ${nameOf(named.target)} to`
: `New ${named.action} in ${named.target === base ? tilde(base) : relOf(named.target, base)}`
asking = (
<Box flexDirection="row" gap={1}>
<Box flexGrow={1}>
<Input key="name" label={label} autoFocus value={named.action === 'rename' ? nameOf(named.target) : ''}
submitLabel={named.action === 'rename' ? 'rename' : 'create'} onSubmit={value => finishNaming($, value)} />
</Box>
<Button key="cancel" plain label="Cancel" onPress={() => write($, 'naming', () => null)} />
</Box>
)
}
let explorer
if (hits !== null) {
explorer = (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text bold>{`${hits.length}${hits.length === SEARCH_LIMIT ? '+' : ''} found`}</Text>
<Button key="clear" plain label="Back to the tree" onPress={() => write($, 'results', () => null)} />
</Box>
{hits.map((hit, index) => {
const where = relOf(hit.path, base)
const key = hit.line === undefined ? `r:${relative(hit.path, base)}` : `r:${relative(hit.path, base)}:${hit.line}`
return (
<Box key={`hit-${index}`} flexDirection="column">
<Button key={key} plain label={hit.line === undefined ? where : `${where}:${hit.line}`} onPress={() => reveal($, hit.path, hit.line)} />
{hit.text !== undefined && <Text dimColor wrap="truncate-end">{` ${hit.text}`}</Text>}
</Box>
)
})}
</Box>
)
} else {
// The focus ring starts in the tree, so the arrows walk it at once.
const firstEntry = tree.find(row => row.type === 'entry')
const ringStart = tree.some(row => row.path === chosen) ? chosen : firstEntry?.path
explorer = (
<Box flexDirection="column">
{tree.length === 0 && <Text dimColor>{hiddenCount > 0 ? `Only hidden files here (${hiddenCount}).` : 'This folder is empty.'}</Text>}
{tree.map(row => {
const indent = ' '.repeat(row.depth)
if (row.type === 'more') return <Text key={`more:${relative(row.path, base)}`} dimColor>{` ${indent}… ${row.hidden} more`}</Text>
if (row.type === 'cut') return <Text key="cut" dimColor> … more: close some folders, or use Find</Text>
const kind = classOf(row.entry.name, row.entry.kind, row.entry.isLink)
const isChosen = row.path === chosen
const mark = row.entry.kind === 'dir' ? markFor(marksByPath, row.path) : marks[row.path] ?? null
return (
<Box key={`row:${relative(row.path, base)}`} flexDirection="row" hover={{ backgroundColor: '#1c2730' }}>
<Text color="cyan">{isChosen ? '▌' : ' '}</Text>Licence text (MIT)
MIT License Copyright (c) 2026 jamubc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What its code calls
networkruns programswrites filesenv varsremembers
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit 3027e57e6edc on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.plugins/atlas/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.3 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).plugins/atlas/hooks/register.tsx:412 find (not on Windows); plugins/atlas/hooks/register.tsx:520 cp (not on Windows) |
| Network | Whether every fetch names its https host in the code.plugins/atlas/hooks/register.tsx:595 fetch(`http://atlas${route}`) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/atlas/hooks/register.tsx:438 a program named at run time; plugins/atlas/hooks/register.tsx:495 a program named at run time; plugins/atlas/hooks/register.tsx:547 a program named at run time; plugins/atlas/hooks/register.tsx:580 a program named at run time; plugins/atlas/hooks/register.tsx:637 a program named at run time |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reads environment variables and files and reaches the network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add jamubc/toolbox/plugin install atlas@toolboxThis installs the marketplace's latest commit, which may not be the one read here (3027e57e6edc). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "jamubc-atlas" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Fix login▸★ build ok▸★ build ok▸★ build ok+3 moretasks 3 pending · Glob claimed · 3 doneConsensus42%
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
Ask Claude…moai-boardmoai-boardPickedx closebuild 1build 2build 3r refreshQueue not read yetokPick
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
Ask Claude…./rows.tsx●●●●●×./rows.tsxnothing loaded yet● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login./rows.tsxWorkspaceWorkspaceWorkspaceselected: build● open in Databricks
-
Ask Claude…build 3 app●●●◉●●okno Library app here yet; Library adds one●./rows.tsx./rows.tsxselected: Nerd