Skip to content
Abe-BorgPublic

About

A local desktop workspace for planning, capturing, and verifying building-code pulls in PDF and Word.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CodePull

CodePull is a desktop app that pulls building-code sections from your own UpCodes subscription and files them as PDF and Word documents. You ask for a section by number, by pasting its page address, or in plain words. The app reads the section exactly as printed, checks its own work and saves it with its source address and the date it was pulled.

It can also read a description of a project, propose the sections that project needs, and pull the ones you approve into one bundle. Or it can pull a whole code, one document per chapter and appendix.

It opens the pages itself, in your own signed-in session, at the pace of a person, so you can start a batch and walk away. If the site signs you out, it signs in again with the password you saved. If its reader cannot place a section, Claude can find it on a screenshot of the page, when you allow that.

It runs on Windows, macOS and Linux. Windows is the main target.

Before you rely on it

  • UpCodes asks automated tools not to access its site. Its robots.txt turns away every automated agent except a few named crawlers, and this app opens pages automatically. Check that your subscription allows it: the risk to your account is yours. UpCodes: access and terms has the details and a note you can send to ask for permission.
  • The site's terms have not been reviewed for your use. That decision is yours.
  • It has not been run against the live site yet. Everything is proven against a synthetic site that reproduces the page structures. Half an hour with the live-validation checklist, on your own machine, closes that gap.

Contents

What it does

  • Pulls whole sections, word for word. The text comes from the page and from nowhere else. No model writes, completes or corrects it. Italic amendments, bracketed agency tags, list markers, notes, exceptions and tables are kept as printed, including any misspelling on the page.
  • Keeps the page's formatting. A defined term such as public way stays one italic run, plural included. Mixed fractions (1¹/₂), units (m², ft³) and marks (®, ™) keep their superscripts and subscripts, in text and in tables, and characters such as ½ or m² stay as printed, without pushing their line apart from the lines around it. An amended heading, list number or titled paragraph keeps the italics the page gives it. Table cells keep the alignment the page gives them: a column the page centres, or sets to the right, is centred or set to the right in both documents.
  • Lays out pages the way a reader needs them. A label such as "Exceptions:", a lead-in that ends with a colon, or a table caption never ends a page alone; it moves with what follows. An equation stays on the page of its "For SI:" line and of the "where" that explains its terms. A table no taller than half a page is kept whole on one page; a longer one that runs onto another page repeats its header rows. A table too wide for the page is set smaller until it fits (its cell padding with it), or, below 70 %, on a landscape page of its own. Nothing is clipped.
  • Checks its own work. The app compares what it read with what the browser itself would select over the same range, then reads the finished PDF and Word file back and compares them with the source. A pull that fails a check is not saved. A pull with something to look at is marked Needs review, with the reason.
  • Keeps figures and equations as the pictures the page drew. A figure, a diagram or an equation is captured from the page as an image, at the size the page prints it, and placed in both documents. Nothing in a picture is retyped, read or recognised. A picture is never kept with something else drawn over it, such as a bar fixed to the window, a chat button or a tooltip, and a picture that loads only when it comes into view is waited for, never left out as an icon.
  • Reads a page while its pictures are still arriving. A chapter page with many or slow pictures is read as soon as its text is there. A section waits only for its own pictures, at most a minute; the rest of the page never holds it up.
  • Reads the whole page. A long chapter page may load its text only as it is scrolled. Before it reads a whole chapter, and before it reads a section that is not yet on the part of the page loaded so far, the app scrolls through the page once, in your session, and reads it only when nothing more loads. A whole chapter then ends where its page ends. A page that takes text away as it scrolls is never read in pieces: the pull stops and says why.
  • Marks what it could not reproduce. A picture that could not be captured, a nested table or embedded media becomes a visible gap in the document and a line in the pull's report. Nothing is filled in.
  • Leaves site clutter out. Promotion boxes, product carousels, badges and cards of related diagrams placed inside a section are recognised by their structure and never reach a document.
  • Keeps documents clean. A PDF or Word file holds the code text, one header line (code, chapter, article) and page numbers. The reason for the pull, its date, source address and account are kept in the app and in a small .pull.json file written beside every export.
  • Works by itself, at the pace of a person. One page at a time per account, at least 12 seconds apart, with hourly and daily ceilings. Sections on a chapter page that is already open cost no extra page load.
  • Keeps going when the site signs you out. Save an account's password and the app signs in again, once, on the site's own form. A wrong password, a verification code or a human check stops the account and waits for you.
  • Finds a section on a screenshot when it must. If the page reader cannot place a section, and you allow it, Claude looks at the page and points to where the section starts and ends. The text is still read from the page, and the pull is marked for review.
  • Understands plain requests. With an Anthropic API key, you can ask for "fire pump power sources in the California Electrical Code 2022". Claude works out the code, edition and section. The app does the reading.
  • Plans a project. Paste your project notes. Claude records the facts it found, quoting your own words, and drafts a list of sections with one reason each. Nothing is pulled until you approve.
  • Follows cross-references, within limits you set. When a pulled section points to another section of the same code, the plan can add it. A section the pull already holds, such as one a whole chapter points to within itself, is not added again.
  • Remembers. Every pull goes into a searchable library. Ask for the same section again and you get the saved copy, with its date, unless you ask for a fresh one.
  • Combines what you pick. Tick pulls in the library and combine them into one PDF with a contents page, sorted by code and section number or in an order you set. Each section keeps its verified pages, unchanged.
  • Delivers a bundle. A plan exports as a folder: the documents, one combined PDF of all of them, an index with every reason, a report of gaps and anything that was not pulled, the project facts, and a manifest.
  • Pulls a whole code. Choose Whole code: the app reads the code's contents and plans one PDF per chapter and appendix, in order, and tells you the page loads and roughly how long before you approve. A chapter printed as reserved gets no document. So does a chapter the site strikes through in its contents, as deleted from the code the jurisdiction adopted. A chapter or annex the contents list with no page, which the site does not host, is recorded as a gap and never loaded. The bundle lists every chapter as TEXT, RESERVED, DELETED or GAP, with its pages and checksum.
  • Reissues documents when the app improves. One pass makes every document of a delivered bundle again from the saved captures, with no page loads. Only documents that changed are rebuilt. The earlier files are kept, and the new bundle's index records the old and new checksums.
  • Shows the source beside anything flagged. For a pull marked Needs review, the viewer shows a picture of the source page beside each flagged block, so a check takes seconds. These pictures stay in your library and never go into a document, a bundle or a request to Claude.

What it never does

  • Buy, start a trial, sign up or upgrade. Those pages cannot load in the app.
  • Open anything by itself except code pages, chapter pages and a jurisdiction's list of codes.
  • Keep your site password anywhere but a file your operating system encrypts, or type it anywhere but the site's own sign-in form. Saving it is optional. Without it you sign in by hand, in a window that belongs to that account.
  • Switch accounts to get past a limit. A pull stays with the account you gave it. Only you can move a stopped pull to another of your accounts, one at a time.
  • Work around a paywall, a human check, a verification code or a "slow down" response. Each one stops the account and tells you why. A human check or a slow-down stops every account until you resume. A sign-in prompt is answered once with your saved password, if you saved one; if that does not sign in, the account stops.
  • Send a whole section to Claude as text. Claude gets section numbers and headings. When the reader cannot place a section on a page, the app sends Claude screenshots of that page, which show code text, unless you turn that off. See What Claude sees.
  • Call Claude once this month's estimated cost has reached your spending limit. See The monthly spending limit.
  • Upload, share or sync your library. It is a folder on your computer.
  • Check for updates, download or install anything by itself. Check for updates asks GitHub only when you choose it, and the new version is yours to download and run.

Install and run

You need Node.js 24 and Git.

git clone https://github.com/Abe-Borg/CodePull.git
cd CodePull
npm ci
npx --no-install install-electron
npm start

npm ci installs the dependencies. install-electron downloads the desktop runtime once. npm start builds the app and opens it.

If PowerShell refuses to run npm scripts, use npm.cmd and npx.cmd in place of npm and npx.

To get an installer instead of running from source, see Build, test and package.

Try it with no account and no key

Open New request and choose Open sample pull. It opens § 210.7 of a made-up Field Recording Handbook, so you can see a pull, its checks and its exports without touching any site.

Update to a new version

Open Settings → About and choose Check for updates. CodePull asks GitHub for the latest release and says one of four things: you have the latest version, a newer one is available, your copy is newer than the latest release (a build from source), or why the check could not finish (no connection, a firewall or proxy that blocks api.github.com, or GitHub limiting checks from your network for a while). It checks only when you choose the button. Nothing is downloaded or installed by the app.

When a newer version is available, the panel names it, the date it was published and the installer to download (CodePull-Setup-<version>-x64.exe on Windows), and What is new shows its release notes. Open download page opens that release's page on GitHub in your browser. Then:

  1. Download the installer from the release page.
  2. Quit CodePull.
  3. Run the installer. Windows SmartScreen warns because the installer is not signed; choose More info → Run anyway.

The new version installs over the old one and opens the same data folder, so your library, accounts, saved passwords, plans and settings carry over. When the new version changes the database, its first start copies app.db to app.db.bak-<number> beside it before changing anything. That copy holds your pulls as they were, so Delete all content removes it too.

Running from source? Update the checkout instead:

git pull
npm ci
npm start

First run

The New request screen shows a short checklist. Do the two steps once.

  1. UpCodes account. Choose Add account, give it a name such as "Work subscription", then Open sign-in window. Sign in to UpCodes as you normally do. The window's toolbar says when the app can see you are signed in. Choose Done. To let the app sign in again by itself when UpCodes signs you out, choose Save password… on the account and enter your UpCodes email and password. This is optional; see Saved passwords.

    Once the app has seen you signed in, the account shows Signed in and Sign-in confirmed with the time, and stays that way until a page shows UpCodes' sign-in form, a pull meets one, or you clear the account's browser data. Most code pages hold no proof either way, because UpCodes keeps its sign-out link in a closed menu, so Done or Check now on a code page leaves the account as it is.

  2. Anthropic API key (optional). In Settings, paste a key and choose Save key. That is all there is to set up: the app picks the Claude model (the newest Claude Opus your key offers, for requests and for project plans) and every other setting. You can see and change them under Show advanced settings, and you never have to. Without a key you can still pull by section number or page address, and use the library.

There is one thing on the Settings page you may want to change: the monthly spending limit for Claude, $200 to begin with. When the month's estimated cost reaches it, nothing calls Claude until you raise it or the month ends. See The monthly spending limit.

The key is encrypted by Windows and kept on this computer. If your system offers no encryption, the key is held only until you close the app.

The home screen

New request is the home screen. Choosing the CodePull name or icon at the top of the sidebar, or Workspace at the start of the path above each screen, brings you back to it from anywhere.

Below the request form it lists Recent requests and Recent pulls. They hold your own requests and plans. What Claude does for a queued pull (searching for its page, looking at a screenshot) shows on that pull and in the queue's cost panel, not here. A request that is still working, or waiting for your answer, stays listed however many newer ones there are.

  • Choose a list's title to fold it away or open it again. The app remembers which lists you folded.
  • × on a row takes that one entry off the list. Clear list takes them all off. This only tidies the home screen: a pull stays in the library, and a request keeps its plan, its pulls and its cost. A request that is still working or waiting for your answer stays on the list until it ends. New requests and new pulls appear as usual.
  • The panel that shows a request's progress has a × once the request has ended. A request that is still working keeps its panel.

Pull a section

On New request, choose Quick pull. There are three ways to say what you want.

You have Do this Uses Claude
The section number and the code Choose Enter exact section and fill in jurisdiction, code, edition and section No
The page address Paste the UpCodes viewer address, with or without #695.3 on the end, into the request box No
A short exact request for a code the app already knows Type it, for example CEC 2022 695.3 No
A description Type it: "fire pump power sources in the California Electrical Code 2022" Yes

Then pick the Source account, choose PDF or PDF and Word document, and choose Start.

  • Source page address (under Options) works with a description too. The app keeps the address and tries that page first for a section of the same code; Claude is told there is one, never the address itself.
  • A key, a token or a password typed into a request is not sent and not kept. The request is listed with [redacted] where it stood and says so. Take it out and send the request again. The same goes for an answer to one of Claude's questions, which is refused and can be given again, and for a plan's title, facts and reasons, which are not saved while they hold one.
  • Asking again for a pull that is stopped in the queue does not queue it twice. The request joins the stopped pull and says so, with the reason it stopped: nothing runs until you choose Retry on it in the queue.

A whole code. Choose Whole code, pick the jurisdiction, code and edition, the account and the documents, and choose Read the contents. The app reads the code's contents (one paced page load, or the list it saved in the last week) and drafts a plan with one item per chapter and appendix, in the order the contents give. A chapter the contents mark as reserved gets no item and is never loaded, and so does a chapter the contents strike through, as a site marks one the jurisdiction deleted from the code it adopted (shown as Deleted). The plan opens for review: it lists every chapter and says how many page loads the pull takes and roughly how long at your pacing, counting the hourly and daily limits. Nothing is pulled until you approve. Each chapter is one job in the queue, with the same pacing and stop rules as any pull; a chapter whose page prints it as reserved finishes with no document, and so does one whose page shows no code text while the contents beside it strike it through (see A chapter the jurisdiction deleted). One that cannot be pulled is shown in the queue like any stopped pull. A chapter or annex the contents list with no link to a page, as a site lists one it does not host (NFPA 70's informative annexes, for example), is shown as Not hosted, gets no job and no page load, and is listed as GAP in the bundle. Before each chapter is read, the app scrolls through its page once so that a page which loads its text as it is scrolled holds all of it (see How pulls run). Cross-references are not followed: everything a chapter cites is in the code you are pulling.

A code a state wrote itself. Some state codes are not a model code with amendments but the state's own rules, numbered with a word in front: Wisconsin's plumbing code lists "Chapter SPS 381 Definitions and Standards" through "Chapter SPS 387", with appendices listed as "Chapter SPS 382 Appendix", and prints its sections as SPS 381.01. The app reads these like any other code: the plan has one item per chapter and appendix, a section is entered as printed (SPS 381.01 or SPS381.01), and the library names them "Chapter SPS 381" and "§ SPS 381.01" and sorts them by their whole chapter number, an appendix after its chapter. A model code's name typed in front of a model code's section number (IBC 903.2) is refused with a note to enter the number alone. Such a code is often listed with no year, and its pages print none either. Picking it clears the edition box and says so: enter the year to file the pulls under in your library. The pages are read anyway, and each pull's note says the page printed no year and the year is the one you gave.

A model code a state titles by its own year. A state may name a model code it adopted by the year it adopted it: North Carolina's 2024 fire code is the 2021 International Fire Code, and the site keeps it at up.codes/viewer/north_carolina/ifc-2021 while its pages name it by the state's year. The code list fills in the year the site's address names (2021). The pages are read under that year, and each pull's note says which year the title prints and that the address names 2021, the year it is filed under in your library. Its document's header line prints the title as the page does. You can also ask for the year the title prints: that matches too, with no note, and files the pulls under that year. A year that neither the title nor the address prints is refused, and the pull says which year the title prints. Until the UpCodes module upcodes@2.7.2, such a code was refused on every chapter: "The viewer does not display a code title matching this edition", and after three chapters the account was stopped.

The request shows its progress in plain lines: checking the library, opening the page, reading the section, checking the documents. Page loads are paced, so a pull that needs a new page can take half a minute. You do not need to stay: the pull runs in the queue and the result goes to the library.

If Claude needs to know something that changes which page is pulled, such as the edition, it asks one question with buttons to answer.

When the pull is done, choose Open pull to see the section, its checks and its exports.

Options

  • Scope. A whole section with all its subsections is the default. You can ask for one subsection, such as 695.4(B), a whole article or a whole chapter. A whole chapter (or appendix, by its letter) is one document; a very long chapter is given more time to read. A whole chapter asked for by a section in it, such as 101 for Chapter 1 or A101 for Appendix A, is pulled as that chapter once the app knows the code's contents, and the pull's note says so. A101 is never read as Chapter 1.
  • Text basis. As adopted by the jurisdiction is the jurisdiction's own text, amendments included. Model code text is the unamended model code. The app accepts a page as model text only when the page's own banner says the code is adopted without amendments, and it records that banner as printed. A page asked for as model text is pulled whatever its banner says. One whose banner does not say without amendments is saved as that jurisdiction's adopted text, and the pull's note says so and why: the banner says with amendments, or the app found no banner saying without amendments.
  • Pull again even if the section is already in the library. Otherwise a saved copy is reused and its pull date is shown.

Plan a project

On New request, choose Project plan and paste your notes: location, the codes that apply, occupancy, size, and the systems involved, and choose Start.

Claude reads the notes and drafts a plan. Nothing is pulled yet. Open it from Project plans.

  • Project facts. Each fact is marked Stated (with your own words quoted), Inferred (Claude worked it out; check it) or Unknown. A quote you did not write is never shown as yours.
  • Sections. Each has one line saying why it is there, and shows whether the library already holds it and from what date. Untick what you do not want. Choose Add section to add your own. Claude names a whole chapter or appendix by its designation (9, 11B, A). When the app knows the code's contents, an item that names one by its first section (901) becomes that chapter, and one the contents do not list goes back to Claude with the list of what they do.
  • Cross-references. Set how many levels to follow, how many sections one section may add, and how many may be added in all. Zero levels turns it off.
  • Open questions. Anything Claude could not settle. Add detail and choose Re-plan if you want another draft. Sections you added by hand and cross-references you ticked stay in the new draft, after Claude's, ticked or unticked as you left them. So does a Plan title you typed: a title you left as Claude wrote it follows Claude's new one, and a title you changed stays yours. A plan holds at most 60 items in all; the Largest plan Claude may draft setting counts Claude's own.

A plan that is waiting for your answer keeps its facts and its draft if you close the app and answer the next day.

Choose Save draft to keep it, or Approve & run to send its sections to the queue. The plan tells you first how many page loads that is and about how long it will take at your pacing. When the pulls are done, choose Export bundle and pick a folder. You get:

File What it holds
pdf/ and docx/ One document per section, with its .pull.json
INDEX.md, INDEX.csv Every section with its reason, status, pull date, account, source address, page count and PDF checksum. For a whole code, INDEX.md also lists every chapter in order as TEXT, RESERVED, DELETED or GAP, with its pages, check result, file and checksum, and the files are named in the contents' order (01-…, 02-…)
GAPS.md What stopped, failed or was not pulled, chapters printed as reserved, chapters deleted by the jurisdiction, chapters the site does not host, what needs review, gaps inside pulls, sections reused from the library, and cross-references that were not followed, with the reason
FACTS.md The project facts, your notes as entered, and open questions
manifest.json The same record for software: limits, counts, checksums, where each section starts in the combined PDF, and for a whole code each chapter's status, source address, pull date, adoption banner as printed, check result, gap count, pages and checksum
COMBINED-with-contents.pdf Every section document in one file, in plan order, after a contents page CodePull makes. Bookmarked by section

The combined PDF holds each section's verified pages unchanged, so each section keeps its own page numbers. The contents page lists the section numbers and headings, the code each is from, and the page of the combined file it starts on. A subsection is named by its full number (§ 695.4(B), although its own heading prints only "(B)"), and a chapter, article or appendix by its own heading (Chapter 9). It holds no reasons, dates or sources; those stay in the index. After merging, the app compares every page with the same page of its section's own PDF. The same documents in the same order give the same file, byte for byte. Pulls from the library can be combined the same way without a plan: see Combine pulls into one PDF.

Save ZIP packs a bundle into one file after checking that nothing in it has changed.

A bundle, and a combined folder, is written to a temporary folder and renamed when it is whole. On Windows antivirus or a sync client such as OneDrive may hold a just-written file for a moment, which refuses the rename; the app tries again for a few seconds instead of discarding the bundle. A folder or file is never given a name Windows keeps for a device: a combined folder you name AUX is written as _AUX.

Reissue documents makes every document of the plan's last bundle again from the saved captures, with no page loads, and writes a new bundle beside it. Each document's content is compared with the copy that was delivered: only a document that changed is rebuilt, and the rest are the delivered files, unchanged. The new bundle's INDEX.md, INDEX.csv and manifest.json give, for each document, the delivered checksum, the current one and Reissued yes or no. The delivered bundle is left as it was, and the library keeps every earlier file as an earlier version. No document says it was reissued. Use it after an update that improves how documents are made.

The pull queue

Approved pulls go to Pull queue. Each account works through its own pulls, one at a time.

State Meaning
Waiting In line for its account, or held by pacing
Finding the page / Reading the section / Checking the documents Running
Done Saved in the library. Open pull shows it
Needs attention Stopped for a reason only you can deal with. It is never retried by itself
Failed A network or server fault that lasted through three tries, or an unexpected fault. Nothing else is retried
Cancelled You cancelled it

Pulls are listed plan by plan, the newest plan first, each in its own order, so a whole code reads chapter by chapter. A pull that several plans wait on is listed once and says how many plans wait on it; every count on the screen is of pulls, not of plan entries. An approved whole-code plan has a progress bar, and is called Whole code under Project plans.

The Pacing panel shows each account's page loads this hour and today against its limits. Pause all stops everything at once, including a pull that is in the middle of running. It goes back to waiting and loses nothing. Resume carries on. Both work at any moment, also while an export, a capture or another action is still running.

When a pull needs attention

Shown as What happened What to do
Sign-in expired The page asked you to sign in, and no saved password signed it in again Sign in, then Done. The pull continues. With a saved password you see this only when that sign-in did not work: a refused password, a verification code, a sign-in through Google, Microsoft or Apple, or a second sign-out within half an hour. The pull says which
Subscription needed The account cannot view that page Check the subscription. The app will not buy anything
Human check The site asked for verification Open the account window, complete it yourself, then Resume. Every account waits until you do
Asked to slow down The site sent a rate-limit response Wait a while, then Resume. Every account waits until you do
Section not found The section is not printed on the pages the app opened Check the number, or start a new request with the page address. With an API key, Claude is asked once to find the page before this is shown, and then, unless you turned that off, to look at a screenshot of it. A stop that says Claude is stopped means this month's spending limit was reached before Claude could be asked: raise the limit in Settings, then Retry
Page not recognised The page did not look the way the reader expects, or it takes text away at the top as it is scrolled, so it never holds the whole chapter at once Claude tries to find the section on a screenshot first, unless you turned Let Claude look at the page off or this month's spending limit is reached. Otherwise Capture by hand, or export diagnostics (see below). The stop says when the screenshot fallback could have helped. A page that takes text away is never read in pieces: pull a smaller part, or capture it by hand
Check failed The page was read, but the PDF or Word document made from it did not read back the same, so nothing was saved. The pull says which document, which page of it, which block and which character differ: for example "the page has a letter where the PDF has a hyphen (U+002D)". It never repeats the text Retry reads the same page and ends the same way, so it helps only after an update. Use Settings → Show advanced settings → Export diagnostics and send it with the message; the log holds the same details. Capture by hand of a smaller part can get you the rest of the section meanwhile
Network problem No connection, or a server fault, after three tries Check the connection, then Retry
Failed: "The page did not answer CodePull" The page loaded, but did not answer the app's reading code within its time limit: its own scripts were busy, or it never finished loading. This is not the connection, so it is not tried again by itself Retry loads the page afresh. If it repeats, open the account window and look at the page

An account that is stopped stays stopped until you choose Resume account. Opening and closing its window, or checking its sign-in, does not clear a stop.

Two safeguards keep a queue from running into trouble over and over:

  • After three pulls in a row that could not be read on one account, that account is stopped and you are told. Look at the site in the account window before resuming. A pull whose documents failed their check does not count: its page was read, and what failed is the app's own rendering, so the account's other pulls carry on.
  • After three failed page loads in a row, the account's waiting pulls rest for ten minutes.

Re-assign to… moves a stopped pull to another of your accounts. The app never does this by itself.

Capture by hand is the recovery for a pull the app could not read: open the source page in the account window, leave the page that prints the section open (or highlight the section), and capture. It is offered on a stopped pull, and on a waiting pull while the queue is paused. Its documents follow the adopting-agency table setting, as a queued pull's do.

A page that gives far less than the saved pull. When a section is pulled again and the page gives fewer than half the lines of the pull you already hold (of eight lines or more), the page most likely had not loaded its text. The saved pull is kept and the new one stops as Page not recognised, saying how many lines each has. If the page really is that short now, capture it by hand: you are looking at the page, so that saves it. Claude is not asked to look at such a page, and is told the same if it was Claude that tried to save it.

Retry on a failed pull that is already queued again says so. The queue holds one open pull for the same section, account and options: use that one, or cancel it and retry this one.

The library

Every pull is kept, with its source address, pull date, account label and check results. Search by code, section or words in the text.

Open a pull to see:

  • The section as it will print. For a pull marked Needs review, each flagged block (a gap, or a block a check points at) has a picture of the source page beside it, taken when the section was read. If the account window did not draw the page then, there is no picture.
  • Source details: address, date, account, the adoption banner as printed, versions of the app and of the page reader.
  • The checks, each passed, flagged or skipped, and any gaps.
  • Cross-references to other sections of the same code, each marked as part of this pull, already in your library, or not pulled. Queue pull fetches one. Pointers into other standards, and into federal regulations such as 29 CFR 1910.1000, are listed and never followed.
  • Earlier versions of the same section. A refresh that finds different text is marked Text changed.

From there you can Export PDF, Export Word document, Pull again, Make documents again from the saved copy without visiting the site (a document that comes out the same is kept as it was; one that changed replaces it and the earlier file is kept), Mark as reviewed, save a partial pull that keeps only some parts (with your reason, which is recorded), or remove it.

  • Make documents again also repairs. A PDF or Word file that was changed or deleted in the library folder, for example by opening it in Word and saving, no longer matches its verified copy, and exports refuse it. Making the documents again puts the verified file back. The refusal names the code, section and jurisdiction of the pull, so one damaged file among the chapters of a bundle can be found.
  • Removing the current pull of a section makes the earlier version current again, if one is kept: the library lists it and new requests reuse it. The app says so when it happens.
  • Removed pulls go to the trash. Remove takes a pull out of the library, but its PDF and Word files stay on disk. The Library's Trash button shows how many pulls are in it and opens a list of them, with when each was removed. Put back returns one to the library: it is current again unless a newer pull of its section was saved since, in which case it comes back as an earlier version. Empty trash… asks first, then deletes the files of the pulls in the trash; it never touches the pulls in the library or files you exported, and once emptied, a pull cannot be put back.

Export index writes a spreadsheet of what you hold: code, edition, jurisdiction, section, date and account. It contains no code text. Prune history deletes old versions beyond the number you keep; it leaves the trash alone.

Pull sections again from the list

Every row in the library has its own Pull again button, so you can go down the list, read each row's date and status, and queue the ones you want pulled again, one click each. It is the same pull as Pull again on a pull's page: a fresh copy from the site with the account it was pulled with, never a copy from the library, paced like every other page load. Unlike that button, it keeps you on the library.

  • The row says where its pull is. Waiting while it waits its turn (Waiting · queue paused while the queue is paused), then Finding the page, Reading the section and Checking the documents. If it stops, the row gives the reason, such as Sign-in expired; click it to open the queue, where it is handled as any stopped pull.
  • Undo takes a pull you just queued back out while it is still waiting. A pull that something else put in the queue, such as a project plan, is only shown, never cancelled from the library, and so is one of yours that another request has since asked for too.
  • Rows stay where they are. When the new pull is saved, its row updates in place with the new date and status and lights up once, instead of jumping to the top of the newest-first list. The usual order comes back the next time you open the library. A ticked row stays ticked.
  • A section already in the queue has no button, so it cannot be queued twice. The sample has nothing to pull, and a partial pull is made from a whole section: pull the whole section again, then keep only some parts again. A pull whose account was removed has the button greyed; start a new request to pull it with another account.

See decision 13.

Combine pulls into one PDF

Tick the pulls you want in the library. The box in the header ticks every row shown, and Shift-click ticks every row between the one you ticked last and this one. Ticks stay while you search and filter; the bar at the bottom says how many are ticked and how many the search or filters hide. Clear unticks them all. With two or more ticked, choose Combine into one PDF….

The dialog shows the sections in the order the PDF will hold them, with a picture of the contents page and the page each section starts on:

  • Order. By code and section number is the default: jurisdiction, then code (alphabetical by title), edition, chapter, then section number read as numbers, so 903.3 comes before 903.3.1.1, 903.3.1.1 before 913.2, and 913.2 before 1001.1. The chapter is the one the section's header line names, so an I-code § 903.2 sorts inside Chapter 9, ahead of Chapter 10. A chapter pull goes ahead of its own sections, and a partial pull after the whole section. In the order you ticked them keeps your ticking order. Drag a row, or use its arrows, and the order becomes Your order; Sort by code and section again goes back.
  • Text printed twice. A ticked pull whose text another ticked pull already holds is flagged: a section inside a chapter you ticked, a subsection inside its section, a partial pull beside the whole section. Leave it out unticks it. Pulls from another code, edition or text basis are never flagged, and a partial pull is never treated as holding another.
  • Before you save. Pulls that still need review, pulls older than your staleness setting, and pulls from more than one jurisdiction are pointed out. They are combined as they are.
  • Save as. One PDF writes the PDF where you choose, with a .pull.json of the same name beside it: the combined file's checksum, pages and order, and for each section the page it starts on and its full record (source address, pull date, account, checks, checksums). A folder makes a folder laid out like a plan's bundle: COMBINED-with-contents.pdf, pdf/ with each section's PDF and .pull.json, docx/ with each section's Word document, all named in the PDF's order (01-…), an INDEX.md table and a manifest.json. A folder of the same name is never replaced; the new one gets _2.
  • File name. It names the file or folder only. Nothing you type is printed in the PDF.

The combined PDF is made exactly as a bundle's: a contents page, then each section's verified pages unchanged, bookmarked by section, and every page compared with the same page of the section's own PDF before it is saved. Nothing is loaded from the site. Saving over an existing PDF needs your confirmation in the save window; the PDF and its .pull.json are then replaced together, or, if either is open in another program, both are left as they were. Show in folder on the notice that follows opens where it went.

There is no combined Word file: a section's Word document is in the folder, one per section.

How pulls run

The queue opens pages in your own signed-in session, at the paced rate, and pulls what you approved. Each account works on its own pulls, one page at a time. A pull never moves to another account by itself.

UpCodes asks automated tools not to access its site: its robots.txt turns away every automated agent except a few named crawlers. Opening pages automatically may be against your subscription terms and could put your account at risk. Use the app only if UpCodes has told you it is acceptable for your account, or you accept that risk. UpCodes: access and terms has a note you can send them.

Pause all stops every pull at once. The pull that was running returns to waiting and loses nothing.

If you tick Show the account window while CodePull is pulling, you can watch. The window is for watching: its address bar is inactive while the app is working.

Minimizing an account window does not close it. It stays down while pulls go on, and the app still counts it as open. The one exception is a moment when the page must be drawn (scrolling a page that loads as it is read, capturing a figure, or a screenshot for Claude): a minimized window draws nothing, so it comes up without taking the focus for that moment and goes back down to the taskbar afterwards.

When a section has a figure, a diagram or an equation, the app captures it from the page as drawn. A hidden window draws nothing, so the account window appears for a moment, without taking the focus, and hides again. The same happens to keep a picture of the source beside a flagged block. If the window still draws nothing, the figure stays a gap in the document and the flagged block has no picture; the pull is otherwise the same. Before it captures a picture, the app checks that nothing else is drawn over it, such as a bar fixed to the window, a chat button or a tooltip; it moves the figure higher or lower in the window to clear it, and otherwise leaves a gap that says why.

A pull of one section keeps its first 60 pictures; a pull of a whole chapter keeps up to 600, since a chapter may hold many equations. Each picture is brought into view and captured in turn, so the number bounds how long a pull holds the account window. A picture beyond the limit is a gap that says so, and says to pull the part that holds it by itself.

Characters that print nothing. A page can carry characters a reader never sees: soft hyphens (places where a long word may break), zero-width spaces and joiners, a left-to-right mark, a word joiner, the invisible operators of equation markup. The app leaves them out of everything it keeps, table cells and captions included, and out of both documents. A soft hyphen kept in a document prints as a hyphen wherever a line happens to break at it, which is a hyphen the code does not have; the others print nothing, so a PDF read back never holds them. Either way the PDF check used to fail on such a section. Marks that turn text from right to left are kept, because they change what is printed. Nothing is put in their place and no visible character is touched.

A picture taller than a page. A figure is printed at the size the page shows it, narrowed to fit between the margins. One taller than a page is also made smaller, in proportion, so that all of it is on one page (at most 8.96 inches of the 9.2 between the margins). Printed at full height it was cut across two pages and the picture count failed.

A table row taller than a page. A row with so much text that it does not fit on one page is cut across pages with its cells side by side: the first part of each cell on one page, the rest of each on the next. All of the text is there, but page by page it does not come in the order of the text, where one cell is whole before the next begins, and the PDF check used to refuse such a document. It now reads such a row cell by cell across the page break. Nothing else passes that way: a changed word, text left out, cells in the wrong order, or the rest of a cell printed anywhere but at the top of the next page are refused as before.

A numbered item inside a numbered item. Its marker, such as "2.1.", is wider than the column the documents gave a marker, so the PDF broke it in two with the final period on a line of its own. When such an item began on the last line of a page, the period went to the next page and the PDF check refused the document: "the page has the character U+002E where the PDF has a letter", in a list item. A marker is no longer broken, however wide; its column takes its width. Items whose marker always fitted print exactly where they did.

A chapter with no numbered sections. The reader tells where the code ends from the box that holds the numbered headings. A chapter of referenced standards has one numbered heading, its own, and lists everything else under the names of the bodies that publish the standards. Such a chapter is read from its heading to the end of the text that shares a box with it, and is marked Needs review with that reason, so you check where it ends. A chapter that reads as its heading and nothing else, and does not say it is reserved, is never saved as a clean pull: it is marked Needs review, ends with a gap mark, and its page is loaded afresh next time.

A chapter the jurisdiction deleted. A jurisdiction may adopt a code with amendments that delete whole chapters. The site then strikes the chapter through in the code's contents, and the chapter's page shows no code text, only a notice about how amendments are shown. A whole chapter whose page shows no numbered heading and no chapter heading, and whose own entry in the contents on that page is struck through, ends as Deleted by the jurisdiction (no text): complete, with no document. It is not a stop and does not count toward stopping the account. The strike decides, never the words of a notice: an empty page whose entry is printed plainly still stops as a page CodePull cannot read. When the contents are read for a whole code, a chapter whose every link there is struck through is Deleted in the plan, gets no job and is never loaded (contents that strike every chapter are not taken as marking deletions). This holds for whole chapters only: a section asked for by number in a deleted chapter stops as a page CodePull cannot read. Inside a chapter the reader does not tell struck-through text from other text, so keep the site's amendment styling on a setting that hides deleted text; if the site shows deleted text struck through, CodePull reads it as ordinary text.

Pages that load as they are read. A chapter page may arrive in parts: the first sections with the page, the rest as the reader scrolls toward the end. A hidden window runs none of the page's own scripts that would load them. So before it reads a whole chapter, and before it reads a section when the section, its end or one of its pictures is not yet on the page, the app shows the account window without taking the focus and scrolls through the page once, from the top to the end, waiting for each part to arrive, then returns it to where it was. It reads the page only when the end stays the end. App code loads no page here, and scrolling is not counted against the page-load limits: the page's own scripts fetch the rest of the chapter, as they do for a person reading down it.

  • A page is scrolled through once per load. Other sections of it are read without scrolling again.
  • Pause all, a site-wide stop, or opening the account window yourself ends the scrolling at once. The same goes for keeping a section's pictures: a pull interrupted there goes back to the queue. It is never saved with the pictures it had not reached turned into gaps.
  • If the account window is closed, hidden or minimized while the page is being scrolled, it is shown again, without the focus: a hidden window loads nothing more, and the page would pass for finished. A window you minimized, before or during the scroll, goes back down when the scroll ends.
  • A window that other windows cover keeps drawing. The app starts Chromium with occluded-window backgrounding and Windows' occlusion tracking turned off (disable-backgrounding-occluded-windows, CalculateNativeWinOcclusion). Without that, a chapter scrolled while you worked in another window, or in CodePull's main window, could draw no frames and end Needs review.
  • A whole chapter whose page was scrolled to its end ends where the page ends. If the page kept loading, offered the rest behind a button, or the window did not draw while it scrolled, the pull is still made, marked Needs review with that reason, and ends with a gap mark.
  • A page that takes text away at the top while more arrives at the bottom never holds the whole chapter at once. The pull stops with that reason instead of being read in pieces.
  • The time a scroll may take follows the page's height: six minutes for any chapter page (three for a section's), more for a page that needs more steps at a second and a half each, and never more than 25 minutes. A chapter of about 2,000 lines took three and a half minutes on a live account. If the time does run out, the pull is made and marked Needs review, and the log line page.scrolled says so (outOfTime) with the page's height and the time allowed.
  • If the page, a moment after it has loaded, sends itself to a purchase, sign-up or sign-in page, the app refuses that address, as always, and stops the pull as if the load itself had been sent there: what is left of the page is not the code. The page is loaded afresh next time.

Pages still loading. A chapter page can take long to finish loading: many pictures, a slow picture, or something on the page that never finishes. The app reads the page as soon as its text is there, without waiting for the rest. Electron's usual way into the page waits for the whole load, so the account window has a small helper of the app's own (a preload) that runs the app's reading code in the same walled-off part of the page at once; it gives the page nothing. While another page is on its way in, the app waits for it, as before.

  • A section that holds a picture the page is still bringing in waits for that picture, and only that one, at most a minute, then is read again. A section without one does not wait.
  • The page must still be the same page when the pull has read it and kept its pictures: the same load at the same address. A new load, or another chapter shown by the site's own links inside the page, stops the pull with "The page changed during capture". The site moving the address to another section of the same page (#…) does not.
  • The next section from the same chapter reuses the open page even while its pictures are still arriving, so it costs no extra page load.
  • Signing in with a saved password still waits for the sign-in page to finish loading before it types, at most 20 seconds, as before.

Saved passwords

On Accounts, Save password… asks for the email or user name and the password you use on UpCodes. When UpCodes signs that account out during a pull, the app signs it in again on UpCodes' own sign-in form, then lets the pull continue. It does this once per sign-out.

  • The password is kept in a file your operating system encrypts (on Windows, with your Windows account). The database records only that a password is saved. The password is never shown again, never logged and never sent to Claude: a request to Claude that contains it is refused.
  • The app types the password into the sign-in form the way a keyboard would, after checking that the page is UpCodes' own and the field is the password field. No script on the page is handed the password.
  • It stops and waits for you when UpCodes refuses the password, asks for a verification code, shows a human check, sends the account to Google, Microsoft or Apple to sign in, or signs it out again within half an hour. None of these is retried by itself.
  • Change password… replaces it. Forget password deletes it. Removing the account deletes it too, and so does Wipe all data. Delete all content keeps it.

If your computer offers no encryption for saved passwords (some Linux desktops without a keyring), the app does not keep one, and says so.

When the reader cannot place a section: Claude looks at the page

Let Claude look at the page when CodePull cannot find a section on it is on unless you turn it off, under Settings → Show advanced settings → Claude. The screenshots show code text and go to the Anthropic API, so turn it off if you do not want that; a section the reader cannot place then stops and waits for you. It needs an API key, and stops with everything else at the monthly spending limit.

When a pull cannot be read, or its section cannot be placed, the app gives Claude screenshots of the page with numbered marks. Claude can only point: at a link to open, at the block where the section starts and the block where it ends, or ask to scroll. The app checks each choice:

  • A link is opened only if it is a code, chapter or list page the app may open by itself, and the load is paced. Purchase and sign-up links are never offered.
  • The text between the two points is read from the page by the same reader as a capture by hand, with the same checks. A start that is not the requested section is refused, and Claude is told why.
  • At most 40 steps and 4 page loads for one pull. One screenshot goes with each request; none is saved. There is no token limit: what bounds the cost is the month's spending limit, checked before each step.
  • Each step asks Claude for exactly one pointing choice. Claude thinks before it points, and a step may use the model's whole output. On models that offer it, each step uses medium effort. The look stops with a reason if Claude answers without pointing, or writes all a step can hold without pointing.
  • While it looks, the account window is shown without taking the focus, because a hidden window draws nothing. It is hidden again afterwards.
  • It is not used for a whole chapter: a chapter's start and its end are further apart than one look can reach, so Claude is not asked and nothing is charged. Capture the chapter by hand, or pull its sections one at a time. For an article or a subsection, Claude is told that it is one and where such a unit starts and ends.
  • A section saved this way records the reader's version and follows the adopting-agency table setting, as a queued pull does.

A section found this way is saved marked Needs review, with a note on the pull. Claude's cost shows on the pull and on the queue's Claude cost panel, and is counted with your other usage.

What Claude sees, and what it costs

Claude is used for four things: turning a plain request into a code, edition and section; reading project notes and drafting a plan; one bounded search for a page when a section cannot be found; and, unless you turn it off, looking at a screenshot of a page the reader could not place. Pulling by section number or page address never uses it.

Sent to Anthropic When
Your request, or your project notes Always, when you use Claude
Code names, editions, section numbers, counts, warnings Always
Heading titles of a pulled section At the default setting, Outlines
Short excerpts of saved text, up to 800 characters at a time Only at Outlines and short excerpts
Screenshots of a page the reader could not place, with numbered marks While Let Claude look at the page is on, which it is unless you turn it off. They show code text
Whole sections as text Never
Your API key, saved passwords, cookies, page addresses Never. A request that contains a credential is refused before it leaves

Claude cannot open an address, type or sign in. It names pages by references the app gives it, and on a screenshot it can only point at the numbers the app drew.

Tokens are not capped for anything Claude does. Each piece of work has a limit on its steps, and pauses after 60 minutes of work; at either it stops and asks whether to continue. What bounds the money is the monthly spending limit: when the month's estimated cost reaches it, every call to Claude stops. The top bar shows tokens and an estimated cost for the month, with a spinning mark while Claude is working; the figures grow as each of Claude's replies comes in. The estimate comes from a price list in assets/pricing.json. Your Anthropic account shows what you are actually charged.

How much Claude reads at a time

Each request or plan is one conversation with Claude. A step is one call: Claude reads everything so far and answers with the tools it wants to use, and the app runs them and adds the results. The whole conversation is sent again with each step, so it grows with every step. What keeps it small:

  • Tools return references and short facts, not pages. A page is identified by a reference number, never its address. A section comes back as its number, heading and counts, never its text. Every tool result has a size cap of 8 to 64 KB (roughly 2,000 to 16,000 tokens), large enough that a jurisdiction's list of codes or a long section's outline arrives whole; a list longer than that is shortened and marked as cut. A search of a code's contents returns up to 25 hits. An excerpt, only at Outlines and short excerpts, is at most 800 characters.
  • Site notes are capped at 4 KB before they go into Claude's instructions.
  • Claude's instructions and tools are sent first and cached. Anthropic keeps them, and the conversation so far, for a few minutes, so each step pays a fraction of the price for what it repeats.
  • Steps bound everything. A typical request's tool results come to tens of kilobytes. Claude may call several tools in one step and nothing caps how many, but each result is capped and the step limit caps the steps, so the conversation stays well below what current models can hold.
  • A finished conversation is shortened when it is stored: Claude's reasoning is removed and each tool result older than the last six turns is reduced to one line.
  • The screenshot fallback sends one screenshot at a time. Earlier ones are replaced by a line.

Where it could still grow too large: your request or project notes go out whole with every step (the app does not cut them); Claude's own reasoning stays in the conversation, and with no output cap one long step can add a lot; and a request you keep continuing past its step limit keeps adding to the same conversation. If Claude runs out of room to answer or to read, the request ends with Claude reached its output or context limit before finishing. Split the request and try again.

What the queue costs in Claude

Most pulls cost nothing in Claude: the app finds the page and reads the section by itself. Claude is asked about one pull only when the app cannot place it, and then only twice at most:

  1. A search of the code's contents for the page. It has 24 steps, fixed in the app: nobody is watching it, and each step may spend one of the account's paced page loads, so it does not follow the step limit your own requests have. At that limit it stops instead of asking, and the pull stops for you as one CodePull could not find.
  2. A look at the page, unless you turned Let Claude look at the page off. It has 40 steps and 4 page loads.

Neither has a token limit, and neither do your own requests and plans: every call may use the model's whole output. So one pull has no ceiling of its own. What bounds all of it is the monthly spending limit.

While pulls are waiting or running, Pull queue shows a Claude cost panel:

Figure What it is
Spent so far What Claude has cost on these pulls, with the tokens. It grows as each reply is recorded, while the queue runs
Likely for the rest The pulls still to run times what Claude cost per pull over your last 200 finished pulls. Shown once at least 10 have finished
Left under your limit Your monthly spending limit less what Claude has cost this month, for all of its work and not only these pulls. This is the most Claude can still cost this month. "no limit" when you set the limit to 0

The panel covers every plan and request that still has pulls open, or only one plan when you filter the queue by plan. A line under the figures shows each pull Claude is working on now and what it has cost so far. Each pull that Claude was asked about shows its own cost, and each plan's progress line adds its total. A section two plans asked for is one pull, and its cost is counted once.

The figures use the prices of the model in use. When the price list has no price for that model, amounts show as unknown and tokens are still counted. Claude work already done on a model with no listed price shows as unknown too, or as "over" the part that was priced, and is left out of the likely figure rather than counted as free. When there is no API key, the key offers no model, or the month's limit is reached, the queue makes no Claude calls and the panel says why: a pull it cannot find stops and waits for you.

Before you approve a plan, its bottom bar says what its pulls would likely cost at the rate of your recent pulls, and what is left under the month's limit. A plan Claude drafted also says what drafting it cost. After approval the bar shows what Claude has cost on its pulls so far and what the rest will likely cost.

The monthly spending limit

Settings has one money control: Monthly spending limit for Claude, in US dollars. It starts at $200. It is a kill switch for everything Claude does:

  • Before every call to Claude, the app adds up what Claude has cost since the first of the month, by its price list. Once that reaches the limit, no call is made: not for a request, a plan, the queue's search for a page, or a look at a page.
  • A request or plan that was working stops before its next step and asks. Raise the limit, then choose Continue; it goes on where it stopped, and none of its own step allowance is used up. Stop ends it.
  • A new request or plan does not start, and says why. Typing an exact section or pasting a page address still works: those never use Claude.
  • The queue keeps pulling. A pull the app finds and reads by itself is not affected. One it cannot place stops with the same message, and nothing of its one search and one look is used up: after you raise the limit, Retry asks Claude as usual.
  • The top bar says Claude stopped at your limit, and the queue's cost panel and the New request screen say so too.

It lifts when you raise the limit and save, or when the next month begins. Set it to 0 for no limit.

What to know about it:

  • The limit is checked before each call, not during one. The call that carries the month past the limit finishes, so the month can end a little above it: by one reply. A reply that failed part-way is counted for what it had cost, and is not asked for again past the limit.
  • It is an estimate. The app prices each reply from assets/pricing.json. Your Anthropic account shows what you are charged. A model with no price in that list counts as nothing, so the limit cannot stop work on such a model. Every model CodePull chooses by itself has a price.
  • The month is the calendar month in UTC. Each of Claude's replies counts in the month it was recorded, so a request begun at the end of one month and continued in the next counts in each for what it cost there.
  • Delete all content keeps the month's usage, so it does not reset the limit.

Settings

You do not have to choose anything here. CodePull has picked a value for every setting, and the page opens showing only what is yours to give: the API key, and a spending limit you may want to change. Everything else is behind Show advanced settings, with the values CodePull chose. The app remembers whether you left that part open.

What you see first

  • Anthropic API key: save, replace, remove.
  • The model in use. One line says which Claude model CodePull uses for requests and for project plans. It chooses the newest Claude Opus your key offers, for both.
  • Monthly spending limit for Claude. $200 unless you change it; 0 to 100,000, and 0 means no limit. See The monthly spending limit.
  • This month: tokens and the estimated cost, against your limit.
  • About, described below.

Save settings saves the limit and anything you changed in the advanced part. A value outside its limits is refused in place; if it sits in the advanced part while that is hidden, the part opens so you can see it.

Advanced settings: Claude

  • Model for requests and Model for project plans. Both start at Automatic, which says which model it stands for now: the first your key offers from the list CodePull ships with (assets/models.default.json), a Claude Opus first. Pick another model from the list to use that one instead; a model you picked that your key stops offering goes back to Automatic. Refresh models asks Anthropic again which models your key can use.
  • Text sharing: Nothing from pages, Outlines (default) or Outlines and short excerpts.
  • Let Claude look at the page when CodePull cannot find a section on it. On unless you turn it off. See When the reader cannot place a section.
  • Limits for one piece of work. Tokens are not capped for anything Claude does: each call may use the model's whole output. These limits stop a request that goes in circles. When one is reached, the app stops and asks whether to continue with another allowance of the same size. They are set high enough that an ordinary request or plan never reaches one.
Limit Default Range What it means
Steps for one request 40 2 to 200 One step is one call to Claude: it reads what its tools found and decides what to do next. A quick pull usually takes 3 to 6
Steps for one project plan 60 2 to 200 A plan takes more: reading the notes, recording the facts, checking each code, then drafting
Largest plan Claude may draft 60 sections 1 to 60 The most sections Claude may put in one plan. Sections past it are left out and Claude is told which. You review every item before anything is pulled

A request also pauses to ask after 60 minutes of work. Time spent waiting for your answer does not count. The queue's own search for a page has 24 steps whatever these say, and a look at a page has 40; neither can ask, so each stops at its limit.

How hard Claude thinks is chosen for you as well, and is not a setting: high effort for a request and for the queue's search, the next level up for a project plan, and medium for each step of a look at a page. A model that does not offer a level gets the highest it does offer below it.

Advanced settings: Pulling

  • Show the account window while CodePull is pulling.
  • Capture the adopting-agency table and print it in documents, when a section has one. Off by default: the table is kept with the pull but not printed.

Advanced settings: Pacing

These apply to each account by itself. You can lower them freely. You cannot raise them past the hard limits. CodePull did not speed these up when it chose the other settings: they are what keeps an account in good standing with the site.

Setting Default Hard limit
Shortest wait between page loads 12 seconds Never less than 6
Extra random wait 0 to 8 seconds Up to 120
Most page loads in an hour 40 Never more than 120
Most page loads in a day 250 Never more than 600
Pause between sections on one page 1.5 seconds Never less than 0.5
Accounts pulling at the same time 2 Never more than 4

Advanced settings: Library

  • Days until a pull counts as stale. Zero means never. A stale pull is marked.
  • Pull a section again when the saved copy is stale. Off by default.
  • Earlier versions kept for each section. Default 3.

Advanced settings: Data and diagnostics

  • Export diagnostics saves a zip that shows what each run did. It holds no code text, nothing you typed into a request or a plan, nothing Claude wrote, no account names, no passwords and no API key; page addresses are kept without anything after a ?. Inside:

    File What it holds
    SUMMARY.md Read this first. Each plan, newest first, with every pull in it: how it ended and why, how long it worked and where that time went (waiting for pacing, loading pages, scrolling, pictures, making and checking the documents, Claude, the rest), its page loads and what Claude cost. Then why pulls needed review, counted by code, the slowest pulls, Claude's recent runs and every kind of problem logged
    runs.json The same, per plan and per pull, as data
    queue.json Every pull in the queue: its section, state, attempts, when it was queued, started and finished, and its Claude cost
    pulls.json Saved pulls: their key, the versions that made them, and what their checks came to (status, failed checks, warning codes with counts and block IDs, gaps, pages, tables printed smaller or on a landscape page). Never their text
    claude.json Claude runs: what each was for, its model, steps, working time, why it ended, tokens, cost, the tools it called and the codes of any that failed. Never the request, the transcript or the answer
    problems.json Every kind of warning and error logged, how often, when first and last, and the last one's data
    environment.json App, adapter, Electron and Chromium versions, the platform, settings, the version this one was updated from, how long it has run, each account's state and pacing, and counts
    logs.jsonl The activity log, oldest first, one JSON line each, with the pull, job, account and Claude run it is about
    README.txt What each file is

    The activity log records, for each pull: its start, each stage (finding the page, reading it, checking the documents), every page load (address, status, the wait for pacing and the load itself), the chapter pages it tried and how sure each was, the scroll through a chapter, the section read (lines and the reader's signals), the figures and review pictures saved and how long they took, the save (what the checks came to and how long the documents took) and how it ended, with how long each stage took. A pull sent back to the queue says why: paused, a site-wide stop, your window opened, the page-load limit, a search cut short or a sign-in. Claude's runs log each call (time, tokens, why it stopped, the tools called), each tool (whether it worked, its error code, its time), each wait and how the run ended. The app logs its own start (versions, the version it was updated from, pulls a crash interrupted), its stop, any error the main process or the screens did not catch (its kind, its message without quoted text, and where it was thrown, from the app's own files on), a page or a process of Chromium that crashed or stopped answering, a page load that failed and an address that was refused.

  • Delete all content deletes every pull and document, every plan, the pull queue, every request and the activity log, without a restart. It keeps your settings, your API key, your accounts with their saved passwords and sign-ins, the code lists the app has read, and this month's Claude usage. Pulls in progress stop first. You type DELETE to confirm. Files you exported elsewhere are not touched. It also removes the copies of the database made before an update (app.db.bak-<n>), which hold your pulls as they were, and the deleted text left inside the database file. A document that another program has open is reported after everything else has gone, and is removed the next time the app starts.

  • Wipe all data deletes every pull, document and plan, the activity log, your saved API key, saved site passwords and the browser sessions of all accounts, then restarts. Files you exported elsewhere are not touched. The database goes first and the app always restarts, also when a document is open in another program; that document is removed at the next start.

About

  • The CodePull version and the UpCodes reader version.
  • Check for updates asks GitHub for the latest release and says whether a newer one is out. When one is, Open download page opens its release page in your browser. See Update to a new version.
  • What leaves this computer: every kind of request the app makes, and when.

Where your data is

Everything is on your computer, in the app's data folder. On Windows that is %APPDATA%\CodePull.

What Where
Plans, the queue, the library index, the activity log app.db
Documents and the saved section trees artifacts\
Pictures of figures and equations, beside each tree, named by checksum artifacts\<year>\<pull>\images\
Pictures of the source for flagged blocks, for review in the app only artifacts\<year>\<pull>\review\
Anthropic API key, encrypted anthropic-key.bin
Saved site passwords, encrypted by the operating system, one file per account site-passwords\
Your site sign-in for each account Partitions\acct-…

The database and documents are ordinary files, protected by your Windows account and nothing more. They hold code text you are licensed to read. They hold no passwords.

There is no telemetry and no crash reporting. The app talks to UpCodes, to Anthropic when you use Claude, and to GitHub when you choose Check for updates. Nothing else. The update check is one request for the latest CodePull release. It carries the app's version number and, like any web request, your network address, and nothing about your work. It goes out only when you choose the button.

If you used an earlier version

This version opens the same data folder, so your accounts, plans, queue and library are there when it starts. Before it updates the database, the first start copies it to app.db.bak-<n> beside it, where <n> is the number of the last update the old version applied. Things to know afterwards:

  • CodePull now chooses the settings for you. The first start of this version moves an existing install to the new values, once:
    • Both models go back to Automatic, which is the newest Claude Opus your key offers. The app cannot tell a model it picked itself from one you picked, so a pick of yours is reset too. Pick it again under Show advanced settings if you want it back.
    • A step limit or plan size that still held the earlier default (14, 24 and 30) moves to the new one (40, 60 and 60). One you had changed is kept.
    • Let Claude look at the page is turned on. It was off unless you turned it on, so "off" was the earlier default and not a choice. Turn it off under Show advanced settings if you do not want screenshots of a page sent to Anthropic.
    • A monthly spending limit of $200 is set. See The monthly spending limit.
    • Pacing, text sharing, the library settings and everything else you set are left as they were.
  • There is no source-access notice any more, and no token limit anywhere. Settings from an earlier version are read without them. The queue's own calls to Claude had fixed token budgets until this version; they have none now, and the queue no longer shows an "at most" figure for a pull. The spending limit is what bounds Claude.
  • Pulls that were waiting are still waiting, each on the account it had, and run by themselves unless you had paused the queue: a paused queue stays paused.
  • Requests you made to Claude in 0.1 are closed and no longer listed. The plans they drafted are kept, and their tokens still count in the month's total. A question 0.1 was waiting on cannot be answered here. Ask again from New request.

When something goes wrong

  • A pull stopped. The pull says why and what to do. See When a pull needs attention.
  • A section that exists is "not found". Start a new request with the page address pasted in. The app remembers which chapter held it.
  • The site "has no list of codes" for a place it does list. The app reads a place's codes from up.codes/codes/<place>, with the place's words joined by an underscore as the site writes them: north_carolina, new_york, west_virginia. Every state of two words is written that way when you pick it or name it. Until the UpCodes module upcodes@2.7.1, they were joined by a hyphen (north-carolina), a page the site does not have, so no code of New Hampshire, New Jersey, New Mexico, New York, North Carolina, North Dakota, Rhode Island, South Carolina, South Dakota or West Virginia could be found. For a city or county the app does not list, open its list of codes in the account window and type the part of the address after /codes/ as the jurisdiction.
  • Every chapter of a code stops with "does not display a code title matching this edition". The code's title prints a year that is neither the one asked for nor the one in its address. Ask for the year the stop names. A code titled by the year a state adopted it, at an address that names the model code's year (North Carolina's 2024 fire code at ifc-2021), is read from upcodes@2.7.2 on: Retry its stopped pulls after updating, and Resume account if three of them stopped it.
  • The text of a pull is wrong. Do not use it. In Accounts, with that account's window on the page, choose Save page outline. It saves the page's structure with no text in it. Then use Settings → Show advanced settings → Export diagnostics. Those two files show a developer what the reader saw. Validating against the live site lists the usual causes.
  • A pull ends "Check failed". The message names the document, the page, the block and the character. Export diagnostics: SUMMARY.md shows the check, the page and the block beside the pull (for example V2 p7 b0412), logs.jsonl has a job.blocked line for that pull with the same details under checks, and queue.json gives every pull's ID so a log line can be matched to it. None of it holds code text.
  • A run was slow, or a pull took far longer than the others. Export diagnostics and open SUMMARY.md. Each pull's time is split into waiting for pacing, loading pages, scrolling, pictures, making and checking the documents, Claude and the rest. Time waiting for pacing is CodePull keeping to your pacing settings, not a fault. Long loading is the site or the connection. Long scrolling is a chapter that loads as it is read. Long pictures is a chapter with many figures, or figures the page was slow to send. "Requeued" in the notes says the pull went back to the queue, and why.
  • The app closed by itself, or a screen said it could not be shown. Export diagnostics after you start it again. The activity log keeps the error (its kind, its message without quoted text, and where in the app's own files it was thrown) and which part of Chromium went away. They are under Problems in SUMMARY.md.
  • Lines like handshake failed … net_error -202 in the terminal. Chromium prints these when you start the app from a terminal. -202 means a server presented a certificate that the machine does not trust. The page itself loaded, so it is some other host the page asks for: typically an advertising or analytics host that a company firewall, a DNS filter or security software answers in place of, with a certificate of its own. CodePull refuses such a connection, as a browser does, and never works around it. To see which hosts they are, export diagnostics and look for page.requests_failed in logs.jsonl: each entry gives the host, the error and the kind of resource (never a path). If the kind is image and the host is one the code's own figures come from, those figures arrive as gaps; ask whoever runs the network to trust or allow that host.
  • Sign-in is not noticed. Open UpCodes' home page in the account window and wait a few seconds for the toolbar to say you are signed in. If it does not, open the site's user menu, leave it open for a few seconds, and choose Done. The Accounts screen shows the result and the reason. Once the sign-in is noticed it stays noticed: a later check on a code page, which holds no proof either way, does not take it back.
  • A screen says it could not be shown. Nothing was changed. Choose Try again, or go to another screen: the others keep working. The error is already in the activity log, with the screen and where it was thrown. If it comes back, use Settings → Show advanced settings → Export diagnostics.
  • Start over. Settings → Show advanced settings → Delete all content clears the library, plans, queue and requests and keeps your settings and sign-ins. Wipe all data removes everything, sign-ins and key included.

Build, test and package

npm run build        # compile the main process and the screens
npm test             # unit tests
npm run test:app     # the app checks, in real Chromium
npm run test:all     # all of the above
npm run format:check # formatting, as CI runs it

On Linux without a display, run the app checks as xvfb-run -a npm run test:app. To run only some of the fidelity checks, name words from their names: CODEPULL_CHECKS="still loading" npm run test:fidelity.

The app checks never touch the network. They run against a synthetic code site built into the tests, with invented text, and against a recorded Claude.

Check What it proves
npm run smoke The app starts, the screens mount, the database and key storage work
npm run test:golden Documents made from the sample match the reference layout
npm run test:browser The page reader: headings, lists, tables, amendments, gaps, selection, session and stop detection, navigation rules, two accounts kept apart, and a code's contents in order, with entries that have no page
npm run test:automation Pulls through the queue: a sign-in noticed while the page it lands on is still loading a picture, and kept through checks on code pages; finding pages, pacing, chapter reuse, every stop, signing in again with a saved password (also on a sign-in page still loading a slow picture, and stopping on a refused password, a verification code or a repeat sign-out), capture by hand, a whole code chapter by chapter with its chapter index (an annex the contents list with no page included), crash recovery
npm run test:batch Twenty sections on one account, paused and closed twice mid-run, and a combined PDF of all twenty
npm run test:visual The screenshot fallback with a recorded Claude: numbered marks, refused links, a linked chapter, a wrong start refused by the reader, the pull saved for review
npm run test:workflow The whole product with a recorded Claude: request, question, project plan, approval, cross-references, bundle and its combined PDF, a reissue pass that loads no page, library pulls combined into one PDF and into a folder (order, records, the same bytes twice, a name that cannot become a path), and deleting all content while the key, settings, accounts and sign-ins stay
npm run test:review The screens, including saving and forgetting a password, ticking library pulls (Shift ranges, ticks kept through a search) and combining them (code order, a subsection flagged inside its section, a row moved by hand, the saved file), pulling a library row again (it waits in place, a second request queues nothing more, Undo takes it back out, the sample offers none), the screenshot-fallback switch, a whole code drafted with its estimate, the home lists folded and cleared, the brand and breadcrumb leading home, and checking for updates against a recorded GitHub (a check that cannot connect, the latest version, a newer release and its download page)
npm run test:fidelity What the page prints is what the documents print: the formatting checklist, keep-with-next pagination (equations kept with their "For SI:" and "where" lines), figures and equations as pictures (never with a fixed bar drawn over them), whole chapters and appendices, pages that load as they are scrolled (and one that takes text away, refused), a page read while a slow picture is still arriving (a section waiting only for its own picture, and a new load during capture stopping the pull), reproducible documents and a reissue pass, review pictures, site chrome inside a section, table cell alignment, wide, long and spanned tables, characters that print nothing (soft hyphens in table cells and captions among them, also in a tree read before they were left out), a picture taller than a page printed whole on one, a chapter with no numbered sections read to its end, a chapter that reads as its heading alone never saved as a clean pull, and a page's failed requests recorded by host. Each document is read back: the PDF with pdf.js (fonts, sizes, positions), the Word file as XML

Every rule in What it never does has a test named for it. Search test/ for rule_R.

Make an installer

npm run package

On Windows this writes release\CodePull-Setup-<version>-x64.exe. The installer is not code-signed, so Windows SmartScreen will warn the first time you run it. npm run package:dir makes an unpacked build without an installer. npm run package:mac and npm run package:linux do the same on those systems.

How the code is organized

Folder What is in it
src/main Start-up, the operations the screens can call, the library and bundles, saved site passwords, the activity log and the diagnostics export, the update check
src/ui The screens. They have no network access and no file access
src/browser Account windows, navigation rules, pacing
src/sites The contract a code site must meet, and the UpCodes module
src/extract The page reader, the builder that turns lines into a section tree, and the screenshot marks
src/document The section tree, PDF and Word rendering (pictures, fitted tables, keep-with-next), verification, reproducible output, the combined PDF of a bundle or of pulls from the library
src/pull The pull procedure: find the page, read, verify, stage; a reserved chapter ends here with no document
src/queue The scheduler
src/agent The Claude tool loop: prompts, tools, limits, safety checks, and the screenshot fallback's navigator
src/db The database and its migrations
assets The system prompt, site notes, model preferences, price list
test Unit tests, app checks, the synthetic site
docs Architecture, decisions, site access, validation, user guide

Further reading:

What is not built

Each of these is optional or later work in the plan this app was built from.

Not built What happens instead
A picture of the source beside every block of every pull Pictures are kept only for blocks a check flags. For the rest, compare with the page yourself. The source address is one click away
A figure taller or wider than the account window It stays a gap. Capture by hand with the window enlarged, or compare with the page
Reading a page that keeps only a window of itself, taking text away as more arrives The pull stops and says so. Pull a smaller part, or capture it by hand
Automatic updates Settings → About → Check for updates says when a newer version is out and opens its download page. Downloading and running the installer is yours to do: the installer is not signed, so the app does not install anything by itself, and it never checks unless you ask
A signed installer Windows SmartScreen warns the first time. Signing needs a code-signing certificate bought in your name or your company's
One Word file of combined pulls Combine into one PDF… makes one PDF. Its A folder choice holds each section's Word document, one per section
Saved selections of library pulls Tick the pulls again, or put the sections in a plan, which keeps them together and can be exported again
Encryption of the library Files are protected by your operating-system account
Web search or web fetch for Claude Claude works from the site's own list of codes and each code's contents, which say what is adopted and where a section is printed. It cannot open an address, and nothing from the open web enters a request. See decision 11
A cost ceiling for one pull No call to Claude has a token limit, so one pull has none. The monthly spending limit bounds all of Claude's work
A second code site The contract is in place. See Adding a code site

About

A local desktop workspace for planning, capturing, and verifying building-code pulls in PDF and Word.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages