SShortSingh.
Back to feed

How Claude Code cloud environments cache setup scripts to speed up sessions

0
·2 views

Claude Code cloud sessions start in a fresh virtual machine whose contents are determined by the environment's network access, variables, secrets, and setup script. The setup script runs once and its filesystem is saved as a snapshot, which later sessions reuse, so setup time is paid only occasionally. Changing the setup script or allowed network hosts triggers a rebuild, as does cache expiry after about seven days. Only file-based results such as installed packages and pulled images are cached, while running services and scripts exceeding roughly five minutes are not, which is why those should be handled by a SessionStart hook instead. Network access can be set to none, trusted (the default), full, or a custom domain list, and secrets can be stored as network secrets that are injected by a proxy rather than exposed as environment variables.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

CSS che adatta la galleria al numero di elementi, senza JavaScript

Un articolo su DEV Community propone di gestire il layout di una galleria tramite CSS anziché con props, classi modificatrici o logica JavaScript. L'approccio usa una custom property per il numero di colonne, con un valore predefinito di tre. I selettori :has(), :nth-child() ed :last-child permettono di rilevare se il numero di elementi è pari o superiore a una certa soglia. Con questa regola, le gallerie con due o quattro elementi passano a due colonne, quelle con sette o più a quattro, mentre sei elementi restano su tre. Secondo l'autore, il vantaggio è un componente più pulito che reagisce automaticamente a filtri, paginazione e contenuti dinamici.

0
ProgrammingDEV Community ·

A Valid Payment Signature Does Not Guarantee the Purchase Is Correct

A valid signature only confirms that a payment notification originated from the payment provider, not what the payment should unlock. Developers are advised to test whether changing checkout amounts, product IDs or account references in a sandbox alters what gets granted. The server should control pricing and tie each checkout to the authenticated buyer. Before access is granted, payment status, currency and product should be matched against the stored order, allowing for legitimate discounts and taxes. Test-mode payments must also be kept strictly separate so they can never unlock live access, and custom fields in signed notifications should still be treated as untrusted since they may have originated in the browser.

0
ProgrammingDEV Community ·

osFoundry MCP tool limits GitHub PRs to one dedicated branch push, with owner approval required

The osFoundry MCP server exposes a propose_gitnest_provider_publication tool that lets Codex CLI ask a repository owner to publish a change set to GitHub or GitLab. The tool accepts only a change set ID, version, composition hash, and idempotency key, with branch name, title, and draft settings filled in by the owner at approval time. The author stresses that the approved action pushes only the dedicated branch, and the tool is annotated as open-world and destructive so clients pause for confirmation. A schema test of twelve cases showed limits such as a 20-file cap and a 100,000-character per-file cap, but the 200 KB total is measured in UTF-8 bytes and cannot be enforced by schema alone. The post also notes that the four publication-related tools consume under 1,000 of roughly 12,600 tokens in the full tool list.

0
ProgrammingDEV Community ·

Google Launches Gemini Decision 1, a Model That Scores Many Questions in One API Call

Google DeepMind announced Gemini Decision 1 on November 11, 2026, a model designed to produce scores and probabilities rather than generated text. A single request can include a shared multimodal input and up to 1,000 independent yes/no, multiple-choice, or rubric-based questions. Each answer comes with a confidence score, allowing developers to route uncertain results to fallbacks or humans. The shared input is billed once per request, and the endpoint is available now in the Gemini API and Google AI Studio, with integrations rolling out to several third-party frameworks. The source author notes they had not yet tested the model hands-on, so the report is based on the official documentation.