Juno Agent Documentation
Complete guide to using Juno Agent - the revolutionary external context system that keeps AI tools updated with your exact dependencies.
Getting Started
Installation
Install Juno Agent
# Install Juno Agent
pip install juno-agent
# Verify installation
juno-agent version
First-time Setup
Basic Setup Commands
# Universal AI tool setup
juno-agent setup
# Start Juno Agent with default model
juno-agent
# Start in debug mode
juno-agent --debug --trace
Setup Wizard Steps
- API Key Setup - Secure entry with provider detection
- Editor Selection - Integration with popular editors
- Model Configuration - Provider and model selection
- Project Scanning - Automatic dependency detection
- MCP Server Setup - External context configuration
Quick Start Examples
Basic Usage
In Debug Mode
External Context System
What is External Context?
Problem Solved
AI tools fail because they don't know your exact dependency versions
Solution
Automatic documentation fetching for your exact dependency versions
Result
AI knows your exact React 18.3.1, not generic React knowledge
Automatic Documentation Setup
External Context Configuration
# Universal AI Tool Configuration System
juno-agent setup
# Configures 26+ AI tools automatically:
β Cursor - .cursor/rules/*.mdc created
β Claude Code - configured
β Windsurf - .windsurfrules created
β VS Code - settings.json updated
β GitHub Copilot - configured
β + 21 more tools
# Version-specific documentation fetching:
cd my-react-app
juno-agent
# Detects: React 18.3.1, TypeScript 5.4.5
# Fetches current docs for exact versions
# Creates external_context/ symlinks
# All AI tools now have accurate context
Key Benefits
Version-Specific Knowledge
- β’ React 18.3.1 specific features and APIs
- β’ TypeScript 5.4.5 latest syntax
- β’ Framework-specific best practices
- β’ Current dependency documentation
One Setup, All Tools
- β’ Configures Claude Code automatically
- β’ Works with Cursor and Copilot
- β’ Supports 20+ AI coding tools
- β’ Consistent context everywhere
Model Support
Supported Providers
OpenAI + Open Source
GPT-5, O3/O4, GPT-4.1 Code + Llama 3.3, DeepSeek R1
Anthropic + Local
Claude-4, Opus 4.1, Sonnet 4 + Ollama models
Google + Free Tier
Gemini 2.5 Pro/Flash + OpenRouter free models
Any LiteLLM Model
xAI Grok 4, Groq, Custom endpoints
Interactive Model Selection
TUI Model Browser
Models that can analyze images and screenshots
Models with tool execution capabilities
Models with large context windows (128K-2M tokens)
Cost Optimization
Real-time Cost Tracking
π Input tokens: 1,245 ($0.0015)
π€ Output tokens: 567 ($0.0008)
π Total tokens: 1,812
Free Tier Models
DeepSeek R1, Gemini 2.5 Flash via OpenRouter
Cost-Effective
GPT-4o-mini, Claude Haiku, Llama via Groq
Premium Models
GPT-5, Claude-4, Gemini 2.5 Pro
TUI Interface
Interface Overview
Rich Visual Interface
Modern TUI with real-time status, visual tool tracking, and professional branding
Smart Commands
Intelligent autocomplete, command history, and context-aware suggestions
Real-time Updates
Live cost tracking, token usage, and tool execution visualization
Interactive Elements
Enhanced Input System
- β’ Multiline support with Shift+Enter
- β’ Smart autocomplete with Tab completion
- β’ Command history with arrow keys
- β’ History autocomplete for sessions
Tool Call Features
- β’ Expandable tool call details
- β’ Syntax highlighting for code/JSON
- β’ Progress indicators for operations
- β’ Copy functionality for outputs
Command Reference
Slash Commands
/help
Show comprehensive help with all available commands and shortcuts
/help
/cost
Display detailed token usage and cost breakdown for current session
/cost
/new-chat
Clear conversation history and free up context
/new-chat
/reset
Clear conversation history (alias for /new-chat)
/reset
/clear
Clear conversation history (alias for /reset)
/clear
/compact
Clear conversation history but keep a summary in context
/compact [custom instructions]
/history
View and manage conversation history with interactive interface
/history
/setup
Run setup wizard to configure API keys, editor, model, etc.
/setup
/model
Configure AI model, provider, and API keys with interactive menu
/model
/quit
Exit the application
/quit
CLI Arguments
Command Examples
Basic Commands
Advanced Commands
Keyboard Shortcuts
Global Shortcuts
Input Shortcuts
Context-Specific
Configuration
Configuration Files
Global Configuration
# ~/.juno-agent/config.yaml
models:
default: "gpt-5"
providers:
openai:
api_key: "your-openai-key"
models: ["gpt-5", "gpt-4o", "gpt-4o-mini"]
anthropic:
api_key: "your-anthropic-key"
models: ["claude-4", "claude-3-5-sonnet"]
google:
api_key: "your-gemini-key"
models: ["gemini-2.5-pro", "gemini-1.5-flash"]
xai:
api_key: "your-xai-key"
models: ["grok-4", "grok-4-code"]
ui:
mode: "fancy" # or "simple"
theme: "dark"
show_tokens: true
show_cost: true
project:
auto_scan: true
languages: ["python", "javascript", "typescript", "rust", "go"]
frameworks: ["react", "nextjs", "django", "flask", "fastapi"]
Global Configuration (~/.juno-agent/)
- β’ Shared across all projects
- β’ API keys and default model settings
- β’ UI preferences and themes
- β’ Files: config.yaml, .env, .gitignore
Local Configuration (.juno-agent/)
- β’ Project-specific settings
- β’ Override global settings
- β’ Workspace data and libraries
- β’ Setup completion status
Environment Variables
Multi-project Setup
Project-specific Configurations
context_libraries: [βreactβ, βtypescriptβ, βnext.jsβ]
ui_mode: βfancyβ
context_libraries: [βdjangoβ, βpythonβ, βpostgresqlβ]
ui_mode: βsimpleβ
Tips & Tricks
Power User Features
Multi-line Input
- β’ Use Shift+Enter or Ctrl+J for line breaks
- β’ Perfect for code blocks and complex queries
- β’ Maintains formatting in conversation
- β’ Syntax highlighting for code input
Selection Mode
- β’ Ctrl+S to enter text selection mode
- β’ Select any text in the chat area
- β’ F2 to copy selected text to clipboard
- β’ Useful for extracting code snippets
Command Chaining
- β’ Use
/compact [instructions]
for targeted summarization - β’ Combine
/new-chat
with immediate follow-up - β’ Chain tool calls for complex workflows
- β’ Strategic context management
Model Switching
- β’ Fast models (Groq) for quick questions
- β’ Powerful models (Claude-4, GPT-5) for complex coding
- β’ Local models (Ollama) for privacy
- β’ Use
/model
to switch mid-conversation
Best Practices
Troubleshooting
Common Issues & Solutions
API Key Issues
Error: βInvalid API keyβ or βUnauthorizedβ
- β’ Run
/setup
to reconfigure API keys - β’ Check environment variables are set correctly
- β’ Verify API key has proper permissions
- β’ Ensure no extra spaces in API key
TUI Display Issues
Garbled display or weird characters
- β’ Try
--ui-mode simple
for compatibility - β’ Ensure terminal supports UTF-8 encoding
- β’ Update terminal software if possible
- β’ Use
--debug
flag for detailed logs
Performance Issues
Slow responses or high token usage
- β’ Use
/cost
to monitor token usage - β’ Try faster models like Groq for simple queries
- β’ Use
/compact
to reduce context size - β’ Enable
--trace
for performance analysis
Debug Mode
For detailed troubleshooting
Logs saved to app_run.log in current directory