BaCheWork and records of a photonics research workhorse
Language

AI workflows

research-advisor-kit

A research advisor plus a literature agent: every citation matches back to the source text

My role
Independent design and development
Status
Live
Last updated
2026-11-07
Tech
Claude Code skill, Python
License
Code MIT; docs CC BY 4.0

Source code

The citation check is a sieve, not a proof: it shows that the quoted sentence really is in the original text, but whether that sentence supports your claim still requires human judgment. Only tested on Windows 11 and Python 3.12.

On the left, a research question card; in the middle, the advisor’s three steps; on the right, the actual output of the citation check: it marks OK when the quoted sentence appears verbatim, and FAIL after the number 22 is changed to 48

Problem

The more citations there are, the more reassured readers feel, and the harder errors are to spot.

You ask “what should I do next?” and the AI gives a pile of suggestions without first working out which stage of your research you are in; its citations have the right DOI and the right authors, but the paper never says that sentence, or the number was misremembered.

Method

Split the two jobs between two roles.

The research advisor (scientific-research-guide) places you on one of the seven layers of the framework and writes down what is done, what is missing, the next step, the risks and the basis for the method choice. When literature is needed, it dispatches the literature agent (literature-search-extract) to look it up; every key claim goes into an evidence ledger, and anything not found is recorded as “not found, and where it was searched”, never invented.

Measured

Change one number, and you get caught.

With the same evidence ledger, the original sentence unchanged is marked OK; change 22 μm to 48 μm, and the sentence is no longer in the original text, so it is marked FAIL.

OK → FAILcheck results after changing only one number

Method: ran citecheck.py twice on the bundled test data (one silver-film measurement citation), once unchanged and once with 22 μm changed to 48 μm.

Full explanation →

Hard parts

Guards against carelessness, not against deliberate workarounds.

A hook blocks publishers that prohibit programmatic access according to a policy file; when a CAPTCHA appears, it is left for you to open yourself, and the hook will not retry under another identity. It can catch a citation typed from memory or a misremembered number; it cannot stop an agent that deliberately works around it, because the source records are not signed and the hook only looks at the URL as written.

The same hook and the same fetch tool: the open-access arxiv.org is silently allowed; a publisher host marked as forbidding automated reading is refused, with the reason and the alternatives listed
Publisher access policy: arXiv is allowed, and hosts that forbid automated reading are blocked outright

Limits

The advisor offers suggestions; the decision is yours.

  • The advisor’s judgments are mostly procedural rules, not enforced by a program; the bundled evaluation cases number only 5.
  • The domain list is empty; to get domain depth you have to write your own domain files.
  • It will not help you get around paywalls; only tested on Windows 11 and Python 3.12.