Skip to main content
Glama
README.md
# Atlas

A **token-budgeted, permissioned map of your filesystem** for LLM agents.

An agent burns tokens rediscovering a disk it could know. Atlas watches your home
directory, keeps a local SQLite index, and answers five cheap questions:

| Command | What it returns |
|---|---|
| `atlas map` | a terrain view under a hard token budget (default 800) |
| `atlas find` | ranked paths, never file contents |
| `atlas delta` | what changed since your last turn (O(change), not O(files)) |
| `atlas peek` | an extractive summary before you open the file |
| `atlas places` | named roots — `downloads`, `projets`, `factures` |

Local-first. No network. Secrets denied by default. Your repo's `.gitignore` is
respected on git trees, so `node_modules` never enters the index.

## Status

**v0.1 scaffold.** The journal, indexer, `find`, `map`, `delta`, `peek`,
`places`, `status`, the watchdog daemon and the MCP server are implemented and
tested. Next: per-turn Hermes hook, benchmark harness (M5), systemd unit,
Windows watcher. See [SPEC.md](SPEC.md) for the full design and the milestones.

## Install from source

```bash
git clone https://github.com/UnoriginalDude14/atlas
cd atlas
uv sync
```

Or install it as a global command:

```bash
uv tool install --editable .   # `atlas` on PATH, live source
```

## Quickstart

```bash
uv run atlas init          # writes ~/.config/atlas/atlas.toml and the index
uv run atlas index         # walk the roots
uv run atlas map           # terrain view, <= 800 tokens
uv run atlas find invoice  # ranked paths
uv run atlas delta         # what changed since the cursor
uv run atlas watch         # foreground watcher (systemd unit later)
```

The index lives at `~/.local/share/atlas/atlas.db` on Linux,
`%LOCALAPPDATA%\Atlas\atlas.db` on Windows,
`~/Library/Application Support/Atlas/atlas.db` on macOS.

## MCP server

`atlas mcp` speaks MCP over stdio. Tools: `map`, `find`, `peek`, `delta`,
`places`, `status`.

Hermes:

```bash
printf 'y\n' | hermes mcp add atlas --command atlas --args mcp
```

Then `/reload-mcp` (or a new session) exposes `mcp_atlas_map`,
`mcp_atlas_find`, `mcp_atlas_peek`, `mcp_atlas_delta`, `mcp_atlas_places`,
`mcp_atlas_status`.

Claude Code and any other MCP client:

```bash
claude mcp add atlas -- atlas mcp
```

## Design in one paragraph

The map is a **view**, not a dump: it is generated on demand from the index under
a token budget, and the agent pulls it only when it needs to. Freshness is
**O(change)**: a watcher journals events, and each agent keeps a cursor, so "what
changed since my last turn" costs a few lines — or nothing. The defaults do the
heavy lifting: on the reference laptop, 1,071,758 files collapse to ~301,664
indexed files after standard exclusions. Git repositories are indexed through
`git ls-files --exclude-standard`, so the repo's own ignore rules do the work.

## Non-goals

Not a search UI, not a file organiser, not a backup tool, not a sandbox. It
informs the agent; it does not restrict it. No embeddings in v1.

## Licence

MIT.

TDQS

B3.4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct facet of filesystem awareness: map (structure overview), find (path search), peek (content preview), delta (change tracking), places (named roots), and status (index health). Overlap between map and find is minimal because one shows terrain and the other ranks specific matches, and descriptions reinforce the split.

Naming Consistency4/5

All six names are terse, lowercase, single-word labels with no mixing of camelCase, snake_case, or verb styles, so the set reads coherently. It deviates from the verb_noun ideal (e.g. no list_roots or get_status), but the chosen convention is applied uniformly.

Tool Count5/5

Six tools is well-scoped for a read-only filesystem index: one per concern (orient, search, inspect, diff, roots, health) with no filler. Nothing feels thin or padded.

Completeness4/5

The navigation lifecycle is covered end to end: discover roots, map a directory, locate paths, preview content, and track changes since a cursor. Gaps are minor but real — peek caps at ~300 tokens, so there is no full-file read and no content/grep search beyond name matching, though agents can often work around this.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues