Skip to main content

Demo snippet Functions calculateSubtotal

Sample Saved output from the /demo page

Living docs for your private repo that your coding agent can read.

AutomaDocs reads your GitHub code, writes docs that re-sync on every push, and answers questions with the exact source lines. Cursor and Claude Code read the same docs over MCP.

Free for 1 repository, no credit card. Pro $49/month, Team $149/month, no per-message AI fees. Compare plans

Source

JavaScript snippet
// Calculate subtotal with optional discountfunction calculateSubtotal(amount, discountRate = 0.1) {  const discount = amount * discountRate;  return amount - discount;}class ShoppingCart {  constructor() {    this.items = [];  }  addItem(item) {    this.items.push(item);  }  getTotal() {    return this.items.reduce((sum, item) => sum + item.amount, 0);  }}

Generated documentation for calculateSubtotal

source lines 1 to 5

calculateSubtotal

Calculates a discounted subtotal from a given amount.

calculateSubtotal(amount, discountRate = 0.1)

Parameters

ParameterTypeDefaultDescription
amountnumberrequiredThe original amount before discount
discountRatenumber0.1The discount rate as a decimal (default 10%)

Returns

number - The amount after applying the discount.

Example

calculateSubtotal(100); // Returns 90 (10% off)
calculateSubtotal(100, 0.25); // Returns 75 (25% off)

Notes

  • Uses a simple percentage calculation: amount - (amount * discountRate)
  • Default discount of 10% is applied if no rate is specified

Generate this for your repo

Paste a public GitHub repository. No signup.

Examples, click to fill

Sample. The snippet and its docs are the saved demo result in lib/demoSamples.ts, the same one the /demo page shows. Nothing on this page is generated live.

The card

Every push stamps the card again.

  1. 0A cited answer. Every answer carries a call number: the source file and the lines it came from.
  2. 1Someone pushes to main. GitHub tells AutomaDocs. The docs for the changed files are rebuilt.
  3. 2The card is re-stamped. The lines moved, so the call number is retyped and a new date lands on the slip.
  4. 3Your agent reads it. Claude Code, Cursor, VS Code, Codex and Zed read the same card over MCP.
  • Claude Code
  • Cursor
  • VS Code
  • Codex
  • Zed
push to main

CALL NO.

backend/src/routes/billing.js42-8847-93

SAMPLE

Where is webhook signature verification handled?

Webhook signatures are verified in backend/src/routes/billing.js. The raw request body is kept so the stripe-signature header can be checked against your webhook secret.

Also cited app/api/stripe/webhook/route.ts:18-35

Date due

  1. 2026-10-14
  2. 2026-10-21
  3. 2026-10-29
  4. 2026-11-05

SAMPLE

Sample card for illustration. Scroll to step through a push.

The card

Every push stamps the card again.

1A cited answer. Every answer carries a call number: the source file and the lines it came from.

CALL NO.

backend/src/routes/billing.js42-88

SAMPLE

Where is webhook signature verification handled?

Webhook signatures are verified in backend/src/routes/billing.js. The raw request body is kept so the stripe-signature header can be checked against your webhook secret.

Also cited app/api/stripe/webhook/route.ts:18-35

Date due

  1. 2026-10-14
  2. 2026-10-21
  3. 2026-10-29

SAMPLE

2The card is re-stamped. The lines moved, so the call number is retyped and a new date lands on the slip.

push to main

CALL NO.

backend/src/routes/billing.js42-8847-93

SAMPLE

Where is webhook signature verification handled?

Webhook signatures are verified in backend/src/routes/billing.js. The raw request body is kept so the stripe-signature header can be checked against your webhook secret.

Also cited app/api/stripe/webhook/route.ts:18-35

Date due

  1. 2026-10-14
  2. 2026-10-21
  3. 2026-10-29
  4. 2026-11-05

SAMPLE

3Your agent reads it. Claude Code, Cursor, VS Code, Codex and Zed read the same card over MCP.

  • Claude Code
  • Cursor
  • VS Code
  • Codex
  • Zed

CALL NO.

backend/src/routes/billing.js42-8847-93

SAMPLE

Where is webhook signature verification handled?

Webhook signatures are verified in backend/src/routes/billing.js. The raw request body is kept so the stripe-signature header can be checked against your webhook secret.

Also cited app/api/stripe/webhook/route.ts:18-35

Date due

  1. 2026-10-14
  2. 2026-10-21
  3. 2026-10-29
  4. 2026-11-05

SAMPLE

Versus DeepWiki

Why not DeepWiki?

Comparing the two? These are the three points where AutomaDocs is specific. The full comparison has its own page.

Read the full comparison
  • Private code

    Connects with the GitHub account you already use. Private and public repositories, on every plan including Free.

  • After a push

    Docs re-sync on every push, and answers cite the exact source lines so you can check them before you rely on them.

  • Your editor

    An MCP server lets Cursor and Claude Code read the docs. A GitHub Action can gate doc coverage in CI.

Workflow

From the first read to the next push.

A shared reference for the questions your team keeps asking. Connect the source, review the docs, and keep them current.

  1. Connect
    01

    Connect your repository

    Sign in with GitHub and choose the repository you want to document, private or public.

  2. Read and verify
    02

    Read and verify

    Explore generated explanations, inspect source citations, and use health scores to find gaps.

  3. Keep current
    03

    Keep the context current

    Push code changes to trigger documentation updates. Ask repo questions with source references.

Surfaces

Your docs inside every AI editor and terminal.

A remote MCP server, on every plan including Free, puts your synced docs inside Claude Code, Cursor, VS Code, Codex and Zed. Add it with one line.

TYPED
claude mcp add --transport http automadocs https://api.automadocs.com/api/mcp/rpc --header 'Authorization: Bearer ${AUTOMADOCS_API_KEY}'

Needs an API key from Settings, API. Install steps for every editor are on the MCP page.

  • Claude Code
  • Cursor
  • VS Code
  • Codex
  • Zed
  • GitHub Action

    - uses: forbiddenlink/automadocs-coverage-action@v1

    Gate doc coverage in CI.

    Published

  • VS Code extension

    CodeLens in the editor

    Not on the Marketplace yet. The MCP server already works in VS Code.

    NOT PUBLISHED YET
  • Command line

    @automadocs/cli

    Not on npm yet.

    NOT PUBLISHED YET

Posted rates

What it costs, in full.

Flat monthly prices. Start on Free, no credit card.

Compare every limit
  1. Free

    $0

    1 repository, 10 doc generations a month (each sync on push counts as one), 50 chat messages a month.

  2. Pro

    $49 / month

    20 repositories, unlimited chat and generations. No per-message AI fees.

  3. Team

    $149 / month

    Unlimited repositories, 10 seats, SSO, audit logs, custom domains, unlimited chat.

  4. Custom

    Let's talk

    Annual invoicing, volume, or unusual procurement. Email only, no sales team.

Reader's questions

Common questions

What teams ask before connecting their first repo.

View the full FAQ
Is my code stored on your servers?

Yes, we retain generated documentation and analyzed code fragments needed for search and source-backed answers. That data is scoped to the repository you connect, is not shared with other customers, and is removed when you delete the repository. See our Privacy Policy for retention details.

SEE ALSO Privacy Policy

Which programming languages are supported?

JavaScript, TypeScript, Python, Go, Rust, and Java have full AST parsing via Tree-sitter, which powers the deepest documentation and code navigation. Other languages get best-effort support: Claude AI can still read and describe source files, but without the structured AST analysis those six get.

SEE ALSO Features

How does auto-sync work?

We register a GitHub webhook on your repository. When you push code, GitHub notifies AutomaDocs and we regenerate documentation for changed files, so your docs re-sync on every push.

SEE ALSO AI documentation

Can I use AutomaDocs with private repositories?

Yes. All plans support private repositories. GitHub shows the requested permissions before you authorize. App installations can be restricted to selected repositories; the OAuth connection can request broader repository access. You choose which repositories to document and can revoke access in GitHub settings.

SEE ALSO Security

How does the AI chat work?

You ask in plain language; we search your generated docs and code context, then answer with links to files and line numbers. Under the hood we combine keyword and semantic search (hybrid retrieval) so answers stay grounded in your repo.

SEE ALSO Features

Do you offer phone support or a dedicated success team?

No. AutomaDocs is self-serve: documentation, FAQ, and status first. For bugs or billing, email [email protected]. We reply when we can, usually within a few business days. There is no 24/7 phone line, SLA, or account manager.

SEE ALSO Contact

Start

Give your team a place to find answers.

Connect a repository and generate your first docs.

Connect GitHub

Date due

  1. 2026-10-14
  2. 2026-10-21
  3. 2026-10-29
  4. 2026-11-05
  5. Next stamp: your next push

Sample dates

Paste a repo