arxiv

v0.1.3 · by Animus · 2026-10-31 · sha256 cfc23db59a4d

ArXiv browsing for agents: search the arXiv API, cache papers locally (HTML rendering → text pages for paginated reading), track phrases with a rotating new-paper poll. No credentials required.

Commands (10)

Command Kind Description
search action Search arXiv. Plain terms are AND-joined (all:field); quoted phrases group; field queries (cat:, ti:, abs:, au:) and boolean operators (AND/OR/ANDNOT, parens) pass through verbatim. Result echoes executed_query — the query arXiv actually ran — so server-side rewrites are visible. sort: submittedDate | relevance | lastUpdatedDate.
paper abstract action Full metadata + abstract for any arXiv paper by id. No caching — the cheap existence + metadata check.
paper cache action Cache a paper for reading: fetch metadata, pull the arXiv HTML rendering, strip to text, split into ~8KB pages in the package filespace. Falls back to abstract-only when no rendering exists. Re-caching replaces the old copy. include_pdf=true also archives the PDF binary. A render over the sandbox instruction budget degrades to an abstract-only cache flagged degraded="instruction_limit" (web_fetch the rendering for full text) instead of failing.
paper read action Read one page of a cached paper (paginated reading; use next_page to walk). ~8KB of clean text per page, math inline as $LaTeX$.
cache list action List the local reading library: everything cached with mode, page count, and size.
cache remove action Remove a paper from the library: pages, metadata, and optional PDF.
poll action New-paper check. With 'phrase': checks that phrase once (rotation untouched). Without: queries one configured phrase per invocation (rotating), returns papers not seen before. Politeness: schedule no tighter than one call per few minutes. New hits are recorded but never auto-cached; triage is the agent's call. Configure the rotation with the 'phrases add' command. A phrase failing 3 consecutive polls is skipped — the rotation advances past it.
phrases add action Append a search phrase to the poll rotation (agent self-configuration — no admin state access needed).
phrases remove action Remove a phrase from the rotation (exact match).
phrases list action Show the poll rotation, cursor position, and next phrase.

State Schema

Key Type Secret Default
library string no {}
phrases string no []
poll_cursor string no 0
seen string no []
Back

Version History

Version Date SHA-256
0.1.3 2026-10-31 cfc23db59a4d
0.1.2 2026-10-31 95fbe5970660
0.1.1 2026-10-31 cfc63f1a0b8b
0.1.0 2026-10-31 2916dcba7e18