---
title: "Discussion on \"Feeding command output back to an LLM: truncation, cleanup and secret masking\" | Hashnode"
description: "Discussion on \"Feeding command output back to an LLM: truncation, cleanup and secret masking\". An agent runs npm test. The command prints 40,000 lines: progress bars, colour codes, a deprecation warning repeated 900 times, and, at the very end, the one assertion failure that matters. If you pas"
url: "https://hashnode.com/posts/feeding-command-output-back-to-an-llm-truncation-cleanup-and-secret-masking/6b0782212fa133c3aadc3454"
---

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

Discussion

# [Feeding command output back to an LLM: truncation, cleanup and secret masking](https://sandscale.hashnode.dev/feeding-command-output-back-to-an-llm-truncation-cleanup-and-secret-masking?utm_source=hashnode&utm_medium=feed)

An agent runs npm test. The command prints 40,000 lines: progress bars, colour codes, a deprecation warning repeated 900 times, and, at the very end, the one assertion failure that matters. If you pas

5d ago · 7 min read · sandscale.hashnode.dev  
Read the article

-   [#llm](https://hashnode.com/tag/llm)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#prompt-engineering](https://hashnode.com/tag/prompt-engineering)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Sandscale](https://hashnode.com/@sandscale)

@sandscale

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
