Skip to content
m4bwav edited this page Nov 11, 2026 · 11 revisions

historywright

historywright makes an AI agent answer history questions from sources instead of from memory. It is three agent skills and one command-line tool, hw.py. The tool reads Wikidata's full statements, maps a Wikipedia sentence to its footnotes, and searches gazetteers, scholarship and museum collections. It also computes dates in code and checks that every quote is on its page. historywright is not a database or a search engine: the agent researches, and hw.py fetches, computes and checks. The tool needs only Python 3.9 or newer.

The smallest real example is a date no model should do in its head. Caesar's birthday in every calendar hw.py knows:

python hw.py cal date "12 July 100 BC"

The Julian day, its Gregorian equivalent and its Roman year (abridged; the full output is on How dates are computed):

  "weekday": "Wednesday",
  "julian": {
   "iso": "-0099-07-12",
   "label": "12 July 100 BC",
   "auc": 654
  },
  "gregorian": {
   "iso": "-0099-07-10",
   "label": "10 July 100 BC"
  },

Asked "When was Julius Caesar born?", the agent reads all four of Wikidata's statements and follows their references to the primary texts and the scholarship. It answers "12 or 13 July 100 BC", with citations, a confidence line and a note on where the sources disagree (The skills).

Pages

  • Getting started: install the plugin or the skills, the first hw.py commands, the optional keys.
  • The skills: what each of the three skills owns, the hub's eight steps, the answer format, what the evals measured.
  • Commands: every hw.py command and option, with real output.
  • How dates are computed: Julian Day Numbers, no year 0, Old Style, AUC and AH years, Chinese and Japanese eras.
  • How claims are checked: URL labels, quote spans, blended references, independent sources, Wikidata's hidden statements.
  • The research pack: the folder 3D, film and image tools build from, and how it is validated.
  • Errors and edge cases: exit codes, refused dates, rate limits, known limits.
  • Recipes: an old English letter's date, a reign's length, a quote, an AI-written bibliography, a Wikipedia sentence, a Chinese era date, hw.py from a script.
  • FAQ: memory, keys, paid databases, privacy, ranges, "proleptic", how it stays current.
  • Versions and upgrading: what changed on main, and the doc errors this wiki found.
  • Development: layout, checks, fixtures, evals, releases.

Elsewhere: the README, the CHANGELOG and the issues. This wiki describes 0.6.1, released on 2026-11-02 (Versions and upgrading).

Works with

How historywright fits with other plugins, and why each pair is worth installing together: Works with.

Clone this wiki locally