惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
S
Security @ Cisco Blogs
S
Secure Thoughts
Attack and Defense Labs
Attack and Defense Labs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Hacker News: Front Page
博客园 - 叶小钗
H
Heimdal Security Blog
Microsoft Security Blog
Microsoft Security Blog
Forbes - Security
Forbes - Security
AI
AI
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Troy Hunt's Blog
罗磊的独立博客
Application and Cybersecurity Blog
Application and Cybersecurity Blog
爱范儿
爱范儿
GbyAI
GbyAI
The Last Watchdog
The Last Watchdog
TaoSecurity Blog
TaoSecurity Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
D
DataBreaches.Net
Recent Announcements
Recent Announcements
Schneier on Security
Schneier on Security
C
Cisco Blogs
美团技术团队
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
月光博客
月光博客
雷峰网
雷峰网
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
Arctic Wolf
B
Blog RSS Feed
Cisco Talos Blog
Cisco Talos Blog
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
V2EX - 技术
V2EX - 技术
Y
Y Combinator Blog
N
News and Events Feed by Topic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
W
WeLiveSecurity
Security Archives - TechRepublic
Security Archives - TechRepublic
G
GRAHAM CLULEY
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Hacker News
The Hacker News

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Stop Passing Files Between Agents With Local Paths
Jonhnson Nakano · 2026-06-18 · via DEV Community

I got very used to running agents locally.

The workflow was simple: run the agent, let it write outputs into my filesystem, then inspect everything in an ./outputs folder.

Markdown reports, JSON files, screenshots, charts — whatever the agent produced, it was right there.

Then I deployed it.

Same agent, same logic. But now the "output" lived in a container filesystem that vanished the second the task finished. A retry wrote report_20260313_103042.pdf next to report_20260313_103041.pdf. And when I wanted to share this with someone, I no longer had a clean link.

Nothing about the agent had changed.

Everything about the environment had.

If you build agents that produce files (reports, datasets, images, JSON dumps), you've probably hit this gap.

Local development hides it.

Production hands it to you on day one.


The local version

On your machine, persisting agent output is trivial:

from pathlib import Path

def save_report(content: bytes, run_id: str) -> Path:
    out_dir = Path("./outputs") / run_id
    out_dir.mkdir(parents=True, exist_ok=True)
    path = out_dir / "summary.pdf"
    path.write_bytes(content)
    return path

That's it. Write bytes, get a path, move on.

You can list the directory, cat the file, open the PDF, or hand the path to the next script in your pipeline.

For one person running one agent on one laptop, this is perfectly fine.

The problem is not local development.

The problem is mistaking “it works on my laptop” for “I have a storage layer.”

The production version

Production agents do not get a reliable ./outputs/ folder.

They run in environments where the filesystem is temporary, isolated, or both.

Serverless functions may give you /tmp, but it is scoped to the execution environment and often limited in size. Containers lose local state when they restart. Background workers, queues, and orchestrators can run each task on a different machine.

And retries are not an edge case. They are part of the system.

Your orchestrator will eventually rerun a failed step, and now you have the same logical output produced twice.

Then there is the human in the loop.

Agents produce things people actually need to read: compliance PDFs, analysis summaries, generated slides, CSV exports, charts, screenshots, debug bundles.

Those people do not have SSH access to your worker node.

They need a link, not a filepath on a machine they will never see.

So the production checklist starts looking very different from local dev:

Local Production
path.write_bytes() Upload to durable object storage
./outputs/run_42/ Queryable grouping by run/session
"It's in the repo" Stable ID retrievable from any machine
You remember the filename Idempotent retries that don't duplicate
Files live forever TTL / lifecycle rules
You Slack the file manually Shareable download URL with expiry

I have talked to a few teams that hit the same wall.

The agent logic is done.

Now the artifact plumbing begins.


Files vs artifacts

Here's the distinction that changed how I think about this:

A file is bytes at a path.
An artifact is a file plus context.

That context is what makes the output usable after the agent is done.

For example:

  • which run produced it: session_id, pipeline run, batch job
  • which agent produced it: agent_id, stage, model version
  • what it actually is: content type, size, custom metadata
  • when it should expire: TTL or lifecycle rules
  • how to retrieve it later without knowing where the bytes live: a stable ID
  • how to share it with someone outside your infra: a temporary download link

A PDF sitting on disk is a file.

A PDF tagged with session_id=pipeline_run_42, agent_id=report-writer, model=claude-sonnet-4, retrievable as art_2xk9f7v3m1p0, and set to expire in 30 days?

That is an artifact.

Your agent may still produce files.

But downstream agents, debug tools, production workflows, and the humans waiting in Slack all need artifacts.


The metadata layer you eventually build

Most teams do not start by building an artifact store. They start with S3 (or R2, or GCS) and a slowly growing feeling that object keys aren't enough.

The pattern I keep seeing, including in our own user research, goes like this.

First, put the bytes in object storage:

import hashlib
import boto3

s3 = boto3.client("s3")
BUCKET = "my-agent-outputs"

def upload_file(local_path: str, tenant_id: str) -> str:
    data = open(local_path, "rb").read()
    content_hash = hashlib.sha256(data).hexdigest()
    ext = local_path.rsplit(".", 1)[-1]
    key = f"{tenant_id}/{content_hash}/{ext}"
    s3.put_object(Bucket=BUCKET, Key=key, Body=data)
    return key

Then you realize the object key is not enough.

You need to know which run produced the file, which agent created it, what kind of output it is, when it should expire, and how to find it later.

So you add a metadata table:

CREATE TABLE artifacts (
  id            text PRIMARY KEY,
  tenant_id     uuid NOT NULL,
  filename      text NOT NULL,
  content_type  text NOT NULL,
  size_bytes    bigint NOT NULL,
  content_hash  text NOT NULL,
  session_id    text,
  agent_id      text,
  metadata      jsonb NOT NULL DEFAULT '{}',
  expires_at    timestamptz NOT NULL,
  created_at    timestamptz NOT NULL DEFAULT now(),
  deleted_at    timestamptz
);

CREATE INDEX idx_artifacts_session
  ON artifacts (tenant_id, session_id, created_at DESC)
  WHERE deleted_at IS NULL;

Then wrap it in an API:

def create_artifact(file_path, session_id, agent_id, metadata=None):
    key = upload_file(file_path, tenant_id=current_tenant())
    artifact_id = f"art_{generate_id()}"
    db.execute(
        """
        INSERT INTO artifacts
          (id, tenant_id, filename, content_hash, session_id, agent_id, metadata, expires_at)
        VALUES (%s, %s, %s, %s, %s, %s, %s, now() + interval '30 days')
        """,
        (artifact_id, key, session_id, agent_id, metadata or {}),
    )
    return artifact_id

Congratulations, you're on your way to building an artifact store.

Then the other 80% shows up:

  • Idempotency keys for retry-safe uploads
  • Content-hash deduplication so retries don't double your storage bill
  • Presigned upload/download URLs with correct expiry semantics
  • Session sealing so a zombie sub-agent can't append to a "finished" run
  • Public download links for humans, with their own expiry model
  • Soft delete plus garbage collection
  • Usage metering and quota enforcement
  • Metadata filtering that's actually queryable

I've watched engineers spend time building this type of wrapper and still not get dedup, TTL, or session semantics right.

This is not a knock on those teams. It is necessary plumbing. But necessary plumbing is still plumbing - and most teams should be spending that time on their product, not rebuilding agent infrastructure.


What an artifact layer should handle

If you are deciding whether to build this yourself or use a purpose-built layer, this is the basic checklist I would use.

Run / session grouping

You need to answer one question quickly:

What did this pipeline run produce?

Not grep logs.
Not list an S3 prefix and hope the naming convention held.

One query:

artifacta ls --session pipeline_run_42

A session should be whatever your orchestrator already uses: pipeline_run_42, daily_batch_20260313, customer_report_8841.

It should not require a separate “create session” step just to group outputs.

Agent provenance

When a report looks wrong three weeks later, you need to know what produced it.

Which agent?
Which model?
Which stage of the workflow?

That means agent_id and metadata should be captured at upload time, not buried in logs you hope still exist.

client.push(
    "analysis.json",
    session_id="pipeline_run_42",
    agent_id="summarizer",
    metadata={"model": "claude-sonnet-4", "stage": "final"},
)

Metadata

Object storage metadata is not enough.

Headers are limited, awkward to query, and easy to make inconsistent across a pipeline.

You want structured metadata stored with the artifact record and filterable when listing artifacts.

Deduplication

Agent systems usually need two forms of deduplication:

  1. Content-hash deduplication: same bytes, one stored blob.
  2. Idempotency keys: same retried operation, same response.

These solve different problems.

Content hashing prevents duplicate storage. Idempotency prevents a retry from creating a second logical artifact.

Conflating the two is a common bug in homegrown wrappers.

TTL

Artifacts should expire by default.

An experiment, batch run, or debug file should not live forever because nobody remembered to clean it up.

Storage lifecycle rules help, but they usually operate at the bucket or prefix level. They do not understand your artifact metadata, which makes per-artifact expiration harder than it should be.

Download links

Humans need a link, not a file path.

A good artifact layer should make it easy to create a stable download URL with configurable expiry:

https://dl.example.com/lnk_...

That link should be separate from your internal storage details and easy to share with a teammate, customer, or workflow step.

Retrieval by ID / session

Downstream agents should not coordinate through shared filesystem paths.

Agent A pushes an artifact and gets an ID. Agent B pulls by ID, or lists the session and filters by metadata.

export ARTIFACTA_SESSION_ID="pipeline_run_42"

python extract.py    # pushes CSV
python analyze.py     # lists session, pulls CSV, pushes report
python notify.py      # creates download link for the human

Session sealing matters too.

Once a run is finalized, late uploads should fail clearly instead of silently corrupting the run:

409 Session 'pipeline_run_42' is sealed. No new artifacts can be added.


A small tool I'm building for this

I'm building Artifacta, an artifact store purpose-built for AI agents.

It is not an orchestrator, search engine, or agent framework. It is the layer between your agent and object storage: session-aware, queryable artifact storage with a CLI, MCP, Python SDK, and REST API.

For example:

pip install artifacta-cli
export ARTIFACTA_API_KEY="ak_live_..."

artifacta push report.pdf --session earnings-q4-2025 --agent report-writer
artifacta ls --session earnings-q4-2025
artifacta link art_2xk9f7v3m1p0   # share with a human

Or from Python:

from artifacta import Client

client = Client()
artifact = client.push("report.pdf", session_id="earnings-q4-2025")
print(artifact.id)  # art_2xk9f7v3m1p0

I’m sharing it because this is a problem I keep seeing in agent workflows, even if Artifacta is not the solution every team chooses.


Questions for other builders

I’m curious how other teams handle this today:

  1. Where do your agent outputs go in production?
  2. How do you group outputs by run?
  3. What broke first: retries, deduplication, human sharing, or cleanup?
  4. Do you finalize runs, or can late workers still write outputs?
  5. Is a dedicated artifact layer useful, or is “S3 + Postgres + a thin wrapper” the right tradeoff?

Drop your setup in the comments. I’m especially interested in approaches that are not just object storage plus glue code.