Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

Merge pull request #679 from mvanhorn/codex/cached-html-rendering

Trevin Chow979e6dece3e7
diff --cc tests/test_doc_flag_contract.py
index 8b05c395,4a518a80..d546ebdd
--- a/tests/test_doc_flag_contract.py
+++ b/tests/test_doc_flag_contract.py
@@@ -50,10 -49,25 +51,26 @@@ def test_agent_is_documented_as_skill_a
start = text.index("## Agent Mode (--agent flag)")
agent_section = text[start:start + 2000]
assert "If `--agent` appears in ARGUMENTS" in agent_section
- assert "Skill tool" in text
+ assert "slash-command skill contract" in text
+ assert "not a Python CLI flag" in text
+ def test_html_reference_documents_structured_cache_reuse():
+ text = HTML_REFERENCE.read_text(encoding="utf-8")
+ assert "~/.config/last30days/last-report.json" in text
+ assert "without re-running source fetchers" in text
+ assert "No matching cached report data" in text
+ assert "LAST30DAYS_REPORT_CACHE_TTL_SECONDS" in text
+ assert "default: one hour" in text
+
+
+ def test_configuration_documents_report_cache_ttl():
+ text = CONFIGURATION.read_text(encoding="utf-8")
+ assert "LAST30DAYS_REPORT_CACHE_TTL_SECONDS" in text
+ assert "defaults to `3600`" in text
+ assert "`0` to disable report-cache reuse" in text
+
+
def test_comparison_artifact_contract_documents_actual_paths():
text = SKILL_MD.read_text(encoding="utf-8")
comparison_start = text.index("\n## If QUERY_TYPE = COMPARISON\n")