---
title: "Discussion on \"Your Agent Says Tests Pass. On Your Laptop. Not on CI.\" | Hashnode"
description: "Discussion on \"Your Agent Says Tests Pass. On Your Laptop. Not on CI.\". An agent that runs tests locally and reports green is telling the truth — but only on its machine, where the .env, the local DB, and the cached node_modules exist. CI runs a clean checkout. The gap shows up in your pipeline."
url: "https://hashnode.com/posts/agent-local-green-ci-red/6acd26381b356330c198bcb1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Your Agent Says Tests Pass. On Your Laptop. Not on CI.](https://blogs.powerduck.com/agent-local-green-ci-red?utm_source=hashnode&utm_medium=feed)

An agent that runs tests locally and reports green is telling the truth — but only on its machine, where the .env, the local DB, and the cached node\_modules exist. CI runs a clean checkout. The gap shows up in your pipeline.

Oct 12 · 5 min read · blogs.powerduck.com  
Read the article

-   [#aiagent](https://hashnode.com/tag/aiagent)
-   [#ci](https://hashnode.com/tag/ci)
-   [#testing](https://hashnode.com/tag/testing)
-   [#agenticcoding](https://hashnode.com/tag/agenticcoding)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
