How to Use GovInfo U.S. Code section editions in Hermes
Returns available edition locations for a cited U.S. Code section. Use it to choose historical snapshots for comparison, then retrieve the text from the editions you need.
Prompts to try with GovInfo U.S. Code section editions in Hermes
Copy an example into Hermes, or ask in your own words.
Every month, use GovInfo U.S. Code section editions to check available editions of 17 U.S.C. 107. Report any edition that was absent from the previous run.
Every Monday at 9am: use GovInfo U.S. Code section editions to look this up and give me the result as a table.
Pull the latest numbers from GovInfo U.S. Code section editions and tell me what changed since last week.
Check GovInfo U.S. Code section editions and summarize what you find in three bullet points.
Pull the newest data from GovInfo U.S. Code section editions and give me the result as a table.
How to set up GovInfo U.S. Code section editions in Hermes
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send Hermes this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Add the server and sign in
Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.
hermes mcp add spiral \ --url https://api.spiral.ai/mcp \ --auth oauth \ --connect-timeout 300
- Check it
In a chat that was already open, run /reload-mcp.
hermes mcp list hermes mcp test spiral
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run GovInfo U.S. Code section editions
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "govinfo-gov/legislation/uscode_section_versions", "input": { "title": 1, "section": "<section>" } }'
Then paste one of the prompts above: Hermes finds GovInfo U.S. Code section editions on Spiral, shows the price and runs it.
GovInfo U.S. Code section editions providers and prices
Spiral runs GovInfo U.S. Code section editions through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Hermes for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Title | 1 to 54 | title |
Every API field of GovInfo · Uscode section versions is on its tool page: open its card above.
What can you do with GovInfo U.S. Code section editions in Hermes?
Maintain a federal research digest that reports newly found publications and newly available U.S. Code editions. A scheduled agent can compare GovInfo results with earlier runs and flag documents that need a fresh reading.
Build a federal statute research reader
Create a reader that starts with publication selection, lets researchers explore the U.S. Code, and opens cited sections with their metadata and text. Add edition selection for historical comparisons and topic search for discovery.
Prepare a legislative research packet
Choose publication series, find documents about a policy topic, and organize the relevant U.S. Code provisions by chapter. Include document metadata, readable text, and selected historical editions for a reviewer.
Create a federal legal research lesson
Build an exercise around a public statute: identify its publication collection, locate its chapter, search for related publications, and retrieve a cited section. Have students compare selected editions and distinguish document metadata from document text.
Assemble an edition-specific reference archive
Select federal publication collections and collect the documents needed for a policy handbook. Organize U.S. Code sections within their titles, preserve publication metadata and text, and include earlier editions where the handbook discusses changes.
Compare statutory wording across editions
Find available editions of a cited section, retrieve the selected texts, and produce a passage-by-passage comparison. Link each passage to its edition and document details.
Review citations in a policy handbook
Resolve the handbook's U.S. Code citations to the intended editions and compare quoted passages with the retrieved text. Return document links and edition information for editorial review.
More on GovInfo U.S. Code section editions and Hermes
Overview
GovInfo U.S. Code section editions in other agents
Questions about GovInfo U.S. Code section editions in Hermes
Can Hermes use GovInfo U.S. Code section editions?
Yes. Add Spiral to Hermes as an MCP server, and Hermes can find and run GovInfo U.S. Code section editions like any built-in tool.
How much does GovInfo U.S. Code section editions cost in Hermes?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Hermes plan is separate.
Do I need an Alexandria account to use GovInfo U.S. Code section editions in Hermes?
No. Spiral runs GovInfo U.S. Code section editions on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up GovInfo U.S. Code section editions in Hermes?
About two minutes: add the server and sign in, then check it.
Does Hermes wait while GovInfo U.S. Code section editions runs?
GovInfo U.S. Code section editions runs in the background. Hermes starts the run, checks on it and gives you the json when it's ready.
Does GovInfo include every government document?
GovInfo covers official publications from all three branches of the federal government. Its search only includes documents stored on GovInfo, so it is not a complete index of everything government agencies publish.
How far back does GovInfo's U.S. Code archive go?
GovInfo provides virtual main editions of the U.S. Code from 1994 onward. You can browse them by year and then title.
How often is the U.S. Code updated?
The publication cycle includes a new main edition every six years and annual supplements. A GovInfo edition is a published snapshot, so choose the edition deliberately when comparing statutory wording.
Does a recent modification date mean a publication is new?
GovInfo's lastModified value records when a package was added or updated. It differs from the publication date, so a recent modification alone does not establish when the document was issued.
Is every document available in the same formats?
Most GovInfo documents are available as PDF and text. Other formats depend on the publication, and the document details page identifies the available files.
Start using GovInfo U.S. Code section editions in Hermes
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Hermes:
set up https://spiral.ai/SKILL.md


