SShortSingh.

Programming

0
ProgrammingDEV Community ·

Python MCP SDK 2.x Renames FastMCP to MCPServer, Requires Migration Steps

The MCP Python SDK 2.x introduced a breaking change by renaming FastMCP to MCPServer, causing ModuleNotFoundError for projects that had no version pin on the mcp package. Key changes include the replacement of httpx with a fork called httpx2, sync handlers now running on worker threads instead of the event loop, and several API renames such as McpError becoming MCPError. Projects with an unpinned mcp dependency in requirements.txt will silently upgrade to 2.x on a fresh install, triggering these errors. Developers can either migrate their code following the official SDK migration guide or pin their dependency to mcp version below 2.0 to maintain compatibility.

0
ProgrammingDEV Community ·

MCP vs A2A: How Two Protocols Define Modern Multi-Agent AI Workflows

A growing architectural question in AI development is whether an agent should expose a service as a tool or delegate work to another autonomous agent. The Model Context Protocol (MCP) standardizes how agents interact with tools, APIs, and data sources, while Agent-to-Agent (A2A) protocol governs communication between independent agents that manage their own execution processes. A2A has recently joined MCP under the Linux Foundation's Agentic AI Foundation as a Growth Stage project, signaling broader industry alignment. In a practical support workflow example, a support agent uses MCP to directly invoke tools like knowledge base search, while delegating complex diagnostic tasks to a separate agent via A2A. The key distinction is capability use versus agent delegation — MCP for direct tool invocation, A2A for handing off goals to independently operating agents.

0
ProgrammingDEV Community ·

Developer Rebuilds Voice Assistant and Fixes Cross-Platform Bugs in One Day

A software developer spent a Friday overhauling the command-handling logic of a personal voice assistant called Friday after persistent response failures prompted a deeper code review rather than a surface-level fix. The developer restructured the intent-recognition loop, added error handling and granular logging, then deployed an updated build to a staging environment. Real-device testing later exposed UI and audio regressions, including a race condition in the audio-loading pipeline on Android and iOS, which was resolved by deferring audio requests until the layout callback completed. Parallel work on a separate project called Living-Books addressed scroll, audio initialization, and font-loading bugs through incremental fixes targeting mobile-specific rendering issues. The developer also noted that deliberate breaks during the day helped sustain focus and avoid burnout over a long debugging session.

0
ProgrammingDEV Community ·

Claude Code's tool search defers 40,000+ tokens of MCP definitions by default

A developer tested Claude Code v2.1.263 and found that its default 'tool search' feature withholds 88 MCP tool definitions from the initial prompt, cutting first-request input tokens from roughly 61,000 to around 21,000. The feature, enabled by default via the ENABLE_TOOL_SEARCH environment variable, loads only tool names and server instructions at session start, pulling full schemas only when Claude explicitly requests a tool. This explains why users who added multiple MCP servers in recent months noticed little to no context window shrinkage compared to earlier behavior. However, the auto:5 threshold mode — which defers tools only after they exceed 5% of the context window — loaded all 88 definitions anyway in testing, resulting in even more tokens than the fully upfront setting. The feature requires a Claude 4.5-generation model or later and is automatically disabled when a non-Anthropic base URL is detected, as most proxies cannot handle the tool_reference blocks it depends on.

0
ProgrammingDEV Community ·

FastAPI and EdgeOne Pages Template Offers Streamlined Python Web App Deployment

A new web application template integrating FastAPI and EdgeOne Pages has been introduced to simplify modern Python-based development. FastAPI is a high-performance Python framework that supports asynchronous programming and rapid development using type hints and standard Python conventions. EdgeOne Pages complements it as a deployment platform featuring one-click publishing, removing the need for complex server configuration. The template includes ready-to-use code structures with built-in data validation via Pydantic, helping developers organize input data cleanly. Together, the integration aims to shorten the path from development to production for teams building fast, scalable web applications.

0
ProgrammingDEV Community ·

AI Agent Overload Could Let Attackers 'DDoS' Human Security Analysts

Trent AI co-founder Eno Thereska warns that as AI agents multiply in security workflows, the few remaining human reviewers face a structural bandwidth problem rooted in information theory. Humans process information at roughly 2,000 bits per minute, while machines communicate at around 600 billion bits per minute — a gap of 300 million times. This disparity means that in highly automated security operations centres, human analysts become the critical bottleneck rather than the fastest component. Adversaries could exploit this by flooding review queues with low-severity decoy alerts or injecting complex, ambiguous cases to exhaust analysts' cognitive capacity while real attacks slip through. Thereska likens the risk to a 'DDoS on humans', arguing it is no longer theoretical given the volume of findings already generated by tools like Snyk and Wiz.

0
ProgrammingHacker News ·

HN User Calls for Curation or Filters as AI Content Dominates Feed

A Hacker News community member has raised concerns that AI and AI-adjacent content has come to dominate the platform's feed over the past few months, crowding out other technology discussions. The user observed that non-AI submissions, such as a Lenovo solid-state cooling laptop and an open-source modular home display device, are gaining little to no traction compared to what they would have received a year or two ago. The post, which garnered 147 points and 59 comments, argues that the shift is making HN less useful as a broad technology discovery platform. The author is calling on Y Combinator to either introduce editorial curation to boost visibility of non-AI content or implement a simple tagging and filtering system. The submission reflects a broader unease among some long-time HN readers about the platform's narrowing editorial diversity.

0
ProgrammingDEV Community ·

Audit of 18 Web Scrapers Uncovers Three Common HTTP Retry Logic Bugs

A code audit across a fleet of 18 Apify web-scraping actors revealed three recurring bugs in HTTP retry logic. The most critical flaw excluded HTTP 429 (Too Many Requests) responses from retry handling entirely, meaning rate-limit errors were never retried when they should have been. Two other actors did the opposite, pointlessly retrying permanent errors like 401 and 404 responses that can never succeed regardless of how many attempts are made. A third widespread issue involved ignoring the server-provided Retry-After header, causing scrapers to wait arbitrary durations instead of the server-specified delay. None of the fixes have been fully rolled out across all 18 actors yet, highlighting how retry-logic bugs can persist silently in production systems.

0
ProgrammingDEV Community ·

Debouncing in JavaScript: How It Prevents Event Flooding and Boosts Performance

Debouncing is a JavaScript technique that delays function execution until a user pauses an action, preventing excessive calls during rapid interactions like typing or scrolling. Originally borrowed from electronics, the concept was introduced to web development by John Hann. Without debouncing, events such as keystrokes or window resizing can fire hundreds of times per second, overwhelming the browser's single-threaded event loop and triggering costly API calls. The mechanism works by resetting a timer each time an event fires, only executing the target function once the user stops and the timer completes. This approach significantly reduces unnecessary server requests and improves overall application performance and user experience.

0
ProgrammingDEV Community ·

Three Scenarios Where AI-Assisted Task Splitting Breaks Down for Developers

Backend engineer Anton has outlined three specific conditions under which his structured, specification-driven development method fails. The approach collapses when the scope of work is genuinely unknown upfront, as no meaningful task specification can be written before a decision is made. It also struggles with unfamiliar codebases, where a lead engineer must manually read the code tree before writing any task — a slow, non-parallelisable step that multiplies in cost if skipped. The third failure point is tasks lacking a clear definition of done, such as 'improve the error handling,' since no automated acceptance command can confirm completion. Anton notes that vague tasks can be partially rescued by converting subjective goals into measurable checks, but the method's core assumption — that all key facts are known before writing begins — must hold for it to work.

0
ProgrammingDEV Community ·

Expo EAS Now Automates PostHog Analytics Setup and Links Build Data to Events

Expo has launched a one-command integration that automates the full PostHog analytics setup for Expo apps, eliminating the need to manually configure SDKs, copy API keys, or set environment variables. The integration installs the PostHog SDK, adds the config plugin, and populates keys across EAS environments for Production, Preview, and Development in a single step. Once installed, every PostHog event automatically carries EAS metadata such as update ID, channel, and runtime version as super properties, closing the gap between user behavior data and specific build information. EAS Workflows can now use native PostHog functions — including posthog_flag_rollout and posthog_wait_for_metric — to pause deployments and make release decisions based on live production metrics. This enables automated, metric-gated rollouts where an update can be shipped to a subset of users, monitored for errors, and either expanded or reverted without manual intervention.

0
ProgrammingDEV Community ·

How Enterprises Should Structure Data Ingestion and Retrieval for AI Systems

A technical guide series on enterprise AI adoption has reached its second stage, focusing on data sourcing, ingestion, and role-scoped retrieval. Using a fictional 40-person company called Qingchuan as a case study, the piece explains how internal systems like wikis, ticket tools, and databases must be explicitly listed and governed before any content is indexed. A key risk highlighted is that access restrictions tied to source documents do not automatically carry over when content is chunked and embedded into a vector index, making manual permission tagging at ingestion time essential. The guide also warns that indexes built from a one-time data load can become stale as documents are edited, deleted, or reclassified over time. Finally, it describes how role identifiers established in the previous stage are applied at query time to filter search results, ensuring users only retrieve content they are authorized to see.

0
ProgrammingDEV Community ·

8 Classic Software Books That Gain New Relevance in the Age of AI Coding

A DEV Community article argues that AI's ability to generate code quickly makes foundational software engineering books more important, not less. Key challenges like understanding user problems, agreeing on system behavior, and managing trade-offs remain human responsibilities that AI cannot resolve on its own. The piece highlights eight books—including 'Escaping the Build Trap,' 'Specification by Example,' and 'Learning Domain-Driven Design'—as especially valuable guides for AI-assisted development. It warns that faster code generation can embed flawed assumptions deeper into a system before they are detected, making upfront clarity on requirements and domain language critical. The author recommends these texts as practical frameworks for teams navigating decisions that precede and surround the code AI produces.

0
ProgrammingDEV Community ·

Why 'Cannot Reproduce' Often Just Means You and Your User Run Different Builds

A developer at DEV Community described how they mistakenly announced a shipped feature that was still sitting on an unmerged branch, highlighting a common but underappreciated debugging pitfall. Beyond environment differences like OS or network, there are four distinct points where a developer's build can silently diverge from a user's: an uncommitted or unmerged branch, a merged-but-unreleased build, a released-but-uninstalled update, and an installed-but-not-yet-running version. Browser extensions and installed apps are especially prone to this, since auto-updates follow a schedule and open tabs continue running whatever code they launched with. When a developer cannot reproduce a reported bug, they may simply be testing a build no user has ever run. The author recommends automatically capturing build version, browser version, and server commit in every bug report, and treating that data as mandatory rather than optional.

0
ProgrammingDEV Community ·

Developer Builds Automated AI Career Coach Using Make.com and Google Gemini

A developer has created an automated workflow that uses Google Gemini AI to analyze student progress reports and log personalized feedback into a database without any human involvement. The system integrates Google Forms, Make.com, Google Sheets, and Gemini 3.8 Flash to function as an AI-powered career coach. When a student submits a form, Make.com monitors the linked Google Sheet, captures the response data, and triggers the AI to evaluate the student's progress against their stated career goals. Gemini then generates a structured assessment that is automatically written back into the spreadsheet. The developer shared the project as a demonstration of how AI automation can eliminate manual review bottlenecks in educational and business settings.

0
ProgrammingDEV Community ·

Developer Builds Personal Blog on AWS Using Terraform for Full Infrastructure Control

A developer returning to cloud engineering chose to build a self-hosted blog from scratch rather than using off-the-shelf platforms, using the project itself as a learning exercise. The setup uses Terraform to provision AWS resources including S3 for hosting, CloudFront for content distribution, Route 53 for DNS, and ACM for TLS certification. A GitHub Actions CI/CD pipeline automates deployment by building the site and syncing output files to S3 whenever changes are pushed to the main branch. HTML files are intentionally left uncached while static assets are set as immutable, ensuring new content is always served fresh without stale pages. The developer acknowledges the setup demands cloud knowledge but highlights greater infrastructure control as the key advantage over managed blogging services.

0
ProgrammingDEV Community ·

Hackers Chain Two JFrog Artifactory Flaws to Seize Admin Access and Deploy Backdoors

Attackers exploited two vulnerabilities in self-hosted JFrog Artifactory — CVE-2026-42018 and CVE-2026-42016 — chaining them to escalate an unauthenticated request into full administrator-level access, sometimes within five minutes. Security firm Wiz observed the attacks occurring between August 15 and September 8, 2026, across multiple compromised servers. Post-exploitation activity included creating persistent admin accounts, installing malicious Groovy plugins for code execution, and deploying a custom Rust backdoor with command-and-control capabilities. Because the administrator-scope token retains an anonymous username, all attacker actions appear in logs as 'token:anonymous', making detection by username searches ineffective. JFrog has released patched builds across multiple branches and advises affected users to upgrade immediately, rotate their cluster join key, and revoke any tokens issued since August 28; cloud-hosted instances are not affected.

0
ProgrammingDEV Community ·

Study Tracks Brand Visibility in ChatGPT and Gemini Across Four Sectors

A visibility audit measured how often four real brands appeared spontaneously in AI assistant responses across energy, insurance, DIY retail, and marketing agency sectors. Researchers ran 293 AI-generated responses using GPT-4o-mini, Llama 3.3 70B, and Gemini 2.5 Flash, applying a share-of-voice metric to track unprompted brand mentions. Leroy Merlin led its category with an 81.2% share of voice, while digital marketing agency Fullsix appeared in just 7.5% of responses in its own sector. In insurance, Allianz dominated with 77.8% share of voice, leaving Tranquilidade trailing at 20.6%. The findings highlight that unlike search engines, AI assistants return short curated lists, meaning brands absent from those lists receive zero visibility.

0
ProgrammingDEV Community ·

Developer builds 120KB vector search library in C with zero dependencies, rivals ChromaDB

A developer has released NanoVector, a lightweight vector search library written in pure C with SIMD optimizations, designed as a minimal alternative to tools like ChromaDB and FAISS. The library weighs just 120KB unpacked and has no external dependencies, compared to ChromaDB's 35-plus transitive packages and 120MB-plus download size. NanoVector's Python cold import time is reported at 0.6 milliseconds, roughly 3,000 times faster than ChromaDB's measured 1,850 milliseconds. The tool targets AI agent developers building local RAG systems or CLI tools who need to store small-to-medium collections of embeddings, typically between 50 and 50,000 vectors. It supports AVX2, ARM NEON, and pure assembly backends, and persists data in a single binary .nvec file installable via pip.

← NewerPage 1469 of 3361Older →