bibtex

bibtex is a command for Claude Code from Abhinavbwj/AEC-Scholar. It costs 19 tokens per session (373 once invoked), scanned A, original, MIT.

A tool for creating and maintaining BibTeX and BibLaTeX files, which store the publication details used to format citations and reference lists.

In plain words
What is it for?
Use it to create entries from reference details or DOIs, clean and standardize an existing library, merge duplicates, and find incomplete references.
Why use it?
It reduces inconsistent formatting, duplicate references, and accidental guesses in a research bibliography. It also marks missing details for checking.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the aec-scholar plugin — 11 skills, 36 commands, 10 agents, 1 hook shipped together

Good fit Use it to create entries from reference details or DOIs, clean and standardize an existing library, merge duplicates, and find incomplete references.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/abhinavbwj/aec-scholar/bibtex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Abhinavbwj/AEC-Scholar

Made for: Claude Code.

Or install aec-scholar, the plugin that ships this one along with the rest of its 11 skills, 36 commands, 10 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bibtex

README.md
[![agentmods](https://agentmods.dev/badge/commands/abhinavbwj/aec-scholar/bibtex.svg)](https://agentmods.dev/commands/abhinavbwj/aec-scholar/bibtex)
Your own site
<a href="https://agentmods.dev/commands/abhinavbwj/aec-scholar/bibtex"><img src="https://agentmods.dev/badge/commands/abhinavbwj/aec-scholar/bibtex.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00373
Opus 5 $0.00010 $0.00187
Sonnet 5 $0.00004 $0.00075
Haiku 4.5 $0.00002 $0.00037

Measured 8d ago against content hash 337757e0e1a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

bibtex scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

aec-scholar/commands/bibtex.md · 30 lines

What it actually says

Work on the user's BibTeX/BibLaTeX: $ARGUMENTS

Use the citation-manager agent and the citation-formats skill. If a .bib path is given, read it.

Depending on the request:

Generate — turn reference details/DOIs into correct BibTeX entries. Choose the right entry type (@article, @inproceedings for conference papers — important in AEC, @book, @incollection, @phdthesis, @techreport, @misc for standards/datasets/software).

Clean & normalize an existing .bib:

  • Generate consistent, unique keys (authorYEARkeyword).
  • Brace-protect capitals/acronyms ({BIM}, {LCA}, {IFC}) so styles don't lowercase them.
  • Fix page ranges to --, move DOIs into a bare doi field, normalize author and journal fields.
  • Deduplicate entries (report duplicates merged).
  • Flag incomplete entries (missing year/volume/pages/DOI) with inline % TODO: verify comments rather than guessing.

Output the cleaned .bib (write it to a file if the user wants) plus a short report of what changed and a list of entries that still need the user to verify missing fields.

Integrity: never invent a DOI, author, year or page range. Mark unknowns for verification; do not fabricate to make an entry look complete.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 30 lines · 19 tokens per session scan A 337757e0e1a7

Subscribe to this mod's changes

bibtex is a command published in the GitHub repository Abhinavbwj/AEC-Scholar (18 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 373 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

paperspine

Start PaperSpine with automatic intake UI when configuration is missing.

WUBING2023/PaperSpine · 12 tokens

camera-ready

Convert an accepted anonymous-submission LaTeX paper (AAAI/AIES/ACM-style) to camera-ready and implement the accepted reviews. Use when a paper is accepted with no rebuttal and you need to de-anonymize, add copyright, turn on section numbering, implement each reviewer's minor revisions, optionally move proofs to a…

flonat/flonat-research · 102 tokens

bib-filter

Filter a LaTeX project's bibliography to the entries actually cited, with Overleaf-source resolution, temporary staging, validation, approval-gated canonical replacement, and compilation. Use before submission or after large revisions.

flonat/flonat-research · 41 tokens

latex-polish

Inspect a cleanly compiling LaTeX document for source pathologies and rendered visual defects by linting and viewing selected PDF pages. Use when compilation succeeds but title pages, floats, tables, figures, or layout still need publication-quality review. Not for basic compilation health; use $latex-health-check.

flonat/flonat-research · 60 tokens

latex

Compile one specified LaTeX document, resolve build errors, audit citations, and report build quality. Use when a .tex source must be built or a concrete compilation failure repaired. Not for corpus-wide build checks, visual polish after a clean build, or creating a project; use $latex-health-check, $latex-polish, or…

flonat/flonat-research · 72 tokens

pipeline-manifest

Build a traceability manifest linking analysis scripts to inputs, outputs, and manuscript figures or tables. Use when documenting a computational pipeline or locating the source of a reported artefact. Not for verifying that paper claims match code outputs; use the code-paper auditor.

flonat/flonat-research · 51 tokens