Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

Security Audit Report: Reentrancy & Access Control Review: Gauntlet

Security Audit Report: Reentrancy & Access Control Review: Gauntlet Target Protocol: Gauntlet (TVL: $1644.4M) Security Audit Report – Reentrancy & Access‑Control Review Protocol: Gauntlet Scope: Core smart‑contract suite (Ethereum mainnet & L2 roll‑ups) – Vaults, Strategy Manager, Fee Distributor, Governance & Upgrade Proxy layers. Date of Review: 2026‑09‑30 – 2026‑10‑05 Auditors: Senior DeFi Security Research Team – [Your Company] Gauntlet is a high‑TVL ($1.64 B) asset‑management and yield‑optimization protocol that operates on Ethereum L1 and several L2s (Arbitrum, Optimism, zkSync). The platform’s core value proposition relies on automated strategy execution, dynamic fee distribution, and on‑chain governance. Our focused audit examined reentrancy safety and access‑control robustness across the entire contract suite, with special attention to: Component Primary Function Criticality (1‑5) VaultCore Deposits/withdrawals, share accounting 5 StrategyManager Deploys/updates external strategy contracts 5 FeeDistributor Calculates & distributes protocol fees 4 GovernanceProxy Upgradeable proxy & timelock 5 RoleManager (OpenZeppelin AccessControl) Role assignment & admin functions 4 Category # of Issues Severity (Critical/High/Medium/Low) Reentrancy 3 2 Critical, 1 High Access‑Control 5 1 Critical, 2 High, 2 Medium Overall Risk Score – 7.2 / 10 The critical reentrancy issues stem from unprotected external calls in the VaultCore.withdraw() path and in the strategy harvest flow, where state updates occur after an external call. The critical access‑control flaw is an unrestricted upgrade path in the GovernanceProxy that can be triggered by any address holding the PROPOSER_ROLE without a timelock safeguard. If exploited, these vulnerabilities could enable an attacker to drain vault assets, steal accrued fees, or freeze protocol upgrades, potentially resulting in loss of >$300 M in assets under management (AUM). The remainder of the findings are high‑impact but mitigable with

SegurançaDev
Interesse
dev.to

Get a Company's EU VAT Number from Its Company Number: the Rules for 10 Countries (with Code)

Get a Company's EU VAT Number from Its Company Number: the Rules for 10 Countries (with Code) Your onboarding form asks for a company number, your invoicing system needs a VAT number, and the customer typed only one of them. In many European countries the VAT number is not a separate secret: it is the company's own identifier in a fixed format. In others there is no rule at all. Here are the rules, a function you can paste, and the one thing a derived number cannot tell you. Country Built from VAT number Example Spain NIF (company letters A–W) ES + NIF ESA46103834 France SIREN (9 digits) FR + 2-digit key + SIREN FR27552032534 Poland NIP (10 digits) PL + NIP PL7740001454 Norway organisasjonsnummer (9 digits) NO + number + MVA NO923609016MVA Finland Y-tunnus 1234567-8 FI + the 8 digits FI01120389 Sweden organisationsnummer (10 digits) SE + number + 01 SE556810898801 Belgium enterprise number (10 digits) BE + number BE0202239951 Croatia OIB (11 digits) HR + OIB HR18928523252 Denmark CVR (8 digits) DK + CVR DK24256790 Switzerland UID CHE-123.456.789 UID + MWST (TVA/IVA) CHE103867266MWST No rule exists for the UK (a VAT number is its own registration with HMRC), Ireland, Slovakia (the IČ DPH is not derived from the IČO) or Estonia (the KMKR is not the registry code). There you need the number from the company or from a register that publishes it. The only rule with arithmetic. The two-digit key is (12 + 3 × (SIREN mod 97)) mod 97: def fr_vat(siren: str) -> str: key = (12 + 3 * (int(siren) % 97)) % 97 return f"FR{key:02d}{siren}" assert fr_vat("552032534") == "FR27552032534" # Danone import re def vat_from_company_number(country: str, number: str) -> str | None: """The VAT number a company's identifier implies, or None where no rule exists.""" s = re.sub(r"[\s.\-/]", "", number or "").upper() d = re.sub(r"\D", "", s) if country == "ES": return f"ES{s}" if re.fullmatch(r"[ABCDEFGHJNPQRSUVW]\d{7}[0-9A-J]", s) else None if country == "FR" and len(d) == 9: return f"FR{(12 + 3

Dev
Interesse
dev.to

Your quote never got a reply. That's a queue problem, not a sales problem.

Most service businesses do not lose quotes because the price was wrong. They lose them because nothing in their stack owns the second contact. The quote goes out. The client says "let me think about it." Then the quote sits in a sent folder until someone remembers it, and by the time someone remembers, the client has already bought elsewhere — not necessarily because the competitor was better, but because the competitor spoke second. I want to argue that this is not a discipline problem and not even a sales problem. It is a queue problem. Follow-up is a scheduled, stateful, auditable background process with an owner. Once you model it that way, most of the hard parts stop being about persuasion and start being about engineering: idempotency, suppression, ordering, and observability. This article is the design write-up for that. It is deliberately useful on its own — you can take the data model and the failure-mode checklist and build this with cron plus a SQLite file this afternoon. Two claims circulate in the quote-follow-up space. I want to state both, attribute both, and flag both, because the follow-up literature is dominated by people selling follow-up automation. The first is a response-latency claim: that replying within one hour yields roughly 7x more chance of a meaningful conversation than replying an hour later, and roughly 60x versus replying after 24 hours. My team's research report attributes this to Harvard Business Review. I have not verified the exact HBR article behind those multipliers, so treat them as directionally suggestive, not as a number to put in a pitch deck. The honest summary is: being fast plausibly matters a lot, and the precise multiplier is unverified. The second is a cost claim: the automation agency Octavius AI documents that inconsistent quote follow-up, handled by two people, cost one of their clients more per year than a part-time employee. Note the source type — this is an agency that sells automation, so it is a reference ran

Dev
Interesse
dev.to

n8n vs Zapier vs Make: The Real Cost Math for Small Businesses

By Farzam Saadat · October 1, 2026 Which automation platform actually costs less once you run real workflows? We break down tasks, credits, executions, hidden fees, and self-hosting, with numbers you can plug your own business into. Choosing between n8n, Zapier, and Make usually starts with a feature checklist and ends with a surprise invoice. The three platforms look similar on their pricing pages, but they count usage in completely different ways. That one difference can make the same automation cost $9 a month on one tool and $150 on another. If you run a small business in the USA and you are comparing workflow automation tools , the question that matters is not “which has the most features?” It is “what will this cost me at the volume I actually run?” This guide does the math for three realistic scenarios, shows the hidden costs that blow up budgets, and gives you a clear way to decide. Make is usually the cheapest cloud option for small teams running multi-step workflows. n8n wins when volume grows, because it bills per workflow run, not per step. It is also the only one of the three you can self-host. Zapier is the easiest to start with and has the biggest app library, but it becomes the most expensive as soon as workflows get long or frequent. Each platform charges for a different thing. Until you understand the billing unit, you cannot compare prices honestly. Platform What you are billed for What that means in practice Zapier Tasks — each successful action step in a Zap A 5-step Zap that runs once uses roughly 4 to 5 tasks. Long workflows multiply your bill. Make Credits — each module action in a scenario (renamed from “operations” in August 2025) Every module that runs costs a credit, so multi-step scenarios add up, but credits are cheap. n8n Executions — one full workflow run, however many steps it has A 30-step workflow still counts as one execution. This is n8n’s biggest pricing advantage. Put simply: Zapier charges per step, Make charges per module, an

Geral
Interesse
dev.to

OpenAI Started Watermarking ChatGPT Text. Build a Tiny Text Watermark in TypeScript.

Most of us think of a watermark as something you can see. A logo in the corner. A faint stamp across a photo. Text doesn't have a corner. So how do you mark a paragraph without changing how it reads? That question stopped being academic this week. On October 5, 2026, OpenAI published Our approach to EU text provenance rules. API customers anywhere can now opt in to text watermarking for select models. It stays off by default. Over the coming weeks, eligible ChatGPT and Codex output in the European Union gets an invisible watermark. The detector is not public. Approved researchers and expert organizations can apply for access. The same day, OpenAI posted the textGrain technical report. It says the detector "requires only the generated text and the secret key." OpenAI's help center adds that textGrain "does not add hidden characters, invisible spaces, or unusual punctuation." The signal lives in which words get picked. The reason is regulation. The EU AI Act's transparency rules took effect on August 2, TechCrunch reported, and they require AI-generated content to be marked in a way machines can identify. Here's the part I find most interesting. OpenAI published its own failure modes next to the launch. At a 1% false positive target, its detector found the watermark in about 95% of 400-token passages and about 80% of 200-token passages, for content like psychology. Math was "substantially lower." And in a 400-token test, replacing 10% of the words with synonyms dropped detection from about 92% to 66%. Replacing 25% dropped it to 17%. Then this line: "The absence of a detected watermark does not prove human authorship." That distinction matters. A watermark is evidence when you find it. It is not evidence when you don't. I wanted to feel that in code. So let's build a tiny version. By the end, you'll run one command: npx tsx watermark.ts And watch a keyed watermark go into ordinary looking sentences, get detected with only the text and the key, and then fade as we swap

IADev
Interesse
dev.to

Choose Heartbeats Over a FastAPI Django Error Tracking API for 15-Minute SaaS Imports

Choose an explicit result heartbeat over a simple error tracking API when a FastAPI or Django SaaS must answer, "Did the scheduled import produce a result?" Use searchable exception events and grouped issues as supporting diagnosis, not as the primary detector. For an import expected every 15 minutes, alert on an overdue, uniquely identified schedule occurrence only after its completion deadline has passed, then attach any correlated exception group to that alert; this choice produces a higher-quality signal because silence becomes observable while retries, duplicate deliveries, and repeated stack traces do not manufacture extra incidents. Short answer: choose heartbeat-first detection when missing work matters more than counting thrown errors. Choose exception-first detection only when every meaningful failure is guaranteed to throw, reach the tracker, and remain distinguishable from retry noise. That is a demanding invariant for scheduled imports. An exception proves that one execution path reported an error. It does not prove that a schedule fired, that a worker received the job, that the process remained alive long enough to report telemetry, or that a syntactically successful import produced a usable result. A quiet queue, a disabled scheduler, expired credentials handled as an empty response, and a worker terminated before export can all leave the exception channel silent. No news is ambiguous. A result heartbeat answers a narrower question. Record one durable observation per expected schedule occurrence, with fields such as tenant_id, integration_id, scheduled_for, completed_at, outcome, records_seen, and trace_id. The scheduler or monitor can then compare expected occurrences with recorded outcomes. The heartbeat is not a log line whose presence depends on search retention; it is evidence tied to a business-level unit of work. The ADR therefore has three invariants. First, (tenant_id, integration_id, scheduled_for) is unique, so a retry cannot create a secon

Dev
Interesse
dev.to

Build a self-improving GPT-6 Astra coding agent with codebase memory

This article was originally published on the Actian blog. Read the original here. You'll build a GPT-6 Astra coding agent that saves every test-confirmed bug fix to Actian VectorAI DB and searches those fixes before it edits code. Because the fixes live outside the response chain, a brand-new session can retrieve a repair that Astra confirmed in an earlier one. You need GPT-6 Astra API access, Docker, and Python 3.12. The complete implementation, tests, and demo projects are in the companion GitHub repository, so you can clone it and follow along. Check these requirements first. You need an OpenAI API key with GPT-6 Astra access. Astra isn't available on the free API tier, and API billing is separate from a ChatGPT subscription. You need a small API budget. Standard processing costs $10 per million input tokens and $50 per million output tokens. The transport check and two live sessions in this build cost about $0.15, and your run may cost more or less depending on token usage and request count. You need Docker with Compose to run VectorAI DB locally. You need Python 3.12 in a Linux shell. The original commands ran from the repository root in WSL2. In the Responses API, previous_response_id and durable Conversation objects preserve context for a thread the application already knows it wants to continue. A fresh response chain can't see a fix that Astra confirmed during separate work. This build stores each confirmed fix in VectorAI DB so any later session can search for it. The agent follows this order on every failure. Astra sends the error details to search_codebase_memory. The tool creates a local embedding and searches VectorAI DB for similar confirmed fixes. The agent loop returns the matches as a function_call_output linked to the original request by its call_id. Each match includes the error type, affected files, solution, and test outcome. Astra compares any retrieved fix with the current code before it changes anything. If the search finds nothing relevant,

IADev
Interesse
dev.to

Photoshop's Pen Tool Is Done: How AI Splits a Flat Image into Layers

Originally published on the LayerGrab blog. Disclosure: I build LayerGrab, an AI tool that splits images into layers; this post was drafted with AI assistance and edited by me. Separating a flat image into layers used to be the one job you could not hand off: Pen tool, Layer via Copy, Content-Aware Fill, repeat for every element. Image layer decomposition is the AI task that does it in one pass: a model takes a flat RGB image and returns a stack of RGBA layers, one per element, with the regions behind each element filled in so the layers recompose into the original. Here is how it works, what we measured on a real poster today, and where it breaks. Three things at once, which is why this was hard until recently: Decide what the elements are. Not pixels by colour, but "headline", "badge", "cup". Cut each one out as RGBA with a usable alpha edge. Invent what was behind each element, because the camera or designer never stored it. Without this, moving a layer leaves a hole. Segmentation models solve step 2 and inpainting models solve step 3. A decomposition model does all three, which is what makes the output a real layered file instead of cutouts on a broken background. Qwen-Image-Layered (Apache 2.0, weights released December 2025) is the open model for this. We ran it through fal's hosted API on an 880 × 1184 coffee shop poster on 2026-10-06. Example request, from fal's public docs: # Example (fal queue API). FAL_KEY is your own key. curl -X POST https://queue.fal.run/fal-ai/qwen-image-layered \ -H "Authorization: Key $FAL_KEY" \ -H "Content-Type: application/json" \ -d '{"image_url": "https://example.com/poster.png", "num_layers": 4, "output_format": "png"}' What came back with num_layers: 4: 4 PNGs, each 544 × 736, the full canvas size: the model works at around 640 px on the long side, and its README recommends that resolution. Layer 1 was the fully opaque background; layers 2–4 were transparent everywhere except their element. Text, the discount badge and three

IADev
Interesse
dev.to

How to generate an EPC payment QR code (GiroCode) for your invoices

If you send invoices to customers in Germany, Austria, the Netherlands or Belgium, you have probably seen a small QR code labelled "GiroCode" or "Zahlen mit Code". The customer scans it in their banking app, and IBAN, recipient, amount and reference are filled in automatically. No typos in the IBAN, no missing reference. The format behind it is the EPC QR code, defined by the European Payments Council in the guideline EPC069-12. It is plain text, so you can generate it with any QR library. Here is what goes into it and where it usually breaks. The QR code contains up to 12 lines, separated by a line feed (\n): Line Content Example Notes 1 Service tag BCD always BCD 2 Version 002 002 makes the BIC optional within the EEA 3 Character set 1 1 = UTF-8 4 Identification SCT SEPA Credit Transfer 5 BIC (empty) optional with version 002 6 Beneficiary name Muster GmbH max. 70 characters 7 IBAN DE89370400440532013000 no spaces 8 Amount EUR149.90 EUR + amount with a dot, max. 999999999.99 9 Purpose code (empty) optional, 4 characters 10 Structured reference (empty) ISO 11649 creditor reference (RF…) 11 Unstructured reference Rechnung 2026-041 max. 140 characters 12 Info to the payer (empty) optional, max. 70 characters Two rules that are easy to miss: Use either line 10 or line 11, never both. If you have no RF creditor reference, leave line 10 empty and put the invoice number into line 11. The whole payload must not exceed 331 bytes. With UTF-8, umlauts count as two bytes. Trailing empty lines may be omitted, so a minimal code ends after line 11. function epcPayload({ name, iban, amount, reference, bic = "" }) { const cleanIban = iban.replace(/\s+/g, "").toUpperCase(); if (!/^[A-Z]{2}\d{2}[A-Z0-9]{11,30}$/.test(cleanIban)) { throw new Error("Invalid IBAN format"); } if (name.length > 70) throw new Error("Name longer than 70 characters"); if (amount 999999999.99) throw new Error("Amount out of range"); const lines = [ "BCD", "002", "1", "SCT", bic, name, cleanIban, "EUR" + amou

Dev
Interesse
dev.to

Theme oks-ui to your brand in 10 minutes

oks-ui ships with a neutral default look on purpose — every colour, radius, space and shadow it renders is a plain CSS custom property, not a baked-in design opinion. That means re-theming it isn't a config file or a build step; it's a stylesheet. Here's the whole path from default to your brand, in the order that actually matters. primary is the semantic role that colours your main buttons, links and focus rings. It's tempting to override just --oks-color-primary-500 and call it done, but a solid button also reads 600 for hover and 700 for pressed — override the whole ramp so those states stay coherent instead of falling back to the default orange. :root { --oks-color-primary-50: #eef2ff; --oks-color-primary-100: #e0e7ff; --oks-color-primary-500: #4f46e5; /* your brand */ --oks-color-primary-600: #4338ca; /* hover */ --oks-color-primary-700: #3730a3; /* active / pressed */ } Check contrast before you ship it. A solid Button or Chip puts white label text on 500 and deeper by default. Before you lock in a brand colour, check that white clears 4.5:1 against it — a vivid, light colour like a saturated yellow or orange usually won't, and needs a slightly deeper 500 to stay accessible. Radius is one scale, reused everywhere — cards, buttons, inputs, modals. Nudge the two or three sizes you actually see and the whole interface shifts from sharp to soft in one edit. :root { --oks-radius-sm: 0.125rem; /* chips, small controls */ --oks-radius-md: 0.5rem; /* the one most components default to */ --oks-radius-lg: 0.875rem; /* cards, modals */ } The space scale drives padding and gaps across the library. If your product wants to feel airier or more compact than the default, nudge --oks-space-4 — it's the workhorse most components reach for. :root { --oks-space-4: 14px; } /* default is 16px */ If your brand's grey isn't oks-ui's default, alias the neutral role instead of overriding a dozen individual tokens — form-field borders and muted text all read from it. :root { --oks-colo

Dev
Interesse
dev.to

OpenCode Model Router: per-agent model fallback chains with a local web UI

Long sessions tend to end the same way: the primary model starts returning rate-limit errors, or the provider goes quiet mid-task. The work is half done, the context is fully loaded, and the fix is either to wait or to switch models by hand and hope continuity survives. If you run more than one provider — OpenRouter, DeepSeek, and others — you already have somewhere to fail over to. What is usually missing is a way to declare "this agent tries A, then B, then C" and have that applied automatically when A stops answering. Waiting out a rate limit is fine once; doing it repeatedly, across agents and providers, is what gets old. OpenCode Model Router is an OpenCode plugin that adds exactly that. Every OpenCode agent gets its own model fallback chain: a primary, a secondary, and a tertiary model. When the primary model fails or does not respond, the plugin fails over to the second step, and then to the third. The project is MIT-licensed and currently at v0.3.1. A chain is an ordered list of model refs in the form {providerID, id, variant?}. The provider is part of a step's identity: the same model served by two different providers counts as two separate steps. That matters because the failure you are often defending against is the provider, not the model itself — a chain like "model X on provider A, model X on provider B, model Y on provider C" keeps the same model behavior for as long as possible and only changes model when both routes to it are gone. Chains are per agent because agents do different work. A long-running coding agent and a short review agent do not need the same ordering, and one global fallback list forces a compromise between them. Each agent keeps its own three slots. A step can carry an optional variant, so two builds of the same model id can be ordered as distinct steps. Three slots is the whole model: primary, secondary, tertiary — enough to cover a provider outage plus a second degraded route in the same session, and short enough that keeping cha

IADev
Interesse
dev.to

The agent did exactly what I asked. That was the bug.

Three times this month my agent executed a flawed request perfectly. Hooks can't catch this one, because the mistake isn't in any single tool call, it's in the plan. Here's what I changed instead. I wrote a while back about moving rules out of my instructions file and into hooks, because a rule in prose gets followed most of the time and a rule in a tripwire gets followed every time. I still believe that. Someone in the comments pushed on where determinism stops being the right tool, and I didn't have a good answer then. I do now, because three times in the past month my agent did precisely what I asked, did it well, and the result was wrong anyway. Not a hallucination, not a bad diff. Correct execution of a flawed request. That class of failure has no tool call to intercept, which makes it the exact thing a hook cannot save you from. I have a side project that redacts PDFs in the browser. I wanted an animated demo for the landing page, so I asked the agent to drive the app with Playwright and record the whole flow: open a file, drag a box over a name, export, done. It built the script. The script worked. I watched the GIF and the black box was sitting next to the name instead of on top of it. The redaction code was placing boxes by splitting a text run's total width by its character count, so a box over characters 4 to 9 was a flat fraction of the run. That's correct for a monospaced font and wrong for every other font, and the drift grows with the length of the run. Sometimes it covered the word. Sometimes it covered the word and a bit of the next one. Sometimes it sat just to the right of the thing I was trying to hide. Here is the part that stings. The app already verified its own output. After exporting, it re-opens the PDF it just produced, extracts the text layer and checks that the redacted string is gone. That check passed every single time, and it was right to pass: the text really was destroyed. It just wasn't the text under the box the user drew. My veri

IADev
Interesse
dev.to

Node.js Backend API Feature Flags Govern Nightly Parser Percentage Rollout

Put the new structured-log parser behind server-owned Node.js feature flags, let the backend API assign players to a stable percentage rollout, and promote the parser only when search signal improves without exhausting the pipeline's error budget. The percentage is merely an exposure control; the release decision belongs to the quality evidence from a complete nightly run. TL;DR: keep flag administration on the backend, return only an evaluated value to the application, and let the frontend poll that narrow application endpoint. A basic flags API is enough for this job when polling latency is acceptable. It is the wrong control plane when the release requires approvals, an immutable change history, dependency rules, or experimentation analytics. A parser rollout can look healthy while making logs less useful. The job may exit successfully and produce the expected record count, yet a loose mapping can collapse distinct event types, a changed field can break an operator's saved search, or an identifier can create enough cardinality to bury the useful rows. For a gaming pipeline searched after each nightly load, throughput is necessary evidence, but it is weak evidence. Define the promotion rule before changing exposure. I would use measures already produced by the pipeline: accepted structured records, records sent to the dead-letter path, and results from a small, fixed set of operator searches. Infrai's logs.search discovery parameters are undeclared, so do not invent filters around it for this rollout. Run the known searches through the interface your team has actually validated. One whole nightly cycle is the minimum observation window because that is one execution of the workload, not because one night establishes statistical confidence. Suppose the run handles 80,000 records and the release error budget permits 400 newly malformed records. A 5% cohort exposes about 4,000 records before skew, and the allowable failure rate inside that cohort cannot be chosen inde

DevInfra
Interesse
dev.to

Server-render an SVG map with no map library

Showing a dot on a map usually means a vendor, an API key, and a script to load. That is a lot of machinery for a drawing. You can skip all of it. The race pages on FieldRank, a rankings site for trail runners, do: the server draws each map as SVG from free public data, and the map needs nothing else to load. The drawing is the easy part. The labels are where it gets hard, and they are what this tutorial builds up to. By the end you'll have one Node script that writes a labeled map of the Alps to an SVG file under 4 KB. A locator map has one job: show where something is. It does not need to pan, zoom, or update. Drawing it ahead of time as SVG fits that job, and it drops most of what a map usually brings with it: Nothing extra to load. The map is markup inside the HTML. No script to run, no tiles to request, and no connection to another company's servers. No layout shift. The markup carries the map's size and proportions, so the browser lays it out on the first pass and nothing moves when it appears. No JavaScript in the browser. The script runs on your server, not the page. The map shows with scripts turned off, and a crawler reading the HTML sees it too. Readable by a screen reader. Give the svg element role="img" and an aria-label that names the place. Styles like the rest of the page. Inline in your HTML, it takes CSS like any other element, so its colors can follow your dark mode. No account to manage. No API key, no usage tier, and no visitor request passing through a third party. It has costs too: No pan or zoom. It is a picture. If someone needs to move around in the map, reach for a map library. Coarse detail. The coastline file is drawn for regions and countries. It has no roads, trails, or terrain, so it cannot show a course. The work moves to your server. Projecting a coastline on every request is wasteful for a picture that never changes. Draw each map once and cache it. The date line needs extra work. Land on the far side of 180° longitude falls off th

Dev
Interesse
dev.to

LoreConvo: every session starts warm

Most AI sessions begin with a blank slate. You open Claude Code, pick up where you left off in a data pipeline, and spend the first few minutes re-explaining the schema decisions you made two days ago, the library you chose over an alternative, the edge case that came up in a review. That context existed somewhere -- in a previous conversation, in a comment you wrote, in your head -- but the model has none of it. Starting from zero is not a limitation of the models; it is a gap in the tools that sit around them. LoreConvo fills that gap. It ships several interlocking mechanisms for context restoration, each targeting a different layer of the problem. This post walks through how they work in practice. The most fundamental mechanism is the hook pair. When you start a new session on any supported surface -- Claude Code, Cowork, the Codex desktop app, Cursor IDE, or Hermes Agent -- the auto-load hook fires before your first message. It queries the local SQLite database for recent sessions tagged to your current project, ranks them by recency and relevance, and injects a compact summary into the session context. The session begins with prior decisions already in scope, not as an afterthought. At the end of the session, the auto-save hook fires without any user action. It extracts a heuristic summary covering what was discussed, the decisions made, the tech-stack facts surfaced, and open questions the model may signal during the conversation, captured opportunistically rather than guaranteed on every save. That record becomes input for the next auto-load. The loop is intentional: each session feeds the next, building a running record without any manual overhead. Both hooks ship on the free tier. You do not need a Pro subscription to start accumulating context. The hooks are also cross-surface, which means a session started in Claude Code produces a record that the auto-load hook can inject into a subsequent Cursor IDE session on the same project. The context follows the p

IADev
Interesse
dev.to

Claude Code MCP: Connected but Not Working? Check These Three Gates

An MCP server can appear in claude mcp list and still fail the first real request. In most cases the connection is fine and one of three separate gates is closed. Checking them in order saves a lot of configuration churn. Every MCP request from Claude Code passes three independent checks: Gate Question it answers Who controls it 1. Project-server approval May Claude Code load this connection in this project? You, in an interactive session, plus any organisation restrictions 2. Tool permission May Claude call this specific tool now? Claude Code permission rules in personal, project and organisation settings 3. Data access Does the credential behind the server allow this read or write? The external system, for example GitHub, using the token's permissions Passing one gate says nothing about the next. Approving a tool call in Claude Code cannot grant a repository permission your token lacks, and a token with full access does not help if the project server was never approved. What you see Check first The server does not appear at all Configuration: project directory, JSON syntax, server name Approval is pending Gate 1: review the project-server request in an interactive session Every call asks for permission, or the call is refused Gate 2: the permission rule, written against the actual tool name Authentication or "not found" errors from the service Gate 3: token expiry, selected repositories, organisation approval Labels vary by Claude Code version. What matters is which stage failed. Use /mcp inside a session to inspect the connection before you change any files. One detail catches many people at gate 2. Permission rules can target a whole server or a single tool, and the server sets the tool names. Inspect the real name before writing the rule. A name guessed from your own server label may not match. Claude Code stores an MCP connection at one of three scopes: Local (the default): you, in the current project. Project: everyone who receives the project's .mcp.json. Us

IADev
Interesse
dev.to

Claude Message Batches: What to Do With Each Result State

The Message Batches API processes independent Messages API requests asynchronously. Submitting a batch is easy. The design work is in what happens after the results come back, especially when some succeed and some do not. Use a batch for independent work that can wait: evaluations, document classification, data analysis. Use an interactive request when a person or service needs the answer before it can continue. A batch can take up to 24 hours, so check the current limits in the documentation before building anything time sensitive. Results can come back in a different order from the requests you sent. Give each request a custom_id taken from your own record, such as ticket_8831, and store the mapping before you submit. When results arrive, write each outcome next to its source record, with the prompt version, submission time and status. State What it means Next step succeeded The model returned a message Validate the message and its business meaning before any action errored The request failed Read the error. Fix invalid input; retry only errors that are eligible canceled The batch was canceled Check each request. A canceled batch can still contain completed results expired The request was not sent before the batch expired Decide which requests are still useful, then resubmit those succeeded is the state people misread. It means a message exists, not that the message is right for the decision. When a few records fail, the tempting fix is to resubmit everything. That can create duplicate tasks or overwrite decisions a person already made. Instead: Keep successful and unresolved records separate. Retry only eligible records, with their original IDs. Preserve completed outcomes and human decisions. For refunds, notices, account changes or payments, separate the model's output from execution: Mark a record approved_for_action only after validation and any required review. Let the action service enforce an idempotency key, so a retry cannot run the action twice. custom_

IADev
Interesse
dev.to

Jank Fighter II — Claude vs Codex vs Grok before and after Buoy

I built Buoy — debugging and optimize tooling for React Native, Expo, Flutter, Swift, web, and more. We put three coding models through the same prompt on a janky React Native Skia scene rendered with React Native Web in Chrome, then ran Optimize and measured again. Results (FPS, before → after) Claude: 975,800 → 6,123,350 (6.3×) Codex: 155,450 → 444,100 (2.9×) Grok: 202,100 → 577,350 (2.9×) Lights held around 55 fps. Same prompt, same scene, same harness — the gap is what Optimize changed in the app under test. Full write-up with screenshots and method: AI models before and after Buoy Questions welcome — especially if you want details on the Skia/Web setup or how we scored the runs.

IADevMobile
Interesse
dev.to

Comparing Budget Structured Logging Platforms for Next.js SaaS — Node.js Forensics

For a budget-conscious Next.js SaaS, choose a structured logging platform by testing whether it can reconstruct one game-notification delivery from acceptance to final outcome. Carry one stable delivery_id through the Node.js request, queue handoff, and provider attempt. The deciding constraint is incident reconstruction: an on-call engineer must tell a known rejection from an unknown outcome without sending the player a duplicate alert. TL;DR: Choose Sentry when frontend crash context drives the investigation, Axiom when structured-event investigation is central, Better Stack's Logtail lineage when its broader operational workflow matches the team, or Datadog when logs belong in an existing observability estate. A consolidated hosted API is a reasonable fifth option when one key and one bill reduce backend-service sprawl. It does not replace tracing, replay, alert routing, or heartbeat monitoring. Infrai adds a separate advantage to that consolidation: one REST API works over plain HTTP, requires no SDK, and can be called from any language or runtime. Its self-describing public discovery contract exposes request schemas and runnable examples before integration. For a notification path split between Node.js and a Go worker, those consistent conventions remove contract guesswork at the handoff and avoid maintaining two vendor libraries. Its breadth is concrete: 295 routes across 20 modules under the same key, with documented examples in 10 languages. A player saying "my tournament-start alert never arrived" is not asking how many errors occurred. The runbook has to establish which state transition happened, which did not, and whether a retry would duplicate a notification that already escaped the system. A useful timeline proves four things: the application accepted an intent, a job was handed off, a provider attempt received an outcome, and the system recorded a terminal state. Put consistent JSON fields on server actions, API routes, authentication failures, and ba

DevInfra
Interesse
dev.to

How to build an internal tool without developers (a step-by-step example with AI)

Every small company has a job that lives in the wrong place. Who has which laptop. Which van is due for a service. Which client asked for what, and who's on it. It sits in a shared spreadsheet, a WhatsApp group and one person's head, and it works until that person goes on holiday. The usual answer is "we should build a proper tool for that", followed by nothing, because there's no developer free and the job isn't big enough to hire one. That gap is exactly where AI app builders are useful now: you describe the tool, it gets built with a real database, and the team signs in to use it. This post walks through building one end to end, with the actual prompts. The example is an equipment tracker (who has what, when it's due back, what needs maintenance), because almost every team with more than ten people has one hiding in a spreadsheet. I'll use Mythex because it's what I build, but the steps and the mistakes are the same in any AI builder. AI builders are quick at screens and bad at guessing how your company works. Ten minutes of writing saves an afternoon of patching. Answer four questions: What are the things? Equipment items: name, type (laptop, tool, vehicle), serial number, purchase date, condition, location, photo. What happens to them? They get checked out to a person, returned, sent for repair, retired. Each of those is a record with a date and a person, not an edit to a cell. Who does what? Everyone can see what's available and request an item. Office managers check items in and out. Only admins add or retire items. What question do you ask most? "Who has the projector?" and "What's overdue?" Those become the front page. If you can't answer question 3, stop and ask your team. Permissions are the part of an internal tool that's hardest to bolt on later. Paste the brief in nearly as written. Long is fine; every sentence is a decision the AI won't have to guess. Build an internal equipment tracker for a 40-person company. Items have a name, type (laptop, tool, v

IA
Interesse
dev.to

I checked the on-chain receipts of an "AI agents pay each other" demo

On 3 October 2026 a builder posted a demo here: an AI buyer agent, given a task and a spending limit, hired two sellers it had never seen and paid only the one whose answer verified. The one that lied walked away with nothing. The write-up links every dollar to a Base mainnet transaction. That's the right way to make a claim about agent money: don't describe it, show it. So I pulled the receipts myself. I read the headline transactions on BaseScan (through Blockscout's API), not the author's screenshots. Every one below returned status ok. The honest seller was paid. settleChannel 0x11b02d8f…9b08 moves exactly two USDC transfers out of the escrow: 0.05 USDC to the hub signer (0xBE0bBE44…C5f1) and 0.95 USDC back to the buyer (0x097e3F33…475a). Confirmed on chain. The cheat was not paid. settleChannel 0xc87df337…dd34 moves a single transfer: 1.00 USDC from the escrow back to the buyer. No debit ever touched that channel. The debit happened. debitChannel 0x42f6ff50…9f36 runs from the hub's signer to the escrow. The addresses line up with the write-up: escrow 0x12Db8FAC…62CF2, hub signer 0xBE0bBE44…C5f1, buyer 0x097e3F33…475a. Nothing in the money path is asserted. It's all on chain, so it can be checked by anyone with a browser. The machinery of "pay only for verified work" runs on real money today. The escrow opens, the price is held and not taken, an independent panel votes, and only a pass is ever debited. A seller that signs a wrong answer still does not get paid. That last part is the whole point, and it makes this stronger than the usual "agents can pay each other" post, because it shows the failure case working. Both sellers are the operator's own, and the buyer's wallet was funded by the operator. You cannot schedule a real cheater, so a demo has to build its own. That makes this a proof of the mechanism, not of demand. There is no outside customer anywhere in it. The author writes that plainly in the post, which is more honest than most people shipping "the ag

IA
Interesse
dev.to

A free, keyless Remote Jobs API I built to stop scraping job boards (5 sources, one call)

Building something that needs to know "which jobs are out there right now" keeps hitting the same wall: every remote job board is a different scrape, a different HTML layout, a different rate limit, and a different set of dead links. So I built a single API that normalizes all of it into one call. It's live, free, and requires no API key. Remote Jobs API is a small service that aggregates remote roles from five public sources — Remotive, RemoteOK, Jobicy, WeWorkRemotely, and Hacker News (Who's Hiring) — and returns them as one clean, typed feed. No registration. No API key. No rate-limit handshake. Point a client at an endpoint and you get normalized jobs back. Most "job APIs" make you sign up, burn through a free quota, and wrap every call in an auth token before you can get a single listing. That friction is fine for a data vendor selling you a dashboard. It's hostile if you just want to build a tool, a demo, a newsletter digest, or an AI agent that needs to see current openings. I wanted the opposite: the lowest-possible-friction way to say "give me remote jobs." So the design constraint was zero setup. If a call can't be made with a plain curl, it's not finished. Each job is normalized to a small, predictable object. What varies wildly across source sites (title casing, salary formats, remote-region wording) is flattened to a consistent schema: { "title": "Data Scientist III - Temporary", "company": "Veracyte", "salary": "USD 63-72 / hourly", "url": "https://jobicy.com/jobs/154571-..." } The health endpoint tells you how much is live at any moment: GET /health { "status": "ok", "sources": ["remotive","remoteok","jobicy","wwr","hn"], "count_live": 339 } That's 339 live roles across the five sources, each with a real company name, a normalized salary string when the source provides one, and a working apply URL. This is not a replacement for a job board. It won't email you, track applications, or rank roles. It's a data substrate: a cheap, structured feed of curren

Dev
Interesse
dev.to

How to Extract Tailwind CSS Configs and Figma Tokens from Any Site in 1 Click

Every developer and designer has been there: you stumble upon a beautifully designed website and want to reverse-engineer its design tokens or inspect how its typography, color palette, and utility classes are structured. Normally, this means opening DevTools, inspect-elementing dozens of DOM nodes one by one, manually copying computed HEX codes or CSS --variables, and spending 30 minutes manually formatting a tailwind.config.js or syncing values into Figma. I got tired of this repetitive manual process, so I built a privacy-first browser tool to automate it: Token Inspector. Modern web apps rely heavily on utility-first frameworks like Tailwind CSS or complex CSS custom properties. When inspect-elementing computed styles in DevTools: Variables are scattered: CSS variables are often spread across :root, body tags, or dynamically injected stylesheets. Framework Mismatch: Converting raw CSS computed values back into structured framework syntax requires manual guesswork and mapping. Asset Collection Friction: Extracting inline SVG icons or vector assets requires right-clicking each DOM element, copying outer HTML, and creating individual .svg files manually. Token Inspector scans the DOM and active stylesheets of any web page directly in your browser, extracting three major design system components: Instead of manually guessing color palettes, typography scales, or border-radius rules, the extension parses the computed theme variables and builds a structured tailwind.config.js file: module.exports = { theme: { extend: { colors: { brand: { 50: '#f0f9ff', 500: '#0ea5e9', 900: '#0c4a6e', }, }, fontFamily: { sans: ['Inter', 'sans-serif'], }, borderRadius: { 'custom': '12px', } }, }, }; Figma Tokens Studio JSON Export Bulk SVG Exporter Privacy First: 100% Client-Side Architecture Token Inspector executes 100% client-side using standard Web APIs (window.getComputedStyle, DOM Parsing, and Canvas APIs). Zero data leaves your local browser session. Try It Out & Share Your Feedb

Dev
Interesse
dev.to

Food festival dates as open data: a free API, an MCP server and SQL

Every year I hit the same problem planning food trips: festival listings tell you a festival exists, but not when the next one is. Pages still show last year's dates, or say "every autumn". So at TableJourney we keep the next dates of 1,376 food festivals in 55 countries, and we have opened the data up four ways: a REST API, an MCP server for AI assistants, a SQL copy on DoltHub and a plain CSV. All free, no sign-up. A date like "the second weekend of October" goes stale every year. So we store each festival's recurrence rule rather than a date: nth weekday of a month, a fixed day, or an anchor such as Easter or the lunar calendar for Lunar New Year and Mid-Autumn markets. The next edition is computed from the rule, and each festival page carries the source we checked and the date we checked it. curl "https://tablejourney.com/api/v1/festivals?country=italy&from=2026-10-10&to=2026-11-30&limit=3" Each result has a name, city, starts_on, ends_on, month, whether it is annual, a short summary and a link to the page with the sources. The same API answers other trip questions, for example the signature dishes of a city and where to eat them: curl "https://tablejourney.com/api/v1/dishes?country=japan&city=osaka&limit=2" [{"name": "Omurice", "city": "osaka", "country": "japan", "summary": "Ketchup-seasoned chicken rice wrapped in a soft folded omelette...", "where_to_eat": [{"name": "Hokkyokusei Shinsaibashi", "page": "https://tablejourney.com/japan/osaka/casual-dining/hokkyokusei-shinsaibashi/"}]}] The full list of endpoints (places, a composed food day, experiences, things to do) is in the OpenAPI docs at https://tablejourney.com/api/v1/docs. The same data is a remote MCP server (streamable HTTP) at https://tablejourney.com/mcp. In Claude Code: claude mcp add --transport http tablejourney https://tablejourney.com/mcp Or in any MCP client config: { "mcpServers": { "tablejourney": { "type": "streamable-http", "url": "https://tablejourney.com/mcp" } } } Then ask things like "

Dev
Interesse
dev.to

Why Consolidating Feature Flags and Experiments Cuts Hidden Costs

Feature flags and experiments do two different jobs. A flag controls delivery. It decides whether a feature is on for a given user, and lets you switch it off fast when something breaks. An experiment is about measurement. Split users into groups, show them different variations, and find out which performs better on a metric that matters. Take a new checkout button. The flag delivers it: on for these users, off for those. The experiment measures it: does the new button convert better than the old one? Both halves describe a single idea — try a different checkout button and see if it helps — but because the jobs are different, teams run them in different places. Delivery lives in a flagging tool or a config service. Measurement lives somewhere else: a dedicated A/B platform, or a home-grown mix of an SDK and an analytics pipeline. Describe that one idea in two systems, and keeping them in agreement about which users are in which group becomes your job, not the tooling's. That's the seam — the join between delivery and measurement — and it carries a cost in money and engineering time that's easy to overlook. Now that AWS AppConfig runs A/B tests natively on the same feature flags you already deploy, the seam is worth a second look. This post is about the hidden tax of keeping delivery and measurement apart, and what you get back when they share one control plane. You pay in four ways. Integration. Two systems to wire into your application, each with its own setup, authentication, and configuration. Two things to provision and keep correct across every environment. SDK sprawl. A flag-evaluation SDK here, an experiment or analytics SDK there, multiplied across every language and every service you run. More dependencies to ship, more versions to keep current, more surface area when something breaks. Operational overhead. Two control planes. Two sets of dashboards. Two permission models to manage and audit. Two things every engineer has to learn before they can safely cha

InfraDev
Interesse
dev.to

Fiz uma API grátis (sem chave) para calcular salário líquido, INSS e IRRF de 2026

Todo mês de janeiro a mesma coisa: sai a portaria nova do INSS, o salário mínimo muda, e quem mantém sistema de folha, planilha de RH ou simulador precisa caçar os números em PDF do governo. Em 2026 ainda veio a Lei 15.270/2025, que zera o IRRF até R$ 5.000 e cria uma faixa de transição até R$ 7.350, com uma fórmula própria (R$ 978,62 − 0,133145 × rendimento). Juntei tudo num registro de regras com fonte oficial e data de conferência em cada valor, e coloquei um motor de cálculo na frente. O resultado é uma API pública: curl "https://contaclt.com/api/v1/irrf?salario=6000" Responde em JSON, sem cadastro, sem chave e com CORS liberado (dá para chamar direto do front-end). Para R$ 6.000 sem dependentes: INSS de R$ 641,51, imposto pela tabela de R$ 564,85, redução de R$ 179,75 e IRRF de R$ 385,10. Endpoint Exemplo salario-liquido /api/v1/salario-liquido?salario=3500 inss (empregado, autônomo, plano simplificado, baixa renda) /api/v1/inss?salario=3500&categoria=individual irrf /api/v1/irrf?salario=6000&dependentes=1 seguro-desemprego /api/v1/seguro-desemprego?salario1=3000&salario2=3000&salario3=3000&solicitacao=1&meses=18 saque-aniversario /api/v1/saque-aniversario?saldo=5000 das-mei /api/v1/das-mei?atividade=servicos&faturamento=52000 empregada-domestica (folha + guia DAE) /api/v1/empregada-domestica?salario=1621 tabelas /api/v1/tabelas INSS é por faixa, não alíquota única. Para R$ 3.500 são 7,5% sobre R$ 1.621,00 + 9% sobre R$ 1.281,84 + 12% sobre R$ 597,16 = R$ 308,60. O eSocial trunca, não arredonda. Na folha da doméstica com salário mínimo, o INSS sai R$ 121,57 (não 121,58) e a DAE fecha em R$ 445,76. Se o seu sistema arredonda, vai dar um centavo de diferença. Desconto simplificado x deduções legais. O IRRF usa o que for mais vantajoso: R$ 607,20 fixo ou INSS + R$ 189,59 por dependente + pensão. A redução da Lei 15.270 entra depois disso. As tabelas (com fontes, vigência e data de conferência) estão em JSON no GitHub, licença CC BY 4.0: https://github.com/MMMyster

Dev
Interesse
dev.to

How to design overlapped / cascaded UI with overlapui (native CSS architecture)

Stacked faces in a members column. Notification cards that peek under each other. A “+” that fans into actions. That look is usually a pile of one-off CSS—or a JS component library. overlapui.fscss turns it into a small architecture: shared tokens, four stack patterns, hover/focus open states, no JS for the motion. This article is about how the pieces fit, not only how to import the module. “Overlap UI” is a layout contract: Rest — children share space (negative margin, peek, or stacked under a center). Open — hover or :focus-within restores gap / orbit / full card height. Tokens — size, gap, ring, timing live in --ou-*, not scattered magic numbers. Plain CSS out — FSCSS expands @defines; the browser runs normal CSS. @ou-root() → design tokens @avatar-overlap() → horizontal faces @card-overlap() → vertical cards @img-overlap() → tilted photos @circle-overlap() → radial menu One module, four cascades. FSCSS 1.2.5+. FSCSS Support Example with browser runtime: @import((*) from overlapui) @ou-root() @avatar-overlap(.avatar-overlap) @card-overlap(.card-overlap) @img-overlap(.img-overlap) @circle-overlap(.circle-overlap) @ou-reduced-motion() --ou-*) Everything visual should read from the token sheet: Concern Examples Motion --ou-time, --ou-ease Chrome --ou-ring, --ou-ring-width Avatar --ou-size, --ou-overlap, --ou-gap Card --ou-peek, --ou-card-h, --ou-card-gap Image --ou-img, --ou-img-overlap, --ou-img-tilt Circle --ou-item, --ou-r, --ou-center-bg, --n @ou-root() :root { --ou-ring: #0f172a; --ou-center-bg: #6366f1; @ou-avatar-size(40px, -12px) @ou-circle-size(48px, 80px) } Fit: product theme = override tokens once; stack mixins stay unchanged. Same pattern as st-core’s --st-* or circle-progress’s --progress-*. Each mixin encodes the same state machine in CSS: Pattern Rest Open (:hover / :focus-within) Avatar margin-left: var(--ou-overlap) siblings get var(--ou-gap) Card margin-top: peek − height siblings get var(--ou-card-gap) Image overlap + tilt gap + rotate(0) Circle s

Dev
Interesse
dev.to

Build Your Own SDD Workflow

Spec-driven development works. Planning before you code catches bad assumptions early, keeps scope honest, and gives the AI enough context to write code you'd actually ship. That's not the problem. The problem is ceremony. GitHub spec-kit gives you seven steps, multiple checkpoints, and templates designed for large teams coordinating across repos. When you're adding a component or fixing a bug, that's a lot of overhead for a Tuesday afternoon. And it's not like there's a shortage of alternatives. New AI workflow repos show up weekly. Everyone's got an opinion on the "right" way to structure AI-assisted development. Here's the thing. What if you just built the one that fits how you think? That's what this article is. We'll build a 4-step SDD workflow from scratch and wire it into SpecKit Companion so you can see and run each phase visually. Four commands, four files, zero ceremony. GitHub spec-kit gives you seven steps: constitution, clarify, specification, plan, tasks, implement, review. I only needed four. Dropped: Constitution: coding rules belong in CLAUDE.md once, not re-checked per feature Clarify: draft first, iterate. Stop asking questions before you've seen anything Review: add it back as an enhancement when you need it Kept: Specify: defines what you're building Plan: designs how to build it Tasks: breaks the plan into executable steps Implement: executes the work So the pipeline looks like this: specify → plan → tasks → implement Specify → sdd.specify → spec.md. Explores the codebase, defines what and why Plan → sdd.plan → plan.md. Reads the spec, designs how to build it Tasks → sdd.tasks → tasks.md. Breaks the plan into ordered, verifiable tasks Implement → sdd.implement → Code + PR. Executes tasks one by one, commits, opens a PR All four map to SpecKit Companion phases. The first three produce markdown files. Implement runs the sdd.implement command. It doesn't produce a file, it executes the work. Here's what goes into your project. Seven files: four co

Dev
Interesse