GeezerVison is showing github.com — docs: add CLAUDE.md and AGENTS.md for agent discovery · allthingssecurity/clibrowser@6438b11
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +36Lines changed: 36 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +# Agent Instructions |
| 2 | + |
| 3 | +## clibrowser — Web browsing via bash |
| 4 | + |
| 5 | +`clibrowser` is available at `~/.local/bin/clibrowser`. Use it whenever you need to: |
| 6 | +- Search the web |
| 7 | +- Fetch and read web pages |
| 8 | +- Extract structured data from HTML |
| 9 | +- Fill and submit forms |
| 10 | +- Monitor RSS feeds |
| 11 | +- Crawl sites |
| 12 | + |
| 13 | +### Essential commands |
| 14 | + |
| 15 | +| Task | Command | |
| 16 | +|------|---------| |
| 17 | +| Search | `clibrowser --stealth search "query" -n 5 --json` | |
| 18 | +| Fetch page | `clibrowser --stealth get "https://url" --json` | |
| 19 | +| Read as markdown | `clibrowser markdown --max-length 3000` | |
| 20 | +| Extract text | `clibrowser text --strip --json` | |
| 21 | +| Get links | `clibrowser links --absolute --json` | |
| 22 | +| Follow link | `clibrowser click "a.selector" --json` | |
| 23 | +| CSS query | `clibrowser select "h1, .class" --json` | |
| 24 | +| List forms | `clibrowser forms --json` | |
| 25 | +| Fill form | `clibrowser fill "form" "name=value"` | |
| 26 | +| Submit form | `clibrowser submit --json` | |
| 27 | +| RSS feed | `clibrowser rss "https://feed" -n 10 --json` | |
| 28 | +| Crawl site | `clibrowser crawl "https://url" --depth 2 --max-pages 10 --json` | |
| 29 | +| Batch URLs | `echo "url1\nurl2" \| clibrowser pipe --title --json` | |
| 30 | + |
| 31 | +### Tips |
| 32 | +- Always use `--json` for parseable output |
| 33 | +- Use `--stealth` for Cloudflare-protected sites |
| 34 | +- Use `--session name` for parallel browsing sessions |
| 35 | +- Exit codes: 0=success, 1=app error, 2=HTTP error, 3=network error |
| 36 | +- Every JSON response has `"ok": true/false` at top level |
Collapse file
Copy file name to clipboard +26Lines changed: 26 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +# clibrowser |
| 2 | + |
| 3 | +`clibrowser` is installed at `~/.local/bin/clibrowser`. It is a CLI browser for AI agents — use it to browse the web, search, extract content, and interact with forms entirely via bash commands. |
| 4 | + |
| 5 | +## Quick reference |
| 6 | + |
| 7 | +```bash |
| 8 | +clibrowser --stealth search "query" --json # web search |
| 9 | +clibrowser --stealth search "query" --lucky # search & navigate to first result |
| 10 | +clibrowser --stealth get "https://url" --json # fetch a page |
| 11 | +clibrowser text --strip # extract text |
| 12 | +clibrowser markdown --max-length 3000 # convert page to markdown |
| 13 | +clibrowser links --absolute --json # extract links |
| 14 | +clibrowser select "h1, h2" --json # CSS selector query |
| 15 | +clibrowser click "a.link" --json # follow a link |
| 16 | +clibrowser forms --json # list forms |
| 17 | +clibrowser fill "form" "field=value" # fill form |
| 18 | +clibrowser submit --json # submit form |
| 19 | +clibrowser cookies --json # show cookies |
| 20 | +clibrowser rss "https://feed.url" -n 10 --json # parse RSS feed |
| 21 | +clibrowser sitemap "https://site.com" --json # discover pages |
| 22 | +clibrowser crawl "https://url" --depth 2 --json # crawl link tree |
| 23 | +echo "url1\nurl2" | clibrowser pipe --title --json # batch process URLs |
| 24 | +``` |
| 25 | +
|
| 26 | +Always use `--json` for structured output you can parse. Use `--stealth` for sites with bot detection. |