Skip to content

docs(readme): slim down to a scenario-led landing page - #323

Merged
Sunrisepeak merged 4 commits into
mainfrom
docs/readme-slim
Jun 19, 2026
Merged

Sunrisepeak merged 4 commits into
mainfrom
docs/readme-slim

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

What

Cut README.md / README.zh.md from ~345 → ~200 lines and turned them into a lean landing page. Details now live in docs/ (which already covered most of it).

Why

The old READMEs repeated the SubOS / agent-in-sandbox pitch 3–4 times across Core Concepts → Three Scenarios → SubOS Deep Dive → Agent Integration, plus two mermaid diagrams — hard to grab the point on the first screen. Most of that detail was already duplicated in docs/quick-start, docs/design, and docs/architecture.

Changes

  • Scenario-led body — three real, code-verified usage scenarios: multi-version toolchains (no sudo), reproducible project env via .xlings.json, agents/untrusted code in an isolated SubOS. Each is a short blurb + real commands + a link into docs/.
  • Kept the hook — the vs apt / nix / docker comparison table stays.
  • AI-agent section — restored "let an AI agent install & explain it" (mcpp-style), referencing the real built-in xlings agent usage guide.
  • Moved detail to docs — deep dives + both mermaid diagrams removed; they already exist in docs/architecture/overview.md and docs/design/package-index-ecosystem.md. Added a Documentation link table.
  • Build — unified on the mcpp flow (matches mcpp.toml).

Accuracy

Every command/flag was checked against the source, per the "no made-up content" requirement:

  • commands (install / use / search / list / subos new|use) — src/cli.cppm
  • subos flags (--from, --sandbox, --cmd, --storage, project-level) — src/core/subos.cppm
  • bwrap (V5, preferred, xim:bwrap setuid pool) + proot (fallback) backends — src/core/subos.cppm
  • xlings agent usage built-in guide — src/agent/
  • build flow xlings install → mcpp build/test — mcpp.toml / .xlings.json
  • Removed the unverifiable "~10ms startup" comparison row (no basis in code).

All 11 docs/ links verified to resolve.

Open questions for review

  1. .xlings.json example reuses the original maintainer-authored one (mcpp 0.0.33 + gcc/llvm). Swap for a more typical project example?
  2. Three usage scenarios — trim further to pure links if still too long?

Cut README.md/README.zh.md from ~345 to ~200 lines. The old READMEs
repeated the SubOS / agent-in-sandbox pitch 3-4 times and duplicated
content that already lives in docs/.

- Lead with three real, code-verified usage scenarios (multi-version
  toolchains, reproducible project env via .xlings.json, agents in an
  isolated SubOS) instead of an abstract feature dump.
- Keep the vs apt/nix/docker comparison as the hook; drop the
  unverifiable '~10ms startup' row.
- Restore an 'AI agent install & explain' section referencing the real
  built-in 'xlings agent usage' guide.
- Move deep dives + both mermaid diagrams to docs/ (already covered by
  docs/architecture and docs/design); add a Documentation link table.
- Unify build instructions on the mcpp flow (matches mcpp.toml).
- Replace the project-env example with the documented per-platform
  manifest (xmake + per-OS gcc/llvm, versions matching mcpp.toml /
  docs/quick-start/project-env.md) — shows cross-OS dependency
  consistency, the real value of project SubOS.
- Sharpen the three scenarios to surface the core value points:
  multi-version coexistence + cross-platform unified commands,
  per-OS reproducible project isolation, and rootless SubOS for
  agents / untrusted code.
…iders

- Move the vs apt/nix/docker table to docs/comparison.md (linked from
  'Why xlings?'); move build-from-source to docs/build-from-source.md.
- Bring 'Core capabilities' up front, right after the one-line pitch.
- Ecosystem table: drop the 3rd Link column, fold the link into the
  project name (2 columns).
- Drop all '---' horizontal rules; section headings carry the structure.
- Index both new docs from docs/README.md.
quick_install.sh used `find` to locate the extracted xlings-* directory
after a successful download+extract. Minimal images (e.g.
opensuse/tumbleweed) ship without findutils, so the call died at exit 127
right after extraction, before the installer (and mcpp) ever ran. Arch
only passed because its base image happens to bundle findutils.

Replace the `find` probe with a pure-bash glob (no external dependency),
so install works on any minimal distro. No-match still yields an empty
EXTRACT_DIR, caught by the existing 'missing bin/xlings' validation.
@Sunrisepeak
Sunrisepeak merged commit 67556c7 into main Jun 19, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant