Observed since 20 Oct, 21:54 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
CLI tool for fetching AGENTS.md files from GitHub
A Python command-line tool for fetching AGENTS.md files (or other markdown/docs) from GitHub repositories.
--all, --name, or --repoquestionary# Option 1: Traditional pip installation
pip install -e .
# Option 2: Modern uv installation (recommended)
uv pip install -e .
The tool comes with a pre-configured default repository and works immediately:
# Interactive mode (with default repo)
agentfetch
If you want to use a different repository:
agentfetch set-repo https://github.com/your-org/docs
# Interactive mode (default)
agentfetch
# Fetch all files from default repo
agentfetch main --all
# Search for specific files
agentfetch main --name "api" # Fuzzy matching
# Use different repository
agentfetch main --all --repo https://github.com/org/docs
📁 Files in index.yaml
Select files to fetch using ↑/↓ arrows, space to select, enter to confirm
❯ Python APIs Guide
Shadcn UI Components Guide
Next.js App APIs Guide
| Command | Description |
|---|---|
agentfetch | Interactive mode (default) |
agentfetch --all | Fetch all files |
agentfetch --name <query> | Fetch by name (fuzzy matching) |
agentfetch --repo <url> | Fetch from alternate repo |
agentfetch --branch <branch> | Fetch from specific branch |
agentfetch --no-overwrite | Skip existing files |
agentfetch set-repo <url> | Set global default repo |
agentfetch show-repo | Display current config |
agentfetch list | List files in index.yaml |
agentfetch validate | Validate index.yaml |
Configuration is stored in:
~/.agentfetch/config.yaml%APPDATA%\agentfetch\config.yamlExample config:
default_repo: "https://github.com/org/agents"
default_branch: "main"
The tool expects an index.yaml file in the repository root with this structure:
agents:
- name: "Root Guide" # Human-readable name
source: "AGENTS.md" # Repo-relative path
target: "downloads/root.md" # Local destination
- name: "API Guide"
source: "services/api/AGENTS.md"
target: "downloads/api.md"
# Set up default repository
agentfetch set-repo https://github.com/your-org/docs
# Interactive selection for daily use
agentfetch
# Automate fetching all docs
agentfetch --all
# Fetch specific documentation
agentfetch --name "user guide"
# Non-interactive batch operation
agentfetch --all --repo https://github.com/org/docs --branch main
# Fetch from monorepo
agentfetch --repo https://github.com/org/monorepo
# Fetch from specific branch
agentfetch --repo https://github.com/org/monorepo --branch feature/new-docs
This tool is modular and easily extensible, following Python best practices with:
agents_collector/
├── config/ # Configuration management
├── fetcher/ # GitHub fetching logic
├── parser/ # Index file parsing
├── cli/ # Command-line interface
├── ui/ # Interactive UI components
└── __init__.py
typer: CLI frameworkpyyaml: YAML parsingrequests: HTTP clientquestionary: Interactive menusrapidfuzz: Fuzzy matchingrich: Beautiful console outputThe tool follows a modular architecture that makes it easy to:
MIT License
This tool makes it simple to collect, organize, and update AGENTS.md files across monorepos or multiple projects, ensuring consistency for both developers and coding agents.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 3 Sept 2025 | 6 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 21:54 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:80fd2381e94d0fdb3b0df415cbaec179148999ea0b93ff32ac0a69d68a742887