Verdicts first, ranked by results and evidence.
-
Explainer
mlx-lm: Cache a prompt for follow-up queries
As of November 2026, save a long context once and load it as a prefix for a new query. The cache also supplies the model selection; begin with mlx_lm.cache_prompt
-
Explainer
LangGraph: completed subgraph nodes rerun on resume
As of November 2026, upgrade LangGraph to address completed siblings rerunning during ordinary interrupt resumes. Use
1.2.24. -
Explainer
LangChain: stop JSON mode leaking into later plain calls
As of November 2026, Upgrade langchain-openai: copying the nested Responses text options prevents request-specific format changes from mutating shared model_kwargs. First carrying package release:
langchain-openai==1.4.2. -
Explainer
LangChain: preserve required fields passed through aliases
As of November 2026, Upgrade langchain-core: tool input validation retains fields supplied through Pydantic aliases instead of silently dropping them after validation. First carrying package release:
langchain-core==1.5.5. -
Explainer
LangChain: stop stale structured responses ending a turn
As of November 2026, Upgrade langchain: checkpointed agents now clear a missing structured response and route on a fresh non-None value, allowing validation retries. First carrying package release:
langchain==1.3.15. -
Explainer
Gemini CLI: create a reusable pure refactor command
As of November 2026, save a TOML prompt as a namespaced command, add a file to context, and invoke /refactor:pure. Start by creating the command directory with mkdir -p ~/.gemini/commands/refactor
-
Explainer
Anthropic API: set effort for token cost and depth
As of November 2026, Effort trades response thoroughness for token efficiency across text, tool calls, and thinking. Claude Opus 5.5 defaults to medium. Set the request field output_config.effort
-
Explainer
llama.cpp: restore prompt reuse after slot save
As of November 2026, Upgrade and create a new slot save so context checkpoints survive disk restore on hybrid/recurrent models. First released in pre-release build
b11507; first stable release:v0.7.0. -
Explainer
Claude Code: restore context after compaction with a hook
As of November 2026, register a SessionStart command hook with matcher compact so its stdout returns critical reminders to context after compaction. Add it to .claude/settings.json
-
Explainer
Pydantic AI: nested run_sync freezes
As of November 2026, use an async callback and await the delegated run. The SDK now rejects nested synchronous agent execution with UserError instead of allowing this deadlock; the outer application may still use run_sync. Delegate with
await agent.run(...). -
Explainer
Pydantic AI: AG-UI tool calls have an orphan parent
As of November 2026, upgrade Pydantic AI so a response beginning with tool calls announces their assistant parent before TOOL_CALL_START. Clients can then reconstruct that parent from the stream. The first stable fix is
v2.37.0. -
Explainer
LangGraph: tool pause reported as tool-error
As of November 2026, upgrade so a tool paused by interrupt() is no longer labeled a failure on the tools stream. Use
1.2.24. -
Explainer
LangChain: summary failure deletes conversation history
As of November 2026, upgrade to preserve history when summary generation fails. The middleware propagates the underlying failure instead of inserting error text; the package version to use is
1.5.2. -
Explainer
LangChain: invalid HITL config auto-approves tools
As of November 2026, upgrade langchain to 1.5.2 so malformed approval configs raise ValueError, then correct the configured decision list. Set
allowed_decisions. -
Explainer
Pydantic AI: streaming returns text before structured output
As of November 2026, use the event-streaming method to keep the run going through tool execution when text arrives before structured output. The v2.66.0 resolution clarified existing behavior; upgrading alone does not alter it. Use
run_stream_events(). -
Explainer
LangChain: HITL edit retries the original tool call
As of November 2026, upgrade LangChain to retain the model-generated call and tell the model which human-edited action executed. The fix first shipped in langchain==1.4.2; the November stable version carries that behavior. Upgrade to
langchain==1.5.2. -
Explainer
Goose: fix model does not support image input
As of November 2026, Goose uses model image capability information to avoid sending images to non-vision models. This addresses the session-breaking image-routing failure; the PR covers only part of the delegation report. Upgrade to
v1.48.0. -
Explainer
Claude Code skills for product demo visuals: stageshow, motion-prompt
As of November 2026, stageshow helps an agent draw a believable fake app interface for stills and animations, and motion-prompt gives you names for specific motion effects. When to use each, how to install them, and what is unverified (checked 2026-11-01).
-
Explainer
Prompts in git or a registry like Langfuse in 2026?
As of November 2026, keep prompts in code if engineering review and code deployment are the desired release path; Langfuse enables UI edits without redeploying code. Its SDK cache defaults to 60 seconds. For the registry route, assign the release label
production. -
Explainer
What should my app's /health endpoint check, and what should it skip?
As of November 2026, check the app itself for liveness and required back-end availability for readiness. Kubernetes restarts failed liveness checks but removes unready Pods from service traffic. HTTP probe success is 200–399. Start by choosing the restart check,
livenessProbe. -
Explainer
How do I show dates and times in each user's locale and time zone?
As of November 2026, pass the user’s locale and zone to Intl.DateTimeFormat, then format the timestamp. dateStyle and timeStyle accept full, long, medium or short; neither can accompany component options. Omitting the zone uses the host’s zone. Start with the user’s
timeZone -
Explainer
Why does SQLite say 'database is locked' and how do I fix it?
As of November 2026, SQLite permits one writer per database. SQLITE_BUSY indicates another connection's contention; WAL permits concurrent readers and a writer, and busy_timeout waits only for a bounded time. Before enabling WAL, use the WAL-reset fix in SQLite
3.51.3. -
Explainer
Why does my Google API refresh token stop working after a week?
As of October 2026, Google's OAuth docs say a refresh token expires in 7 days when the project's consent screen is External and its publishing status is Testing, unless you only ask for name, email and profile. Move the app to In production, and handle invalid_grant by sending the user through consent again.
-
Explainer
How do I verify a GitHub webhook signature without it failing?
As of October 2026, GitHub's docs say to compute an HMAC-SHA256 hex digest of the raw request body with your webhook secret, prefix it with sha256=, and compare it to X-Hub-Signature-256 in constant time. GitHub also wants a 2xx within 10 seconds and offers X-GitHub-Delivery to spot redeliveries.
Missing something? Request a thread. Requests with the most votes become the next ones.