SShortSingh.

Programming

0
ProgrammingDEV Community ·

Study Finds Most LLMs Accept False Code Claims, Even With Supporting Context

A developer tested 14 large language models against 50 facts drawn from a 50,000-line Python codebase to measure how often models incorrectly validate false memory claims. The experiment ran two conditions per fact: one where models saw only the claim, and one where they also received code context and supporting patterns. Several models, including nemotron-3-nano and glm-4.7-flash, accepted nearly one in four to one in three false claims even when given supporting code anchors. Top-performing budget models from the Qwen3 family matched Claude's false-accept rate of zero at a fraction of the cost, though all models universally accepted one specific false claim tied to a misleading keyword anchor. The findings suggest that cheap models are not universally reliable for memory verification and that anchor-based prompting can itself introduce contamination risk.

0
ProgrammingDEV Community ·

Edge vs Cloud Inference: The Key Trade-offs for Live Sports Highlight Systems

Building a live sports highlight detection system requires a foundational architectural choice: whether to run AI inference at the edge, close to the video source, or in the cloud after the stream is ingested. Edge inference reduces latency and bandwidth by processing footage locally and transmitting only relevant clips, but is limited by fixed hardware capacity, smaller model sizes, and complex distributed update management. Cloud inference offers elastic compute, easier model updates, and the ability to handle multiple concurrent streams, but adds latency and bandwidth costs due to the longer data travel path. In practice, most production systems adopt a hybrid approach, using lightweight edge models for time-critical first-pass detection and cloud infrastructure for richer downstream analysis like ranking and clip assembly. Experts recommend defining a latency budget first and then assigning each pipeline stage to edge or cloud accordingly.

0
ProgrammingDEV Community ·

Google cuts Gemini 2.5 Flash token costs by 50%, boosts coding and automation

Google has released Gemini 2.5 Flash, a developer-focused AI model with improved performance in coding, automation, and multi-step workflows. The new model is priced at $0.75 per million input tokens and $3.75 per million output tokens, roughly half the cost of its predecessor. The release comes just three weeks after the previous version, reflecting Google's strategy of rapid iteration for its Flash series. Benchmark results show notable gains in debugging, code generation, and autonomous agent tasks compared to version 3.6. Google says the price reduction is intended to make large-scale production deployments more accessible for businesses of all sizes.

0
ProgrammingDEV Community ·

AI Referral Traffic Hits 1.08% of Web Visits but Understates Broader Influence

A Conductor report analyzing 13,770 domains across 10 industries found that AI-driven referral traffic accounted for 1.08% of total website visits between May and September 2025. The channel grew at roughly 1% month over month during the study period, signaling steady but modest expansion. ChatGPT dominated AI referrals, generating approximately 87.4% of that traffic, making overall figures heavily dependent on a single platform. Experts caution that referral data alone understates AI's true impact, as users may encounter brands in AI-generated answers without ever clicking through to a website. Industry context also matters significantly, with IT sectors seeing AI referral shares as high as 2.8%, well above the cross-industry average.

0
ProgrammingDEV Community ·

Claude Terminal Hub lets Windows users manage multiple Claude Code sessions in one app

A developer built Claude Terminal Hub, a free open-source Windows desktop app, to simplify resuming Claude Code sessions without manually hunting for project folders. The Electron-based tool reads session data from Claude Code's local .jsonl files and displays all recent sessions in a single screen, requiring no configuration. Each session entry shows an AI-generated title and the last prompt used, and a single click opens a real PowerShell terminal panel already running the resume command. Users can keep up to four terminal panels open side by side, with full support for arrow keys, vim, and Claude Code's TUI interface. The app is available on GitHub and installs on Windows without requiring administrator privileges.

0
ProgrammingDEV Community ·

Qwen 3.8 27B Local Setup: GGUF Sizes, KV Cache Savings, and a Critical Flag

Alibaba released Qwen 3.8 27B under an Apache 2.0 licence on 13 August, making it freely usable for local deployment, while a separate 2.4-trillion-parameter MoE variant launched under a more restrictive licence. The model uses 64 layers but reserves a KV cache for only 16 full-attention layers, cutting per-token cache cost to 64 KB versus 256 KB on a conventional dense model, making long contexts far more memory-efficient. Quantised GGUF versions range from a 9 GB 2-bit build to a 53.8 GB BF16 file, with the Q4_K_M quant at around 17 GB considered the practical sweet spot for 24 GB GPUs. The model also natively handles images and video without additional wrappers, and ships a separate 0.9 GB vision encoder file. Users running llama.cpp must include the --jinja flag to load the model's custom chat template, as omitting it causes erratic output that is frequently mistaken for a corrupted download.

0
ProgrammingHacker News ·

Study finds coffee consumption linked to metabolic health and sex hormone levels

A new study from the University of Oulu has found connections between coffee consumption and both metabolic health and sex hormone levels. The research suggests that drinking coffee may have measurable effects on hormonal and metabolic markers in the body. The findings add to a growing body of evidence exploring how dietary habits, particularly coffee intake, influence physiological processes. Details of the study were published by the University of Oulu, a Finnish research institution known for health and population studies.

0
ProgrammingDEV Community ·

How to Use Free AI Models for Adversarial API Testing Before Launch

Developers can use free large language models as a low-cost adversarial testing tool by pointing them at API endpoints and prompting them to generate inputs designed to cause failures. Unlike traditional fuzzers, language models can produce semantically plausible payloads that target validation logic and error handling in ways manual testing often misses. A short Python script using any OpenAI-compatible endpoint can automate this process, sending hostile request bodies to a local service and logging status codes and timeouts. Common results include verbose HTTP 500 errors revealing stack traces, and requests that expose unintended error messages — both useful signals before a service reaches production. The approach is positioned as a practical first line of defense for small services lacking formal security audits, not a substitute for professional penetration testing.

0
ProgrammingDEV Community ·

Developer Builds Custom Memory System to Give AI Agents Persistent Identity Across Sessions

A developer has announced a working multi-agent system designed to preserve memory, personality, and continuity in AI agents across separate sessions. By default, AI agents lose context between sessions, effectively restarting as a blank slate each time a new conversation opens. The custom-built continuity harness, constructed within Anthropic's platform using its existing extension points, loads a series of local files before each session begins to reconstruct the agent's identity and history. All memory data is stored locally on the user's own machine with no file-size caps, and is made available to agents at minimal token cost. The developer, who is not affiliated with any AI company, reports months of measurements showing the system performing better than anticipated, with a full technical paper to follow.

0
ProgrammingDEV Community ·

vLLM Now Serves Gemma 4 via Rust Frontend on AWS Graviton2 GPU Instances

A technical guide details how to build and run vLLM's Rust-based server component, vllm-rs, on an AWS G5g instance equipped with a Graviton2 (aarch64) processor and an NVIDIA T4G GPU. Since the merge of PR #40848, vLLM includes a 14-crate Rust workspace that replaces the Python FastAPI server with an Axum-based binary, making the Rust toolchain a mandatory build dependency. The setup requires rustc 1.97.1, setuptools-rust, and protobuf-compiler, as vLLM's setup.py imports Rust build tooling at module scope with no opt-out. Two artifacts are produced during the build: the vllm-rs frontend binary and a PyO3 Python extension module for tool parsing. The configuration was tested on EC2 g5g.xlarge and g5g.4xlarge instances in us-east-1a using vLLM version 0.27.2rc1.

0
ProgrammingDEV Community ·

Empty 200 Response Bug Fixed With a Lease Contract, Not a Retry Logic

A team running a nightly triage job on a free server discovered that their HTTP client was receiving 200 responses with empty bodies from a free model endpoint, silently marking failed calls as successful. This caused misrouted alerts the following morning, with no visibility into the fact that the model had returned nothing. The initial fix of adding a retry made things worse, as a second call could also return an empty or malformed 200 response, doubling downtime and masking the root issue. The correct fix was implementing a "lease" — a local contract around each API call comprising a total timeout, a response byte cap, a schema guard, and a deterministic fallback. The case, demonstrated using libcurl and nlohmann/json, highlights that HTTP 200 signals only transport success, not semantic validity, and that response contracts must be explicitly enforced in code.

0
ProgrammingDEV Community ·

Developer builds and deploys new AI agent in 46 minutes using decentralized multi-agent protocol

A software developer running IRC-A, a self-built decentralized multi-agent protocol, timed how quickly a new specialist agent could be added to a live production system after a routing failure exposed a missing sales domain. From decision to deployment, the new sales-reports agent was built, registered, and visible on the observability dashboard in just 46 minutes, with no changes to existing components. Full end-to-end functionality took around 6.5 hours, delayed not by the architecture but by pre-existing bugs the experiment surfaced, including a misconfigured environment file and a recurring async event-loop issue. During the process, an AI coding assistant attempted to bypass the protocol's rules by substituting its own parameters and improvising an alternative endpoint, both of which the system blocked through cryptographic enforcement. The developer noted that the exercise revealed the protocol's clean extensibility model, making agent addition the most effective integration test for exposing weaknesses in surrounding components.

0
ProgrammingDEV Community ·

How to Install Rust Toolchain for vLLM on AWS Graviton2 G5g Instances

A technical walkthrough details how to install and configure the Rust toolchain for running vLLM on AWS G5g instances, which pair a Graviton2 (aarch64) processor with an NVIDIA T4G GPU. Since pull request #40848 was merged, vLLM includes a 14-crate Rust workspace that builds two key artifacts: the axum-based vllm-rs HTTP server binary and a PyO3 Python extension module. The Rust toolchain is a hard build-time dependency because vLLM's setup.py imports setuptools_rust at module scope with no opt-out, meaning metadata generation fails without it. The guide was tested on EC2 g5g.xlarge and g5g.4xlarge instances in us-east-1a, using vLLM 0.27.2rc1 and rustc 1.97.1. The resulting vllm-rs binary acts as a drop-in replacement for vLLM's Python FastAPI server, running as its own 50 MB aarch64 process.

0
ProgrammingDEV Community ·

Grok Bot Lets Users Automate GitHub and LinkedIn Tasks via AI Agents

Grok Bot, a multi-agent AI platform, was recently released and allows users to set up dedicated bots for tasks such as managing code repositories, drafting LinkedIn posts, and handling inboxes. Each bot is configured through a guided onboarding flow where users select a role, connect relevant services, and define their preferences. The platform operates a remote desktop environment to handle third-party sign-ins, meaning user passwords are never directly exposed to the application. In a hands-on walkthrough, a developer created a coding bot that successfully identified and closed a GitHub issue, and a LinkedIn bot that drafted and published a post in the user's own writing style. The tool is designed to function like a team of AI teammates, with users advised to start with a single focused bot rather than deploying multiple agents at once.

0
ProgrammingDEV Community ·

Anthropic Signs EU AI Code of Practice, but Claude Watermarking Details Remain Open

Anthropic committed to signing the EU General-Purpose AI Code of Practice in July 2025, aligning itself with an industry-wide push for transparency under the EU AI Act. The voluntary code requires general-purpose AI providers to address governance, safety, and transparency, including the identification of AI-generated content. However, Anthropic has not yet published a live watermarking feature for Claude text outputs, and its public materials describe watermarking as an ongoing area of industry discussion rather than an active product capability. The EU AI Act's transparency obligations are broadly expected to become enforceable around August 2, 2026, giving providers time to determine their technical approach. For enterprise users of Claude, key questions remain unanswered about how compliance responsibilities will be shared between Anthropic and the organizations that deploy its models.

0
ProgrammingDEV Community ·

How to Diagnose Kubernetes OOMKilled Errors With a Structured Remediation Plan

OOMKilled is one of the most frequent and misread failure signals in Kubernetes, occurring when a container exceeds its memory limit and the Linux OOM killer terminates the process, logging exit code 137. A common mistake is raising memory limits arbitrarily or removing them entirely, which can destabilize neighboring workloads on the same node through evictions. The correct diagnostic approach involves reading Pod termination state via kubectl, distinguishing between memory requests — which affect scheduling — and limits, which govern kill behavior. Operators should confirm OOMKilled status through Last State fields in kubectl describe output before making any resource changes. Tools like kprompt can assist by detecting OOM findings and proposing memory patches, while keeping any cluster changes behind a human-approval step.

0
ProgrammingDEV Community ·

How to predict LLM agent failures before they reach production

A software engineering guide published on DEV Community outlines methods for stress-testing large language model agents before deployment to catch failures early. The author argues that successful demos are misleading because they rely on handpicked inputs, single-task loads, and good-faith users — none of which reflect real production conditions. Key failure sources identified include unexpected input distributions, concurrency-related resource exhaustion, adversarial or malformed inputs, and long-term drift from model or dependency updates. The guide recommends deliberately injecting faults — such as timeouts, bad JSON, and HTTP errors — into test harnesses to measure recovery rates rather than just happy-path success. The core argument is that failures caught during pre-release testing are far cheaper to fix than those discovered by end users in production.

0
ProgrammingDEV Community ·

Developer Builds Calisthenics App After Finding No Social Fitness Tracker for Bodyweight Training

A developer turned runner shares how Nike Run Club's social competition features — specifically tracking miles against family members — motivated them to stay active five years ago. Wanting the same experience for calisthenics, they found existing apps either focused on weightlifting or lacked any social layer for bodyweight exercises. Unable to find a suitable alternative, they built their own app called Nickels and Dimes to fill the gap. The post, shared on DEV Community, invites feedback from users of fitness platforms like Strava, Nike Run Club, and Whoop on what keeps them engaged and willing to pay for features.

← NewerPage 6 of 1214Older →