SShortSingh.
0
ProgrammingDEV Community ·

How One Developer Built a Six-Role AI Agent System to Run His Homelab Projects

A developer has shared how he structured a single self-hosted AI model into six distinct agent profiles — chief of staff, scout, builder, security, writer, and IT admin — each assigned a narrow, specific role. The agents do not communicate directly with one another; instead, they share a Kanban-style task board where work moves through columns from idea to completion. A core design principle governs the entire setup: scripts and deterministic tools gather real-world facts, while AI models are only permitted to interpret, write, or route — never to independently source data. This separation is meant to prevent hallucination-driven errors, since the developer found that allowing models to freely research facts led to unreliable outputs. The result is a transparent, inspectable workflow where any agent can be restarted or replaced without losing progress, as all state is stored on the shared board rather than in conversation history.

0
ProgrammingDEV Community ·

How One Homelab Owner Built a Five-Layer Security Architecture With Hard Lessons

A self-hosted home server enthusiast has detailed the layered architecture and operational rules governing their personal homelab, structured deliberately like a small company with defined roles for each component. The setup uses five sequential security layers — a CDN edge, reverse proxy, identity provider, secrets manager, and the services themselves — ensuring no unauthenticated request ever reaches an actual application. A core principle of the design is that no service stores its credentials at rest; instead, secrets are fetched at runtime and verified by fingerprint rather than by printing or echoing them. Scheduled automation follows a strict separation of concerns: deterministic scripts gather data while AI models are only permitted to summarise or phrase outputs, never to independently fetch facts or make decisions. The author emphasises that monitoring must alert on silence and absence — not just errors — and that every alarm should be deliberately broken at least once to confirm it actually fires.

0
ProgrammingDEV Community ·

Four Layers Determine Which SDK a Coding Agent Picks for Your App

When a coding agent receives a task like adding payments to an app, it selects an SDK through up to four distinct layers: training data, web search, context retrieval, and tool execution. Mature SDKs hold an early advantage because base models have encountered their documentation, repositories, and usage patterns during training. However, model knowledge can be outdated or incomplete, making web search a critical second layer — triggered in roughly 20% of prompts, according to Vercel research. Mechanical issues such as crawler blocks, client-side rendering, and vague page titles can prevent an SDK from surfacing during that search phase. Beyond documentation, structured context like llms.txt files, MCP servers, and API design quality also shape the final selection, giving SDK teams actionable levers beyond traditional content marketing.

0
ProgrammingDEV Community ·

Developer Logs Week 12 of 100DaysOfCode Diving Into Spring Cloud Microservices

A developer documenting their #100DaysOfCode journey shared progress from days 73 to 76, focusing on Spring Cloud and microservices infrastructure. Topics covered included Spring Cloud Config for managing distributed configurations, Eureka for service registration and discovery, and Zuul as an API gateway. The learner also explored Spring Cloud Bus for propagating configuration changes and began studying JUnit for backend testing. Additional concepts included centralized logging, distributed tracing, Prometheus monitoring, and fault-tolerance patterns like the Circuit Breaker. The weekly reflection highlights that building microservices requires attention not just to individual services but also to configuration, security, communication, and reliability.

0
ProgrammingDEV Community ·

Developer builds Solana tool that splits charity donations evenly across three nonprofits

A developer created OneClickGood, a Solana Blink that automatically splits a single donation equally among three disaster-relief nonprofits — American Red Cross, Direct Relief, and GlobalGiving. The project was built in response to a perceived flaw in charitable giving, where media attention funnels donations disproportionately to the most visible organisation during a crisis. Unlike a standard donate button, the even split is enforced by three simultaneous blockchain transfer instructions in one atomic transaction, meaning either all three recipients are funded or none are. Each donation also carries an on-chain memo recording the amount and recipient basket, allowing anyone to independently audit the results without relying on the developer's server. The tool is currently live on Solana's devnet and includes a command-line verification script that confirms split accuracy using only public RPC data.

0
ProgrammingDEV Community ·

AI Model Followed Provider Schema Over Harness Instruction, Exposing Test Logic Flaw

A developer discovered that an AI model's tool-call arguments were flagged as a mismatch by their test harness, but the root cause was a conflict between two competing authorities: the harness expected a single-key JSON object, while the provider's runtime schema required additional fields. The model complied with the provider's schema rather than the harness instruction, which was technically correct behavior since the harness was demanding something the schema did not permit. The developer noted that a mismatch only proves a difference exists, not which side holds the correct expectation. Rather than loosening the comparison to hide the failure, the fix added the required intent field as a harness-authored constant to the expected object, preserving the integrity of the control. Simply copying the model's own output into the expected value was rejected as it would have made the test verify the model against itself.

0
ProgrammingDEV Community ·

AI Coding Agent Benchmarks Are Misleading Without Retry and Time Caps

Reported pass rates for AI coding agents are often incomplete because they omit critical controls such as retry limits and wall-clock time ceilings, making comparisons between tools unreliable. Two agents can show identical success rates while one solved tasks in a single attempt and another silently looped through multiple repair cycles. A proposed evaluation framework calls for sealed task packs with frozen prompt templates, hidden test digests, explicit retry ceilings, and tool-trace identifiers as mandatory dataset fields. The framework also defines a small metric set — including a boolean pass result, attempts used, elapsed time, and a trace file hash — to detect hidden rework and incomplete runs. Without these standardized controls, published benchmark percentages resemble marketing figures rather than reproducible experimental evidence.

0
ProgrammingDEV Community ·

How One SaaS Developer Fixed Billing Lockouts by Writing Subscription State Five Ways

A developer building VoiceDash, a white-label voice AI portal, discovered that relying solely on Stripe webhooks to write subscription state caused paying customers to be locked out of the product. The core issue was a race condition where Stripe's redirect back to the app arrived before the webhook, leaving the database without an active subscription row. The developer reframed the problem by treating the database as a cache of Stripe's authoritative subscription data rather than the source of truth. To keep that cache reliably warm, five separate code paths were built to write subscription state: the webhook handler, the checkout return page, a client-side retry verifier, the plan-change route, and a read-time reconciliation check in the app layout. Data integrity across all five writers is maintained through idempotent upsert operations keyed on a unique Stripe subscription ID, ensuring repeated writes produce consistent results without corruption.

0
ProgrammingDEV Community ·

Why Free AI Inference Models Should Never Define Your API Contracts

Software teams increasingly rely on free-tier AI inference models to fill gaps in API design, but this practice carries hidden risks when those models are allowed to define authoritative contracts or wire formats. Free models may invent plausible-looking headers, error codes, and field names that never exist in production, causing failures that surface only during incidents rather than in tests. The article argues that free inference belongs in an isolated 'sketch lane' for exploratory tasks like prompt testing and throwaway prototypes, not in directories or workflows that other teams will integrate against. Key red flags include tasks that define wire formats, draft customer-facing copy, or require bit-identical reproducibility over time. The recommended safeguard is a strict preflight gate: if output targets a contracts directory or fails schema validation, the process stops rather than adapting the schema to match the model's invention.

0
ProgrammingDEV Community ·

Build vs. Buy AI: Why SMBs Must Account for the Full Cost of Ownership

Adopting AI tools for business operations carries hidden long-term costs that go far beyond licensing fees, including ongoing maintenance, model deprecation, and connector upkeep. Research from McKinsey, BCG, and Gartner highlights that while AI use is widespread, fewer than 6% of enterprises generate measurable value at scale, and over 40% of agentic AI projects may be canceled by 2027. AI systems differ from traditional software in that they drift over time — accuracy can silently degrade and outputs carry legal weight, as demonstrated when Air Canada was held liable in a 2024 tribunal ruling for a chatbot's incorrect policy advice. A support agent handling 50,000 chats monthly can require over $500,000 per year just to maintain accuracy, while typical enterprise AI rollouts see only a fraction of licensed seats used regularly. For small and mid-sized businesses, the core question is not which tool has the best features, but whether the organization can sustain the full operational burden of ownership over a 24-month horizon.

0
TechnologyTechCrunch ·

Phil Schiller Steps Back from App Store Role Over Concerns About Its Future

Apple veteran Phil Schiller is stepping down as head of the App Store, according to a Bloomberg report by Mark Gurman. His decision was reportedly influenced in part by reservations about the future direction of the App Store. Schiller will not be leaving Apple entirely, however, and will continue with the company in the role of Apple Fellow. In that capacity, he is expected to work on unspecified projects going forward.

0
ProgrammingDEV Community ·

Handover App Helps Small Charities Identify Missing Roles After Reach Volunteering Closes

A developer has built a free web tool called Handover, designed to help small charities identify the volunteer or trustee roles they actually need — not just the ones they think they need. The tool prompts organisations to describe what is going wrong, then diagnoses the underlying capability gap and generates a ready-to-use role advert. The project was inspired by the closure of Reach Volunteering, a UK charity that over 45 years placed nearly 6,000 volunteers and trustees annually across 2,440 organisations, contributing an estimated £60 million in expertise. Reach is shutting down despite record impact, as funding for charity capacity-building infrastructure has dried up. Handover runs entirely in the browser with no backend, requires no sign-up, and supports a free Gemini API key for live, personalised results.

0
ProgrammingDEV Community ·

Ripple Relay App Matches Your Available Time and Energy to Small Acts of Generosity

A developer has built Ripple Relay, a browser-based tool that generates up to three personalised giving actions based on a user's available time, money, and energy. Users select causes they care about and the app suggests small, affordable ways to help — such as captioning a video or checking in on an isolated person — while keeping the combined plan within stated limits. The app deliberately avoids guilt mechanics, leaderboards, or fabricated capacity, returning an empty state when a user inputs zero available time. All user data stays in browser local storage, with no analytics, remote APIs, or account required. The project is open-source under an MIT licence and was built as a submission for the DEV Community Weekend Challenge: Generosity Edition.

0
ProgrammingDEV Community ·

Gitignore Does Not Protect Your Secrets from AI Coding Agents

Files listed in .gitignore are invisible to Git commits but remain fully readable by AI coding agents that can traverse your working directory. When a developer asks a coding assistant a question, the client often silently bundles nearby files — including .env files, private keys, and credential configs — into the request sent to a remote model. This means sensitive data like database URLs or JWT signing keys can leave a machine without ever appearing in the typed prompt. The risk is compounded by command outputs, where agent-run commands like 'env' or 'docker compose config' can reprint secrets inside tool results. Developers are advised to treat all gitignored files as model-visible and to run local scans — such as 'git ls-files -o -i --exclude-standard' — to audit which sensitive paths could be inadvertently attached to outbound AI requests.

0
ProgrammingDEV Community ·

Why Every API Retry Is a New Cost, Not a Free Second Chance

A software engineering post argues that retrying a failed API call is not a continuation of the original request but an entirely new job that re-enters the queue from scratch. Each retry can carry a larger token payload because error context gets appended to the next prompt, compounding both token costs and wait times. Exponential backoff, while considered a best practice, adds developer-chosen delays on top of unpredictable queue delays — and the two stack rather than cancel each other out. An agent configured with multiple retries can silently turn one failed tool call into four queued jobs, inflating what appeared to be a low-cost operation. The author recommends instrumenting the retry path directly to measure actual attempts, wait time, backoff, and a retry multiplier before assuming spare API capacity is suitable for time-sensitive workloads.

0
ProgrammingDEV Community ·

Local vs. API Embeddings: Why sentence-transformers Won for This RAG Pipeline

Retrieval-Augmented Generation (RAG) pipelines require converting text into vectors, and developers must choose between running embedding models locally or via an external API. A developer building a local RAG pipeline selected the sentence-transformers/all-MiniLM-L6-v2 model, integrated through ChromaDB, citing zero cost, no data privacy risks, and no API dependencies as key reasons. The model is lightweight at 22 million parameters and 384 dimensions, making it fast enough on standard laptop CPUs for development-scale document ingestion. However, the author acknowledges trade-offs, including a lower accuracy ceiling compared to larger API-hosted models, which becomes more pronounced with domain-specific content such as medical or legal text. The guidance offered is that local embeddings suit privacy-sensitive or cost-constrained projects, while API-based embeddings may be preferable when higher semantic accuracy is required at scale.

0
ProgrammingDEV Community ·

Karibu Give Lets Feature Phone Users Donate via USSD With No Internet or App

Karibu Give is a USSD-based micro-donation platform built for feature phone users in Kenya and across Africa who lack smartphones or internet access. Users dial a shortcode, select a cause, and complete a donation of as little as 50 KES through an M-Pesa STK push in under two seconds. The platform was developed for the International Day of Charity to address two barriers to giving: device accessibility and donor trust. Donor data is protected using hashed phone numbers, while all transactions are logged to both a local SQLite database and Snowflake for audit purposes. An AI-generated impact summary powered by Google Gemini provides donors with transparent, plain-language reports on how funds have been used.

← NewerPage 827 of 4580Older →