Hasty Briefsbeta

Agent-C: a 4KB AI agent

16 days ago
  • #AI agent
  • #shell commands
  • #OpenRouter
  • Ultra-lightweight AI agent written in C
  • Communicates with OpenRouter API and executes shell commands
  • Tool Calling: Execute shell commands directly through AI responses
  • Optimized Binaries: 4.4KB on macOS (GZEXE), ~16KB on Linux (UPX)
  • Conversation Memory: Sliding window memory management for efficient operation
  • Cross-Platform: macOS and Linux
  • Requirements: GCC compiler, curl command-line tool, OpenRouter API key
  • Build system auto-detects platform and applies optimal compression
  • Set OpenRouter API key with export OR_KEY=your_openrouter_api_key_here
  • No license mentioned - 'Copy me, no licence'