KinClaw is a 24/7 autonomous AI agent that analyzes its own code, proposes improvements, and implements them once you approve — all from your Telegram or Discord.
- 🔍 Self-analysis: Reads and measures its own codebase continuously
- 🤖 AI proposals: Uses Claude to generate concrete improvement proposals
- 📱 Multi-channel: Telegram, Discord notifications
- ✅ Safe execution: Guardrails prevent touching critical files or exceeding budgets
- 📋 Full audit log: Every action logged for transparency
- 🌐 Web dashboard: Real-time overview at
localhost:8000
# Clone the repo
git clone https://github.com/eobarretooo/kinclaw
cd kinclaw
# Create an isolated environment
python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
# Configure
cp .env.example .env
# Edit .env with your tokens (at minimum ANTHROPIC_API_KEY)
# Quick start works with no chat channel configured by default
# Run the test suite
python -m pytest
# Start the app
python -m kinclaw runpython -m kinclaw run # Start agent + dashboard
python -m kinclaw status # Check agent status
python -m kinclaw proposals # List pending proposalsReply to KinClaw in any channel with:
| Action | Keywords |
|---|---|
| Approve | aprova, approve, yes, sim, ok |
| Reject | nega, reject, no, não, cancel |
cp .env.example .env
# Edit .env with the same values used locally
# ACTIVE_CHANNELS can stay empty unless you are enabling Telegram or Discord
docker-compose up -dOwner (Telegram/Discord)
│ aprova/nega
▼
ChannelRouter ──→ MessageBus ──→ KinClawAgent
│
┌────────────┴────────────┐
│ │
SelfAnalyzer ApprovalQueue
ClawComparator ApprovalParser
ProposalGenerator ApprovalExecutor
│ │
└────────────┬────────────┘
│
Guardrails (Safety + Limits)
│
Git → GitHub PR
Key .env variables:
| Variable | Description | Default |
|---|---|---|
ANTHROPIC_API_KEY |
Claude API key | required |
TELEGRAM_BOT_TOKEN |
Telegram bot token | optional |
GITHUB_TOKEN |
GitHub PAT for PRs | required |
SLEEP_BETWEEN_ANALYSES |
Seconds between cycles | 3600 |
MAX_PROPOSALS_PER_DAY |
Daily proposal limit | 3 |
MONTHLY_BUDGET_USD |
Max API spend/month | 100 |
- Guardrails prevent modification of
kinclaw/guardrails/andkinclaw/approval/ - Daily commit/post rate limits enforced
- Monthly budget cap
- Full audit log of all actions
- All changes require explicit human approval
MIT