AFM v0.5.1
π― AFM v0.5.1 - CLI Composability Update
β¨ New Features
- Stdin/Pipe Support: AFM now accepts piped input from other CLI commands
echo "text" | afm- Process piped textcat file.txt | afm- Process file contentsgit log --oneline | head -5 | afm- Process command outputecho "explain quantum computing" | afm -i "you are a pirate, speak with pirate jargon"- pipe with instructionsifconfig | afm -i "what is my local network IP"- pipe with instructions- Works with custom instructions:
echo "code" | afm -i "You are a code reviewer"
- Enhanced Help: Added GitHub repository URL to CLI help information
π Technical Improvements
- Added
readFromStdin()function with Darwin import forisatty()detection - Stdin input flows through same processing as
-s/--single-promptmode - 1MB size limit protection and UTF-8 validation for piped input
- Updated documentation with comprehensive pipe usage examples
π¦ Distribution
- Portable binary for Apple Silicon Macs (arm64)
- Requires macOS 26+ with Apple Intelligence enabled
- Self-contained installation with dependencies
π Usage Examples
# Basic pipe usage
echo "Explain quantum computing" | afm
# With custom instructions
git diff | afm -i "You are a senior code reviewer"
# Process file contents
cat README.md | afm -i "Summarize this documentation"π₯ Download & Install manually
# Download the release
curl -L -o afm-v0.5.1-arm64.tar.gz https://github.com/scouzi1966/maclocal-api/releases/download/v0.5.1/afm-v0.5.1-arm64.tar.gz
# Extract and install
tar -xzf afm-v0.5.1-arm64.tar.gz
cd afm-v0.5.1-arm64
sudo cp afm /usr/local/bin/
# Verify installation
afm --versionπ₯ Install with Brew
# Add the tap
brew tap scouzi1966/afm
# Install AFM
brew install afm
# Verify installation
afm --version
π Requirements
- macOS 26+ with Apple Intelligence
- Apple Silicon Mac (M1/M2/M3/M4)
- Swift runtime (included in modern macOS)
Full documentation: https://github.com/scouzi1966/maclocal-api