π GitHub "For the Love of Code" Hackathon Entry
Bibble is far more than a simple chatbot - it's a sophisticated AI-powered tool-calling agent that transforms your terminal into an intelligent workspace. Built in TypeScript, Bibble can execute multi-step workflows, call tools autonomously until tasks are complete, and seamlessly integrate with your development environment through intelligent workspace detection.
With support for OpenAI, Anthropic, Google Gemini, and OpenAI-compatible API endpoints, Bibble combines real-time response streaming, persistent chat memory, and extensive tool integration to create a truly powerful terminal assistant.
- Multi-Step Workflow Execution - Bibble autonomously chains tool calls until complex tasks are completed
- Intelligent Task Planning - Breaks down requests into actionable steps and executes them systematically
- Contextual Decision Making - Uses conversation history and workspace context to make smart tool choices
- Persistent Task Memory - Maintains context across tool calls for coherent multi-step operations
- File Operations - Read, write, create, delete, and manage files and directories
- Code Analysis - Examine codebases, analyze structure, and understand project layouts
- Workspace Intelligence - Automatic detection of project types, languages, and configurations
- Git Integration - Repository analysis and commit message enhancement
- Multi-Engine Web Search - DuckDuckGo, Bing, Google, and Brave integration with intelligent fallbacks
- AI-Powered Query Enhancement - Smart query optimization for better search results
- Advanced Research Assistant - Orchestrated workflows combining search and content extraction
- Content Extraction - Intelligent web scraping with rate limiting and parsing
- Weather & Climate Data - Real-time weather information by location
- Date & Time Services - Timezone-aware datetime operations and scheduling
- Hacker News Integration - Fetch and analyze trending tech stories
- News & Current Events - Stay updated with latest developments
- Process Management - Execute system commands and manage processes
- Environment Analysis - System diagnostics and environment detection
- Terminal Operations - Advanced terminal interactions and automation
- π± Cat Image Generator - Fetch random cat images with terminal display using custom @pinkpixel/pixelpop package
- πͺ Roast Generator - Ask Bibble to playfully roast you for entertainment
- π Git Poetry - Transform boring commit messages into beautiful poetry
- π¨ ASCII Art & Animations - Beautiful terminal graphics and animations
- Universal Tool Extension - Connect to any MCP-compatible server to add custom tools
- User-Configurable - Easy setup and management of external tool integrations
- Seamless Integration - External tools work alongside built-in capabilities
- Community Ecosystem - Leverage the growing MCP tool ecosystem
- Pink Pixel Theme - Gorgeous branded interface with gradient effects
- Interactive Tool Displays - Status badges, syntax highlighting, and progress indicators
- Image & GIF Rendering - Display images and animated GIFs directly in terminal using custom @pinkpixel/pixelpop package
- Smart Tables & Lists - Beautiful data presentation with color coding
- Real-time Streaming - Live response streaming with visual feedback
- Multi-Provider Support - OpenAI, Anthropic, Google Gemini, and OpenAI-compatible endpoints
- Flexible Model Selection - Switch between models and providers seamlessly
- Persistent Memory - Chat history storage and retrieval
- Custom System Prompts - Personalize AI behavior and guidelines
See Bibble's tool-calling agent capabilities in action:
Powered by @pinkpixel/pixelpop - a custom terminal image rendering package built with Bibble in mind
- Node.js v20 or higher
- npm v7 or higher
# Install the official package
npm install -g @pinkpixel/bibble- Clone the repository
- Install dependencies
npm install
- Build the project
npm run build
- Install globally
npm install -g .
After installation, you can run Bibble using the command bibble. If you installed the package with the @pinkpixel scope, you can also use npx @pinkpixel/bibble.
bibbleor
bibble chatWith npx:
npx @pinkpixel/bibblebibble configbibble historybibble chat- Start a chat sessionbibble chat --model gpt-4- Start a chat with a specific modelbibble chat --continue- Continue the most recent chatbibble chat --history <id>- Load a specific chat history
bibble config list- List all configuration settingsbibble config set <key> <value>- Set a configuration valuebibble config get <key>- Get a configuration valuebibble config reset- Reset configuration to defaultsbibble config api-key- Set up API key for a providerbibble config mcp-servers- Manage MCP server configurationsbibble config web-search- Configure preferred search engine and API keysbibble config timezone- Configure default timezone for datetime toolsbibble config user-guidelines- Configure user guidelines
bibble history list- List chat historybibble history show <id>- Show a specific chat historybibble history delete <id>- Delete a chat historybibble history clear- Clear all chat historybibble history export <id> <filename>- Export chat history to a JSON filebibble history import <filename>- Import chat history from a JSON file
bibble setup- Run the setup wizardbibble system-prompt- View the system prompt with tools listbibble diagnose- Diagnose environment and terminal compatibilitybibble diagnose --verbose- Show detailed diagnostic information
The following commands are available during a chat session:
/help- Display help information/exitor/quit- Exit the chat/clear- Clear the screen/save- Save the current chat to history/reset- Reset the current conversation/multilineor/paste- Enter multi-line input mode for pasting documentation, code, etc.- Start code block mode (typeand continue with your code)
Bibble v1.4.0 introduces a completely overhauled tool display system featuring:
- Dynamic Status Badges: Visual indicators showing tool execution status (running, completed, error)
- Boxed Parameter/Output Sections: Clearly delineated tool input/output for better readability
- Syntax Highlighted JSON: Beautiful formatting for JSON parameters and results
- Clickable URLs: Terminal hyperlinks for any URLs found in tool outputs
- Clipboard Support: Copy tool results directly to clipboard with interactive buttons
- Keyboard Shortcuts: Intuitive keyboard navigation for tool output exploration
These enhancements make working with MCP tools more intuitive and visually appealing. The new display system can be toggled using environment variables if compatibility issues arise.
Bibble is a complete tool-calling agent with an extensive suite of built-in capabilities that work together to handle complex, multi-step tasks autonomously.
- Multi-Engine Support: Integrated DuckDuckGo (primary), Bing, Google, and Brave search with intelligent fallbacks
- AI-Powered Query Enhancement: Smart query optimization for better search results
- Advanced Content Extraction: Intelligent web scraping with rate limiting and content parsing
- Research Session Management: Event-driven research workflows with progress tracking
- Cross-Platform Compatible: Optimized for Windows environments with proper path handling
web_search- Multi-engine search with intelligent fallbacks (DuckDuckGo, Bing, Google, Brave)quick_web_search- Fast information retrieval for immediate answersresearch_status- Monitor and manage ongoing research operationsweb_scrape- Extract content from web pages with smart parsing
read_file- Read and analyze file contentswrite_file- Create and modify fileslist_directory- Explore directory structurescreate_directory- Create new directoriesdelete_file- Remove files safelyfile_search- Search for files by name or pattern
execute_command- Run system commands and scriptsget_environment- Analyze system environmentprocess_management- Manage running processessystem_info- Get detailed system information
get_weather- Real-time weather data by locationget_datetime- Timezone-aware date and time operationshacker_news- Fetch trending tech storiesnews_search- Search current news and events
cat_images- Fetch random cat images with terminal displayroast_user- Generate playful roasts for entertainmentgit_poetry- Transform commit messages into poetryascii_art- Generate ASCII art and banners
The prior comprehensive research tool family has been retired; Bibble now routes every deep-dive request through these core tools, letting the enhanced research agent sequence searches, follow-ups, and content extraction as a single workflow.
Configure your preferred search engine and API keys:
bibble config web-searchThis wizard allows you to:
- Choose preferred engine: DuckDuckGo (no API key), Bing, Google Custom Search, or Brave
- Set API keys: Configure keys for Bing, Google, or Brave search APIs
- Automatic fallbacks: If your preferred engine fails, Bibble automatically tries other available engines
Once you start Bibble, the web search tools are automatically available. Simply ask questions that require web search, and Bibble will intelligently use the appropriate search tools:
> What are the latest developments in AI?
π Bibble will automatically search the web using the built-in tools...
Or explicitly request web search:
> Can you search for information about TypeScript 5.0 features?
π Bibble will use the `web_search` tool to find current information...
Bibble features advanced terminal image and GIF rendering capabilities powered by @pinkpixel/pixelpop, a custom package built specifically for this project:
- Direct Terminal Display - Images and animated GIFs render directly in your terminal
- Cross-Platform Support - Works across different terminal emulators
- Optimized Performance - Efficient rendering with minimal resource usage
- Custom Built - Designed from the ground up for Bibble's needs
- Open Source - Available on npm and GitHub for the community
@pinkpixel/pixelpop is also available as a standalone package for other developers to use in their terminal applications.
BIBBLE_DISABLE_ENHANCED_TOOLS: Set totrueto disable enhanced tool displaysBIBBLE_TOOL_DISPLAY_MODE: Set tobasic,compact, orfull(default)BIBBLE_ENABLE_IMAGES: Set tofalseto disable terminal image rendering
Bibble stores its configuration in a .bibble directory in your home directory. The configuration includes:
- API keys
- Default model settings
- UI preferences
- MCP server configurations
- User guidelines (additional instructions for the AI)
Bibble v1.6.1 introduces a user-friendly configuration wizard to easily set up your AI provider and model settings:
bibble config configureThe wizard guides you through:
- Provider Selection: Choose from OpenAI, Anthropic, Google, or OpenAI Compatible
- Model Selection: Pick from predefined models or enter custom model IDs
- Parameter Configuration: Set temperature, max tokens, reasoning effort, and more
- OpenAI Compatible: Define custom parameters (name and value pairs) to ensure compatibility with your specific endpoint
- Automatic Saving: All settings are saved automatically with confirmation
# Set up API keys
bibble config api-key
# Set default provider
bibble config default-provider
# View all settings
bibble config list
# Set specific values
bibble config set <key> <value>
# Reset to defaults
bibble config resetBibble functions as an MCP client, allowing it to connect to MCP-compatible servers and use their tools. MCP (Model Context Protocol) is a protocol for connecting language models to external tools and services.
To configure MCP servers, use:
bibble config mcp-serversBibble includes built-in diagnostic tools to help troubleshoot common issues:
# Basic diagnostic information
bibble diagnose
# Detailed system analysis
bibble diagnose --verboseThe diagnostic command will check:
- Platform and terminal information
- Node.js, npm, and npx executable paths and versions
- Environment variables and PATH configuration
- MCP server connectivity issues
Problem: You see "Connection closed" errors when starting Bibble, especially in terminals other than Warp.
Solution:
- Run
bibble diagnoseto check your environment - Ensure Node.js and npm are properly installed and accessible
- Check that your PATH includes Node.js and npm directories
- Try running from a different terminal (Command Prompt, PowerShell, or Git Bash on Windows)
Symptoms:
Failed to connect to MCP server "server-name": Connection closed
Advanced Troubleshooting:
- Run
bibble diagnose --verbosefor detailed information - Try running
node --versionandnpx --versionin your terminal - If using Windows, try running your terminal as Administrator
- Check if antivirus software is blocking Node.js processes
Problem: Bibble works in one terminal but not others.
Solution: Bibble v1.3.9+ includes multi-tier fallback systems for cross-terminal compatibility:
- Primary Strategy: Uses resolved executable paths
- Fallback Strategies: Direct commands, corepack, and bundled npm approaches
- Graceful Degradation: Continues working even if some servers fail
Supported Terminals:
- β Warp Terminal
- β Windows Terminal
- β Hyper
- β Command Prompt
- β PowerShell
- β Git Bash
- β Most Unix terminals
Problem: Tools not appearing in the system prompt or model not recognizing available tools.
Solution:
- Ensure you're using Bibble v1.4.0+ which fixes the tool visibility issue
- Check that all MCP servers are properly connected with
bibble diagnose - View the full system prompt with
bibble system-promptto confirm tools are listed - If tools are missing, try restarting Bibble or reconnecting to MCP servers
Problem: Bibble can't find Node.js, npm, or npx.
Solutions:
- Install Node.js: Download from nodejs.org
- Check Installation:
node --version npm --version npx --version
- Path Issues: Add Node.js to your PATH environment variable
- NVM Users: Make sure your Node.js version is activated
- Windows Users: Try reinstalling Node.js with "Add to PATH" option checked
Problem: API key errors or authentication failures.
Solutions:
- Run the setup wizard:
bibble setup - Manually set API keys:
bibble config api-key - Check your API key is valid and has sufficient credits
- Verify the correct API endpoint is configured
Problem: Slow startup or response times.
Solutions:
- Check your internet connection
- Try a different model or provider
- Reduce the number of enabled MCP servers
- Clear chat history if it's very large:
bibble history clear
If you're still experiencing issues:
- Run Diagnostics:
bibble diagnose --verbose - Check Logs: Look for error messages in the terminal output
- Update Bibble:
npm install -g @pinkpixel/bibble@latest - Check GitHub Issues: Visit the GitHub repository
- Report Bugs: Create a new issue with:
- Your operating system and terminal
- Output from
bibble diagnose --verbose - Steps to reproduce the issue
- Error messages or unexpected behavior
0
- Node.js >=20: Required for all Bibble versions
npm run buildnpm run devThe package is published to npm under the @pinkpixel scope:
# Login to npm
npm login
# Build the project
npm run build
# Publish the package
npm publish --access publicTo install the latest version:
npm install -g @pinkpixel/bibble@latestISC