Dobby-ai | Claude Code
3 subscribers
147 photos
139 links
Official Anthropic / Claude Code news, updates and release notes. Curated by Dobby — the Data Policy Platform for AI · dobby-ai.com
Download Telegram
Stream-Stall Hint: Clearer Message, Longer Patience
📡 GitHub · anthropics/claude-code
🕐 20.06, 23:59
🏷️ #Anthropic #ClaudeCode #Claude #API_response
• The stream-stall hint message now reads "Waiting for API response · will retry in …".
• It replaces the previous "No response from API · Retrying in …" text.
• The trigger for this hint has been extended, activating after 20 seconds of API silence instead of 10 seconds.

💡 The updated "Waiting for API response" message is a welcome change, shifting the tone from implying a failure to acknowledging an ongoing process.
Coupled with the doubled timeout, this means fewer premature 'stall' warnings and a more accurate representation of Claude's state during intermittent network hiccups or complex computations.
This should lead to a smoother, less anxiety-inducing development experience.
Pay attention to how this impacts your perception of Claude's responsiveness during those longer generation tasks.
💡 Tip: Master Tool Use: Force or Block Calls with `tool_choice`
📡 Dobby-ai · Tip · Claude Code
🕐 30.06, 17:00
🏷️ #Anthropic #ClaudeCode #Claude #API
Ever need Claude to *always* use a specific tool, or *never* touch one? The `tool_choice` parameter in the `messages` API is your secret weapon.
Set `tool_choice: {"type": "tool", "name": "your_tool_name"}` to force a specific tool call, or use `tool_choice: {"type": "none"}` to prevent *any* tool calls, even if Claude thinks it's a good idea.
It's all about precision in your AI workflows.
🛠️

💡 This helps immensely when building robust applications where you need deterministic behavior for critical actions, like ensuring a payment gateway is always invoked or preventing accidental external API calls during a sensitive phase.
🔗 Official docs
Agent Memory Beta Header Lands in SDK
📡 GitHub · anthropics/anthropic-sdk-typescript
🕐 02.07, 22:19
🏷️ #Anthropic #ClaudeCode #Claude #api_update
• The Anthropic TypeScript SDK `v0.110.0` is out.
• It introduces the `agent-memory-2026-07-22` beta header.
• This addition hints at upcoming API capabilities for persistent agent memory.
🧠

💡 This beta header is a strong signal that Anthropic is pushing towards more sophisticated, stateful AI agents.
Developers should start envisioning how persistent memory could drastically simplify complex, multi-turn interactions, reducing the need for constant context re-injection and enabling truly long-running agentic workflows.
Get ready to build agents that remember!
🔗 Official source
💡 Tip: Elevate Your API Observability with `metadata`

📡 Dobby-ai · Tip · Claude Code
🕐 06.07, 09:00
🏷️ #Anthropic #ClaudeCode #Claude #API
When you're hitting the Claude API, don't overlook the `metadata` parameter – it's a game-changer for observability.
You can embed up to 20 custom key-value pairs (string values, max 512 chars) with each request.
This data gets logged right alongside your API usage, giving you a powerful way to tag and track specific calls.


💡 This is invaluable for debugging production issues, segmenting costs by feature or team, and gaining granular insights into how different parts of your application are utilizing the model.
🔗 Official docs
💡 Tip: Precisely Halt Claude's Output with `stop_sequences` 🛑
📡 Dobby-ai · Tip · Claude Code
🕐 06.07, 17:00
🏷️ #Anthropic #ClaudeCode #Claude #API
Tired of Claude running wild with its responses or generating text beyond your expected boundaries? The `stop_sequences` parameter is your secret weapon! By providing a list of strings, you can instruct Claude to immediately stop generating output as soon as it encounters any of them.
This is clutch for maintaining tight control over response length and format, especially when integrating with parsers or subsequent logic.

💡 This is a game-changer for ensuring predictable, concise outputs that cleanly fit into structured data flows or multi-step processes.
🔗 Official docs
TypeScript SDK Adds MCP Tunnels Support
📡 GitHub · anthropics/anthropic-sdk-typescript
🕐 16.07, 22:36
🏷️ #Anthropic #ClaudeCode #Claude #API_updates
The Anthropic TypeScript SDK (v0.112.0) now includes direct support for MCP Tunnels.
This feature enhances API connectivity, enabling more secure and private network interactions.

💡 Adding MCP Tunnels means developers in enterprise or highly secure environments can now route their Anthropic API traffic through private, managed network connections.
This is a game-changer for compliance and data privacy, ensuring your sensitive data never hits the public internet when interacting with the API.
🔗 Official source
New Stop Reason: Context Window Exceeded
📡 GitHub · anthropics/anthropic-sdk-typescript
🕐 23.07, 20:34
🏷️ #Anthropic #ClaudeCode #Claude #API_update
The Anthropic TypeScript SDK v0.114.0 introduces a critical new `stop_reason`.
You'll now see `model_context_window_exceeded` when your prompt or response size blows past the model's limits.
🤯

💡 This new `stop_reason` is a game-changer for debugging context window issues.
Previously, you might just get a generic error or truncated response, leaving you guessing.
Now, when you hit this specific stop reason, you immediately know the model couldn't handle the input size, allowing you to implement robust retry logic with summarization or chunking strategies.
🔗 Official source
💡 Tip: Master Claude's Output Style with `temperature` & `top_p`
📡 Dobby-ai · Tip · Claude Code
🕐 31.07, 15:00
🏷️ #Anthropic #ClaudeCode #Claude #API
Don't just blindly set `temperature` or `top_p`.
These two parameters are your levers for controlling Claude's output creativity and determinism.
`temperature` directly influences the randomness of token selection, while `top_p` defines a cumulative probability threshold for sampling tokens.
Combining them lets you precisely sculpt the model's response style.

💡 When you need highly consistent, factual responses, use a low `temperature` (e.g., 0.1-0.3) with a high `top_p` (e.g., 0.9) for stable yet natural language.
For creative brainstorming or diverse code suggestions, try a higher `temperature` (e.g., 0.7-0.9) alongside a lower `top_p` (e.g., 0.7) to encourage broader exploration.
This interplay is crucial for fine-tuning your application's user experience.
💡 Tip: Pinpoint User Issues with `user_id` in `metadata` 🔍
📡 Dobby-ai · Tip · Claude Code
🕐 01.08, 17:00
🏷️ #Anthropic #ClaudeCode #Claude #API
When debugging, knowing *which* user triggered a specific Claude API call is gold.
By including a unique `user_id` within the `metadata` parameter of your API requests, you create a direct link between a user's session and the model's interaction.
This makes tracking down user-reported anomalies and understanding individual usage patterns significantly faster and more precise.

💡 When a customer hits a weird edge case or reports an unexpected response, having their `user_id` directly in your Claude logs lets you instantly pull up the exact API call and context.
🔗 Official docs
💡 Tip: Master Output Conciseness with `max_tokens` 🎯
📡 Dobby-ai · Tip · Claude Code
🕐 01.08, 18:00
🏷️ #Anthropic #ClaudeCode #Claude #API
Ever get overly verbose responses when you just needed a quick answer? The `max_tokens` parameter isn't just for preventing runaway costs; it's a powerful lever for prompt engineering.
By strategically setting a lower `max_tokens`, you can compel Claude to be more succinct, delivering focused summaries or precise data extractions.

💡 When building UIs that demand brief responses or extracting specific, short pieces of information, `max_tokens` becomes invaluable.
It transforms from a simple limit into a direct command for brevity, ensuring your application gets exactly what it needs without unnecessary fluff.
🔗 Official docs