Agent was failing 3x on SSH commands due to backticks (BQ table names)
and single quotes (SQL string literals) getting mangled by nested shell
interpretation (local -> SSH -> bash -> Python).
New --stdin mode reads query spec as JSON from stdin via heredoc:
cat <<'QUERY' | ssh alias 'bash remote_query.sh --stdin'
{"register_bq": {"alias": "SELECT ... FROM \`table\` ..."}, "sql": "..."}
QUERY
Heredoc with <<'QUERY' (quoted) passes everything literally -- no
escaping needed for backticks, quotes, or parentheses.
Updated claude_md_template.txt to use --stdin as the primary method.
|
||
|---|---|---|
| .. | ||
| future | ||
| metrics/revenue | ||
| setup | ||
| testing | ||
| architecture.md | ||
| auto-install.md | ||
| CONFIGURATION.md | ||
| DATA_SOURCES.md | ||
| DEPLOYMENT.md | ||
| PLAN.md | ||
| QUICKSTART.md | ||
| sample-data.md | ||
| theme-reference.html | ||