AI Recon

Measure where your site stands in AI-era answer engines — LLM-citation probes, SERP proxy, optional corpus awareness, index probe with sanity anchor, and a JSONL trend log with run-over-run compare.

This is a Pro feature — AI Recon ships with the Pro engine. It runs whichever probe legs you have keys for and skips the rest, serially and quota-friendly.

The probe legs

LegQuestion it answersNeeds
glmDoes a live LLM + web-search stack cite your domain when asked your questions?ZHIPU_API_KEY
serpAre you in the Google top-10 for each question? (AI answers are grounded in top results — this is the citation proxy.)SERPER_API_KEY
corpusDoes a no-web model already know you from training data?any OpenAI-compatible endpoint
index probeHow many pages does a search engine have indexed for site:yourdomain?a search API key

The index probe anchors itself with a sanity query (site:github.com must return results) before reporting anything — so a zero is a real zero, never an API outage in disguise.

Usage

# the two default legs
python3 -m zens_ink_pro.ai_recon --domain example.com --kws-file questions.txt

# all legs + index probe + weekly trend compare
python3 -m zens_ink_pro.ai_recon --domain example.com --kws-file q.txt \
    --legs glm,serp,corpus --llm-endpoint https://api.example.com/v1/chat/completions \
    --index-probe --compare --report ai.md

Failure honesty

Failed probes are counted as errors, not misses. If more than half of a leg’s probes error, the run is marked degraded and will never be used as a --compare baseline. A broken API key can’t fake a 0% score.

Every run appends to ai-recon-runs/<domain>.jsonl; --compare diffs hits, positions and index counts against the previous non-degraded run.