agnes-the-ai-analyst/docs/setup
Petr 67df4acd73 Add --stdin JSON mode to avoid shell escaping nightmare
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.
2026-03-21 12:15:50 +01:00
..
bootstrap.yaml Move server venv setup to bootstrap, remove cross-platform pip freeze sync 2026-03-15 00:59:45 +01:00
claude_md_template.txt Add --stdin JSON mode to avoid shell escaping nightmare 2026-03-21 12:15:50 +01:00
claude_settings.json Initial commit: OSS data distribution platform 2026-03-08 23:31:28 +01:00