Skip to content
Back to Home

AI Terminal

CraftedCode — Native AI coding terminal by Seyhun Akyürek

A native macOS terminal that embeds AI directly into your development workflow. Chat with LLMs using full project context, run autonomous coding loops, integrate with 92+ MCP tools, and leverage 335+ agent skills — all from a single binary with zero dependencies.

Swift
macOS 13+
5 LLM Providers
92+ MCP Tools
335+ Agent Skills
MIT License

Features

AI-Powered Development

Talk to AI with full project context. Ask questions about your codebase, get code explanations, and generate code with LLM assistance.

  • LLM Chat with project context
  • Codebase Q&A
  • 5 Providers — Ollama, OpenAI, Anthropic, OpenRouter, Google AI
  • Dynamic model fetching from live APIs

MCP Integration

92+ tools connected to Langflow agents with auto-discovery, fuzzy matching, and direct HTTP transport.

  • 92+ tools connected to Langflow agents
  • Auto-discover tools on first call
  • Fuzzy matching for natural tool invocation
  • MCP server mode — expose CraftedCode as a server

Autonomous Loops

10 built-in autonomous agent workflows: coding, research, content, sales, debug, review, refactor, test, document, optimize.

  • 10 built-in loops (coding, research, sales, debug, etc.)
  • Custom loops with /loop add
  • Loop chaining — run multiple loops sequentially
  • Watch loops — auto-run on file changes

Security & Compliance

Built-in fraud detection, KYC compliance checks, PII scanning, and code quality analysis.

  • /fraud — payment bypass, IDOR, price manipulation detection
  • /kyc — identity verification, age checks, document validation
  • /pii — SSN, credit cards, emails, phone numbers, API keys
  • /code quality — file sizes, function lengths, TODO markers

AI-Powered Commands

Generate commit messages, create PRs, auto-generate tests, refactor code, and build documentation — all from the terminal.

  • /commit — AI-generated commit messages
  • /pr — Create GitHub PRs with AI descriptions
  • /testgen — Auto-generate test cases for any file
  • /refactor — AI-powered code refactoring

Native macOS Experience

Pure Swift binary with no dependencies. Rich terminal UI with markdown rendering, session tracking, and 335+ agent skills.

  • Pure native Swift — no Node.js required
  • Rich output with markdown, tables, code blocks
  • 335+ agent skills from ~/.hermes, ~/.agents, ~/.claude
  • Session persistence, workspace save/restore

Install

One-line Install

curl -fsSL https://github.com/seyhunak/craftedcode/install | bash

Build from Source

git clone https://github.com/seyhunak/craftedcode
cd craftedcode
./build.sh

Manual Install

cp dist/crafted ~/.local/bin/

Requirements: macOS 13+ (Ventura or later), Xcode 15+ or Swift 5.9+ toolchain. No Node.js required.

Autonomous Loops

Goal → Action → Check → Fix → Repeat. 10 built-in loops for autonomous agent workflows.

/loop codingRead → Plan → Edit → Test → Fix → Summarize
6 steps
/loop researchDefine → Search → Summarize → Verify → Synthesize
5 steps
/loop debugReproduce → Isolate → Hypothesize → Fix → Verify
6 steps
/loop reviewScan → Analyze → Score → Report
4 steps
/loop refactorIdentify → Plan → Extract → Simplify → Verify
6 steps
/loop testAnalyze → Plan → Write → Run → Fix → Coverage
6 steps
/loop salesICP → Find → Enrich → Qualify → Personalize → Send
7 steps
/loop contentDefine → Draft → Critique → Rewrite → Score → Publish
6 steps
/loop documentScan → Structure → Draft → Review → Finalize
5 steps
/loop optimizeProfile → Identify → Optimize → Benchmark → Validate
6 steps

Custom Loops

# Simple deployment loop
/loop add deploy | Build and deploy to staging | shell:swift build, shell:swift test, shell:./deploy.sh staging, llm:Verify deployment | 3

# Research with web search
/loop add competitor | Analyze competitor | llm:Define what to research, shell:curl -s https://example.com, llm:Summarize findings | 2

Step types: llm:<prompt>, shell:<cmd>, read:<path>, mcp:<tool>:<input>

Quick Start

1. Configure your LLM provider

# Ollama (local, no API key needed)
❯ /provider ollama

# OpenAI
❯ /provider openai
❯ /config openai_key sk-...

# Anthropic
❯ /provider anthropic
❯ /config anthropic_key sk-ant-...

2. Start the REPL

crafted

3. Try your first commands

❯ /init                          # Generate project context
❯ /ask What does the auth module do?
❯ /chat How would you improve error handling?
❯ /loop coding Add validation to login
❯ /commit                        # AI commit message
❯ /testgen Sources/Auth/LoginManager.swift

Get Started

CraftedCode is open source and available on GitHub. Install it today and start coding with AI assistance.