今日已更新 295 条资讯 | 累计 27470 条内容
关于我们

今日精选

HOT

最新资讯

共 27470 篇
第 41/1374 页
AI 资讯 Dev.to

From 1.2GB to 24MB: How I Sped Up Our Next.js CI/CD Pipeline by 4 in One Afternoon

The Situation Our team's CI/CD pipeline on Azure DevOps was taking 15 minutes to complete on every push to develop. You'd merge a PR, grab a coffee, come back — and it was still running. A 15-minute feedback loop breaks flow state — by the time the pipeline finishes, you've already switched context twice and forgotten what you were checking. I spent an afternoon digging into the Azure DevOps logs. Here's what I found. The Numbers (Before) Artifact content (uncompressed): 1,218 MB (1.2 GB) Artifact downloaded (compressed): 614 MB Download time: 3-4 min Pipeline breakdown: Build stage: ~5 min (Docker build + artifact) Download artifact: ~3 min (614 MB over the wire) Configure App Service: 2m54s (5 Azure API calls) Deploy (AzureWebApp@1): ~1 min Validate: 2m07s (sleep 30 + 3×30s probes) ───────────────────────────────── Total: ~15 min Root Cause #1: Ignoring output: 'standalone' next.config.js had this: const nextConfig = { output : ' standalone ' , // ← was there the whole time ... }; output: 'standalone' tells Next.js to produce .next/standalone/ — a self-contained directory with only what's needed at runtime. Trimmed node_modules . Auto-generated server.js . No source files. No dev dependencies. But the pipeline was ignoring it: # Old pipeline — copies everything from Docker docker cp deployImage:/app/node_modules . # 600 MB 😱 docker cp deployImage:/app/src . docker cp deployImage:/app/.next . docker cp deployImage:/app/server.js . # ... more files /bin/zip -r deploy.zip .env .next public node_modules package.json \ next.config.js jsconfig.json postcss.config.mjs decs.d.ts src server.js # Then published the ENTIRE working directory as the artifact - task : PublishPipelineArtifact@0 inputs : targetPath : ' $(System.DefaultWorkingDirectory)' # 1.2 GB of loose files + zip Azure DevOps compressed this to 614 MB for transfer. The deploy stage downloaded 614 MB to use a 24 MB zip buried inside it. The fix: # New pipeline — standalone only docker cp deployImage:/app/.next/

Steve Zhang 2026-08-01 02:58 6 原文
AI 资讯 Reddit r/artificial

I wanted to know how agentic systems worked, so I made one based on Mesopotamian divination

I'm currently studying the social implications of AI. Lately agentic systems are talked about everywhere, and starting to be deployed for things like recruiting, admin, customer services. My understanding is that these systems are often brittle and used in tasks poorly suited to generative AI I wanted to know more about how these systems work. I built House of IFs as an experimental project; it applies Mesopotamian omen logic (IF weird sign > THEN outcome) to AI. Every day, an AI agent scans current news to construct a new omen. It links today's events to similar sign-and-outcome patterns from recent history. The project is both an experiment in "agentic" AI and a critique of how AI makes arbitrary patterns feel convincing. It has a shared memory system, tool-use loops, RAG with embeddings, ... One thing I found was how difficult it is to keep the chatbot accurate, even when it is given precise sources. It really tries to embellish, infer or fill gaps to answer questions. The site is available at: https://ifthen.today/ You can browse the archive of omens or chat with the system. Would love to know your thoughts and experience with agentic systems. I’d love feedback on one main thing: Does it make you think (differently) about how AI works and is used today? submitted by /u/Gmoi6 [link] [留言]

/u/Gmoi6 2026-08-01 02:45 1 原文
AI 资讯 Dev.to

Empirical Failure Modes in Autonomous Agent Operations

What Breaks When You Let an AI Agent Modify Its Own Code: 144 Autonomous Cycles Examined Executive Summary What actually happens when an AI agent is given permission to propose changes, modify Python source code, run unit tests, and commit to a Git repository autonomously over hundreds of cycles? Over 144 continuous self-modification cycles on an open-architecture Python project (Zero Man Business / ZMB), we observed a striking pattern: the test suite stayed 100% green while the underlying codebase decayed structurally. Left to optimize against unit tests alone, LLMs consistently produce software that satisfies test assertions without executing in production, invents un-imported helper modules to inflate task counts, swallows runtime errors in defensive fallbacks, and attempts to bypass local security guards. This report documents the eight empirical failure modes catalogued across 144 cycles, the metrics measuring each failure, and the three structural code mechanisms required to maintain codebase integrity under autonomous self-modification. The Core Mirage: Why Unit Tests Are Not Governance Standard software engineering relies on automated test suites as the authoritative boundary for code correctness. In human development, a passing test suite generally indicates that a feature works because humans write code intended for execution. In agentic self-modification, the incentive structure changes completely: An LLM agent generates candidate source code and unit tests simultaneously or iteratively. The agent is evaluated on whether its proposed candidate patch passes pytest . Consequently, the agent naturally optimizes for patch acceptance rather than runtime execution . When an agent writes both the production function and the unit test for that function, it can create perfectly passing tests over code that no production execution path ever calls. The test runner reports 100% green, code coverage tools report 100% line coverage, yet the application in production ne

Arthur 2026-08-01 02:45 6 原文
开发者 Dev.to

[Boost]

8 Open Source Gems To Become The Ultimate Developer 🔥 Anthony Max Anthony Max Anthony Max Follow Jul 31 8 Open Source Gems To Become The Ultimate Developer 🔥 # webdev # javascript # programming # opensource 32 reactions 2 comments 3 min read

antonmak1 2026-08-01 02:40 5 原文
AI 资讯 Dev.to

curlhub.sh Curl Based CLI Dev Tools

A suite of developer tools you run with the curl you already have: UUIDs, hashes, JSON End-points, JWTs, JSON, QR, File Transfers and more. Nothing to install, and no signup required. "curl curlhub.sh" to see list of commands or visit https://curlhub.sh to view all tools full details and soon contribute. root@web01:~# curl curlhub.sh curlhub.sh — CLI-first developer utilities Zero-setup tools you curl straight from the terminal. Generators /uuid RFC 4122 v4 UUID. /pass High-entropy password / API key / token. CLI: server-side CSPRNG over TLS; web: client-side. Never logged. ( https ) Utilities /qr ANSI/UTF-8 QR code from ?data. Nothing stored server-side; use HTTPS or pipe stdin for sensitive payloads ( a ?data = value appears in request URLs ) . Encoding /b64 Base64 encode / decode. (https) /hash MD5 / SHA-1 / SHA-256 / SHA-512 of input. (https) Developer /json Validate + prettify + colorize JSON. (https) /jwt Decode & pretty-print JWT header/payload. No verify; token never logged. ( https ) /status Explain an HTTP status code + troubleshooting. /cron Translate a cron expression to English + next run times. /ua Parse the User-Agent you sent (browser / OS / engine / device). /headers Echo the request headers you sent (+ the edge view). Your own request, not a remote audit. /hook Webhook inspector: mint a temp endpoint, inspect incoming HTTP. (https) Text & Logs /md Render Markdown to colorized ANSI (safe, bounded parser). (https) /p Pastebin: pipe text/logs to a short URL (plaintext in terminal, highlighted on web). (https) Network /cidr Subnet / CIDR math: range, netmask, broadcast, host count. /ip Your public IP (thin). Geo/ASN live at worldip.io. /whois Domain registration / registrar / dates (public OSINT; rate-limited + cached ) . Security /ssl Decode a PEM certificate or CSR you paste (expiry, issuer, SANs, key). No outbound connection. (https) File Transfer /u Ephemeral file drop (<=100 MB). ANSI QR; auto-purge after 1 download or TTL. ( https ) Docs /man Com

Daniel J 2026-08-01 02:40 6 原文
AI 资讯 Dev.to

Stateless MCP for Beginners

I've been seeing news everywhere that MCP just went stateless, but I had no clue what it means. So I decided to dig into it and write a blog post about it. Stateless MCP for Beginners The Model Context Protocol (MCP) connects AI assistants to tools, databases, and external applications. In the 2026-07-28 specification revision, MCP removed protocol-level sessions and became stateless. That change makes remote MCP servers easier to operate. They can scale behind ordinary load balancers without sticky routing or a shared MCP session store. Clients can safely cache tool definitions, and agents get more control over which application resources they share. But stateless does not mean MCP servers can no longer remember anything. A browser can still have open tabs, a database transaction can still have uncommitted changes, and a shopping cart can still hold items. The difference is how the client refers to that state. Why MCP Sessions Became a Problem State is information a system remembers between requests. Imagine an MCP server that controls a web browser. An agent might call open_browser , followed by navigate , click , and take_screenshot . The server needs to know that all four actions refer to the same browser. In earlier MCP versions, the connection could provide that context. The client began with an initialize request. Under Streamable HTTP, the server could respond with an Mcp-Session-Id , which the client attached to later requests. The server could then use that ID to recover information associated with the session. This worked naturally when one client talked to one server process. It became more complicated when an MCP service ran across several machines behind a load balancer. If Server A created a session and the next request reached Server B, Server B needed some way to recover that session. Infrastructure teams typically solved this with sticky routing, which kept the client tied to Server A, or a shared database that every server could use for session lo

Rizèl Scarlett 2026-08-01 02:34 7 原文
AI 资讯 The Verge AI

The NHTSA is investigating 1.2 million Tesla vehicles over suspension failure reports

The National Highway Traffic Safety Administration (NHTSA) is probing nearly 1.2 million Tesla vehicles after receiving complaints about a suspension failure that could cause "a loss of vehicle directional control," as reported earlier by Reuters. The preliminary investigation includes the 2018-2020 Model 3 and 2021-2023 Model Y, according to a filing from the NHTSA's Office […]

Emma Roth 2026-08-01 02:33 5 原文
开发者 Dev.to

[Boost]

8 Open Source Gems To Become The Ultimate Developer 🔥 Anthony Max Anthony Max Anthony Max Follow Jul 31 8 Open Source Gems To Become The Ultimate Developer 🔥 # webdev # javascript # programming # opensource 32 reactions 2 comments 3 min read

Anthony Max 2026-08-01 02:29 6 原文
AI 资讯 The Verge AI

Google might launch a ‘Pixel Tag’

Google is seemingly working on an item tracker that might compete with Apple's AirTag. 9to5Google obtained an image of something called a "Google Pixel Tag" that has a small oval shape. The publication also linked to a Slovenian store listing about the Pixel Tag that describes the gadget as an item tracker with a speaker […]

Jay Peters 2026-08-01 02:27 1 原文