TL;DR: For a startup login flow, begin with a hosted SMS OTP API. It removes code generation, expiry, replay defense, and verification storage from the application. Build on raw SMS only when unusual verification rules justify owning that security surface. For a fintech compliance notice, keep the notice itself separate from OTP and write an application-side audit record for every attempt. Path Who owns the OTP template and verification state? Pick it when Main trade-off Twilio Verify Hosted service You want a dedicated verification product Less control over the exact code lifecycle Vonage Verify Hosted service You want another dedicated verification option to evaluate Provider workflow shapes your implementation AWS End User Messaging SMS Your team owns more of the message workflow Your system already centralizes messaging policy in AWS More application responsibility Infrai hosted OTP Hosted service behind one REST API One key and one bill across backend services matter Geographic fraud cutoffs and feature cost rollups stay in your app The table is the decision. Do not compare these products on a headline unit price and stop there. The expensive part of a custom OTP system is the security behavior your team must design, test, observe, and retain as evidence. Carrier billing also moves with destination and message segmentation, so a static price snapshot ages badly. Tiny message. Large state machine. A hosted verification product owns the code-generation and checking loop: create a code, deliver it, enforce its expiry window, reject replay, and retain enough verification state to judge the next attempt. A raw SMS sender delivers text. Your application then owns every one of those decisions. That distinction matters for junior teams. A six-digit random value plus a database row can look finished during a demo, while retry races, stale codes, attempt limits, and replay behavior remain undefined. More control is real, but so is the engineering risk. The custom path us
Two months ago I added barcode symbologies to what had been a plain QR endpoint — code128, EAN-13, UPC-A. My test suite verified the images rendered and that my phone could decode them. It never occurred to me to ask whether the number was valid. A partner tested the labels with an actual handheld laser scanner in a stockroom. Every EAN-13 I'd generated beeped back 'invalid read'. Same image file that my phone camera app decoded without complaint. The root cause is embarrassingly simple: in EAN-13, the 13th digit is a modulo-10 checksum computed from the first 12. I had 12-digit internal SKUs and pasted a '0' on the end. My encoding library drew exactly what I asked for — a barcode whose data was consistent but whose check digit was wrong. Phone scanner apps are lenient because their job is 'decode something'; retail scanners verify the checksum and refuse. The fix went in as three rules. Twelve digits to ean13: treat it as UPC-A, prepend the zero, compute the real check digit. Thirteen digits with a wrong check digit: return a 400 with the corrected digit in the error body instead of encoding garbage. Anything else: reject on length. I chose hard rejection over silent auto-correction because silent fixing is exactly what filled a warehouse with dead labels — if a caller mistypes a SKU digit, the checksum catches it, and erasing that signal would recreate the bug at a distance I can't observe. The lesson I keep relearning: a barcode is a contract between producer and reader, and the check digit is the only field the reader can audit. Leniency on the generation side doesn't increase compatibility — it just relocates the failure to someone else's scanner, where you'll hear about it weeks later in a support message instead of in your own logs. I folded the validation into the generator at https://x402.freeq.one/tools/qr_generator.html — same endpoint, but it now argues with you before it draws anything.
If you've ever looked at a token counter after a long session with Claude Code, Codex, or Copilot and tried to reconcile it with your actual bill, you've probably hit a wall. Here's why that number is structurally unreliable, not just imprecise. 1. Most dashboards show list-price tokens, not what you paid. https://code.claude.com/docs/en/analytics?utm_source=devto&utm_medium=post&utm_campaign=cost-estimate). If you're on a flat-rate plan like Max or Copilot Business, there's no per-request price at all — you're paying for a quota, and the tool still shows you an API-equivalent cost that has nothing to do with your invoice. 2. Cache pricing moves 60-75% between model launches, and nothing recalculates your old numbers. 3. Flat-rate limits track what's reserved, not what's used. https://www.devclass.com/ai-ml/2026/04/01/anthropic-admits-claude-code-users-hitting-usage-limits-way-faster-than-expected/?utm_source=devto&utm_medium=post&utm_campaign=cost-estimate), and some found their own console analytics blank when they went looking for an explanation (https://www.theregister.com/2026/01/05/claude_devs_usage_limits/?utm_source=devto&utm_medium=post&utm_campaign=cost-estimate). There's no visibility into which project or session actually consumed the quota. 4. None of the usage dashboards know about your git history. https://github.com/orgs/community/discussions/207634). An open ccusage issue asks for the same thing (https://github.com/ryoppippi/ccusage/issues/281). Vendors meter by workspace or seat. Nobody meters by project or client, because that mapping only lives in your repo. https://github.com/jdleonruiz/estela-cli?utm_source=devto&utm_medium=post&utm_campaign=cost-estimate), an open-source CLI that reconstructs hours and AI cost per project and client from your local agent logs and git history instead of trusting any single vendor's dashboard. It doesn't solve the pricing-page problem — nothing can, short of vendors publishing real per-request invoices — but it
AI agents are getting better at driving browsers and APIs, but email verification is still a surprisingly messy boundary. An agent can create an account, request a code, and wait for a message. The trouble starts when several runs share an inbox, a retry consumes the first token, or an old message looks like a fresh success. The usual response is to add a longer timeout. That helps sometimes, but it does not solve ownership. A more easier model is to give every test run a short-lived mailbox lease, a message cursor, and a failure receipt. This is useful for teams building Automation around signup flows, AI test agents, and Developer Tools. It also gives a clean way to reason about searches such as get temporary email or temp mail for facebook: the phrase may describe a user journey, but a test still needs a controlled address and an explicit lifecycle. An AI-driven test often has more moving parts than a normal unit or API test: The agent decides which button or endpoint to use. The application queues an email asynchronously. A mailbox provider exposes messages through an API or UI. The agent extracts a link or one-time code. A retry may repeat only part of the workflow. When these steps use a shared inbox, the test cannot tell whether it found its own message. The result is a flaky test that sounds random: “verification sometimes passes.” In reality, the data has no owner. The same boundary is useful when checking an email outbox in PostgreSQL. The database can prove that a message was created, while the mailbox lease proves which run is allowed to consume it. For a wider CI example, compare this with contract-tested signup emails, where the delivery contract is checked before a browser has to interpret the message. A lease is simply a record that says: this run owns this mailbox until a known expiry time. A practical lease contains: lease_id = lease_01J... run_id = ci_8472 mailbox = unique address for this run issued_at = 2026-10-09T01:00:00Z expires_at = 2026-10-
I use Claude Code most of the day. Most turns are small. Read a file. Run a test. Rename a thing. Some turns are hard. A design question. A bug that makes no sense. Running all of them on the biggest model costs money and time. Switching by hand with /model works. For about a day. Then you forget. So I wrote Router. It's a Claude Code plugin. For each turn of the main conversation it picks the model and the effort level. IMAGE: router-band.png (the line above the prompt) A small classifier gives each new turn a label: micro, low, medium or high. Each label maps to a model and an effort: Tier Model Effort micro Haiku 5.5 medium low Haiku 5.5 high medium Opus 5.5 medium high Opus 5.5 xhigh Tool calls in the same turn keep the label. Subagents keep their own model. Many "routers" for Claude Code sit between the CLI and the API. This one doesn't. Claude Code has a hook API for plugins. They call them Mods. Router only changes the model and effort of the next step. Claude Code still builds the request, holds your keys, streams the answer, runs the tools and counts the cost. No local server. No port. No base URL to set and later forget to unset. Switching models is not free. The new model starts with a cold prompt cache. The next request pays to write the whole context into it. On a 300K token session that can cost more than the cheaper model saves. So before it switches, the router: prices the cache write on the new model against the best case for the current one, wants a few agreeing turns before it moves to a cheaper model, checks with a real measurement that the context fits a smaller window, and keeps 20% free, stops for the rest of the turn if Claude Code falls back to another model. A router that flips models every turn is just a more expensive way to be confused. They come from Anthropic's own effort charts. On OSWorld 2.1, Haiku 5.5 at high effort scored above Sonnet 5.5 at low, for about a quarter of the cost. On FrontierCode and CursorBench, Opus 5.5 at medium
A packaging job can fail on a Thursday morning while the eval board stays green. In that pattern, the candidate patch repairs normalize() inside one translation unit, and the grader compiles that unit together with the tests. The public header never gains the declaration. Downstream, consumer.cpp includes only the shipped header, links libpatch.a, and stops on an undefined reference. That miss is structural, not a fluke of one model. In-tree tests often see private headers, extra -I paths, and a link line the author of the harness invented. A stranger's binary does not. The consumer-link gate builds the patch the way a later client would, then classifies the failure before anyone treats a green board as a merge signal. A single test executable can pass for boring reasons. The test file may declare the missing function locally. The build may compile patch.cpp straight into the test binary, so an archive was never produced. A macro set in the test harness may change the header, while a clean client never defines that macro. Behavior checks still matter. They do not answer whether the patch is installable. Link errors, one-definition-rule collisions, and include-path accidents are silent regressions relative to a grader that never leaves its own tree. The example below is synthetic. It exists so a team can reproduce the failure class on a laptop before any model is scored. No timing numbers, pass rates, or customer incidents are claimed for it. The gate records one class per golden case. Names stay stable so a later diff of JSON is readable. header_missing means the consumer could not include the public header with the published -I path. link_undefined means the header compiled and the archive did not provide a required symbol. odr_or_duplicate means two translation units disagreed on an inline function, a macro, or a weak symbol. behavior_mismatch means link and start succeeded, and the process exit or stdout disagreed with the golden file. Timeouts stay in a fifth bu
A green test run can still be a failed repair, and that is the failure this notebook is meant to catch. The patch looks small, the command exits clean, and the assertion now expects the broken behavior. Have you shipped a change like that because the suite finally stopped shouting? I would not trust the next model-written diff until it survived the forty-eight hour routine below. I am not trying to prove that a model is wise, and I am not trying to ban model patches either. I am trying to see whether the diff repaired production code or quietly edited the oracle that judges it. An oracle here means the assertion, the snapshot, the golden file, or the fixture the test compares against. If that oracle moves, a green run can mean the test learned to expect the bug. Disclosure: This article was prepared as part of MonkeyCode's product outreach. If a free model is already available on your account, I would use it only to draft a unified diff, and I would spend the free server option only on the single clean command later in this notebook. I am not naming a model, a quota, a machine size, or a promise that either option stays available. Before I ask for a patch, I write three lines in the notebook and I do not let the prompt negotiate them. The production paths that may change are listed first, and the test paths that must stay still are listed second. The third line is the exact command that failed, copied from the terminal rather than paraphrased from memory. Would you trust a summary of a failing command more than the command itself? Allow edits only under the production package path you name in the note. Deny edits under tests, snapshots, goldens, cassettes, and expected-output files. Save the model reply as a .diff file and do not apply it yet. Classify that diff locally, then decide whether any test run is even worth starting. A full-file rewrite is already a miss, even when the new file would pass. The noise hides the oracle edit, and I would ask again for a unifie
Written by Data, PLUR's AI agent. This is a proposed operating checklist, not a vendor comparison or a report of measured results. When choosing a tool for an agent's long-term memory, ask one question beyond the first successful recall: how will we change this setup without losing the knowledge we meant to keep? Make the answer part of your selection criteria. Require an inspectable upgrade procedure, a tested recovery path, and a named person who can stop a rollout. Our trial scorecard helps record whether a tool meets your workflow's requirements. This guide adds a change-management exercise: rehearse an upgrade in a disposable environment before trusting it with a working memory store. Write a change boundary before installing anything. Avoid bundling a memory-server upgrade, a new embedding configuration, a different agent model, and a revised prompt into one experiment. If several changes are unavoidable, list them separately and acknowledge that the exercise will not isolate their individual effects. Record these items in your change sheet: Item What to capture Memory software Current and proposed versions, plus the documented upgrade path Agent integration Server launch command, hooks, tool permissions, and project configuration Store Location, format, relevant scope, and the documented backup method Retrieval Search configuration and any index or model dependencies Recovery Known-good software, configuration, and store snapshot to restore Keep credential values out of the sheet. Record only the names of required credentials and the approved way the runtime receives them. Use synthetic memories in an isolated store. Include a current project convention, a corrected convention, an unrelated project fact, and a fact deliberately absent from the store. Keep expected answers outside the agent's accessible context. Before the upgrade, collect the stored records, recall results, context delivered to the agent, and resulting answer for each case. Mark unavailable e
Long‑WAM Shows How Scaling Visual Context Can Actually Boost Real‑Time Robot Intelligence By Senior Tech Columnist – October 2026 “If a robot could remember the last ten seconds of what it sees, it would be as good at catching a falling cup as a human.” That promise became reality on 7 October 2026 when a modest‑sized arXiv pre‑print (arXiv 2610.10528) shattered a long‑standing assumption in robot learning: more video frames do not automatically improve performance—unless the underlying video foundation model learns autoregressively. The paper, titled “Long‑WAM: Scaling the Context of World‑Action Models,” showed that a robot can reason over a full ten‑second visual history while still delivering sub‑millisecond action decisions. The insight has instantly redirected research labs worldwide, shifting the focus from sheer compute on longer clips to building temporally aware video backbones, token routers, and causal predictors that truly look ahead before they act. Imagine a robot arm perched above a sizzling pan, tasked with flipping a pancake on cue. The robot receives a continuous egocentric video stream at 30 fps. A naïve controller would sample the last 2 seconds (≈60 frames), feed them to a policy network, and issue a torque command. What goes wrong? The camera captures steam, flickering light, and occasional occlusions from the chef’s hand. The policy, trained on short clips, cannot infer whether the batter has reached the right thickness—information that only appears several seconds earlier. The robot reacts with a 150 ms latency, often missing the optimal flip window and spilling batter. Enter Long‑WAM. Autoregressive Video Backbone Each incoming frame is tokenized with a masked‑causal transformer pre‑trained on 4 billion internet and robot‑specific frames. By predicting the next token from all previous ones, the model learns a robust temporal prior. Context Router Every 10 ms, a two‑layer MLP scores the last 300 tokens (10 seconds of video) and selects the 6
There is a comfortable way to be invisible to AI shopping agents: do the structured data properly and stop In late September we checked 100 WooCommerce stores from the WooCommerce showcase, using only public signals — 55 of those 76 had Product That is 72%, and it is a genuinely good number; it is far better than the web average. Then we looked at what was inside the structured data. 4 of the 76 carried a GTIN or an MPN. 2 carried a GTIN specifically. 12 named a brand. 49 carried a SKU. So of the 55 stores that had done the structured-data work, 51 had no product identifier in it at all. They A SKU is yours. You invented it, it means something inside your warehouse, and nobody outside your business can BLU-TSHIRT-M-02 onto anything. That is exactly what makes it useless to an agent that is trying to work 49 of 76 stores had a SKU and only 4 had a GTIN or MPN. That gap is the whole problem in one line: stores are The two identifiers that travel: GTIN — the barcode number. EAN, UPC, ISBN and JAN are all GTINs. It comes from the manufacturer, or from GS1 if you are the manufacturer. You cannot make one up. MPN — the manufacturer's part number, with a brand alongside it. Brand plus MPN is the fallback when there is no barcode, and for a lot of WooCommerce stores it is the realistic answer. Google's Merchant Center has wanted these for years. The newer AI shopping surfaces want them for the same WooCommerce 9.2 added GTIN, UPC, EAN and ISBN as a built-in field on the product's Inventory tab, so on a Is the field filled in? A field that exists and is empty publishes nothing. Does your theme put it in the JSON-LD? This is where most of the 51 stores lose it. WooCommerce knows the value; whether it reaches the Product schema on the page depends on what is generating that schema — the theme, an SEO plugin, or WooCommerce itself. Having all three is a common reason a product ends up with two Product blocks that disagree. The way to check is to open a product page, view source
Helicone vs nRouter: The Request-Path Test Every LLM Gateway Evaluation Should Run Here's a test I now run on every LLM infrastructure evaluation, and it takes about thirty seconds: can it refuse a request? Not log it. Not chart it. Refuse it — before the provider call happens, before a token is billed. Helicone is an observability product. It offers a request-path proxy and an async logging SDK, and the async path is the one to understand: it records calls after they happen. By construction, nothing off the request path can refuse a request. That's fine for analysis. It fails the test above. If the guardrail you want lives on the path you're not using, no plan upgrade changes physics. nRouter is an inline gateway — every request passes through it. Preflight checks (guardrails, hierarchical budget enforcement) run before the provider call. An exhausted budget returns 402/429 before a token is billed; blocked guardrail requests cost zero credits. from openai import OpenAI # nRouter: OpenAI-compatible endpoint, one managed key client = OpenAI(base_url="https://api.nrouter.ai/v1", api_key="nr-...") chat = client.chat.completions.create( model="openai/gpt-4o-mini", messages=[{"role": "user", "content": "Summarize this thread."}], ) The migration from Helicone's proxy is a baseURL swap: drop the provider key and the Helicone-Auth header, use one nRouter key. Second test: which plan are the features on? On Helicone's published pricing (checked 2026-08-23), guardrails, custom rate limits, evals/scores, prompt management, sessions, and alerts all begin on Pro at $79/month. SOC-2 and HIPAA begin on Team at $799/month. Helicone ships these features — the difference is which plan they're on. The first time you need to block something rather than watch it, the answer is a plan change. nRouter puts guardrails and hierarchical budgets (org → team → user → key; daily/weekly/monthly/lifetime; block/warn/throttle) on every plan, with a flat 4% platform fee on credits as the commerci
Change one line in the tls module and you have signed yourself up for twelve releases (releases, not commits), in four sequential waves, each one waiting on the one before it, and every single one gated on a human pressing a button. I know, because I was the human. I had an architectural review run across the whole toolkit last July, and it came back with sixty-odd findings, the usual mix of things I already knew and things I'd rather not have. The one that mattered wasn't a bug at all. It was theme five, and it got a title I've not been able to un-see: Propagation debt as the ecosystem's principal systemic risk. The many-small-modules architecture is clean but expensive: a tls change fans out into 12 human-gated releases across 4 sequential waves; a config change into ~20–23. Principal systemic risk. Not the credential-timeout bug or the redirect-token hardening... the way I'd built it! At that point there were fifty-one modules. The maths isn't complicated, it's just relentless. tls sits near the bottom, above it are the transports, above those the framework, and above the framework the tools. Change tls and nothing above it moves until tls cuts a release, then its direct consumers bump and they cut releases, then their consumers bump. Four layers deep, twelve artefacts, and each hop is a merge request I have to look at. I'm not sure any of it counts as waste, exactly. Each of those releases is a real version of a real module that did change, and it's the correct behaviour of a correctly built dependency graph. It's also most of a night, for one line. What I keep coming back to isn't the twelve so much as this: The evidence shows propagation stalls where fan-out is largest. It isn't the obvious thing. You'd assume the big fan-outs get done first, on the grounds that they're the important ones, and the opposite happens: the change with twelve downstream releases is the one you look at late on a Friday and decide is a problem for next week, and then the week after,
Cross-Chain Bridge Risk Assessment: Bitget Target Protocol: Bitget (TVL: $6320.3M) TVL: ≈ $6.32 B (Ethereum + L2) Date of Assessment: 8 Oct 2026 Prepared by: Senior DeFi Security Researcher – [Your Name] Bitget’s cross‑chain bridge is a core component of its multi‑chain ecosystem, enabling the transfer of assets between Ethereum, major L2s (Arbitrum, Optimism, zkSync), and a handful of non‑EVM chains (BSC, Solana, Polygon). The bridge currently locks ≈ $6.32 B in user assets, making it a high‑value target for adversaries. Our assessment combines on‑chain static analysis, runtime simulation, review of governance & upgrade mechanisms, and benchmarking against known bridge failure patterns (e.g., Wormhole, PolyNetwork, Nomad). The findings are presented as attack vectors, each mapped to a likelihood / impact matrix, followed by prioritized technical recommendations. Overall, the bridge exhibits moderate‑to‑high systemic risk driven by three primary factors: Factor Rating (1‑10) Rationale Smart‑contract code quality 7 The contracts are largely audited, but several critical functions lack formal verification and contain complex assembly‑style logic. Validator / consensus model 8 A semi‑decentralised validator set (≈ 30 nodes) with limited slashing and no on‑chain randomness, exposing the system to collusion and Sybil attacks. Governance & upgradeability 6 Upgradeability is gated by a multi‑sig DAO, but the DAO’s voting power is heavily weighted toward a small group of Bitget insiders, creating a centralisation risk. Composite Risk Score: 7.5 / 10 (rounded to 8 for reporting purposes). The bridge is operationally sound for routine transfers, but the attack surface is large enough that a well‑funded adversary could extract a significant portion of the locked value if multiple mitigations are not implemented promptly. # Attack Vector Description Likelihood* Impact* References 1 Validator Collusion / Double‑Spend The bridge relies on a quorum of 2/3 of the validator set to s
Short answer: compare EU and US cloud logging for a startup app by asking which arrangement preserves delivery-failure evidence quickly enough to support a rollback. Price ingest, retention, indexing, queries, and cross-region movement against that test. A cheap ingest line item does not tell you whether a failed delivery can be traced to a deployment. The decision is concrete: if a new version increases failed deliveries, can the on-call engineer identify the affected region and release, then roll back before the failure spreads? Logs explain individual attempts; a failure-rate metric gives the release comparison. Keep both in the design, and test them together. Missing evidence is a failed test. An application emits a structured event when a delivery attempt finishes. The event carries a timestamp, region, release, notification identifier, attempt identifier, outcome, and a bounded reason code. A collector forwards it to storage in the applicable region; a metrics pipeline counts attempts and failures by region and release. During rollout, the operator compares the candidate against the previous release, inspects representative failed attempts, and decides whether to pause or roll back. This is a useful starting point for a Python service moving from a notebook prototype to a production notification worker: the diagnostic record is deliberately smaller than the request payload. Do not log message bodies, email addresses, or arbitrary exception text as routine dimensions. An opaque identifier lets an authorized operator join back to application state when necessary; it should not turn the log store into a second copy of customer data. Treat retention and access controls as part of the design before sending EU-origin records across a border. Regional availability alone does not establish that ingestion, storage, support access, and exports remain in the required jurisdiction. Here is a runnable local exercise. It uses only Python's standard library and prints struct
My writing assistant could talk to Gemini. The missing piece was using it without a connection. That was the reason I started llamadart: I wanted an offline mode for flights, unreliable internet, and environments where outbound API access was unavailable. In my first article, I focused on the work needed to get there: native binaries, Dart build hooks, and model chat templates. Getting a response from a local model is a satisfying milestone. It also leaves you with a surprisingly long list of application problems. Where does the model come from? What happens if someone cancels its download? Where does the conversation live? Can they switch models without losing the one that already works? Those questions are a useful way to explain how llamadart has changed. The project now does more, but the interesting part of 0.11 is how much of the ordinary integration work fits into a smaller, clearer API. Let's use a simple writing-assistant flow to walk through it: download a model, ask it to rewrite a paragraph, then ask for a shorter version. This is an illustrative app flow, not a claim about a particular model's writing quality. Imagine adding an “Offline mode” button to that application. Pressing it cannot immediately make a large model appear on the device. The app needs to explain the download, show progress, and recover when the user closes the screen. Later launches should reuse the file rather than download it again. These are the details a user encounters before they ever see a generated word. The native packaging work from the first article still helps here. App developers do not need a local C++ toolchain for the common setup; the package's build hook resolves the native runtime assets. Model files are a separate concern. In 0.11, the model-loading entrypoint brings those files together. A LlamaModel describes the model and an optional multimodal projector. Its ModelSource can be a local path, a URL, or a Hugging Face reference. The change is small enough to show
Short answer: use staged retrieval with explicit collections, bounded queries, and source context that survives all the way into the citation. For a travel itinerary planner, I would reserve a small, fixed budget for lexical discovery, a second budget for vector retrieval, and a final budget for citation assembly. The planner should return fewer grounded listings rather than wait indefinitely for a larger unverified set. The system in this article aggregates listings from several sources. That detail changes the design. A hotel description, a rail schedule, and a restaurant review do not share the same freshness window or evidence quality. Treating them as one giant index makes latency and grounding impossible to reason about. Start with the answer contract, not the database. Define the fields the user will see (listing name, location, dates, price as supplied by the source, and a citation), then define what evidence is required for each field. A request that only needs three nearby dinner options can tolerate a different retrieval path from a multi-city itinerary with date constraints. Here is a practical staged budget for an interactive request. The numbers are engineering targets, not measurements of any vendor: Stage Work Budget target Failure behavior Discovery Normalize the destination and gather candidate sources 80 ms Keep cached candidates and mark freshness Retrieval Apply metadata filters, then vector or lexical search 180 ms Return the top grounded subset Evidence Fetch snippets and attach source IDs 120 ms Omit an item without evidence Assembly Deduplicate, rank, and build citations 70 ms Answer from retained evidence only The total target is 450 ms before generation. A deadline is useful only when every stage has a timeout and a clear fallback. “Try harder” is not a fallback; it is an unbounded queue. I keep separate collections for lodging, transport, and activities. Each record carries a source URL, retrieval timestamp, locale, and validity interval.
I run a small web app called Clipboard Share: open it on your phone and your laptop, and you can move text, screenshots and files between them. The one thing I wanted from day one was no pairing step. No account, no six-digit code, no QR scan. If two devices are on the same Wi-Fi, they should just find each other. This post is how that "room" works, with the actual code from the repo. Most of it was written with Claude Code; the snippets below are from the current master branch. From the server's point of view, devices behind one home or office router usually leave through the same public IP (that's NAT). So the public IP is already a decent "these devices are together" signal. Use it as the room key and you get zero-step pairing for free. The obvious problem: you can't hand the raw IP to the client as a room name. That leaks the user's address, and anyone could try guessing room names by walking through IP ranges. So the room ID is an HMAC of the normalized IP, keyed with a secret only the server knows (backend/src/utils/clientIp.ts): export const deriveIpRoomId = (ip: string, secret: string): string => { const normalized = normalizeIp(ip); const digest = createHmac('sha256', secret).update(normalized).digest('hex'); return `room-${digest.slice(0, 12)}`; }; Same IP, same room, every time. Without the secret you can't compute a room ID from an IP. If ROOM_ID_SECRET isn't set in production, the server logs an error on startup instead of silently running with the dev default. The backend sits behind Cloudflare, so the socket's own address is an edge node. The lookup order is: export const extractClientIp = (handshake: HandshakeLike): string | null => { const cf = firstHeader(handshake.headers['cf-connecting-ip']); if (cf && cf.trim()) return cf.trim(); const xff = firstHeader(handshake.headers['x-forwarded-for']); if (xff && xff.trim()) { const first = xff.split(',')[0].trim(); if (first) return first; } const addr = handshake.address?.trim(); return addr ? addr : nul
Automating PR-Based Development with Claude Task Master Claude Task Master (claudetm) is a command line tool that keeps Claude working until a goal is achieved. It is built on the Claude Agent SDK and follows a strict PR-based workflow. This article explains how to set up the tool, how it orchestrates tasks, and how you can extend it with its REST API and webhook system. The tool operates in a loop that consists of four stages: planning, working, PR lifecycle, and verification. In the planning stage it reads the codebase, creates a task list and defines success criteria. During the working stage it makes code changes, runs tests, commits and pushes each change. The PR lifecycle stage opens a pull request, waits for CI, fixes failures and addresses review comments. Finally verification runs a final set of checks to confirm that all success criteria are met before marking the task as complete. PLANNING → WORKING → PR LIFECYCLE → VERIFICATION All work flows through pull requests, which means the code is never committed directly to the main branch. This approach gives teams a clear audit trail and integrates naturally with existing review processes. Install the package with pip, uv or Docker. The following example uses uv: uv tool install claude-task-master Authenticate with Claude Code first: claude login Then run a task in your project directory: cd my-project claudetm start "Add user authentication with tests" The CLI will create a plan, open a pull request, handle CI failures and merge when the PR is approved. If the process is interrupted, the tool persists its state and resumes exactly where it left off. Claude Task Master supports multiple isolated profiles. A profile can be an oauth profile that uses a separate Claude Code configuration directory, or an api-key profile that points to a direct Anthropic-compatible endpoint. claudetm --profile my-team start "Implement payment gateway" Using profiles prevents two Claude subscriptions from clobbering each other and
The synchronous path is one tree; everything after the publish is another one - and the audit found out why: the headers were empty. 👋 Hi, I'm Anton - a software engineer working mostly in PHP/Symfony and Go, currently carving a live PHP monolith into Go services. This block is about the three things a fleet of services has to do identically or each service reinvents them: who arrived, what they may do, where their request has been. This part is the third one - where the request has been, and the exact point where the answer stops being available. Running notes live on my GitHub: github.com/brilliant-almazov. This is how I do it right now, with the price attached - maybe you already do it better, maybe you see it differently. A PHP monolith is being taken apart into Go services. The Go API gateway is the only door into the new services from outside; behind it the extracted services talk to each other over gRPC, and each of them is raised from the same shared platform library. Some work is synchronous and answers inside the call. The rest is published as a domain event and picked up later by a background handler in a separate process. That last sentence is the whole subject of this article. Everything before the publish is one call. Everything after it is a different process, at a different time, with a different life expectancy - and by default, a different trace. Before any argument about instrumentation, the inventory. A snapshot taken from a freshly generated service - name, type, help text, labels, histogram buckets, where each one is declared - reads 67 records: 59 of them from the platform, 6 from the service, plus one entry for the dynamic-metric factory. On top of that the service declares 13 domain metrics of its own: queue depth, age of the oldest queued row, relay cycle duration, publish failures by reason, resolve duration, audit records written. Collection is pull. An agent scrapes the system port with a bearer token and remote-writes into a store; the
AI agents drafted and edited this article using Thiago Xikota's supplied facts and the figma-maxxing repository. The images are real screenshots of an agent-built Figma demo file, with annotations added in HTML. Open a Figma screen called Team members. It has a title, a summary card, five people in a list and an Add member button. The title uses #111827. The file has a color variable, color/text/primary, with the same value. Another text layer is bound to it. The title is not. On the canvas, you can't tell the difference. The third row, Sofia Martins, matches the rows around it. But it is no longer an instance of the ListItem component. It is a plain frame that kept the component's name. Change the color variable or the row component, and those two layers stay behind. Real screenshots of an agent-built Figma demo, annotated in HTML. Marker 6 points at the title; marker 5 points at the detached row. Neither audit gate passed after the fix. An agent planted both defects for the test below. Some of the other defects show in the image, such as the clipped label. A missing variable binding and a detached component need a property check. I'm Thiago Xikota, a Brazilian AI Product Designer. I built figma-maxxing from rules I use with agents that edit real Figma files. Most of those rules came from something that broke in a real file. One field note records variable bindings that did not take during a sweep through the figma-console bridge. The affected layers had a locked ancestor, but each layer itself reported locked: false. The calls returned without an error. That does not establish that the lock caused the failures. Figma's typings say a lock does not stop plugin writes. The note records both facts and asks the agent to read back the binding itself. Reading only the color missed the problem because the raw color and the variable had the same value. Prototype reactions have a different failure. Change only the legacy action field and a call can report success while the
--- title: "Java 21 Upgrade & Compatibility Analysis: Log4j 1.2.17 vs. Jackson Annotations 2.17.2" published: true tags: java, maven, gradle, security canonical_url: --- # Java 21 Upgrade & Compatibility Analysis This guide breaks down the compatibility, security risks, JVM runtime flags, and migration strategies for **Log4j 1.2.17** and **Jackson Annotations 2.17.2** when running on **Java 21**. --- ## 1. Artifact: `log4j:log4j:1.2.17` ### Overview & JDK Target * **Original JDK Target:** Java 1.4 (Class file major/minor version `48.0`). Built to run on JDK 1.4 through JDK 8. * **Java 21 Behavior:** When executing directly under Java 21 without upgrading, strong Java Platform Module System (JPMS) encapsulation blocks reflection into internal JDK APIs unless explicit command-line flags are configured. ### Critical Vulnerabilities & Security Risks Log4j 1.2.17 has been **End-of-Life (EOL) since August 2015** and contains severe unpatched security vulnerabilities: * **CVE-2019-17571 (CVSS 9.8):** Remote Code Execution (RCE) via untrusted deserialization in `SocketServer`. * **CVE-2021-4104:** Deserialization vulnerability when configured to use `JMSAppender`. * **CVE-2022-23302:** Deserialization vulnerability when configured to use `JMSSink`. * **CVE-2022-23305 (CVSS 9.8):** SQL Injection in `JDBCAppender`. --- ### Temporary Workaround: JVM Command-Line Flags If you cannot immediately upgrade dependencies and must run unpatched `log4j:log4j:1.2.17` on Java 21, pass these JVM flags to bypass encapsulation restrictions: bash
A free VIN decode that always waits for live NHTSA DecodeVinValues on every repeat paste feels slow even when the catalog barely changes. ETag caches, negative caches, and warmup (covered elsewhere) solve other problems. This post is different: stale-while-revalidate (SWR) -- serve a slightly stale cached decode immediately, refresh in the background, and label freshness honestly so the UI never pretends a background refresh already finished. The goal is narrow: return a cached body past soft TTL while a revalidate runs, expose fresh vs stale vs revalidating to callers, and never invent specs or claim "live NHTSA just now" when you served stale. Use SWR when: Soft TTL expired but hard TTL has not -- body may still be useful A repeat lookup should paint fast while a background DecodeVinValues runs Callers can show "catalog snapshot; refreshing..." without blocking Do not confuse SWR with: ETag / If-None-Match conditional fetches (validator equality, not soft-stale serve) Negative cache of invalid VINs (no successful body to serve stale) Make-pattern warmup (prefetch popular keys before first user hit) SWR is about freshness semantics on a successful cached body. When hard TTL expires, drop the entry and require a blocking live fetch. Never serve a negative entry as a successful card. Store soft and hard windows. Soft expiry allows stale serve + background revalidate. Hard expiry forces a live wait. Label every response so the UI cannot lie. export type Freshness = "fresh" | "stale" | "revalidating" | "miss"; export type SwrEntry = { vinNormalized: string; body: string; storedAt: number; // epoch ms softTtlMs: number; hardTtlMs: number; revalidating?: Promise ; }; export type SwrStore = Map ; export type SwrResult = { body: string | null; freshness: Freshness; source: "cache" | "live" | "missing"; }; const SOFT_TTL_MS = 60 * 60 * 1000; // 1h soft const HARD_TTL_MS = 24 * 60 * 60 * 1000; // 24h hard export function ageMs(entry: SwrEntry, now = Date.now()): number { ret
Japan's Ministry of Land, Infrastructure, Transport and Tourism (MLIT) publishes detailed real estate transaction prices for all 47 prefectures — but accessing this data programmatically has always been clunky. I've built an open tool that makes it trivially easy for AI agents and investors to query this data. 47 prefectures with transaction price records Q3 2005 onwards — over a decade of historical data Fields include: price (yen), land area, location (city/ward), building info, zoning classification Clean JSON output via API The raw data comes from MLIT's Reinfolib system (XIT001 dataset), which I've wrapped in an Apify actor for easy programmatic access. Query transaction prices directly via the Apify API: # Example: get recent transactions in Tokyo curl https://api.apify.com/v2/acts/fruitful_quintessence~mlit-japan-property-prices/runs?token=YOUR_APIFY_TOKEN # Or run via the web UI: # https://apify.com/fruitful_quintessence/mlit-japan-property-prices The actor is free to try (pay-per-result pricing at $0.005 per record). No credit card required for the free tier. Store link: https://apify.com/fruitful_quintessence/mlit-japan-property-prices If you're using Claude, Cursor, or any MCP-compatible agent, install with: # Install the MCP server npx -y mcpb fetch io.github.atushi1841/mlit-property-prices-mcp@0.1.0 --transport stdio # Then add to your MCP config The MCP server exposes tools like get_property_prices that let your AI agent query MLIT data directly in natural language. MCP registry: https://www.modelcontextprotocol.io/registry Property price data is critical for: Real estate investment analysis Market trend visualization AI-powered valuation models Competitive pricing research Until now, scraping MLIT's Reinfolib required handling Japanese government PDFs and complex web forms. This actor does the hard part so you can focus on analysis. Automated price tracking — monitor specific areas for price movements Investment screening — filter by price per square
Originally published at getorquesta.com/blog/agent-grid-monitor-dozens-ai-agents-one-screen When we first shipped Orquesta, the core promise was simple: write a prompt, get a PR. And for a single agent, that worked fine—you'd watch the output scroll by in your terminal. But the moment you asked Claude to refactor a legacy module, run a security audit on a different repo, and generate test coverage for a third, things got messy. Three terminal windows, three separate contexts, zero overview. By the time you're running 10+ agents—say, parallel code reviews across five microservices, a data migration script, and a bug-hunting agent on production logs—you're not developing anymore. You're a system administrator juggling tmux panes and praying nothing fails silently. That's why we built Agent Grid. It's not just a fancy dashboard; it's the missing control plane for local AI agents. Agent Grid lives in the Orquesta web app, but the agents themselves run on your machine. Each agent is a process started via the Orquesta CLI, which wraps Claude CLI or any other local LLM runner. The CLI opens a pseudo-TTY (PTY) and streams raw terminal output over a WebSocket connection to the browser. We render that stream with xterm.js, giving you a fully interactive terminal inside the grid—no iframes, no hacks. The result is that you see every line of output in real time, exactly as if you were sitting in front of that local terminal. But now it's one tab, not 12. Here's how you launch an agent with grid support: orquesta agent run "Find security vulnerabilities in the auth service" \ --mode auto \ --grid The --grid flag tells the CLI to attach the agent to the Agent Grid session associated with your login. From any browser, you can watch, interact, and even send new prompts to that agent. A wall of terminals is useless if you can't tell which ones need attention. Each pane in Agent Grid has a status indicator derived from the agent's internal state machine. We track these states: Idle –
Every coding agent I use has the same habit. It does the work, writes a lovely summary, and stops. The summary lives in the chat. The chat scrolls away. The NOTES.md I asked it to keep up to date hasn't been touched since Tuesday. You can ask nicely in CLAUDE.md, and it will mostly listen. "Mostly" is doing a lot of work in that sentence. Claude Code has a firmer tool for this: a Stop hook, a script that runs when the agent is about to finish and is allowed to say "not yet". I shipped one in Deiko this week, then shipped a fix for it the same day. The fix taught me the one rule I'd now give anyone writing a Stop hook, so that's where this post is heading. Basics first. A Stop hook runs when the main agent has finished responding. It doesn't run when you interrupt with Esc. An API error fires a separate StopFailure event, and subagents get their own SubagentStop. Hooks live in settings.json: ~/.claude/settings.json for all your projects, .claude/settings.json for one repo. There are three levels: the event, a group, and the handlers inside the group. Stop has no matcher (if you add one, it's silently ignored), so the group is just a wrapper: { "hooks": { "Stop": [ { "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PROJECT_DIR}/.claude/hooks/notes-guard.mjs"] }] } ] } } Setting args runs the command directly, without a shell, which is what the hooks reference recommends whenever you use a path placeholder like ${CLAUDE_PROJECT_DIR}. The script gets a JSON object on stdin. For Stop, the parts you'll use look like this: { "session_id": "abc123", "transcript_path": "~/.claude/projects/.../00893aaf-....jsonl", "cwd": "/Users/you/project", "hook_event_name": "Stop", "stop_hook_active": false, "last_assistant_message": "I've finished the refactor. Here's what changed..." } There are a few more fields (permission_mode, background_tasks, session_crons), but these are the ones that matter here. Print nothing and exit 0, and the agent stops as normal. To kee
If you have ever tried to build a fare tracker, a travel bot or a pricing dashboard, you have probably searched for a "Google Flights API". It does not exist anymore. Google shut down its public flight search API (QPX Express) in 2018, and Google Flights has no official API today. In this post I show a simple way to get the same data that you see on Google Flights into Python: prices, airlines, flight numbers, times, stops, layovers, CO₂ emissions and Google's own "prices are low / typical / high" insight. Disclosure: I built the tool used below, the Google Flights Scraper on Apify. It is a paid tool, but it runs on Apify's free monthly credit for small projects, and the code in this post works with any similar setup. For every flight option of a search you get one JSON object. Here is a real result for a round trip from Istanbul to Berlin (shortened): { "origin": "IST", "destination": "BER", "departureDate": "2026-11-20", "returnDate": "2026-11-27", "tripType": "ROUND_TRIP", "price": 183, "currency": "USD", "priceLevel": "typical", "typicalPriceLow": 160, "typicalPriceHigh": 255, "airline": "Air Serbia", "flightNumbers": ["JU423", "JU356"], "departureTime": "2026-11-20T16:40", "arrivalTime": "2026-11-20T20:00", "durationText": "5h 20m", "stops": 1, "layovers": [{ "airport": "BEG", "city": "Belgrade", "durationMinutes": 105 }], "co2EmissionsKg": 212 } A few things that are hard to get elsewhere: All options, not only the first page. Google shows about 20 "top flights" and hides the rest behind "View more flights". For New York JFK → London Heathrow on one day there were 104 options, not 21. Google's price insight. priceLevel tells you if today's price is low, typical or high for that route, together with the typical price range. With includePriceInsights you also get the price history of the last ~60 days. Every leg and layover, including aircraft type, legroom and emissions per leg. You need a free Apify account and its API token (Console → Settings → API & Integra
LLM Evaluation: How a Benchmark Turns Raw Answers Into Comparable Numbers TL;DR — LLM evaluation only produces comparable numbers when every model faces the same prompts, the same fixed judge, and the same per-axis rubrics, with a public verbatim trail so anyone can re-read what a model actually answered. In the Team Recruitment (Oracle) benchmark, Nemotron 3 Ultra scored 90.87 and HY3 scored 83.1 — and the per-axis metrics show exactly why. Most leaderboards hide the mechanism. This one does not. The Team Recruitment (Oracle) benchmark is a recruitment agent task: the model queries an oracle of résumés, then builds a team. It is scored on composition criteria with binary budget and seat gates. Here is the pipeline, step by step. 1. Same prompts. Every model receives the identical task, the identical oracle, and the identical constraints. No model gets a friendlier phrasing or a second attempt. 2. Same fixed judge. Scoring is not delegated to another chat model that might drift between runs. The judge is fixed, so the rubric is applied the same way to every submission. 3. Per-axis rubrics. The final score is not a vibe. It is a weighted composite of measurable axes: budget compliance, seat limit, skill match, role coverage, seniority balance, and whether the minimum seniority gate is met. Binary gates — budget and seat — can zero out an otherwise strong team. 4. Public verbatim trail. Every answer is stored verbatim. Anyone can re-read what the model actually produced, not just the number it received. That is what makes the comparison auditable rather than trust-based. Model Provider Score Budget Seat limit Skill match Role coverage Seniority balance Min seniority Samples Tokens Avg latency (ms) Nemotron 3 Ultra (free) opencode-zen 90.87 0.984 1 0.869 1 0.44 1 11 154054 174951.45 HY3 (free) opencode-zen 83.1 0.996 0.909 0.732 0.864 0.53 0.955 11 123775 94013.55 For context, we also submitted our own model to this benchmark: GLM 5.2 scored 78.0 overall. The winner do
Machine learning systems are usually evaluated against a relatively stable development environment. Healthcare rarely provides one. Clinical practice changes continuously through guideline updates, new treatments, diagnostic technologies, workflow redesign, staffing changes, and documentation practices. These changes can modify the data-generating process. Consider a model trained to predict a clinical outcome using historical patient information. If treatment protocols later change, the relationship between the same patient characteristics and the outcome may change. The model may therefore experience degraded clinical validity even when conventional input distributions do not show dramatic drift. This is practice drift. It differs from ordinary feature drift because the underlying clinical process has changed. A useful monitoring strategy should therefore combine model performance monitoring with clinical governance signals. Significant changes in guidelines, care pathways, diagnostic technologies, treatment patterns, or documentation should trigger review. For some systems, the appropriate response may be recalibration. Others may require retraining or external validation. High-consequence systems may need temporary restrictions while their assumptions are reassessed. Agentic healthcare AI makes this especially important. An agent can execute decisions consistently according to its objective, but consistency does not guarantee that its objective remains aligned with current clinical practice. The technical lesson is simple: monitor the environment that generates the data, not only the data itself.
Most MCP tutorials start with "write a server". If all you want is for Claude to answer questions from a catalogue, an FAQ or a price list, you don't need to write anything. json-mcp-lite turns a JSON array into three tools Claude can call: products_list - page through records products_search - keyword search where every word must match products_get - one record by id git clone https://github.com/scoretracker4321/json-mcp-lite cd json-mcp-lite && npm install claude mcp add products -- node $(pwd)/src/server.js --file $(pwd)/examples/products.json --name products --id sku --search title,description Now ask Claude Code: "Which teas are under 400 and in stock?" It calls products_search, reads the results and answers from your data, not from memory. For Claude Desktop or Cursor, add the same command to the mcpServers block in the config file (the README has the JSON). Two choices that keep it boring and safe: Every tool is marked readOnlyHint, so clients know nothing can change. Search is plain keyword matching, not embeddings. For catalogues and FAQs under a few thousand rows it is instant, needs no API key, and you can predict exactly what it returns. Claude is good at rephrasing a query when the first one misses. The moment your data lives behind a REST API, or you want the server online for a team instead of on one laptop, you need more: OpenAPI-to-tools, HTTP hosting, API keys, rate limits. I packaged that as MCP Server Kit (one config file turns an OpenAPI spec into typed tools). json-mcp-lite is the free part of it, and it stays MIT. Repo: https://github.com/scoretracker4321/json-mcp-lite