Spiral gives your agent every tool with one account. Browse the tools →

opencode · Public Records

How to Use Cornell LII state regulation in opencode

Fetch a state agency rule from Cornell LII, such as Maine's development noise standard. Use it to examine requirements within a specific state's administrative code.

Prompts to try with Cornell LII state regulation in opencode

Copy an example into opencode, or ask in your own words.

Use Cornell LII state regulation to read Maine 06-096 C.M.R. ch. 375, § 10. Draft a research note in this project separating applicability, sound limits, and exceptions.

Cornell LII state regulationopencode
Try asking
  • Use Cornell LII state regulation to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Cornell LII state regulation and tell me what changed since last week.

  • Check Cornell LII state regulation and summarize what you find in three bullet points.

  • Pull the newest data from Cornell LII state regulation and give me the result as a table.

How to set up Cornell LII state regulation in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Cornell LII state regulation

    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": "law-cornell-edu/legislation/get_state_regulation",
        "input": {
          "id": "<id>"
        }
      }'

Then paste one of the prompts above: opencode finds Cornell LII state regulation on Spiral, shows the price and runs it.

Cornell LII state regulation providers and prices

Spiral runs Cornell LII state regulation through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
Cornell LII (Legal Information Institute) · Get state regulation
law-cornell-edu/legislation/get_state_regulation

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Offseta number from 0

Character offset into the section text (default 0); pass the previous call's next_offset to continue.

Max chars1 to 2000000

Characters of Markdown text to return (default 50000). Long sections (some CFR sections exceed 250,000 characters) are paged with offset.

Every API field of Cornell LII (Legal Information Institute) · Get state regulation is on its tool page: open its card above.

What can you do with Cornell LII state regulation in opencode?

Build a citation check for a policy repository using Cornell LII headings and legal text. A coding agent can compare retrieved material with project documents and propose edits tied to specific provisions.

Build a cited research brief

Use Cornell LII headings to identify provisions, then collect federal statutes, federal regulations, and state rules for a brief. Keep each citation beside the passage supporting the explanation.

Check citations in a policy draft

Match references in a draft to Cornell LII's contents and provision text. Flag a citation whose heading or quoted passage does not match what the draft claims.

Compare saved research with a new retrieval

Compare previously saved Cornell LII entries or provision text with a new retrieval. Report added headings, removed entries, and changed passages for review without assuming that every legal change has reached Cornell.

Prepare a legal research reading list

Turn a Cornell LII contents page into a reading plan and attach summaries of selected provisions. Separate statutory language, federal agency rules, and state administrative requirements.

Prepare a Maine development noise review

Read Maine's 06-096 C.M.R. chapter 375, section 10 and organize its applicability provisions, limits, and exceptions into questions for a proposed development's review.

Questions about Cornell LII state regulation in opencode

Can opencode use Cornell LII state regulation?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Cornell LII state regulation like any built-in tool.

How much does Cornell LII state regulation cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use Cornell LII state regulation in opencode?

No. Spiral runs Cornell LII state regulation on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Cornell LII state regulation in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Cornell LII state regulation runs?

Cornell LII state regulation runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Which states does Cornell LII cover?

Cornell LII publishes administrative regulations for all 50 U.S. states. That coverage describes state agency rules; it does not establish coverage of every local ordinance.

How current is Cornell LII's U.S. Code?

The currency notice checked for this research identifies Public Law 119-136, published by the Office of the Law Revision Counsel on October 27, 2026. It provides a specific publication boundary rather than a promise of immediate updates after enactment.

How often does Cornell LII update state regulations?

Cornell LII states that state regulations are updated quarterly. Its comparison pages describe two available versions, so they should not be treated as a complete historical archive.

Does the CFR include proposed federal rules?

No. Cornell LII explains that the CFR excludes proposed rules, preambles, notices, and general policy statements found in the Federal Register.

Can I republish Cornell LII material commercially?

Cornell LII distinguishes underlying government texts from its markup, navigation, and original content. The license it describes for that added material requires attribution, noncommercial use, and the same licensing terms for adaptations.

Get started

Start using Cornell LII state regulation in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options