Skip to main content

Production-grade TUI for AI-assisted development with RLM context management

Project description

PinkyClawd

╭──────────────────────────────────────────────────────────╮
│                                                          │
│   ██████╗ ██╗███╗   ██╗██╗  ██╗██╗   ██╗                │
│   ██╔══██╗██║████╗  ██║██║ ██╔╝╚██╗ ██╔╝                │
│   ██████╔╝██║██╔██╗ ██║█████╔╝  ╚████╔╝                 │
│   ██╔═══╝ ██║██║╚██╗██║██╔═██╗   ╚██╔╝                  │
│   ██║     ██║██║ ╚████║██║  ██╗   ██║                   │
│   ╚═╝     ╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝                   │
│                                                          │
│   ██████╗██╗      █████╗ ██╗    ██╗██████╗              │
│   ██╔════╝██║     ██╔══██╗██║    ██║██╔══██╗            │
│   ██║     ██║     ███████║██║ █╗ ██║██║  ██║            │
│   ██║     ██║     ██╔══██║██║███╗██║██║  ██║            │
│   ╚██████╗███████╗██║  ██║╚███╔███╔╝██████╔╝            │
│    ╚═════╝╚══════╝╚═╝  ╚═╝ ╚══╝╚══╝ ╚═════╝             │
│                                                          │
│           ◢◤ AI-Powered Development ◥◣                  │
╰──────────────────────────────────────────────────────────╯

AI-powered development tool with TUI interface and Recursive Language Model (RLM) context management for unlimited conversation context.

Features

  • RLM Context Management: Automatic context archival and retrieval enables conversations beyond context window limits
  • Multi-Provider Support: Anthropic (Claude), OpenAI (GPT-4), and more
  • Rich TUI Interface: Full-featured terminal UI with Textual
  • 14 Built-in Tools: bash, read, write, edit, glob, grep, todo, webfetch, memory, and more
  • Session Management: Fork, export, and manage conversation sessions
  • Slash Commands: /context, /search, /compact, /models, /agents

Installation

via npm (recommended)

npm install -g pinkyclawd

via pip

pip install pinkyclawd

From source

git clone https://github.com/tekcin/PinkyClawd.git
cd PinkyClawd
pip install -e .

Requirements

  • Python 3.11+
  • Node.js 16+ (for npm installation)

Usage

# Start the TUI
pinkyclawd

# Start with a specific project
pinkyclawd /path/to/project

# Continue last session
pinkyclawd --continue

# Run a single command (non-interactive)
pinkyclawd run "explain this codebase"

# List available models
pinkyclawd models

Configuration

Create ~/.config/pinkyclawd/pinkyclawd.json:

{
  "model": "anthropic/claude-sonnet-4",
  "theme": "pinkyclawd",
  "rlm": {
    "enabled": true,
    "threshold_ratio": 0.33,
    "auto_retrieve": true
  }
}

Environment Variables

export ANTHROPIC_API_KEY=sk-ant-...
export OPENAI_API_KEY=sk-...

RLM (Recursive Language Model)

RLM enables unlimited context by automatically:

  1. Tracking token usage across the conversation
  2. Archiving older context when threshold is reached (default: 33%)
  3. Retrieving relevant archived context for new queries
  4. Injecting context into the conversation seamlessly

Manual RLM Commands

  • /context - Show current token usage
  • /search <query> - Search archived context
  • /compact - Manually trigger context archival

RLM Tools

  • memory - Search and retrieve archived context
  • rlm_query - Execute Python queries on archived context

License

MIT

Author

Michael Thornton (tekcin@yahoo.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinkyclawd-0.1.0.tar.gz (105.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pinkyclawd-0.1.0-py3-none-any.whl (142.3 kB view details)

Uploaded Python 3

File details

Details for the file pinkyclawd-0.1.0.tar.gz.

File metadata

  • Download URL: pinkyclawd-0.1.0.tar.gz
  • Upload date:
  • Size: 105.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pinkyclawd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 be9224eb78496699b83b91601633b39e0d789dec7a08f5f131e28d566119af5e
MD5 17589e5950cea6ff736718de474e7ca2
BLAKE2b-256 6c9dc80d7e7a91894703fec5b903fa9f97d3dafc60ac555a39526ba8eb8dc880

See more details on using hashes here.

File details

Details for the file pinkyclawd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pinkyclawd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 142.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pinkyclawd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abeeced3d714d4305acdd32f9e3c74c9922ad00d2423022c70811fe3f5e8a1cd
MD5 1e6bcf1a1a843b14660390ea50cc7287
BLAKE2b-256 c1e2f9a76dd74e707c3f560442167d19bc6b312e1ab63e7a599bd594411ee8be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page