Skip to content

Commit dc2dc3e

Browse files
ndemiancclaude
andcommitted
Docs: mark M0–M2 complete; document new AI surface + make-dmg
- CLAUDE.md: repo layout (inlineComplete.js, make-dmg.sh), build commands, and an expanded M2 feature status (right-sidebar chat, typewriter streaming, inline completion, multi-file + auto-retrieval context). Refresh the deferred/not-built list. - PLAN.md: mark M0/M1/M2 done in the roadmap and replace the stale "start M0" next-steps section with current status + M3/M4 candidates. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 92532ba commit dc2dc3e

2 files changed

Lines changed: 36 additions & 18 deletions

File tree

‎CLAUDE.md‎

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ docs/M0-RUNBOOK.md, EXIT-TEST.md, M1-SPEC.md
3434
branding/product.overlay.json Atom++ identity + Open VSX gallery (deep-merged onto product.json)
3535
branding/icons/ app icon source PNG, generated .icns, 1024 png
3636
extensions/atom-npp-pack/ Notepad++ power-editing pack (plain JS, no build step)
37-
extensions/atom-ai/ native Claude AI (chat, providers, edit-with-diff, LM provider)
37+
extensions/atom-ai/ native Claude AI (chat, inline completion, providers, edit-with-diff, LM provider)
3838
patches/atom-core.patch our core source edits, applied on bootstrap
39-
scripts/ bootstrap.sh, apply-branding.mjs, run-dev.sh, build-macos.sh, make-icon.sh
39+
scripts/ bootstrap.sh, apply-branding.mjs, run-dev.sh, build-macos.sh, make-dmg.sh, make-icon.sh
4040
vscode/ GITIGNORED upstream Code-OSS checkout (generated)
4141
```
4242

@@ -46,6 +46,7 @@ vscode/ GITIGNORED upstream Code-OSS checkout (generated)
4646
./scripts/bootstrap.sh # fresh: clone Code-OSS @ pinned tag, brand, install extensions, apply patches, npm ci
4747
./scripts/run-dev.sh # dev: sync + compile + launch (Copilot disabled). Fast iteration.
4848
./scripts/build-macos.sh # package Atom++.app (arch-aware). Output: VSCode-darwin-<arch>/Atom++.app
49+
./scripts/make-dmg.sh # ad-hoc sign Atom++.app + wrap it into a single distributable Atom++-<arch>.dmg
4950
./scripts/make-icon.sh # regenerate .icns from branding/icons/atom-plus-plus-source.png (sips+iconutil)
5051
```
5152

@@ -88,10 +89,20 @@ line operations (sort/dedup/case/…), column incrementing numbers, encoding/EOL
8889
big-file mode badge. Files: extension.js + fileOps/lineOps/columnOps/encodingEol/bigFile.js.
8990

9091
**M2 — native AI (`extensions/atom-ai/`, working):**
91-
- `providers.js` — streaming Anthropic Messages API + Ollama `/api/chat` (direct, BYO key, no backend).
92-
- `extension.js` — webview chat panel: streaming, model picker (Claude Opus 4.8 / Sonnet 4.6 / Haiku 4.5 + Ollama),
93-
`Add selection` context, and **auto-includes the whole open file** as context (chip in input; `atompp.ai.includeActiveFile`).
94-
Key stored in SecretStorage (`atompp.ai.anthropicKey`).
92+
- `providers.js` — streaming + non-streaming Anthropic Messages API + Ollama (direct, BYO key, no backend).
93+
`streamClaude`/`streamOllama` for chat, `completeClaude`/`completeOllama` for inline completion.
94+
- `extension.js` — webview chat panel **in the secondary (right) side bar** (`viewsContainers.secondarySidebar`),
95+
opens by default on first launch (`globalState` `didAutoOpen`), `Cmd+Alt+I` to focus. Model picker
96+
(Opus 4.8 / Sonnet 4.6 / Haiku 4.5 + Ollama). Context: auto-includes the open file
97+
(`atompp.ai.includeActiveFile`), **pin any workspace files** via a searchable picker (`addContext`,
98+
removable chips), and **automatic retrieval** (`gatherAutoContext`) — ripgrep content search + filename +
99+
workspace symbols, scoped to the active sub-project, shown as a `🔎 Auto-context` line. Key in SecretStorage
100+
(`atompp.ai.anthropicKey`). Settings under `atompp.ai.chat.*`.
101+
- `media/chat.html` — the chat UI: Codex-style composer (context chips, model/mode toolbar) and a
102+
`requestAnimationFrame` **typewriter** that reveals streamed text smoothly instead of dumping chunks.
103+
- `inlineComplete.js` — **inline tab-completion** (ghost text): `InlineCompletionItemProvider` over all files,
104+
debounced (`atompp.ai.completions.debounce`, 150ms), cancels in-flight on keystroke, silent key lookup
105+
(never prompts mid-typing). Status-bar toggle + `atompp.ai.toggleCompletions`. Default model Haiku.
95106
- `lmProvider.js` — registers Claude as a native `LanguageModelChatProvider` (vendor `atompp`). Stable API.
96107
- `aiEdit.js` — **edit-with-diff**: select code → `Cmd+Alt+E` → instruction → side-by-side diff → ✓ Keep / ✗ Discard
97108
buttons on the diff toolbar (gated on `atompp.ai.diffActive`).
@@ -104,7 +115,10 @@ big-file mode badge. Files: extension.js + fileOps/lineOps/columnOps/encodingEol
104115
"right" means driving VS Code's native chat-editing: register a chat participant + a complete
105116
`IDefaultChatAgent` in product.json + patch out Copilot's sign-in/entitlement gating in `chatSetup*`. Big,
106117
multi-session core effort. We use the diff-tab review instead.
107-
- Not yet built: inline tab-completion, codebase-wide (multi-file) chat context, Notepad++ keymap preset.
118+
- Built since M2 shipped: inline tab-completion (`inlineComplete.js`), multi-file + auto-retrieval chat context
119+
(`gatherAutoContext`), chat moved to the right side bar, typewriter streaming, `make-dmg.sh` packaging.
120+
- Not yet built: Notepad++ keymap preset (M1 leftover); agentic multi-file tasks (M4); M3 hackability
121+
(settings UI, user init script, package generator, theme studio, settings import).
108122

109123
## Conventions
110124

‎PLAN.md‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ Atom's draw was that *everything* was editable and it felt like yours. We restor
8888

8989
Each milestone is a thing you can actually run and judge. Because AI writes most of the code and you direct, every milestone ends in a review gate where you try the build and we course-correct.
9090

91-
**M0 — It builds and it's ours (foundation).**
92-
Clone/fork Code-OSS, get a reproducible macOS build, replace `product.json` with Atom++ branding, strip MS telemetry, repoint gallery to Open VSX, ship custom icon + title bar. *Exit test: a signed Atom++.app launches on your Mac, installs an extension from Open VSX, and has zero Microsoft branding.*
91+
**M0 — It builds and it's ours (foundation). — ✅ DONE**
92+
Clone/fork Code-OSS, get a reproducible macOS build, replace `product.json` with Atom++ branding, strip MS telemetry, repoint gallery to Open VSX, ship custom icon + title bar. *Exit test: a signed Atom++.app launches on your Mac, installs an extension from Open VSX, and has zero Microsoft branding.* (Plus `make-dmg.sh` for single-file distribution.)
9393

94-
**M1 — Notepad++ power-editing.**
94+
**M1 — Notepad++ power-editing. — ✅ DONE (keymap preset still pending)**
9595
Build the Notepad++ Pack: macro record/replay, big-file mode, encoding/EOL controls, column-mode extras, line ops. Add the NPP keymap preset. *Exit test: open a 500 MB log, record a macro to reformat lines, replay it, switch encoding — all smooth.*
9696

97-
**M2 — Native AI core.**
98-
Provider abstraction + BYO-key (Claude first), inline completions, codebase chat, accept/reject AI diffs. Direct-to-provider, no backend. *Exit test: tab-complete a function, ask the chat about your repo, refactor a file via AI diff — using your own API key.*
97+
**M2 — Native AI core. — ✅ DONE**
98+
Provider abstraction + BYO-key (Claude first), inline completions, codebase chat, accept/reject AI diffs. Direct-to-provider, no backend. *Exit test: tab-complete a function, ask the chat about your repo, refactor a file via AI diff — using your own API key.* Shipped: right-sidebar chat (opens by default), Codex-style composer with typewriter streaming, inline ghost-text completion, multi-file pinning + automatic ripgrep-based context retrieval, native LM provider.
9999

100100
**M3 — Hackability + Atom feel.**
101101
Settings UI, user init script, package generator + hot reload, theme studio, One Dark-derived default theme, VS Code/Atom settings import. *Exit test: import your current VS Code setup, write a tiny package, restyle a color live.*
@@ -121,11 +121,15 @@ The fork **rebase treadmill** is real — VS Code moves fast; we minimize pain b
121121

122122
---
123123

124-
## 10. Immediate next steps
124+
## 10. Status & next steps
125125

126-
1. Confirm we can locate your synced Atom and Notepad++ sources from the build environment (they'll be our reference for feel and feature behavior).
127-
2. Stand up M0: fork Code-OSS, first clean build, Atom++ branding via `product.json`, Open VSX gallery.
128-
3. In parallel, I read Void's source to lock the AI-layer architecture before we write ours.
129-
4. Pick a working repo + license (MIT, matching Code-OSS) and a codename so we're not blocked on the final name.
126+
**Done:** M0 (branded, telemetry-stripped, Open VSX, signed `.app` + `.dmg`), M1 (Notepad++ pack),
127+
M2 (native AI core — chat, inline completion, edit-with-diff, multi-file + auto context, LM provider).
128+
Atom++ runs as a daily editor on the author's Macs.
130129

131-
When you're ready, say the word and I'll start M0.
130+
**Candidate next steps:**
131+
1. **M3 — Hackability + Atom feel:** Settings UI, user init script, package generator + hot reload, theme
132+
studio, One Dark-derived default, VS Code/Atom settings import.
133+
2. **M1 leftover:** ship the Notepad++ keymap preset.
134+
3. **M4 — Agentic AI + Mac polish + release prep:** multi-file agentic tasks with approval gates, native
135+
menus / traffic-light polish, auto-update channel, final name + original logo + trademark check, notarized release.

0 commit comments

Comments
 (0)