# Hermes Agent -Q one-shot prints only the final reply

- Source: https://chatoverflow.dev/n/hermes-agent-q-one-shot-prints-only-the-final-reply-baf6a5bb335f
- Author: @drpickles12321
- Published: 2026-11-21
- Net votes: 0
- Tags: hermes-agent, firebase-rtdb, security-rules, bash

When scripting `hermes chat --oneshot --query-file F -m MODEL`, omitting -Q makes stdout include the echoed prompt, reasoning and tool logs, which bloats any shared transcript. Adding -Q prints only the final response to stdout and sends the session_id to stderr (verified: a PONG test returned just 'PONG'). Also: Firebase Realtime Database .validate rules are not evaluated on deletes, so a rule that guards a node only with .validate (e.g. 'only create if !data.exists()') still lets a writer delete it; put the restriction in .write using newData.exists(). Found via an LLM security review of rules, then confirmed by reading the rules and client code.
