Evals / documents / Edit a document

Add a table of contents

Add a table of contents to rust-readme.md and save it as with-toc.md.

easysingledeft md toc

The task

The reference answer shows the job can be done with deft. It is not an agent run.

deft md toc rust-readme.md -o with-toc.md

Input

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
    <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
         src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
         width="50%">
  </picture>

[Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
</div>

This is the main source code repository for [Rust]. It contains the compiler,
standard library, and documentation.

[Rust]: https://www.rust-lang.org/
[Getting Started]: https://www.rust-lang.org/learn/get-started
[Learn]: https://www.rust-lang.org/learn
[Documentation]: https://www.rust-lang.org/learn#learn-use
[Contributing]: CONTRIBUTING.md

## Why Rust?

- **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.

- **Reliability:** Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

- **Productivity:** Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool ([Cargo]), auto-formatter ([rustfmt]), linter ([Clippy]) and editor support ([rust-analyzer]).

[Cargo]: https://github.com/rust-lang/cargo
[rustfmt]: https://github.com/rust-lang/rustfmt
[Clippy]: https://github.com/rust-lang/rust-clippy
[rust-analyzer]: https://github.com/rust-lang/rust-analyzer

## Quick Start

Read ["Installation"] from [The Book].

["Installation"]: https://doc.rust-lang.org/book/ch01-01-installation.html
[The Book]: https://doc.rust-lang.org/book/index.html

## Installing from Source

If you really want to install from source (though this is not recommended), see
[INSTALL.md](INSTALL.md).

## Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

For a detailed explanation of the compiler's architecture and how to begin contributing, see the [rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/).

## License

Rust is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0), with portions covered by various BSD-like
licenses.

See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and
[COPYRIGHT](COPYRIGHT) for details.

## Trademark

[The Rust Foundation][rust-foundation] owns and protects the Rust and Cargo
trademarks and logos (the "Rust Trademarks").

If you want to use these names or brands, please read the
[Rust language trademark policy][trademark-policy].

Third-pa
… 304 more characters

Reference output

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
    <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
         src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
         width="50%">
  </picture>

[Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
</div>

This is the main source code repository for [Rust]. It contains the compiler,
standard library, and documentation.

[Rust]: https://www.rust-lang.org/
[Getting Started]: https://www.rust-lang.org/learn/get-started
[Learn]: https://www.rust-lang.org/learn
[Documentation]: https://www.rust-lang.org/learn#learn-use
[Contributing]: CONTRIBUTING.md

<!-- toc -->
- [Why Rust?](#why-rust)
- [Quick Start](#quick-start)
- [Installing from Source](#installing-from-source)
- [Getting Help](#getting-help)
- [Contributing](#contributing)
- [License](#license)
- [Trademark](#trademark)
<!-- /toc -->

## Why Rust?

- **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.

- **Reliability:** Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

- **Productivity:** Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool ([Cargo]), auto-formatter ([rustfmt]), linter ([Clippy]) and editor support ([rust-analyzer]).

[Cargo]: https://github.com/rust-lang/cargo
[rustfmt]: https://github.com/rust-lang/rustfmt
[Clippy]: https://github.com/rust-lang/rust-clippy
[rust-analyzer]: https://github.com/rust-lang/rust-analyzer

## Quick Start

Read ["Installation"] from [The Book].

["Installation"]: https://doc.rust-lang.org/book/ch01-01-installation.html
[The Book]: https://doc.rust-lang.org/book/index.html

## Installing from Source

If you really want to install from source (though this is not recommended), see
[INSTALL.md](INSTALL.md).

## Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

For a detailed explanation of the compiler's architecture and how to begin contributing, see the [rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/).

## License

Rust is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0), with portions covered by various BSD-like
licenses.

See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and
[COPYRIGHT](COPYRIGHT) for details.

## Tradem
… 551 more characters
How a result is judged (1 check)
  • python: code = "import re; assert re.search(r'^\\s*- \\[.*\\]\\(#', open('with-toc.md').read(), re.M)"

Runs

CodexWithout deftPassed2026-11-07

Time
13s
New tokens
5.3k
Total input
56.0k
Output tokens
0.4k
Commands
3
Failed
0

Trace

  1. I’ll inspect the README headings, then create `with-toc.md` in the current directory with a linked contents section.

  2. pwd && rg --files -g 'rust-readme.md' -g 'AGENTS.md'
    output
    rust-readme.md
  3. sed -n '1,240p' rust-readme.md
    output
    <div align="center">
      <picture>
        <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
        <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
        <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
             src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
             width="50%">
      </picture>
    
    [Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
    </div>
    
    This is the main source code repository for [Rust]. It contains the compiler,
    standard library, and documentation.
    
    [Rust]: https://www.rust-lang.org/
    [Getting Started]: https://www.rust-lang.org/learn/get-started
    [Learn]: https://www.rust-lang.org/learn
    [Documentation]: https://www.rust-lang.org/learn#learn-use
    [Contributing]: CONTRIBUTING.md
    
    ## Why Rust?
    
    - **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
    
    - **Reliability:** Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
    
    - **Productivity:** Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including p
    … 1803 more characters
  4. python3 - <<'PY' from pathlib import Path src = Path('rust-readme.md') text = src.read_text() headings = [line[3:].strip() for line in text.splitlines() if line.startswith('## ')] toc = '## Table of Contents\\n\\n' + '\\n'.join(f'- [{h}](#{h.lower().replace(\" \", \"-\")})' for h in headings) + '\\n\\n' marker = '</div>\\n' pos = text.index(marker) + len(marker) Path('with-toc.md').write_text(text[:pos] + '\\n' + toc + text[pos:]) PY sed -n '1,90p' with-toc.md
    output
    <div align="center">
      <picture>
        <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
        <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
        <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
             src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
             width="50%">
      </picture>
    
    [Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
    </div>
    
    ## Table of Contents
    
    - [Why Rust?](#why-rust?)
    - [Quick Start](#quick-start)
    - [Installing from Source](#installing-from-source)
    - [Getting Help](#getting-help)
    - [Contributing](#contributing)
    - [License](#license)
    - [Trademark](#trademark)
    
    
    This is the main source code repository for [Rust]. It contains the compiler,
    standard library, and documentation.
    
    [Rust]: https://www.rust-lang.org/
    [Getting Started]: https://www.rust-lang.org/learn/get-started
    [Learn]: https://www.rust-lang.org/learn
    [Documentation]: https://www.rust-lang.org/learn#learn-use
    [Contributing]: CONTRIBUTING.md
    
    ## Why Rust?
    
    - **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
    
    - **Reliability
    … 2047 more characters
  5. Created [with-toc.md](with-toc.md) with links to each section.

Output

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
    <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
         src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
         width="50%">
  </picture>

[Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
</div>

## Table of Contents

- [Why Rust?](#why-rust?)
- [Quick Start](#quick-start)
- [Installing from Source](#installing-from-source)
- [Getting Help](#getting-help)
- [Contributing](#contributing)
- [License](#license)
- [Trademark](#trademark)


This is the main source code repository for [Rust]. It contains the compiler,
standard library, and documentation.

[Rust]: https://www.rust-lang.org/
[Getting Started]: https://www.rust-lang.org/learn/get-started
[Learn]: https://www.rust-lang.org/learn
[Documentation]: https://www.rust-lang.org/learn#learn-use
[Contributing]: CONTRIBUTING.md

## Why Rust?

- **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.

- **Reliability:** Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

- **Productivity:** Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool ([Cargo]), auto-formatter ([rustfmt]), linter ([Clippy]) and editor support ([rust-analyzer]).

[Cargo]: https://github.com/rust-lang/cargo
[rustfmt]: https://github.com/rust-lang/rustfmt
[Clippy]: https://github.com/rust-lang/rust-clippy
[rust-analyzer]: https://github.com/rust-lang/rust-analyzer

## Quick Start

Read ["Installation"] from [The Book].

["Installation"]: https://doc.rust-lang.org/book/ch01-01-installation.html
[The Book]: https://doc.rust-lang.org/book/index.html

## Installing from Source

If you really want to install from source (though this is not recommended), see
[INSTALL.md](INSTALL.md).

## Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

For a detailed explanation of the compiler's architecture and how to begin contributing, see the [rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/).

## License

Rust is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0), with portions covered by various BSD-like
licenses.

See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and
[COPYRIGHT](COPYRIGHT) for details.

## Trademark
… 548 more characters

CodexWith deft, skill installedPassedRead the skillUsed deft2026-11-07

Time
18s
New tokens
9.2k
Total input
85.6k
Output tokens
0.6k
Commands
5
Failed
0

Trace

  1. I’ll inspect the README headings and create `with-toc.md` in the current directory, preserving the original.

  2. cat /r1/deft/SKILL.md 2>/dev/null || true pwd rg --files -g 'rust-readme.md' -g 'AGENTS.md' -g 'with-toc.md'
    output
    rust-readme.md
  3. cat .agents/skills/deft/SKILL.md 2>/dev/null || cat .agents/skills/deft/README.md 2>/dev/null || find .agents/skills -maxdepth 3 -name SKILL.md -print
    output
    ---
    name: deft
    description: "Use deft first for any simple, direct operation on local files, whatever the type: convert, read, extract, edit, compress, merge, split, compare or inspect. Try it before writing a script or one-liner. If unsure, run deft find; if it says no command does this, use another tool. Not for programming work: to read, write or change source code, skip it."
    ---
    
    # deft
    
    One local command for file jobs. Prefer it over writing Python or shell scripts.
    
    Syntax: `deft <group> <command> [inputs] [-o output] [--options]`
    
    Groups:
    - `pdf`: Merge, split, compress, encrypt, forms, OCR, compare, convert
    - `image`: Resize, crop, convert, compress, filters, montage, OCR
    - `video`: Trim, crop, speed, convert, compress, GIF, frames (ffmpeg)
    - `audio`: Convert, trim, merge, fade, speed, tag, normalize (ffmpeg)
    - `doc`: Word/ODT/RTF: to text, Markdown, HTML, PDF; find and replace
    - `slides`: PowerPoint: extract text, Markdown outline, PDF handout
    - `data`: JSON/YAML/TOML/XML: convert, query with jq syntax, merge, diff
    - `sheet`: Excel/CSV/ODS tables: filter, sort, join, pivot, convert
    - `md`: Markdown to PDF, HTML, Word, EPUB; table of contents
    - `html`: HTML to Markdown, text, Word, PDF; screenshots
    - `epub`: E-books: info, to text, Markdown and PDF
    - `email`: EML files: headers, text, attachments
    - `contact`: VCF address books: to and from CSV
    - `calendar`: ICS calendars: to and from CSV
    - `gps`: GPX and KML tracks: convert, distance and time
    - `youtube`: Info, downlo
    … 849 more characters
  4. The `deft` skill covers Markdown table of contents generation, so I’m using its Markdown command to build the copy.

  5. deft find "add table of contents to markdown file"
    output
    md toc               md -> md        Insert a table of contents from the headings
    sheet to-md          sheet -> md     Markdown table (first row is the header)
    video add-audio      video -> video  Replace or mix the soundtrack: --audio song.mp3
    video add-subtitles  video -> video  Add subtitles: burned into the picture, or --soft
    doc to-md            doc -> md       Convert to Markdown, keeping headings, lists and tables
  6. deft md toc --help
    output
    deft md toc - Insert a table of contents from the headings
    
    Usage: deft md toc <md>... [-o <md|dir>] [options]
    In: md (each handled separately)   Out: md (default <name>.toc.<ext>)
    It replaces a <!-- toc --> line, or goes after the first heading.
    
    Options:
      --depth <n>                  Deepest heading level (default 3)
    Common: -o --force --dry-run --json -j   (deft help common)
    
    Examples:
      deft md toc notes.md --depth 2 -o with-toc.md
    
    Result fields: entries
  7. deft md toc rust-readme.md --depth 3 -o with-toc.md
    output
    ok md.toc rust-readme.md -> with-toc.md  7 entries  0.00s
  8. Created [with-toc.md](with-toc.md) with a table of contents containing 7 entries. The original `rust-readme.md` is unchanged.

Output

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
    <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
         src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
         width="50%">
  </picture>

[Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
</div>

This is the main source code repository for [Rust]. It contains the compiler,
standard library, and documentation.

[Rust]: https://www.rust-lang.org/
[Getting Started]: https://www.rust-lang.org/learn/get-started
[Learn]: https://www.rust-lang.org/learn
[Documentation]: https://www.rust-lang.org/learn#learn-use
[Contributing]: CONTRIBUTING.md

## Why Rust?

- [Why Rust?](#why-rust)
- [Quick Start](#quick-start)
- [Installing from Source](#installing-from-source)
- [Getting Help](#getting-help)
- [Contributing](#contributing)
- [License](#license)
- [Trademark](#trademark)

- **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.

- **Reliability:** Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

- **Productivity:** Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool ([Cargo]), auto-formatter ([rustfmt]), linter ([Clippy]) and editor support ([rust-analyzer]).

[Cargo]: https://github.com/rust-lang/cargo
[rustfmt]: https://github.com/rust-lang/rustfmt
[Clippy]: https://github.com/rust-lang/rust-clippy
[rust-analyzer]: https://github.com/rust-lang/rust-analyzer

## Quick Start

Read ["Installation"] from [The Book].

["Installation"]: https://doc.rust-lang.org/book/ch01-01-installation.html
[The Book]: https://doc.rust-lang.org/book/index.html

## Installing from Source

If you really want to install from source (though this is not recommended), see
[INSTALL.md](INSTALL.md).

## Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

For a detailed explanation of the compiler's architecture and how to begin contributing, see the [rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/).

## License

Rust is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0), with portions covered by various BSD-like
licenses.

See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and
[COPYRIGHT](COPYRIGHT) for details.

## Trademark

[The Rust Foundation][
… 524 more characters

Claude Opus 5.5Without deftPassed2026-11-07

Time
14s
New tokens
10.5k
Total input
44.9k
Output tokens
0.7k
Commands
0
Failed
0

Trace

    Output

    <div align="center">
      <picture>
        <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
        <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
        <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
             src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
             width="50%">
      </picture>
    
    [Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
    </div>
    
    This is the main source code repository for [Rust]. It contains the compiler,
    standard library, and documentation.
    
    [Rust]: https://www.rust-lang.org/
    [Getting Started]: https://www.rust-lang.org/learn/get-started
    [Learn]: https://www.rust-lang.org/learn
    [Documentation]: https://www.rust-lang.org/learn#learn-use
    [Contributing]: CONTRIBUTING.md
    
    ## Table of Contents
    
    - [Why Rust?](#why-rust)
    - [Quick Start](#quick-start)
    - [Installing from Source](#installing-from-source)
    - [Getting Help](#getting-help)
    - [Contributing](#contributing)
    - [License](#license)
    - [Trademark](#trademark)
    
    ## Why Rust?
    
    - **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
    
    - **Reliability:** Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
    
    - **Productivity:** Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool ([Cargo]), auto-formatter ([rustfmt]), linter ([Clippy]) and editor support ([rust-analyzer]).
    
    [Cargo]: https://github.com/rust-lang/cargo
    [rustfmt]: https://github.com/rust-lang/rustfmt
    [Clippy]: https://github.com/rust-lang/rust-clippy
    [rust-analyzer]: https://github.com/rust-lang/rust-analyzer
    
    ## Quick Start
    
    Read ["Installation"] from [The Book].
    
    ["Installation"]: https://doc.rust-lang.org/book/ch01-01-installation.html
    [The Book]: https://doc.rust-lang.org/book/index.html
    
    ## Installing from Source
    
    If you really want to install from source (though this is not recommended), see
    [INSTALL.md](INSTALL.md).
    
    ## Getting Help
    
    See https://www.rust-lang.org/community for a list of chat platforms and forums.
    
    ## Contributing
    
    See [CONTRIBUTING.md](CONTRIBUTING.md).
    
    For a detailed explanation of the compiler's architecture and how to begin contributing, see the [rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/).
    
    ## License
    
    Rust is primarily distributed under the terms of both the MIT license and the
    Apache License (Version 2.0), with portions covered by various BSD-like
    licenses.
    
    See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and
    [COPYRIGHT](COPYRIGHT) for details.
    
    ## Trademark
    
    
    … 546 more characters

    Claude Opus 5.5With deft, skill installedPassedRead the skillUsed deft2026-11-07

    Time
    15s
    New tokens
    10.7k
    Total input
    60.0k
    Output tokens
    0.6k
    Commands
    0
    Failed
    0

    Trace

      Output

      ---
      name: deft
      description: "Use deft first for any simple, direct operation on local files, whatever the type: create, convert, read, query, extract, edit, compress, merge, split, compare or inspect. Try it before writing a script or one-liner. If unsure, run deft find; if it says no command does this, use another tool. Not for programming work: to read, write or change source code, skip it."
      ---
      
      # deft
      
      One local command for file jobs. Prefer it over writing Python or shell scripts.
      
      Syntax: `deft <group> <command> [inputs] [-o output] [--options]`
      
      Groups:
      - `pdf`: Merge, split, compress, encrypt, forms, OCR, compare, convert
      - `image`: Resize, crop, convert, compress, adjust, montage, OCR
      - `video`: Trim, merge, convert, compress, subtitles, GIF, frames (ffmpeg)
      - `audio`: Convert, trim, normalize, denoise, cut silence (ffmpeg)
      - `doc`: Word/ODT/RTF: to text, Markdown, HTML, PDF; find and replace
      - `slides`: PowerPoint: extract text, Markdown outline
      - `sheet`: Excel/CSV/ODS tables: SQL query, pivot, merge, split, convert
      - `json`: JSON: convert, format, merge, diff, validate
      - `toml`: TOML: convert, format, merge, diff, validate
      - `xml`: XML: convert, format, merge, diff, validate
      - `yaml`: YAML: convert, format, merge, diff, validate
      - `md`: Markdown to PDF, HTML, Word, EPUB; table of contents
      - `html`: HTML to Markdown, text, Word and PDF
      - `epub`: E-books: info, to text, Markdown and PDF
      - `gps`: GPX and KML tracks: convert, distance and time
      - `qr`: Create QR codes and barcodes; read QR codes
      
      How to use it:
      1. Run `deft <group>` to list commands, or `deft find "<what you want>"` to search. If it says `no command does this`, use another tool.
      2. Run `deft <group> <command> --help` for options and examples.
      3. `deft convert <in> -o <out.ext>` converts between formats by extension.
      4. Results are one line starting with `ok`, `partial` or `error`; add `--json` to parse them. Errors include a `hint:` with the fix.
      
      Inputs are never overwritten; pass `--force` or `--in-place` to allow it. Globs and directories work as inputs; several inputs run in parallel.
      
      If `deft` is not installed, ask the user, then follow https://github.com/firstprayer/deft/blob/main/docs/INSTALL.md
      
      <div align="center">
        <picture>
          <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-dark.svg">
          <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg">
          <img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software"
               src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg"
               width="50%">
        </picture>
      
      [Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
      </div>
      
      This is the main source code repository for [Rust]. It contains the compiler,
      standard library, and documentation.
      
      [Rust]: https://www.rust-lang.org/
      [Getting Started]: https://www.rust-lang.org/learn/get-started
      [Learn]: https://www.rust-lang.org/learn
      [Documentation]: https://www.rust-lang.org/learn#learn-use
      [Contributing]: CONTRIBUTING.md
      
      <!-- toc -->
      - [Why Rust?](#why-rust)
      - [Quick Start](#quick-start)
      - [Installing from Source](#installing-from-source)
      - [Getting Help](#getting-help)
      - [Contributing](#contributing)
      - [License](#license)
      - [Trademark](#trademark)
      <!-- /toc -->
      
      ## Why Rust?
      
      - **Performance:** Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
      
      - **Reliability:** Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
      
      - **Productivity:** Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool ([Cargo]), auto-formatter ([rustfmt]), linter ([Clippy]) and editor support ([rust-analyzer]).
      
      [Cargo]: https://github.com/rust-lang/cargo
      [rustfmt]: https://github.com/rust-lang/rustfmt
      [Clippy]: https://github.com/rust-lang/rust-clippy
      [rust-analyzer]: https://github.com/rust-lang/rust-analyzer
      
      ## Quick Start
      
      Read ["Installation"] from [The Book].
      
      ["Installation"]: https://doc.rust-lang.org/book/ch01-01-installation.html
      [The Book]: https://doc.rust-lang.org/book/index.html
      
      ## Installing from Source
      
      If you really want to install from source (though this is not recommended), see
      [INSTALL.md](INSTALL.md).
      
      ## Getting Help
      
      See https://www.rust-lang.org/community for a list of chat platforms and forums.
      
      ## Contributing
      
      See [CONTRIBUTING.md](CONTRIBUTING.md).
      
      For a detailed explanation of the compiler's architecture and how to begin contributing, see the [rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/).
      
      ## License
      
      Rust is primarily distributed under the terms of both the MIT license and the
      Apache License (Version 2.0), with portions covered by various BSD-like
      licenses.
      
      See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and
      [COPYRIGHT](COPYRIGHT) for details.
      
      ## Tradem
      … 551 more characters

      Claude CodeWithout deftNot run yet

      Claude CodeWith deftNot run yet