Loading…
Browse by type
Tutorial reads
Tutorial posts on Yomu, summarised newest first.
- 785 posts
- 20 companies
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Tutorial posts
Run Claude Code From Your Phone With Sprites
Sprites are on-demand, hardware-isolated Linux computers that start in under a second, persist code, packages, and state between sessions, and let you checkpoint the entire environment at any time. The sprite-mobile tool provides a chat UI for issuing commands to Claude Code in YOLO mode from a phone over Tailscale, enabling unrestricted and aggressive experimentation. Setup requires one command to create a Sprite and a one-line script that configures Claude CLI, GitHub CLI, Fly.io CLI, Sprites CLI, and Tailscale, sets up HTTPS via Tailscale Serve, and starts Tailnet Gate for waking suspended Sprites. After setup, obtain the public URL with sprite url update –auth public -s cheese_sandwich and open it in a Tailscale-connected phone’s browser. Sprites automatically sleep after 30 seconds of inactivity, wake in under a second, and incur no charges when idle.
How to Run Untrusted Code Safely
Running untrusted code requires stronger isolation than containers offer because containers share the host kernel and remain vulnerable to escapes, a threat classified by NIST SP 800-190 as critical and by MITRE ATT&CK as T1611. Network egress control must be allowlist-based rather than denylist-based, as code without filesystem access can still exfiltrate data or download payloads to attacker servers. Sprites provide hardware-isolated sandboxes with network policies enforced through an external API that code cannot modify, even with root access. They support checkpoint-based rollback, pre-installed runtimes for Python, Node, Ruby, Rust, Go, Java, Elixir, Bun, and Deno, and automatically sleep when idle. The post demonstrates creating a code-runner Sprite, applying a deny-all network policy, executing code via subprocess, and optionally permitting specific domains like api.openai.com while blocking all others.
Run a Local LLM on a CPU With BitNet and a Sprite
Microsoft’s BitNet uses 1.58-bit quantization and ternary weights to run a 2.4 billion parameter model on a CPU, fitting in 1.1GB of RAM and achieving 50 tokens per second. The author deploys this model on a Sprite, a hardware-isolated compute unit that provides a URL with TLS, sleeps when idle, and wakes on request with a 1.2-second model load time. A Python HTTP server wraps llama-cli as a subprocess, exposing an OpenAI-compatible API at /v1/chat/completions, a status page, and a self-addressed client at /client.py. Checkpoints capture the entire environment atomically, allowing safe rollback when experimenting with different models, kernel parameters, or prompt formats. The Sprite registers as a service on port 8080, making the inference endpoint available to any other Sprite in the account without infrastructure changes.
How to build an AI agent that remembers returning customers
AI agents that fail to recognize returning customers force them to repeat information, with 74% of consumers reporting repetition and 71% willing to abandon conversations early. Twilio’s approach uses three capabilities: identity resolution to match profiles across channels, recall to pull observations and summaries from Conversation Memory, and write-back to save new facts via the Memory API. Conversation Memory stores structured traits, extracted observations from conversations, and short conversation summaries, with the Recall API returning up to 20 observations and 5 summaries per profile. Agent Connect loads relevant context before the agent replies, running in Orchestrator mode with memory modes of always or once, and it uses ConversationRelay for voice calls. New facts are saved mid-conversation by agent tools calling the Memory API directly because automatic extraction only runs after a conversation closes, and memory carries across channels and human handoffs through Twilio Flex.
A builder’s guide to scaling Databricks Apps
As a Databricks Apps application scales from a few users to thousands across an organization, it must handle growing demand without latency spikes or outages. The guide proposes a four-stage approach: set targets during design, build with async code and recoverable state, test with load simulations, and operate with monitoring. Keep app compute focused on serving the UI; send heavy work to Lakebase, Databricks Jobs, or Sandbox, and choose a framework like AppKit that offers built-in caching and telemetry. Separate session state into soft state (rebuildable from hard state) and hard state stored durably in Lakebase or Unity Catalog so any instance can reconstruct a session after restarts or scaling. Use load tests to validate concurrency and bursts, then consult system metrics on CPU, memory, timeouts, and connections to decide whether to scale up to a larger instance or scale out with more instances.
How to audit what your AI agent knows about a customer
To audit what an AI agent knows about a customer, three questions must be answered: what the agent stored, where facts came from, and what it used for each answer. Twilio Conversation Memory stores customer knowledge as traits, observations, and conversation summaries, each with provenance including source, conversation IDs, and revision history. Agent Connect passes retrieved memory to the developer’s code on every message, enabling logging of which memories were used per response, including relevance scores. The guide also covers correcting or deleting incorrect memories and building a persistent audit trail by exporting Memory events via Twilio Event Streams, tied together with conversation IDs. This approach gives human agents and compliance teams the ability to trace, explain, and fix agent behavior, with Agent Copilot displaying knowledge sources.
How NVIDIA Uses AI Agents to Streamline AI Factory Operations
NVIDIA developed the AI Factory Operations Agent to streamline internal DGX SuperPOD operations, using specialized AI agents that communicate through Model Context Protocol (MCP) to reduce manual effort for SREs managing GPU clusters. The architecture centers on a NemoClaw agent runtime that routes queries to domain-specific agents for job recovery, hardware triage, observability, research, Kubernetes awareness, and cluster management, all using locally served Nemotron open models for inference. The system runs as a Kubernetes control-plane application with Helm deployment, using OpenShell for sandboxed shell execution and read-only kubectl tools with RBAC for security. In production, agents detect training failures and goodput degradation, correlate root causes across scheduler, application, hardware, and network layers, and surface recommendations through a chat interface with full auditability. NVIDIA shares five lessons from production use: clear agent boundaries, read-only first approach, cross-layer correlation, precise MCP tool definitions, and transparent reasoning for SRE trust.
How to Use AI for Rust Development: Lessons From an OpenAI Engineer
Predrag Gruevski, an OpenAI engineer who created cargo-semver-checks and Trustfall, uses AI to make Rust code more correct rather than produce more code. He sorts code by risk: low-stakes tasks like CI workflows are delegated, but logic others rely on, such as Rust’s CI tooling, gets scrutiny like constructing false alarms to validate accuracy. Unsafe Rust demands line-by-line review because a 20-line mistake can cause memory safety issues at data center scale, and he spends four hours on 100 lines of unsafe code. Effective prompting requires sketching the design, specifying test structure, stating acceptable assumptions, and being precise; a 45-minute prompt found a single line deletion that made the new trait solver up to 7.5% faster. Verification focuses on design and tests using cargo-mutants, coverage tools, Miri, and sanitizers, with a prompt describing a full state machine verification process.
Use NVIDIA NeMo to Turn Agent Failures into Tests and Harness Fixes
Generic benchmarks often fail to diagnose why an agent chooses the wrong tool, misses context, or completes a task without meeting domain requirements. The NemoClaw optimization loop uses NeMo Compass to analyze recorded traces against intended behavior defined in ETHOS.md and surface recurring problems such as the agent sending a message without user confirmation. NeMo Eval Author then creates custom Harbor evaluations that reproduce the identified failure, grounding tests in real agent behavior rather than synthetic examples. The harness fix—a change to the agent’s SOUL.md system prompt—instructs it to prepare for review and stop before sending, and evaluation results show the agent passes all development and held-out tasks while reducing tool calls. In an engineering agent example, the same loop reduced malformed tool calls from 142 to zero and achieved a 28 percent relative improvement in workflow score.
How Kueue schedules Spark jobs fairly on Red Hat OpenShift AI
Kubernetes schedules individual pods but does not decide which Spark application should receive a team’s quota first, so concurrent submissions can leave driver pods stuck and pipelines racing for nodes. Kueue intercepts a SparkApplication before the Kubeflow Spark operator creates driver or executor pods, creating a Workload and admitting it only when declared CPU and memory fit ClusterQueue quota. The walkthrough builds a self-managed queue for the spark-team-a project with a ClusterQueue reserving 3 CPUs and 4 GiB, then submits a SparkApplication carrying the kueue.x-k8s.io/queue-name label. A second copy remains suspended while the first consumes the quota and is admitted automatically after the first completes. Preemption deletes all driver and executor pods, losing in-memory state, shuffle data, and ephemeral files, while quota is reserved from declared requests rather than runtime utilization.
Best Practices for Conversation Relay Provider Failover
Twilio Conversation Relay uses separate third-party providers for transcription (ASR) and text-to-speech (TTS), each of which can fail under high load or during outages. To maintain uninterrupted Voice AI calls, developers must implement an application-level failover strategy that switches providers when errors occur. Failures manifest differently depending on timing: startup failures end the session with an ErrorCode, while mid-call TTS failures keep the call alive and require the WebSocket server to detect the error and send an end message with handoffData. The action URL handler must branch on specific error codes (64114 for ASR, 64111/64112 for TTS) and return new TwiML with alternative providers. To prevent infinite loops, the strategy limits retry attempts, changes providers on each attempt, and includes a final fallback that does not use Conversation Relay, such as or .
Declare and optimize with UNIQUE constraints on Databricks
Databricks now supports UNIQUE constraints in Public Preview for Unity Catalog Delta tables, allowing tables to declare multiple uniqueness guarantees beyond a single primary key. Unlike primary keys, UNIQUE constraints can be nullable and multiple can exist per table, enabling schemas to record business-level uniqueness such as username or composite (workspace_id, external_user_id). These constraints are informational by default and not enforced on writes, but after validation they can be marked with RELY to enable query optimizations. With RELY, the optimizer can eliminate unnecessary joins and DISTINCT aggregations, achieving up to 7.9x and 12.0x speedups respectively on TPC-DS SF10000 benchmarks by removing over 99.99% of shuffle. Foreign keys can also reference UNIQUE constraints, and the feature supports composite and nullable unique columns with specific nullability considerations for optimization, and the post provides validation queries to check data before enabling RELY.
JBoss EAP clustering in OpenShift: KUBE_PING discovery
This article explores the JGroups KUBE_PING discovery protocol for clustering JBoss EAP 7 and JBoss EAP 8 in Red Hat OpenShift 4. KUBE_PING queries the Kubernetes API directly for pod IP addresses, then filters them by namespace and labels to establish peer-to-peer TCP connections. Configuring KUBE_PING requires setting three environment variables: JGROUPS_PING_PROTOCOL, KUBERNETES_NAMESPACE, and KUBERNETES_LABELS. The default service account must be granted the view role on the namespace to avoid HTTP 403 errors. In JBoss EAP 8, clustering is not enabled by default and must be provisioned via Galleon layers during the build process.
How to run I/O workloads on OpenShift Virtualization VMs
Testing I/O performance at scale across multiple OpenShift Virtualization VMs is challenging due to scattered SSH sessions and ad hoc scripts. The fio-container harness turns multi-VM FIO into a single, repeatable container run using a Python orchestration script. It supports both pre-created VMs and on-demand provisioning (CREATE_VMS=true) for Linux guests based on Fedora or RHEL. The harness handles storage preparation, FIO installation, data pre-write, and cleanup, and collects per-VM JSON results into a single mounted directory. Results can be analyzed with provided Python scripts to generate IOPS and bandwidth graphs for comparing StorageClass configurations or cluster changes.
Connect To A MongoDB Database Using Node.js
This tutorial walks through connecting a Node.js script to a MongoDB database, listing the cluster’s databases, and printing the results to the console. It begins with prerequisites: a supported Node.js version, the MongoDB Node.js Driver installed via npm, and a free MongoDB Atlas cluster loaded with sample data. The Atlas connection wizard adds the current IP address, creates a MongoDB user, and supplies a connection string for Node.js driver version 3.6 or later. The script imports MongoClient, defines an asynchronous main function, creates a client with the connection URI, and awaits client.connect(). Database calls sit inside try/catch, with a finally block closing the connection, and a listDatabases function retrieves and prints the database names before the script runs with node connection.js.
Quick Start: C# And MongoDB - Starting And Setup
This quick start guide demonstrates the initial setup for connecting C# applications to MongoDB. The demonstration uses Visual Studio 2019 on Windows 10 and connects to a MongoDB Atlas cluster that has the sample dataset pre-installed. Setup involves creating a .NET Core console application named MongoDBConnectionDemo and installing the MongoDB.Driver version 2.9.1 via NuGet’s Manage Packages for Solution. The code adds a using MongoDB.Driver directive, creates a MongoClient with the Atlas connection string, retrieves the list of databases using ListDatabaseNames, and prints each database name to the console in just over 20 lines. This article is the first in a Quick Start series that will cover creating, reading, updating, and deleting documents, mapping MongoDB documents to C# objects, using the MongoDB aggregation pipeline, and integrating LINQ queries with MongoDB.
Diagnose Distributed AI Workload Failures with NVIDIA Attribution
NVIDIA Attribution is an open-source, workload-centric failure-attribution system for distributed AI workloads, where one GPU or fabric event can surface as NCCL errors and scheduler changes. It correlates workload-scoped logs, metrics, telemetry, and scheduler state, returning a structured diagnosis with outcome, root cause, affected nodes, symptoms, and an evidence trail. Two deployable components use a core attribution engine: the Attribution Service exposes it through an HTTP API, while the Python Attribution Blueprint discovers workloads, runs collectors, calls the Service, writes results, and supplies a read-only dashboard. In a worked example, XID 149 produces NCCL errors on other ranks; deterministic rules decode it as an NVLink signal integrity issue, retain the NCCL reports as demoted evidence, and attribute the failure to node-02 as hardware failure. The quickstart runs sample evidence in Docker, and the diagnosis records uncertainty when evidence is incomplete.
Build an AI Wellbeing App with Fireworks and Fitbit via Auth0 Token Vault.
Daily Wellbeing is a Next.js 16 and TypeScript app that reads Fitbit activity, sleep, and resting heart-rate data through the Google Health API v4 and uses Fireworks to suggest general wellbeing actions. Auth0 handles sign-in, while Token Vault stores the Fitbit authorization credentials and lets the server retrieve a token for the signed-in user. The app calculates a daily report for the latest completed day, compares it with recent averages, and keeps missing values marked as unknown. Users can review those readings without running inference and must explicitly choose to share the summary before Fireworks is called. The /api/advice route requires a valid session and an exact matching origin, rejects client-supplied readings or prompts, forces the summary tool on the first model step, then streams suggestions with tools disabled and thinking turned off.
How to run a DR readiness engagement
The article describes a structured disaster recovery readiness engagement that compresses the three business decisions and progressive validation framework into a weeks-long process. The kickoff brings together application owner, business owner, and platform team to produce a boundary map listing every service and account in the recovery path with assigned owners and timelines. Assessment uses Well-Architected and Operational Readiness Reviews to surface dependency gaps, which are then addressed with owners and fix dates before testing proceeds. Validation progresses through tabletop exercises, planned failovers, and surprise drills, with each test’s findings fed back into the three business decisions to update the recovery commitment. An enterprise example shows the engagement exposed a missed 5-hour RTO, missing authentication platform, and manual DNS failover, then over four months automated failover with ARC routing controls and pre-provisioned resources to pass the second exercise.
Build World Models for Interactive Simulation with NVIDIA Cosmos
Physical AI developers need to adapt world models to their sensors, tasks, and data and then deploy those models reliably. NVIDIA Cosmos combines world foundation models with development tools: Cosmos Framework supplies agent skills and recipes for training, multimodal data processing, optimization, and inference, while Cosmos NIM provides GPU-accelerated serving through application APIs. The simulation workflow uses Cosmos 3 Nano checkpoints and inference recipes to generate synchronized multi-camera video and LiDAR for autonomous vehicle, robot, and surgical scenarios. Transfer-Auto performs bidirectional generation for offline synthetic data, and Sim-Auto provides causal, few-step-distilled autoregressive streaming for closed-loop evaluation. For deployment, developers select a NIM configuration by GPU memory, launch the container, check readiness, and send an inference request, choosing latency or throughput profiles.
Top topics
- Architecture852
- Performance851
- LLMs749
- AI Agents713
- Machine Learning644
- AI632
- Open Source599
- Developer Experience461
Weekly digest
The best engineering reads, once a week.