Getting Started
Installation
Section titled “Installation”Choose your preferred installation method:
Go Install (Recommended)
Section titled “Go Install (Recommended)”go install github.com/1broseidon/promptext/cmd/promptext@latestScript Install
Section titled “Script Install”Linux/macOS:
curl -sSL https://raw.githubusercontent.com/1broseidon/promptext/main/scripts/install.sh | bashWindows PowerShell:
irm https://raw.githubusercontent.com/1broseidon/promptext/main/scripts/install.ps1 | iexManual Install
Section titled “Manual Install”Download binaries from GitHub Releases and add to your PATH.
Basic Usage
Section titled “Basic Usage”Simple Commands
Section titled “Simple Commands”# Process current directory (TOON format to clipboard)promptext
# Use alias for convenienceprx
# Process specific directorypromptext -d /path/to/project
# Show project overview onlypromptext -i
# Export to file (format auto-detected from extension)promptext -o context.toonpromptext -o context.mdpromptext -o project.xmlCommon Options
Section titled “Common Options”| Flag | Description |
|---|---|
-d | Directory to process |
-e | File extensions (.go,.js) |
-x | Exclude patterns |
-f | Format (toon, markdown, xml) |
-o | Output file (auto-detects format) |
-i | Info mode only |
-r | Relevant keywords for prioritization |
--max-tokens | Token budget limit |
-v | Verbose output |
-q | Quiet mode for scripting |
Examples
Section titled “Examples”Filter by file type:
promptext -e .go,.js,.tsExclude directories:
promptext -x "node_modules/,vendor/,test/"Generate reports:
# TOON format (default, token-optimized)promptext -o context.toon
# Markdown formatpromptext -f markdown -o context.md
# XML format for automationpromptext -f xml -o report.xmlPrioritize relevant files:
# Focus on authentication codepromptext -r "auth login OAuth"
# Database-related filespromptext -r "database SQL migration"Stay within token budgets:
# Limit to 8000 tokens (Claude Haiku)promptext --max-tokens 8000
# Combine with relevance for smart selectionpromptext -r "api routes" --max-tokens 5000Quick Workflows
Section titled “Quick Workflows”For AI Queries
Section titled “For AI Queries”# Quick context (3k tokens)prx -r "auth" --max-tokens 3000
# Standard context (8k tokens)prx -r "api database" --max-tokens 8000
# Full codebase (within limits)prx --max-tokens 50000For Documentation
Section titled “For Documentation”# Export project overviewprx -i -o overview.md
# Export full context in markdownprx -f markdown -o full-context.mdFor CI/CD
Section titled “For CI/CD”# Machine-readable XMLprx -f xml -o build/context.xml
# Quiet mode for scriptingprx -q -o context.toonNext Steps
Section titled “Next Steps”- Output Formats - TOON, Markdown, and XML formats
- Relevance Filtering - Smart file prioritization
- Configuration - Customize behavior
- File Filtering - Advanced filtering rules