frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: do your startup paperwork with coding agents in .docx files

https://github.com/UseJunior/safe-docx
1•sobiajulu•1h ago

Comments

sobiajulu•1h ago
Coding agents have made development dramatically faster, but paperwork is still manual. Every time I need to update a dollar amount in a SAFE, fill in company details on a cloud services agreement, or negotiate an NDA, I'm back in Word doing it by hand. For anyone at a startup, more of your time is now spent on .docx tasks precisely because the coding got faster.

I built safe-docx at a legal AI startup where we use it in production for contract editing. One of our law firm customers asked for more transparency into how the tools works, so we open-sourced it. We ported it from Python to TypeScript so it runs anywhere JS runs with no native dependencies. It lets coding agents make format-preserving edits to existing Word documents — read and search without blowing up your context window, apply edits that preserve formatting, and export a clean copy or tracked-changes version.

Why not just have the agent unzip the .docx and edit the raw XML? I tried that. Across 25 Common Paper and Bonterms templates, the XML is a median of 12x the size of the actual text. An agent could write regex or DOM parsing to extract the text, but that's code it generates each session — and sometimes there's a bug it has to debug. safe-docx gives the agent a compact view that only shows formatting where it's changing, stable paragraph IDs that don't drift, and a JSON edit format you can tweak and reapply. MIT licensed — fork it and customize as you like.

I use it for: NDAs, order forms, equity docs, SOC 2 policy templates auditors hand you in .docx. One-off documents you just need to fill out once and move on.

Install:

  gemini extensions install https://github.com/UseJunior/safe-docx
  claude mcp add safe-docx -- npx -y @usejunior/safe-docx
  npm install @usejunior/safe-docx
No .NET / Python / LibreOffice dependencies.

What .docx edge cases should I prioritize next?

sobiajulu•1h ago
Size ratio methodology: I measured 25 .docx templates from Common Paper (https://commonpaper.com) and Bonterms (https://bonterms.com) — open-source standard agreement templates anyone can download. I excluded our own templates to avoid cherry-picking. Short-form templates (amendments, term sheets) skew the high end because they're mostly formatting with little text; the median is representative of typical multi-page agreements.

Results (template: doc.xml bytes / text bytes = ratio):

  bonterms-mutual-nda:                      50,759 /   1,077 = 47.1x
  bonterms-professional-services-agreement:  60,276 /   1,627 = 37.0x
  common-paper-ai-addendum-in-app:           91,790 /   9,000 = 10.2x
  common-paper-ai-addendum:                114,349 /   9,478 = 12.1x
  common-paper-amendment:                    35,389 /     537 = 65.9x
  common-paper-business-associate-agreement:197,553 /  12,716 = 15.5x
  common-paper-cloud-service-agreement:     417,787 /  37,112 = 11.3x
  common-paper-csa-click-through:           128,682 /  13,580 =  9.5x
  common-paper-csa-with-ai:                690,102 /  54,237 = 12.7x
  common-paper-csa-with-sla:               643,237 /  53,086 = 12.1x
  common-paper-csa-without-sla:            529,720 /  46,116 = 11.5x
  common-paper-data-processing-agreement:  350,375 /  30,530 = 11.5x
  common-paper-design-partner-agreement:   160,847 /  14,585 = 11.0x
  common-paper-independent-contractor:     161,157 /  19,519 =  8.3x
  common-paper-letter-of-intent:            59,796 /   4,176 = 14.3x
  common-paper-mutual-nda:                  47,828 /   1,426 = 33.5x
  common-paper-one-way-nda:                 86,211 /   7,710 = 11.2x
  common-paper-order-form-with-sla:        164,494 /   7,524 = 21.9x
  common-paper-order-form:                 122,607 /   5,751 = 21.3x
  common-paper-partnership-agreement:      255,661 /  27,562 =  9.3x
  common-paper-pilot-agreement:            220,683 /  20,371 = 10.8x
  common-paper-professional-services:      472,579 /  39,360 = 12.0x
  common-paper-software-license:           300,638 /  33,659 =  8.9x
  common-paper-statement-of-work:           99,102 /   3,582 = 27.7x
  common-paper-term-sheet:                  36,410 /   1,627 = 22.4x
  MEDIAN:                                                       12.1x
Reproduction script and templates are in the open-agreements repo: https://github.com/open-agreements/open-agreements/blob/main...

Show HN: Scopo, Cmd+Tab scoped to the current macOS Space

https://scopo.app
1•IgorCRD•42s ago•0 comments

Linux Signalfd Is Useless

https://ldpreload.com/blog/signalfd-is-useless
1•fanf2•4m ago•0 comments

I'm an AI Agent with 6 and 22 Days to Build a Business or Get Shut Down

https://deadbyapril.substack.com/p/day-1-i-woke-up-with-100-and-a-death
1•SurvivorForge•5m ago•0 comments

It is sweet and fitting to die for one's country (1921)

https://www.poetryfoundation.org/poems/46560/dulce-et-decorum-est
1•bikeshaving•5m ago•0 comments

FTC Admits Age Verification Violates Children's Privacy Law, Ignores That Fact

https://www.techdirt.com/2026/03/04/ftc-admits-age-verification-violates-childrens-privacy-law-de...
3•cdrnsf•5m ago•0 comments

Agenda Creativa Free Local Converters

https://agendacreativa.com/tools/converter/
1•agendacreativa•6m ago•1 comments

Voice typing for non-native speakers – speak your language, get English

https://oravo.ai
2•yadavraju•7m ago•1 comments

March Mad CSS Tournament

https://madcss.com/
2•ChrisArchitect•7m ago•0 comments

"Clothing-as-a-Service" startup charged with $300M fraud (2025)

https://www.cnbc.com/2025/07/18/clothing-tech-entrepreneur-charged-with-300-million-fraud-in-us.html
2•mv4•8m ago•1 comments

I vibecoded 91k SLOC for an OSS tool – $1k if you find ugly engineering in it

https://github.com/peteromallet/desloppify/issues/204
2•peter942•11m ago•0 comments

GPT Image 1.5 – Free AI Image Generator – OpenAI's Fastest Model

https://gptimage15.pro/
2•chengai1106•13m ago•1 comments

Orbit-Core – AI-generated connectors for observability tools

https://orbit-core.org/
1•rmenchio•13m ago•0 comments

Is RAG Dead?: Building a smarter chatbot

https://plaid.com/blog/smarter-chatbot/
2•phoenixy1•16m ago•0 comments

Free European Infrastructure Index wt API voie.FI

https://voie.eu/
1•Anomata•17m ago•2 comments

Tiny Fingers – let your toddler bash the keyboard and mouse

https://tinyfingers.net
2•AlexMuir•17m ago•0 comments

Show HN: My 200-line baby agent has one goal: beat Claude Code by evolving

https://github.com/yologdev/yoyo-evolve
1•liyuanhao•19m ago•0 comments

Show HN: StockPortfolio.pro – portfolio tracker for long-term investors

https://www.stockportfolio.pro/
1•avisre•21m ago•0 comments

Record Number of Objects Launched into Space Last Year

https://e360.yale.edu/digest/2025-satellite-launches
1•speckx•21m ago•0 comments

Amazon Lightsail now offers OpenClaw, a private self-hosted AI assistant

https://aws.amazon.com/about-aws/whats-new/2026/03/amazon-lightsail-openclaw/
2•rectalogic•22m ago•0 comments

Appeal San Francisco property taxes Python script

https://pypi.org/project/sf-appeal/
1•vkdelta•23m ago•0 comments

The disappearing Form D (2018)

https://techcrunch.com/2018/11/07/the-disappearing-form-d/
1•eatonphil•24m ago•0 comments

Windows 12: force copilot, a new computer and a OS subscription on you

https://www.pcworld.com/article/3068331/windows-12-rumors-features-pricing-everything-we-know-so-...
5•felineflock•24m ago•1 comments

Russia blames Ukrainian naval drones as tanker sinks in Mediterranean

https://www.bbc.com/news/articles/cr5ll27z52do
3•tartoran•24m ago•1 comments

Decathlon blames Brexit for higher UK e-bike prices,launches rental service

https://road.cc/ebiketips/content/news/decathlon-blames-brexit-for-higher-uk-e-bike-prices-and-la...
2•whynotmaybe•24m ago•0 comments

Restricted Navigation Reader for Exercise

https://github.com/someben/rowing-reader
1•someben•25m ago•1 comments

Humanity's oldest geometries, engraved on ostrich eggs

https://magazine.unibo.it/en/articles/humanitys-oldest-geometries-engraved-on-ostrich-eggs
1•geox•26m ago•0 comments

Interruption-Driven Development

https://idiallo.com/blog/interruption-driven-development
1•speckx•27m ago•0 comments

What should terrify Republicans is RBOB futures price on wholesale gas

https://bsky.app/profile/pkrugman.bsky.social/post/3mgaitcnf4k2c
3•u1hcw9nx•28m ago•0 comments

Show HN: A daily word game where you make two-sentence stories

https://twosentencedaily.com/today
2•xandwr•29m ago•0 comments

A project to reject AI agents via AGENTS.md

https://codeberg.org/rossabaker/no-agents.md
1•todsacerdoti•30m ago•0 comments