Skip to content

Conversation

@kcmartin
Copy link
Collaborator

@kcmartin kcmartin commented Jan 14, 2026

Summary

  • Rewrites the Working with Sprites guide for clarity and approachability
  • Reorganizes content around the three main interaction modes: exec, console, and detachable sessions
  • Simplifies lifecycle/persistence explanation with clear "what persists vs what doesn't" breakdown
  • Consolidates networking section with practical CLI examples
  • Moves advanced topics (checkpoints, SSHFS, error scenarios) to a "Going Deeper" section
  • Reduces page length from ~1200 lines to ~290 lines while preserving essential information

Test plan

  • pnpm build passes
  • pnpm lint passes
  • Review rendered page in preview deployment
  • Verify all code examples are accurate

SDK Tests for Working with Sprites Examples

Tested the CLI examples from this page using the JavaScript and Elixir SDKs against the live Sprites API:

Tested with JavaScript SDK (@fly/sprites@0.0.1):

  • Basic command execution (ls, pip install): ✓ Passed
  • Package persistence: ✓ Passed
  • File persistence: ✓ Passed
  • Streaming output: ✓ Passed
  • Disk/process checks (df -h, ps aux): ✓ Passed
  • Sprite URL retrieval: ✓ Passed
  • Detachable sessions: ✓ Passed
  • Session listing: ✓ Passed

Tested with Elixir SDK (github.com/superfly/sprites-ex):

  • Checkpoint create: ✓ Passed
  • Checkpoint list: ✓ Passed
  • Checkpoint restore: ⚠️ Timeout after restore (expected behavior - sprite takes a few seconds to wake after restore)

Note: Checkpoint restore works but the sprite needs a moment to wake up afterward. Commands issued immediately after restore may timeout.

kcmartin and others added 3 commits January 14, 2026 16:28
Added comprehensive improvements to make the guide more approachable and
useful for new users:

- Lifecycle: Wake-up behavior, state persistence details, and cold start timing
- Interactive Sessions: How to terminate sessions and detachable session behavior
- Environment: Base OS info, version checking commands, and storage recommendations
- HTTP Access: Complete examples, auth modes, URL vs port forwarding comparison
- Port Forwarding: JS SDK examples, stopping forwarding, port conflict handling
- Checkpoints: When to use, best practices, limitations, and storage implications
- Error Handling: Common scenarios (connection, timeout, quota errors) with fixes
- Cleanup: Irreversibility warnings and best practices before destroying
- Mount Filesystem: Prerequisites for SSHFS, unmounting, and security notes

Kept tone friendly and approachable while staying concise (176 lines added).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Added comprehensive section at the start of working-with-sprites explaining
the three main ways to interact with Sprites:

- sprite exec: One-off commands and automation
- sprite console: Interactive shell sessions
- sprite exec -detachable + attach: Long-running processes

Includes when to use each, how they behave, practical examples, and a quick
decision guide. This is fundamental behavior that users need to understand.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace comprehensive documentation with a shorter, more focused guide:
- Reorganize around the three main interaction modes (exec, console, detachable)
- Simplify lifecycle and persistence explanation
- Consolidate networking section with practical examples
- Move advanced topics (checkpoints, SSHFS, errors) to "Going Deeper" section
- Remove SDK examples (will be in separate reference page)

Reduces page from ~1200 lines to ~290 lines while keeping essential information.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Jan 14, 2026

CLI Documentation Generator

Metric Value
CLI Version 0.0.1
Commands Generated 24
Tests ✅ 0/0 passed
📚 Commands documented
  • sprite login
  • sprite logout
  • sprite org auth
  • sprite org list
  • sprite org logout
  • sprite org keyring disable
  • sprite org keyring enable
  • sprite auth setup
  • sprite create
  • sprite use
  • sprite list
  • sprite destroy
  • sprite exec
  • sprite console
  • sprite checkpoint create
  • sprite checkpoint list
  • sprite checkpoint info
  • sprite checkpoint delete
  • sprite restore
  • sprite proxy
  • sprite url
  • sprite url update
  • sprite api
  • sprite upgrade

@github-actions
Copy link

github-actions bot commented Jan 14, 2026

Preview Deployment

Name URL
Preview https://pr-75-superfly-sprites-docs.fly.dev

Commit: 9c44868

@github-actions
Copy link

github-actions bot commented Jan 14, 2026

E2E Test Results

❌ Tests failure

Ran against: https://pr-75-superfly-sprites-docs.fly.dev

These are valid terms flagged by Vale linter:
- df: Unix command for disk free
- Unmount: valid verb for unmounting filesystems

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link

@injoongy injoongy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small note, but otherwise looks good 👍🏻

kcmartin and others added 2 commits January 15, 2026 16:31
Co-authored-by: Injoong Yoon <27440940+injoongy@users.noreply.github.com>
Checkpoints are a core safety feature, not an advanced topic. Users
should know about them before making risky changes or destroying
sprites. Moved from "Going Deeper" to its own main section after
"Managing Sprites".

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kcmartin and others added 2 commits January 16, 2026 02:28
- Link "Quickstart" to the quickstart page
- Fix wording: detachable sessions prevent hibernation, not survive it
- Fix URL domain: sprites.app not sprites.dev

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kylemclaren and others added 2 commits January 16, 2026 12:13
Replaces emoji checkmarks with styled SVG icons in working-with-sprites.mdx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kylemclaren kylemclaren merged commit 8cf475c into main Jan 16, 2026
3 of 5 checks passed
@kylemclaren kylemclaren deleted the improve-working-with-sprites branch January 16, 2026 10:53
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.

5 participants