ModsCode / Claude Code Mods / Ranking / atlas
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
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
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/claude-mods/mods/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.
How to build this: Pane (panel), Add a slash command
What its code calls
networkruns programswrites filesenv varsremembers
What its code shows
Read from the source at commit 3027e57e6edc on 2026-10-11. 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.a Unix socket |
| 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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, 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 |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command atlas |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run (atlas) · reads: ui.message · also: session.start, session.end, ui.close, ui.focus (+2) · timers: clock.every, clock.after |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: TMUX, SSH_CONNECTION, SSH_TTY, TERM, TERM_PROGRAM (+2); files: a path computed at run time |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.files: a path computed at run time; the prompt box; the clipboard |
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 its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
From its marketplace
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@toolbox/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (3027e57e6edc). Compare them before you install. /reload-plugins loads it into a session that is already open.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/jamubc/toolboxgit -C toolbox checkout 3027e57e6edcbdc95fe2f30a9a5ad4d050b0e70dclaude plugin validate toolbox/plugins/atlasclaude --plugin-dir toolbox/plugins/atlasThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "jamubc-atlas" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- ruflo-swarmruvnet★ 74,323
- code-modernizationAnthropic★ 37,653
- moai-boardMoAI-ADK★ 1,230
- crit-tuiTomasz Tomczyk★ 1,196
- lcu-approveLCU★ 894
- ai-maestro-secrets23blocks-OS★ 817
More from this repository
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/jamubc-atlas/)