docs: add specification, agent rules and project notes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# Architecture
|
||||
|
||||
- [2026-11-15] **Custom app instead of marimo/Atuin/Runme.** Need: literal, copyable shell + SSH run + checks + params + dynamic downloads + Claude Code CLI next to the notebook. No existing tool covers all; marimo hid commands behind Python.
|
||||
- [2026-11-15] **TypeScript monorepo** (core / server / web). One language; node-pty + xterm.js is the proven path for the embedded Claude terminal.
|
||||
- [2026-11-15] **AI = real `claude` CLI in a tmux-backed terminal panel.** Uses the user's subscription legitimately; marimo's ACP panel was deprecated and API-key chat is not wanted.
|
||||
- [2026-11-15] **Workspace (notebooks, hosts.yaml) is a separate git repo** from the app code; the app ships a `CLAUDE.md` format guide into it.
|
||||
|
||||
## Archive
|
||||
@@ -0,0 +1,6 @@
|
||||
# Attempts
|
||||
|
||||
- [2026-11-15] **Approach:** marimo in LXC 501 + Fabric/asyncssh helpers, Claude via marimo's ACP agent panel. **Outcome:** ACP panel superseded by marimo pair; sidebar chat is API-key only. **Now:** dropped.
|
||||
- [2026-11-15] **Approach:** marimo pair (Claude Code CLI in terminal) writing Python notebooks. **Outcome:** worked technically, but notebooks became Python wrappers; commands not readable/copyable, chat only in bottom terminal. **Now:** custom app (ShellBook) with shell-first format.
|
||||
|
||||
## Archive
|
||||
@@ -0,0 +1,19 @@
|
||||
# Project Mind — Index
|
||||
> Always-loaded. Everything else is on-demand. Update TOC when files change.
|
||||
|
||||
## Current Focus
|
||||
- [2026-11-15] Spec draft `docs/spec.md` v0.1 — awaiting review of the notebook format (§3).
|
||||
- [2026-11-15] Next: M0 — monorepo skeleton + `packages/core` parser/params/shellQuote with tests.
|
||||
|
||||
## Invariants
|
||||
- Displayed script == executed script (one substitution path).
|
||||
- All shell quoting via `core/shellQuote`.
|
||||
- Secrets only as env vars; never rendered/logged.
|
||||
- Strict SSH host key checking with explicit TOFU.
|
||||
- `check` steps are side-effect free.
|
||||
- Notebooks stay plain, readable Markdown.
|
||||
|
||||
## Table of Contents
|
||||
- `architecture.md` — 4 entries — why custom app, stack, AI integration, workspace split
|
||||
- `attempts.md` — 2 entries — marimo + marimo-pair trial and why it was dropped
|
||||
- `open.md` — 3 entries — open design questions
|
||||
@@ -0,0 +1,7 @@
|
||||
# Open Questions
|
||||
|
||||
- [2026-11-15] Optional chat-style UI (stream-json headless `claude`) in addition to the terminal? Would bill to the Agent SDK credit on subscriptions — decide after M4.
|
||||
- [2026-11-15] sudo with password (`type: secret` + `sudo -S`) or require NOPASSWD sudo only? Spec v0.1: `sudo -n` only.
|
||||
- [2026-11-15] Node 22 on Debian 13: NodeSource repo vs. official tarball in the deploy script; node-pty prebuilds vs. build-essential.
|
||||
|
||||
## Archive
|
||||
Reference in New Issue
Block a user