You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to this project are documented in this file.
4
+
5
+
## [0.2.0] - 2026-02-18
6
+
7
+
### Added
8
+
- Added `raw` mode for markdown-preferred single-pass output (`--mode raw`), returning the HTTP response body without extraction or fallback conversion.
9
+
- Added metadata front matter injection (`title`, `description`) for non-raw outputs, enabled by default with `--meta` and disabled via `--meta=false`.
10
+
- Added metadata enrichment for direct markdown responses in `auto`/`static` mode by fetching HTML metadata when needed.
11
+
- Added tests for MDX/markdown handling, metadata injection behavior, and front matter preservation.
12
+
13
+
### Changed
14
+
- Migrated CLI argument parsing to `urfave/cli/v3`.
15
+
- Standardized CLI usage around `--long-flag` style and more flexible flag/argument ordering.
16
+
17
+
### Fixed
18
+
- Honored `text/markdown` responses directly (including MDX-like content) to avoid dropping sections during fallback conversion.
19
+
- Improved fallback behavior for HTTP status errors in `auto` mode.
20
+
- Tightened markdown detection and related review cleanups.
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ A Go CLI that always tries to return Markdown for web pages in AI-agent workflow
8
8
9
9
Web fetch results are often raw HTML/JS/CSS, which is noisy for LLMs. This tool wraps a fallback pipeline so agents can expect Markdown output.
10
10
11
+
If you use tools like Codex or Claude Code, note that they may already include built-in HTML simplification/fetching. Whether you still need `agent-fetch` depends on your workflow.
12
+
11
13
## Behavior
12
14
13
15
`agent-fetch` uses four modes:
@@ -33,7 +35,7 @@ go install github.com/firede/agent-fetch/cmd/agent-fetch@latest
33
35
Install a specific version:
34
36
35
37
```bash
36
-
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.1.1
38
+
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.2.0
37
39
```
38
40
39
41
Make sure `$(go env GOPATH)/bin` (usually `~/go/bin`) is in your `PATH`.
0 commit comments