Plain Text Accounting

(plaintextaccounting.org)

194 points | by saikatsg 1 day ago

25 comments

  • nickjj 1 day ago
    This isn't covered in detail on that page (but it's mentioned), but I do plain text accounting with https://github.com/nickjj/plutus.

    It's a single file Python script that lets you fully manage how you track income and expenses on the command line as well as generate reports from your data. It supports importing CSVs in a general way so you can import bank CSV exports or anything you'd like. It also supports manual entry with a bunch of quality of life things to help validate / lint your data.

    Unlike Ledger and other tools, Plutus uses a CSV file as its source of truth so it's portable and can be used in other tools if you want.

    I use it to help file my taxes every year, it takes me literally 15 minutes once a year to have the final numbers with a complete breakdown of business income, business expenses and personal expenses. I import CSVs from multiple sources.

    It's 100% hand coded and can generate a full report on 100,000 items in ~500ms on 12 year old hardware.

    I used to use GnuCash for ~10 years but replaced it with Plutus. I also imported everything from GnuCash and ran the same reports, everything lined up to the cent. There's also an extensive test suite and a way to play around with the tool using auto-generated demo data.

    The readme has more details along with a demo video.

  • mauvehaus 1 day ago
    A lot of discussion about using AI for this. I'm not really sure I see the point of that. I used Quickbooks desktop and Freshbooks prior to switching to hledger, and the whole appeal of using hledger has been that I understand everything that's happening.

    My business admittedly has very simple books (a checking account, a Visa, some vendors and clients), but I can explain everything from the transaction import process through to the reports. The whole thing was pretty opaque to me when I was using QB and Freshbooks.

    hledger has really good tools for importing transactions from CSV files from your bank, by the way. If you can download those, you can probably write a rules file to import the transactions into journal files. I don't see a huge upside to having an LLM guess my intentions in light of this.

    hledger also lets you set up balance assertions. I pull my monthly statement balance, and set one that on the date of the statement closing, hledger's balance for my bank accounts is equal to my statement balance. Transfers between bank accounts (paying the Visa bill) go through a couple synthetic accounts, and I have balance asssertions set up to ensure a zero balance in those at the end of the year.

    I spent maybe half a week setting things up from scratch last January, and keeping things up to date monthly now takes about 10-15 minutes depending on how many checks I've had to deal with. Those don't come with enough information in the CSV files to categorize/annotate them automatically.

    All my orchestration is via Makefile. It's honestly painless at this point.

    • NoboruWataya 1 day ago
      > hledger has really good tools for importing transactions from CSV files from your bank, by the way. If you can download those, you can probably write a rules file to import the transactions into journal files. I don't see a huge upside to having an LLM guess my intentions in light of this.

      The biggest challenge in my experience is allocating transactions to the correct income or expense accounts, and I assume that's what people are using AI for. It's the most time consuming part of the process for me and the basic importer tools I have seen haven't solved it perfectly.

      It may not be an issue for you depending on how granular your accounts are (and indeed some people probably make like hard for themselves by insisting on too much granularity).

      • simonmic 1 day ago
        Do you have many new payees every month, so that there's a constant need for many rules updates ?

        Various addons/UIs have tried to make this easier. Just FYI there's a rather sophisticated one in the recently announced https://forum.plaintextaccounting.org/t/ledgeline-a-featuref...

        • mauvehaus 1 day ago
          I average about one new payee or MCC a month. Mostly it's stuff that goes to expenses:COGS, so it's not a heavy lift. This year I got to add both taxidermy suppliers and swimming pool suppliers, though I'm neither a taxidermist nor do I own or service pools as part of my business.

          I default my expenses into expenses:UNKNOWN and have a balance assertion for the end of the year that that account is zero to ensure that I'm categorizing everything. Payees that I can't categorize by the vendor name or MCC, I skip and handle manually. Amazon, for instance, could be literally almost any expense category.

  • NoboruWataya 1 day ago
    The problem with using (non-local) LLMs for PTA is that you end up sending all of your financial data to Anthropic/OpenAI, which is a privacy nightmare. A good local model would of course solve this and in theory you shouldn't need too beefy a model to categorise your financial transactions, but I haven't spent much time playing around with them (would be happy to receive recommendations for small models).

    The `smart_importer` plugin already gives you a way to automatically guess at the appropriate accounts for transactions (based, I assume, on some old pre-LLM machine learning or similar). It's okay but quickly falls apart on transactions that don't look extremely similar to past ones.

    Manual journaling (with help from `smart_importer`) isn't so bad if you keep it up regularly. You need to appreciate the process though. It can feel like a real chore downloading, importing and categorising all of your transactions but at the same time it's probably no bad thing to review your finances like that occasionally.

    Personally I moved to beancount from GnuCash which I used for years. Mainly to have more flexibility to use my own scripts, etc. It takes a bit more work to set up but have had no issues since.

    • CamperBob2 1 day ago
      A good local model would of course solve this and in theory you shouldn't need too beefy a model to categorise your financial transactions, but I haven't spent much time playing around with them (would be happy to receive recommendations for small models).

      One anecdote, for what it's worth: I tried to get Opus to handle my bookkeeping via Claude Code for the last quarter. It was clear that the model itself was capable of doing the work, much of which consisted of classifying transactions based on historical patterns in my existing files, but getting it to access my bank's website and download the .csv files was a huge exercise in frustration. There were lots of tripwires, guardrails, and artificial limitations surrounding web access through Chrome that made it impossible to build any sort of fire-and-forget solution.

      I might have been able to hack around them, but my assumption was that any hacks that work this quarter probably won't work next quarter. It's clear that Anthropic considers my choice of workflow as a bug to be fixed.

      Ultimately I configured CC to use a local instance of DeepSeek 4.1 Flash 1017, and it sailed right through the task from downloading the files to reconciling the balance. A separate session with Astra confirmed that it stayed on track (or at least that both of them made the same mistakes.) All of the limitations were on the model side, rather than being baked into the harness as I was afraid they might be.

      Again, just an N=1 anecdote, but I was quite happy with the performance of the DS4.1+CC combination in this case. I didn't try any models smaller than that.

  • zmre 18 hours ago
    I wrote a GUI for hledger's plain text accounting and it might be a good way for some people to dip their toes in: https://github.com/zmre/ledgeline/

    And for those complaining about signs versus debit/credit columns: Ledgeline has a display mode to make that friendly for you. Switch back and forth with hledger or text editors or the million add-on tools for your specific needs.

    • simonmic 14 hours ago
      I can recommend this one, it's new but very impressive.
  • robinvdvleuten 1 day ago
    I've been using plain text accounting for years! But always struggled to get my bank statements imported correctly while using the Python beancount libary, so I built my own based on Go :) https://github.com/robinvdvleuten/beancount
  • rmuratov 1 day ago
    PTA is great, especially with AI agents. I use hledger, which has deterministic checks like balance assertions. And AI agents are good at investigating discrepancies and fixing the underlying entries until those checks pass.

    And if your bank doesn’t offer a way to access your transactions programmatically, you can just throw a PDF at the agent or use something like Chrome DevTools MCP to let it read the transactions from your online banking portal. And you can set things up so that AI providers never see your actual data.

    • giltotherescue 1 day ago
      This is how I do it too. The agent is great at hunting down why the numbers are off. But I want plain code to do the checking, so the agent can't just make the numbers fit. I built a free, open-source tool for this called Slashbooks. Your books stay in files on your own computer. It has a /books plugin for Claude Code, Cowork and Codex. https://github.com/giltotherescue/slashbooks
    • wodenokoto 1 day ago
      While I do a lot with agents I’m not sure I’m ready to give OpenAI or Anthropic my entire banking history.
    • BeetleB 1 day ago
      > which has deterministic checks like balance assertions. And AI agents are good at investigating discrepancies and fixing the underlying entries until those checks pass.

      If your financial books are invalid, it really behooves you to figure out why. Delegating to a 3rd party is a bad idea - you're effectively throwing away the checks and balances.

  • inanutshellus 1 day ago
    I'm not interested in connecting my finances to an LLM, but I'm happy to use an LLM-developed app or to use an LLM to keep an app up-to-date with current laws.

    I've done my own taxes for years, but this year I'm running an LLC (S-Corp technically) for the first time, so I'm considering how to scale up and do my own taxes with this whole new "self employed" concept.

    I've seen a couple tax projects on github but I haven't yet gone and done my own taxes as a business owner yet.

    Have any of you?

    --

    https://github.com/emmilco/us-tax-model (via https://news.ycombinator.com/item?id=50275626) “Publicly available tax calculators (PolicyEngine, UsTaxes, OpenTaxSolver, etc.) are used to cross check derived numbers from this system”

    https://github.com/IRS-Public/direct-file https://github.com/IRS-Public/fact-graph

    https://github.com/column-tax/tax-calc-bench

    • SenHeng 1 day ago
      Be careful, wanting to learn how to do my taxes was the rabbit hole that lead me to career switch to accounting.
  • probably_wrong 1 day ago
    A question I haven't found an answer for yet: how do I enter the food I bought into such a system? Is a hot-dog an asset that depreciates when I eat it later tonight?
    • thesuitonym 1 day ago
      If you buy a hotdog for $3.00 (I have no idea how much as street hotdog costs, but that's about the price of a gas station dawg) you record the money as going to your hot dog account. Most people don't get that granular, so you might put it on your Meals & Entertainment account, or Lunches, or just Food.

      You do not record the inventory because a hotdog is not an asset. Even if it was, you should record your assets separately.

      • probably_wrong 1 day ago
        Your suggestion makes sense to me, but it raises a question: if hackers destroy my fridge and I want insurance to pay for the damages, I would have no way to record that because the money was already gone unless a "spoiled food" debt materializes for food I don't have. Is that correct?

        I know that theory and practice tend to disagree, and I imagine this is one of those cases.

        • thesuitonym 1 day ago
          Setting aside that there's no good reason to have your refrigerator connected to the internet...

          This is really a question for your insurance agent but typically there is a clause in your renters or homeowners policy for spoiled food in the event of a power outage (Not sure how that would apply to a fridge being hacked...) that just gives you a specific payout to replace your food. It's been a while since I reviewed my policy, but I believe I get $500 to replace the food, and I do not have to prove what was in there, just that the power outage happened.

        • drdexebtjl 1 day ago
          Open a new account Assets:Fridge:2026-12-04-Hotdog with the value of the hotdog in cash. If you eat half of it, decrease its balance in half (and send the money to an Expenses:Food account). When you eat all of it, close the account.

          That way if hackers destroy your fridge, you can find your total losses by querying for the Assets:Fridge sub-accounts, itemized.

          I wouldn’t track food — there are better apps for this — but you can apply the same concepts for other non-fungible things.

      • PopAlongKid 22 hours ago
        The question was not about a hot dog purchased for immediate consumption. If you buy a package of 6 or 8 hotdogs to put in your refrigerator, those are most definitely a form of asset (inventory), because as I said elsewhere, you might well buy the hot dog in one accounting period but not consume it until the next.
        • evolve2k 6 hours ago
          Accounting is a much older information system than personal computer era, and treatment for the question you ask is well established for many decades now within the accounting professional and through what are knows as generally agreed accounting standards.

          A couple of rules of thumb; to be an asset generally it needs to be expensive (more than a few hundred dollars) and generally to be useful and usable ongoing for more than a year.

          A hotdog or even pack of hotdogs are neither so are not assets.

          To be inventory they need to be core items you are on selling. Many entities buy computers (which generally are treated as an asset), a computer retail store however buys computers for the purpose of on selling them. Computers for on selling are treated as purchases and are tracked as inventory. Computers the same business purchases (or even pulls out of stock) are instead classified as assets for normal use.

          In short your hotdogs are either private use and have no place being recorded in your accounting records or are essentially an expense; the examples of meals or food or staff amenities come to mind as common expense categories you might use depending on what matters to you.

        • a-priori 20 hours ago
          It depends what you want to do with the data. You could account for "how many hot dogs do I have?" with hot dogs being an asset category, and then do accrual based accounting to model hot dogs receivable and payable.

          But generally you would just charge the expense when the groceries are bought at the store.

    • PopAlongKid 1 day ago
      The hot dog is more like an inventory item. You might purchase it in one accounting period but not consume it until the next. And you typically do not track each hot dog as a unique item (they are fungible).
      • c-linkage 1 day ago
        I would track each hot dog if they were serialized. :D
        • EvanAnderson 1 day ago
          From a foodborne illness perspective tracking the lot numbers isn't unreasonable. (That's crazy for a home-use case but perfectly applicable in an institutional or commercial setting. Traceability for food recalls is done this way.)
    • tanin 5 hours ago
      Dr.HotDog.Cr.Cash for $3
    • simonmic 22 hours ago
      You could record it as an expense when you buy it, and not keep track of uneaten hot dogs.

          2026-12-01 buy a pack of 6 hot dogs
              assets:cash                     -12
              expenses:food                    12
      
      But if you want to keep track of them, you would record them as a prepaid asset. When you eat them, that becomes an expense.

          2026-12-01 buy a pack of 6 hot dogs
              assets:cash                     -12
              assets:prepaid:hot dogs          12
      
          2026-12-02 eat two
              assets:prepaid:hot dogs          -4
              expenses:food                     4
      
      Depreciation is something different: it would be like the gradual loss of value each day as stored hot dogs lose their freshness. Except it's for long term assets, like a car or office equipment. Hot dogs don't depreciate, they spoil.

          2026-12-10 two hot dogs went bad, thrown out
              assets:prepaid:hot dogs          -4
              expenses:food:spoilage            4
      
      You could also track the hot dogs themselves, and perhaps their location (inventory tracking), in parallel with the money.

          2026-12-01 buy a pack of 6 hot dogs
              assets:cash                     $-12
              expenses:food                    $12
              hotdogs:store             -6 hotdogs
              hotdogs:pantry             6 hotdogs
      
          2026-12-02 eat two
              hotdogs:pantry            -2 hotdogs
              hotdogs:eaten              2 hotdogs
      
      Or you could mix the two, tracking hot dogs and their money cost, converting between them as appropriate (and using -B at report time for a money report):

          2026-12-01 buy a pack of 6 hot dogs
              assets:cash                     $-12
              assets:pantry              6 hotdogs @ $2
      
          2026-12-02 eat two
              assets:pantry             -2 hotdogs @ $2
              expenses:food                     $4
      
      which is equivalent to pure double entry bookkeeping entries like these:

          2026-12-01 buy a pack of 6 hot dogs
              assets:pantry              6 hotdogs
              equity:conversion         -6 hotdogs
              equity:conversion        $12
              assets:cash             $-12
          
          2026-12-02 eat two
              assets:pantry             -2 hotdogs
              equity:conversion          2 hotdogs
              equity:conversion        $-4
              expenses:food             $4
      
      Summary:

      * Expense at purchase: simplest, with one entry and nothing to track afterwards.

      * Prepaid asset: your books show what the uneaten food cost, and each hot dog becomes an expense when you actually eat it.

      * Spoilage: waste shows up separately, instead of looking like you ate it.

      * Parallel inventory: you know how many you have, and where, without complicating the money accounts.

      * Mixed: one set of accounts answers both "how many?" and "what are they worth?". A money-only report needs a report flag.

      * Conversion postings: conventional entry which any accounting system understands, and the accounting equation stays balanced. A money-only report needs report flags.

  • SOLAR_FIELDS 18 hours ago
    I've been running my business books on beancount for over a year now with no issues. I spend an hour or so every month on invoices and reconciliation with the help of Claude. Not a complex business but dozens of transactions and a couple of contractor payments. Most of that time is the manual money movement stuff I have to invoke myself
  • doug_durham 1 day ago
    The intro to BeanCount written by the author of the program was horrible. It claims that it is written from a Computer Scientist's point of view and that it will explain the benefits of double-entry accounting. It never does. The message I came away with was that single-entry accounting can be the same as double entry as long as the the same metadata is collected. I know that not what the author intended, but they never explained the benefits.
  • fotis_kp 1 day ago
    I discovered beancount a couple of years ago and really like the concept of plain text accounting. I wanted to do a first real rust project so I wrote my own software for doing double entry accounting called Sou: https://github.com/fotisk07/sou

    I have been using it for a while to handle my personal financial life and absolutely love it

  • supersrdjan 1 day ago
    Excellent. I love the idea but I was never able to keep up with the journaling. I will now have Claude make me a Telegram bot to whom I can send pictures of bills and yadda yadda in the end everything will land as a beancount transaction in a file in my computer. And finally I will become the master of my money.
    • BeetleB 1 day ago
      I actually do send pictures of my receipts to a Telegram bot to save to a file locally. A separate program to enter it into my finance SW. Not automatically - I review each transaction (OCR isn't perfect!)
  • durdn 1 day ago
    big fan. I moved all my finances to hledger a few years back and it's been amazing. LLMs wrote parsers for all my banking services and now everything is imported to the cent into ledgers that are updated every month.
  • handelaar 1 day ago
    How many pages on this site would I have to randomly choose to click on and read before it actually shows me whatever the hell it does? I gave up after four.
    • simonmic 1 day ago
      Useful feedback, thanks. The https://ledger-cli.org and https://hledger.org pages do better at this.
      • simonmic 14 hours ago
        (One of these days I'll make time to give the site a refresh. And help is welcome of course.)
      • mauvehaus 1 day ago
        Thank you tons for hledger. It's been an absolute game-changer for me. I'll have my financial statements for my business ready for our accountant this year before we get our W-2's.
    • Nzen 1 day ago
      I agree, lots of PTA articles focus on the onboarding, like many introductions to programming can't assume that we are comfortable with a variable. If you add trasactions to ledger, you can produce, for example, a balance report [0]. In my state, I'm obliged to pay sales tax for out of state purchases that did not collect it on my behalf. A balance sheet of the (virtual) account for expenses-that-lacked-sales-tax sums up the total at the end of the financial year for me.

      [0] https://ledger-cli.org/doc/ledger3.html#Balance-Reports

      I think that beancount can provide this graphically. As an example of what this could look like, beanhub presents a nice ui [1] for similar information.

      [1] https://app.beanhub.io/repos/beanhub/example/balance-sheet I'll grant that I don't use beanhub, as it wants to be a subscription service at too high a rate for me.

    • BeetleB 1 day ago
      Right on top of the page: "What is Plain Text Accounting ?"
  • BeetleB 1 day ago
    The submission barely mentions AI, and yet so many comments here are about LLMs/AI.

    Why? The bulk of plain text accounting users likely don't use AI in their finance workflow.

    • cocoto 1 day ago
      This can be explained mostly by the fact that PTA software is already well known from the HN audience (many posts on HN in the past years), so the point of another HN post is to talk about it with the current trending tech (LLMs and agents), and how the usages are different than in the past.
    • ghewgill 1 day ago
      I had the same thought. This is not an AI related submission, but the current hype environment seems to somehow make everything be about AI.

      I have been using Beancount for years, and as with some other posters I have built up my own tools to help with maintaining my accounts. No LLMs were involved.

    • NoboruWataya 1 day ago
      My recent experience of HN is that pretty much every discussion is now about AI. It's sad.

      That said, if you look at the PTA or beancount subreddits, there are a lot of vibecoded PTA apps out there. And people are probably interested in the role AI can play in auto categorisation of transactions.

  • cube00 1 day ago
    I can't imagine what my accountant thinks when they get my bunch of .txt files each year.
    • mauvehaus 1 day ago
      I keep the books for my small business with hledger. I give my accountant an income statement and a balance sheet, and he's had no trouble turning that into a Schedule C for me.
      • EvanAnderson 1 day ago
        This. As long as you can generate GAAP-style financial statements any competent accountant can generate tax returns. I supplement mine with some esoterica about accounts receivable and receipts for various municipalities because municipal tax bullshit, but aside from that my accountants have generated tax return reliably and accurately from my completely custom bookkeeping app because the API for accountants is financial statements.
      • cube00 1 day ago
        I give mine all my deductions and receipts, I feel better knowing they've at least glanced at them.
        • mauvehaus 1 day ago
          I hear where you're coming from, but if I ever get audited, I'm pretty sure it'll be at most 15 minutes before they realize that I'm far too dumb to be hiding anything and the numbers are too small to make it worth my while to try.

          I'm sure the IRS doesn't actually work that way, but still.

    • thesuitonym 1 day ago
      Depends on how much you want to give your accountant, and what ledger you're using, but it's pretty easy with most of them to convert to a quickbooks export.
    • onefiftymike 1 day ago
      I use Gnucash, I just send the basic financial statements and a csv dump of ALL the transactions for her to put into excel and do accountant things with. Overall it isn't much different than quickbooks on my end. Except for the amazing fact of not dealing with Quickbooks!
  • juped 1 day ago
    This has always followed the fallacy that credits are secretly negative numbers, slapping negative signs all over the place, which really just fundamentally doesn't get accounting at all.
    • mauvehaus 1 day ago
      Can you elaborate? As near as I can tell (not an accountant) it just changes the fundamental equation of accounting from A = L + E to A + L + E = 0.

      My accountant has no trouble taking the reports I give him at the end of the year and doing my Schedule C.

      • PopAlongKid 1 day ago
        > changes the fundamental equation of accounting from A = L + E to A + L + E = 0

        The second equation is useless for accounting purposes. A negative liability is not the same as a positive liability. We need to know that all the assets can be allocated, to the penny, to liabilities and equity, and vice versa, which is what the fundamental equation states.

        • mauvehaus 1 day ago
          I'm not seeing how PTA's formulation of the equation doesn't satisfy that requirement. Can you please give an example of a situation that satisfies that equation, but doesn't allow us to allocate assets appropriately?

          I'm sorry if I'm dense about this. I really shouldn't be; I'm related to a bunch of accountants, but went in a different direction in my life.

          • EvanAnderson 1 day ago
            Using positive/negative numbers in place of debits and credits can yield the right numbers, but traditional double-entry bookkeeping doesn't work that way. Doing it differently than the traditional method obscures some nuance.

            There's a concept of "contra-" accounts that have their entries expressed in negative numbers. A quick example: You sell bonds to capitalize your business, resulting in a debit to cash (money you have) and a credit to a liability (money you owe somebody else). You sell some of the bonds at a discount. Traditionally that would be tracked as a debit to cash, a credit to the liability, and a negative credit to a contra-liability account to track the discount. The transaction balances to zero but the discount is exposed for managerial purposes instead of just disappearing into the transaction.

            I find it helpful to remember that a function of the design of the chart of accounts is to summarize transactions at level that removes detail to a level that expresses the bare minimum for managerial and tax purposes. You could manage the business at a level of individual transactions but it would be unwieldy. Likewise, you could collapse the chart of accounts into five high-level asset, liability, credit, revenue, and expense accounts. Neither gives you the detail necessary to produce actionable financial statements for any purpose.

            I suppose it's somewhat analagous to database schema design.

            My usual rant when bookkeeping comes up:

            A basic knowledge of bookkeeping and accounting terminology can confer near "super powers" when it comes to dealing with finance people. It's easy to learn and worth the time.

            Double-entry bookkeeping is one of the oldest and longest-practiced "IT" disciplines. All our work in IT likely touches revenue / expenses for our employers. Someday many of us need to interface with accounting or finance people. Being able to speak the language, even poorly, has helped me gain trust and credibility that I don't believe speaking only in IT terms would have.

            Edit: Got off mobile.

            • simonmic 1 day ago
              Some of the past discussions of this can be found starting at https://plaintextaccounting.org/FAQ#where-are-debits-and-cre...

              In most (not all) current PTA systems, "Dr" (debit) is written as "" or "+", "Cr" (credit) is written as "-". In this case it's true that that a contra-debit or contra-credit is not a first class concept (because "Dr 1" and "Cr -1" are both written as "1"). Though, hledger can detect it from context, because it knows what is the normal sign for each account type.

              As I understand it, contra-debit/credit wasn't a concept in traditional double entry bookkeeping either, or at least, it wasn't written with minus signs ?

              In all this time we hadn't seen a good concrete example yet. This might be a good one - I can't follow it right now, but bookmarked it for study - thank you.

              PTA is not religious about this sign thing, but we can at least say in practice it does seem to work extremely well for many people with a wide range of accounting needs.

              • EvanAnderson 1 day ago
                > As I understand it, contra-credit/debit wasn't a concept in traditional double entry bookkeeping either, or at least, it wasn't written with minus signs?

                I learned contra-debit/credit with negative (written surrounded in parenthesis) in 200-level accounting in about 2002. I don't know when that parlance entered the bookkeeping lexicon. (History of double-entry bookkeeping is vaguely interesting to me but it's nothing I've pursued with determination.)

                > In all this time we hadn't seen a good concrete example yet. This might be a good one - I can't follow it right now, but bookmarked it for study - thank you.

                Glad I could come up with something. In general, my take was that contra accounts exist to keep details visible that otherwise would collapse into transactions and not be visible in a managerial view. Look for contra-asset accounts like "Allowance for Delinquent Accounts" as another example. Purchase discounts as a contra-expense are another place you might look for examples.

                > PTA is not religious about this sign thing, but we can at least say in practice it does seem to work extremely well for many people with a wide range of accounting needs.

                Agreed. At the end of it all of this bookkeeping is just about making the right numbers available to properly pay taxes, manage how a company is run, and provide investors with the right tools to evaluate a company.

              • simonmic 1 day ago
                Following up.. here's how a PTA user might model your example:

                    2026-01-01 issue bonds, face value 1000, sold at a 5% discount
                        liabilities:bonds payable                   -1000
                        liabilities:bonds payable:discount             50
                        assets:cash                                   950
                
                    2026-12-31 amortise part of the discount as interest expense
                        liabilities:bonds payable:discount            -10
                        expenses:interest                              10
                
                    $ hledger bs
                    Balance Sheet 2026-12-31
                
                                                        || 2026-12-31 
                    ====================================++============
                     Assets                             ||            
                    ------------------------------------++------------
                     assets:cash                        ||        950 
                    ------------------------------------++------------
                                                        ||        950 
                    ====================================++============
                     Liabilities                        ||            
                    ------------------------------------++------------
                     liabilities:bonds payable          ||       1000 
                     liabilities:bonds payable:discount ||        -40 
                    ------------------------------------++------------
                                                        ||        960 
                    ...
                
                (This particular report shows all the liability signs flipped, for presentation purposes. The discount balance is 40 internally, but displayed as -40.)

                Like your example, mine uses a separate contra account for the discount. The only difference is notation: where you'd write a negative credit, we write a positive amount (in effect a debit). But essentially no information has been lost; the report still comes out right.

                This PTA app does not track "contra" as a first class property of either the amount or the account. Though, it's evident that the discount balance is contra because it has the opposite sign to the norm for a liability account. This app doesn't enforce that automatically, but we could, by declaring a rule:

                    assert none daily  'liabilities:bonds payable:discount' balance:<0
                
                (the rule tests the internal balance, +40 here, not the sign-flipped display balance, so <0 would catch a wrong balance.)

                Accounting knowledge still matters; recording a bond discount correctly requires knowing that the discount exists, how it's amortized etc. Signed numbers alone don't supply that knowledge, but nor do Dr/Cr columns I think.

                • EvanAnderson 1 day ago
                  The example looks reasonable to me. It captures the business event in a way that can be reported and that's ultimately what matters.
            • mauvehaus 1 day ago
              Thanks; I'll do some reading when I'm also back on a real computer.

              Also edit: that's a super helpful example, and if I could upvote you more than once, I would. Thank you! My business will never be complicated enough that I'm selling bonds, but I can appreciate the argument.

              • EvanAnderson 1 day ago
                100 and 200-level accounting classes at my community college back in my 20s are the best money I ever spent in my business education. Certainly the highest ROI. The concepts scale up and down to the largest and smallest businesses. Being the only "IT person" in the room who can talk a credible bookkeeping / accounting / finance game garners you immediate credibility with finance-types.
          • PopAlongKid 1 day ago
            OK, I retract my claim about the accounting equation. In the end, it really just comes down to reasonable presentation[0]. If all credits are treated as negative numbers, you end up with negative equity and negative liability, which is contrary to common sense. With traditional double-entry, you have to deal with remembering up front which credits are plus and which are minus; with the "credit is always negative" approach, you have to deal in the end with explaining to a layperson why you are showing them that their ownership interest in the entity is showing as a loss.

            Here is a simple illustration. Under tradition double-entry, we have the following rules as to how debits and credits affect each type of account:

              Account type    Debit       Credit
              --------------------------------------  
              Asset           Increase    Decrease
              Liability       Decrease    Increase
              Equity          Decrease    Increase
              Income          Decrease    Increase
              Expense         Increase    Decrease
            
            If we have the following three transactions, we end up with a balance sheet that obeys the fundamental accounting equation:

            Transactions

              Paycheck
              Cash            50
              Wage                       50 
            
              Cash advance   
              Cash            50    
              Credit card                 50 
            
              Purchase
              Cash                        25 
              Food            25 
            
            Balance Sheet

              Asset (Cash)         50+50-25 =75
              Equity (Wage-Food)   50-25    =25
              Liability (CC)       50       =50
            
            However, if we force all credits to be decreases, we find that we change Liability, Equity, and Income treatment, but since they all are on the right hand side of the accounting equation, the effect is simply to make that negative instead of positive:

            Balance Sheet if all credits are negative:

              Asset (Cash)         50+50-25 =75
              Equity (Wage-Food)   -50+25   =-25
              Liability (CC)       -50      =-50
            
            
            [0] Or as stated in another link in this sub-thread, "You can get used to reading these signed-number reports in a day or two. " YMMV.
            • simonmic 23 hours ago
              You don't have to read reports with PTA's signed-number convention - the one I posted above shows normal-human-friendly signs.
  • matheusmoreira 1 day ago
    Tried this before AI and it's amazing. Stopped using it because I got way too obssessed with adding as much data as possible to the journal. LLMs are probably the cure for this.
    • vibebingo 1 day ago
      Plus just get claude browser extension to "sort my finances" and it can navigate your bank do the exports and pump out some charts etc.
  • dugmartin 1 day ago
    I've been working on "productizing" the double entry plaintext system I've used for years for both my personal and business accounts. The plaintext itself is just the storage format with a full UI for users. It differs from other plaintext accounting formats as it uses positive debits and credits instead of positive/negative amounts.

    The goal is to offer a free forever (Electron-based) desktop app and a paid saas web version - both using the same code and the same plaintext backend so you can move between desktop and web.

    The UI lets you switch from "accounting" view (debits and credits) to "flow" view where you see money flowing from one account to the other (basically debits and credits renamed and reversed) which seems to make more sense to non-accountant types.

    It is early days but I have some demos at https://doublebooks.com/demos/ if you are interested.

    Edit: here are some example transactions (since I just noticed I don't have a page on the site showing the plaintext. The // are comment lines)

        // Each transaction is one line: date, status, description; from account -> to account, amount.
        // Money moves left to right, so there are no signed amounts.
        // After the date, * means the bank has it and ** that it is on a checked statement.
    
        2024-01-05 * Wegmans; Assets:M&T:Checking -> Expenses:Groceries $64.10
        2024-01-12 Pizza; Assets:Cash -> Expenses:Dining Out $18.00
        2024-01-02 ** Rent [check: 1042]; Assets:M&T:Checking [posted: 2024-01-04] -> Expenses:Housing:Rent $1,200.00
        2024-01-31 ** Initech payroll; Income:Salary -> Assets:M&T:Checking $3,150.00
    
        // A split puts each destination on its own -> row.
        2024-01-03 ** Costco; Liabilities:Capital One:Venture One $182.40
          -> Expenses:Groceries $120.00
          -> Expenses:Household $48.15
          -> Expenses:Pharmacy $14.25
    
        // A transfer between banks in two currencies, reconciled at one bank and only cleared at the other, with the fee on the same line.
        2024-01-15 Wise transfer; ** Assets:M&T:Checking $1,005.00
          -> * Assets:RBC:Chequing CA$1,368.20 [value: $1,000.00]
          -> Expenses:Bank Fees $5.00
    
        // Buying shares, with cost and lot.
        2024-01-26 Buy VTI; Assets:Vanguard:Brokerage $2,300.00 -> Assets:Vanguard:Brokerage 10 VTI [cost: $2,300.00; lot: 2024-01-26]
    
        // An invoice and its payment, matched by ref.
        2024-03-02 Invoice 1042; Income:Sales -> Assets:Receivable $1,080.00 [ref: INV-1042; due: 2024-04-01; payee: "Acme Ltd"]
        2024-03-20 * Acme payment; Assets:Receivable [ref: INV-1042] -> Assets:M&T:Checking $1,080.00
    • igbanam 16 hours ago
      PlainTextAccounting has an established format. Instead of creating a new format, why not adapt the already existing format proven across three major tools, and multiple others?
  • peter_d_sherman 1 day ago
    Hmm, this appears to be quite the accounting software ecosystem!

    Prior to reading this, I was only aware of GnuCash as Open Source accounting software -- but it appears that there's been quite the development of a whole bunch of command-line based, text-based Open Source accounting software (and utilities) since around 2016 or so...

    This is relevant now more than ever, because these tools, being command-line based, are perfect for AI agents (and other software that makes use of, or could make use of what they do...)

    You know, if there might be something lacking from this entire ecosystem, I'm guessing that it would be a standard database type and a standard database schema for accounting that all of the tools in this ecosystem could read and write data to/from...

    Oh sure, you can say "text files" are that already -- but that's not really an agreement; a consensus of all of the tools with a standard database (something like Postgres, MySQL, SQLite, etc.) and it's not really an agreement; a consensus of all of the tools on an interoperable accounting database schema -- which each tool knows how to implicitly work with...

    I'm guessing there have been probably been attempts at formalizing such specifications; i.e., GnuCash (or another such open-source accounting software package's) database and schema could be used for such a default, but I'm not really sure where they are in those standardization processes, I'm not sure which tools would support it, and I'm not sure about the potential future limitations of such a schema (i.e., in which businesses or business types, under what business and/or accounting circumstances does or would such a database schema fail? SAP or BAAN or another large ERP would be the people to ask/know about such things; they serve huge international businesses and their database schemas are absolutely ginormous to handle all possible use-cases, and have been expanded many times over their lifetimes...)

    Until then, text is probably the simplest, most neutral, most agreed-upon format for accounting, now we have AI which can parse it better, but I still yearn for a future with a standardized open-source accounting database and a standardized (also open) accounting schema for that database, and standardized access methods to/from that data (local JSON server? local BSON server? Something else?)

    Anyway, the space of these tools, text-based or not, this evolving accounting ecosystem -- is definitely worth watching!

    An excellent submission to HN, and an excellent discussion!

    • BeetleB 1 day ago
      I use KMyMoney. It's not plain text - it's a GUI. It saves everything in a compressed XML.

      I pointed an LLM at the source code, and told it to document the XML schema.

      Using that document, I can now have the LLM code scripts for automated data entry. It's fantastic. You could easily use it to output everything in ledger format.

  • nickpsecurity 1 day ago
    I just ended up writing a simple app to forecast what I have on hand each day. The ledger is a simple, text file.

    https://www.heswithjesus.com/apps/budgetapp/

    I've since added reserves and partial, double-entry bookkeeping. I need to update it now, maybe a differemt visualization. Also, support both charge and posted dates because banks keep changing the dates on me. I find this app handles most of what I need.

  • SmileyJames 1 day ago
    what a rush!
  • ripraptor 1 day ago
    [dead]
  • ingemattsson 1 day ago
    [dead]
  • josefritzishere 1 day ago
    [dead]