SShortSingh.
0
ProgrammingDEV Community ·

How to Build an AI Agent Harness From Scratch in Your Code Repository

A developer tutorial on DEV Community walks through building an AI agent harness — a structured set of files, rules, and conventions stored directly in a code repository. The harness gives an AI agent everything it needs to operate autonomously, including how to start, what constraints to follow, how to verify task completion, and how to hand off work to the next session. The guide uses a simple command-line ledger project as a sandbox, constructing key files such as CLAUDE.md for agent instructions and ARCHITECTURE.md for system design details. A startup script is also added to handle dependency installation and verification in a single step, forming the foundation of the agent's operating loop. The core principle is that keeping task criteria inside the repository — rather than in ephemeral chat messages — ensures consistent decision-making across agents and developers alike.

0
ProgrammingDEV Community ·

How a Provider Policy Linter Can Catch Silent AI Gateway Failures in CI

Multi-provider AI gateways can fail quietly when model aliases, routing rules, or pricing data change without triggering obvious errors in the SDK or dashboard. A provider policy linter is a lightweight CI gate designed to catch these issues before a release ships, by validating assumptions around models, endpoints, pricing, and billing groups. The approach involves five core checks: confirming pricing source freshness with dated references, verifying model route existence, enforcing explicit endpoint compatibility declarations, clarifying billing-group context in examples, and requiring named fallback policies. Reference pricing data for this guide was sourced from AIWave's public endpoints on September 14, 2026, reflecting a 64-model snapshot dated September 10, 2026. The linter is intended to complement, not replace, live monitoring, and its policy configuration file should be version-controlled alongside SDK code.

0
ProgrammingDEV Community ·

Adding One String Key to a PHP Array Can Silently Consume 25 MB Extra Memory

A developer refactoring legacy PHP code discovered a significant memory cost tied to how PHP internally handles arrays. A packed array of one million integers uses about 16.8 MB in PHP 8.4, but adding even a single string key forces PHP to convert it into a full hash table, jumping memory usage to nearly 42 MB. This conversion adds roughly 25 MB of overhead and is irreversible — unsetting the key does not reclaim the memory. The same penalty applies when filling an array with sequential integer keys in reverse order, as PHP treats out-of-order insertion as a hash table rather than a packed list. The findings highlight how PHP's internal array optimizations can silently break under common coding patterns, with real consequences for memory-heavy workloads like processing large database result sets.

0
SportsESPNcricinfo ·

BCB recalls Hasan Mahmud from Kent stint ahead of packed international schedule

The Bangladesh Cricket Board has withdrawn fast bowler Hasan Mahmud from his county cricket stint with Kent. The decision was made to ensure the pacer is well-rested before a demanding international winter for Bangladesh. Kent are currently competing for promotion, meaning the withdrawal comes at a significant moment for the county side. The BCB prioritised national duty commitments over Mahmud's continued involvement in the county campaign.

0
ProgrammingDEV Community ·

HTMP Library Brings React-Like Reactivity to a Single HTML File at 2.9 kB

A lightweight library called HTMP enables reactive UI behavior — including counters, todo lists, and live form updates — directly inside a single HTML file with no build tools or package managers required. The zero-dependency engine weighs just 2.9 kB gzipped and works in any browser, including via a local file:// URL. HTMP is built on three core concepts: an HTML template parsed by the browser's native DOMParser, a reactive state object powered by JavaScript's Proxy, and plain event-handler functions. It offers a lifecycle API with mount, unmount, remount, and destroy methods, making it suitable for single-page apps and embeddable widgets. The library is aimed primarily at PHP, WordPress, and legacy-stack developers who need client-side interactivity without adopting a full JavaScript framework.

0
ProgrammingDEV Community ·

Step-by-Step Lab Guide: Build an Active Directory Domain with Hyper-V

A hands-on IT lab project walks users through setting up a Windows Server Active Directory Domain Services environment using Hyper-V virtualization on a Windows 10 or 11 machine. The project covers creating and configuring a domain controller, promoting it, and adding a domain member server using two Windows Server 2022 Evaluation Edition virtual machines. Users need the Professional or Enterprise edition of Windows 10/11 and at least 16 GB of RAM on the host machine to run the setup. The lab is designed to simulate a real-world scenario, such as a company establishing centralized authentication for a new branch office. The entire exercise is estimated to take approximately 45 minutes to complete.

0
ProgrammingHacker News ·

Guide Outlines Best Practices for Writing Effective Software Design Documents

A new guide published on Refactoring English offers practical advice for software developers on writing effective design documents. The article focuses on structuring design docs in a way that clearly communicates technical decisions and project scope. It aims to help engineers improve collaboration and reduce ambiguity during the software development process. The resource was shared on Hacker News, where it attracted initial reader interest.

0
ProgrammingDEV Community ·

GitHub Copilot Billing Gap Sparks Proposal for Project-Level AI Cost Tracking

Enterprises using GitHub Copilot face a significant challenge in accurately attributing AI usage costs across multiple projects, customers, and internal units, since current billing only aggregates data at the user level. This makes project-based cost accounting, customer chargebacks, and departmental budgeting difficult or impractical. A proposal raised in GitHub Community Discussion #206110 suggests allowing Copilot clients to attach a configurable billing reference — defined via a small file at the workspace or project root — to AI usage based on the active project context. The identifier would be organization-defined, enabling alignment with existing internal accounting structures such as cost centers or project codes. If adopted, the feature would expose this reference as an additional dimension in AI usage reporting and APIs, giving technical and financial leaders clearer visibility into the true ROI of AI investments per project.

0
ProgrammingDEV Community ·

How a Caffeine Tracker Uses Decay Math to Show What's Still in Your System

A developer built a manual caffeine tracker that estimates residual caffeine in the body using an exponential decay formula based on a default five-hour half-life. Unlike a simple daily total, the tool sums the decayed residuals of every logged drink, meaning a late-night coffee from the previous day can still show up in the current estimate. Records are kept for 48 hours rather than reset at midnight, preventing the misleading scenario where a low daily total masks significant leftover caffeine. The tracker includes a Chart.js projection of residual levels over the next 24 hours, sampled at 30-minute intervals, with a configurable 50 mg sleep threshold line and a separate 400 mg daily reference. The project's key design principle is keeping dose, time, half-life, and display thresholds as distinct variables rather than collapsing them into a single opaque figure.

0
ProgrammingDEV Community ·

Developer releases open-source CeX UK price tool after bug inflated £30 case value to £136

A developer building an eBay pricing tool discovered a bug that incorrectly attributed a £136 CeX cash offer — meant for a Raspberry Pi 500+ — to a £30 Argon ONE Pi case. The error stemmed from CeX's Algolia-powered search returning fuzzy, mismatched results rather than exact product matches. To address this, the developer built and published a standalone Python library called cex-uk-prices on GitHub under an MIT licence, which scores search results for relevance and discards weak matches below a 0.6 threshold. The tool queries CeX's Algolia index directly, since the main website returns 403 errors to server-side requests, and retrieves sell prices, cash and voucher trade-in values, and stock availability. The developer cautions that the library relies on an unofficial endpoint that may break if CeX updates its front end.

0
TechnologyThe Verge ·

Microsoft releases 37-page AI code of conduct amid growing safety concerns

Microsoft has published a 37-page 'humanist AI code of conduct' asserting that people matter more than AI. The document states that AI models are not conscious and should not be designed to imitate consciousness. The release comes amid broader industry concerns that AI development may be outpacing humanity's ability to safely deploy and control increasingly complex systems. Anthropic CEO Dario Amodei recently called for a coordinated slowdown in AI development over the weekend. Microsoft's code also rejects the notion of granting AI legal personhood.

0
IndiaTimes of India ·

Rahul Gandhi to Hold Student Outreach Event 'Chhatron Ki Goonj' in Indore on Sept 19

Congress leader Rahul Gandhi has invited students to participate in 'Chhatron Ki Goonj', a dialogue event scheduled for September 19 in Indore. The initiative is designed to give students a platform to raise concerns about the education system. Gandhi has previously conducted similar sessions in cities including Kota, Dehradun, Prayagraj, and Pune. The announced visit has triggered a political exchange between Congress and BJP leaders. Gandhi stated that the event aims to collectively push for meaningful reforms in the education sector.

0
Crypto & Web3CoinDesk ·

Bitmine Nears 5% ETH Goal After $68M Purchase as Tom Lee Flags More Upside

Bitmine, an Ethereum-focused treasury firm, has added $68 million worth of ether to its holdings, bringing it closer to its 5% accumulation target. The purchase reflects growing institutional interest in Ethereum as a treasury asset. Prominent investor Tom Lee has pointed to a rising ETH-BTC ratio and increasing institutional demand as key catalysts for further upside. Lee's outlook suggests he expects Ethereum to continue outperforming Bitcoin in the near term. The move signals broader confidence among institutional players in Ethereum's long-term value proposition.

0
ProgrammingHacker News ·

Otis: Open-Source AI Agent Runs Local Models With Automatic Hardware Detection

A developer has released Otis, an open-source AI agent designed to run large language models locally with a focus on user privacy. On first setup, Otis automatically detects the host machine's hardware and recommends, downloads, and runs a suitable local model via llama.cpp. The tool offers a unified interface for both local and hosted open-weight models, keeping the experience minimal and consistent. It also supports popular local model platforms including Ollama, LM Studio, and Nvidia PAIR. The project is currently seeking community feedback and is openly available for anyone to try.

0
IndiaTimes of India ·

Teen inventor's hybrid kerosene-steam stove wins prize, cuts fuel use by 20%

Vyasji Mishra, a 16-year-old inventor, developed a hybrid stove that runs on a combination of kerosene and steam to reduce fuel consumption and harmful emissions. His prototype won first prize at a science fair in 2003, impressing judges with its innovative design. Testing of the device demonstrated a 20% reduction in kerosene usage compared to conventional stoves. The National Innovation Foundation recognized the potential of his invention and stepped in to support its further development and commercialization.

0
IndiaTimes of India ·

Clippers Owner Ballmer Accepts $30M Fine, Draft Pick Loss Over NBA Violations

Los Angeles Clippers owner Steve Ballmer has publicly apologized and accepted disciplinary action handed down by the NBA. The franchise faces a $30 million fine along with the forfeiture of five draft picks following a league investigation. Ballmer acknowledged the disruption caused by the situation and expressed remorse to fans and employees. He reaffirmed the organization's commitment to complying with league rules while pledging to focus on building a stronger team and community going forward.

← NewerPage 1217 of 5384Older →