Skip to main content

🌐 English | Español

Pedacito

PyPI Python 3.11+ MIT License Local-First EN / ES

Pedacito (pdc) is a local-first AI coding agent for the models you can run on the GPU you already own, from 4B to 27B parameters. It cuts your codebase into small, precisely bounded pieces, so a small model reads and edits only the lines that matter, instead of needing a frontier model with a 200k-token window.

  • Local and hybrid servers: LM Studio, Ollama, Lemonade Server, llama.cpp, vLLM, Strata/Avalon, and any OpenAI-compatible endpoint.
  • Hosted when you want it: Claude, ChatGPT, DeepSeek, Qwen, Gemini and OpenRouter for planning, verification or escalation, with a spend cap.
  • Safe by default: secret scanning, OS sandbox, checkpoints you can roll back.

Pedacito GUI workspace: chat with a staged diff, live activity and plan panes, the Composer with Auto-route, Post-edit verify and Creative toggles, and the telemetry bar

Pedacito split-screen terminal UI: transcript beside the Activity & Plan sidebar, with the context meter and the EN|ES language switch in the header

30-second quickstart

pip install pedacito                 # Windows: py -m pip install pedacito
pdc gui ~/code/your-project          # browser control panel
pdc tui ~/code/your-project          # split-screen terminal
pdc ask "where is login handled?"    # one-shot CLI, from the project folder

Start a model server first (LM Studio, Ollama, Lemonade or llama.cpp), then in the GUI open Settings → Model discovery → Scan local servers, or run pdc models scan.

What's new in v0.3.3

Feature What you get Read more
Agent Client Protocol bridge pedacito acp speaks JSON-RPC 2.0 over stdio for editors and agent hosts: session/new, session/prompt with text, @file and image blocks, streamed session/update events and session/request_permission. It wraps the same warm engine as rpc, which gains --events and --describe. ACP bridge
Rich zero-dependency TUI Inline syntax-highlighted diffs, collapsible tool-call cards (Ctrl+O, /expand, /collapse), an @ fuzzy picker for files, symbols and images, and clickable SGR mouse zones for the language switch, sidebar tabs and scrollbar. tui
Local, LAN & Tailscale endpoints One locality rule covers loopback, .local, RFC 1918, Tailscale/CGNAT (100.64.0.0/10), link-local and IPv6 ULA. Local cards without a calibrated temperature are marked stale for recalibration. Local endpoints
Small-model & sparse-MoE upgrades tool_mode = "plain" (plain-word gather steps, A/B-tested by calibrate), an opt-in proactive_escalation router, shadow-tested best_of, and an interleaved pre-stop verifier. Oversized tool output spills to .pedacito/scratch/, which the model can read but never write. Configuration
Guided git, hardened pedacito commit and pedacito pr run a secret pre-flight scan before every commit and PR, never push or force-push, and are shared by the TUI /git and the GUI Git drawer. undo refuses to rewind past a moved git HEAD without --force. Git and pull requests
Reliable runs & CLI polish Pre-run checkpoints for divergent trees, restore --checkpoint, offline tree-sitter fallback with parsers prefetch, pedacito diag, models --profile/--model, new --no-complex, honest partial-batch semantics and a hard --max-minutes clamp. Offline parsers and diag
GUI hardening Partial-hunk review sign-off with per-hunk provenance, persistent thread cards, deterministic /compact handoffs, a responsive narrow layout, and quiet client disconnects. Review page
Windows PowerShell 5.1 note On PowerShell 5.1, 2>&1 wraps stderr lines as error records; use 2>$null for clean JSON output. Windows stderr

What's new in v0.3.2

Feature What you get Read more
Interleaved execution execution_mode picks two_phase, interleaved or auto. Interleaved runs keep one native tool-calling conversation (OpenAI tool_calls, Anthropic tool_use, JSON fallback, and Qwen3.5/3.8 / Strata XML <tool_call>), with dry runs staged in a shadow workspace. Set it per run with --execution-mode, or live with the TUI /mode. Configuration
Native Gemini & OpenAI Responses gemini_native (on by default) uses Google's generateContent; openai_responses uses /v1/responses for o3, o4 and GPT-5 reasoning models. Configuration
Three-tier model catalog & keychain Provider metadata, a 24 h models.dev cache and a built-in table supply context windows and prices. pedacito models refresh forces an update. api_key_keyring reads your OS keychain once pedacito[keyring] is installed. Configuration
Strata / Avalon onboarding & coexistence A one-step preset at port 8080, an API key field in the scan, STRATA_API_KEY fallback, an API key required badge, and synchronous Lemonade ↔ Strata auto-evict across GUI, TUI and CLI. Model server setup
Live RAM/VRAM badge & pairing panel The GUI hardware badge refreshes every 3 seconds and is pushed live. Local GPU VRAM is auto-detected on baseline reset/loopback scans while LAN profiles stay client-independent. The Dual-GPU / Scout + Architect Pairing panel starts collapsed. GUI workspace
Hunk review & project shell rules Accept individual hunks in the Changes pane. Allow in this project saves a narrow shell rule (shell_allowlist_by_project) for the current project only. Review page
Guided git & pull requests pedacito commit scans the staged diff for secrets and commits locally, and pedacito pr drafts a grounded title/body and opens it with gh. Both never push. The TUI /git and the GUI Git drawer use the same pre-flight. Git and pull requests
GGUF calibration, temperatures & creative sway Calibration infers base families for custom fine-tunes from runtime/GGUF headers (or cached HF metadata over LAN), adds a Quick/Full GUI mode picker, surfaces calibrated temperatures in Settings/config --check, and adds relative creative_temperature_delta sway. Configuration

What's new in v0.3.1

Feature What you get Read more
Bilingual EN / ES UI, TUI & docs Switch the GUI with the EN/ES top-bar toggle, the TUI with F3 or /lang, the CLI with --lang es or PEDACITO_LANG. llm_reply_language controls the language of the model's explanations. Every guide has a Spanish edition. Language & localization
Advanced system profiling & auto-tune pedacito profile shows a vendor-neutral RAM/VRAM snapshot with a source per number (Linux sysfs, NVIDIA nvidia-smi, macOS vm_stat, Windows winapi), a cached prefill/generation probe and the active profile's tuning. auto_tune = true (opt-in) fits context, retrieval budgets and timeout to free memory; missing telemetry makes it abstain, and existing configs do not change. System profiling and auto-tune
Context-aware auto-update A quiet, opt-out release check: one anonymous PyPI GET at startup (2 s timeout, cached 24 h), a dismissible GUI banner with a streamed upgrade and Restart, pdc update --run, and the TUI /update. The command matches your install method (pipx, venv, pip --user, or git for editable checkouts). check_for_updates = false keeps Pedacito fully offline. Upgrading
Local image generation pedacito image and the GUI/TUI /image generate images on a local Lemonade Server, with calibration for image models. Local image generation
Multimodal image input Send PNG/JPEG/WebP/GIF to a vision model: --image PATH, GUI paste/drag-drop/📎 Attach, TUI /attach (4 images, 10 MB each). Multimodal chat input
Native Anthropic prompt caching anthropic_native = true (default) uses /v1/messages with explicit cache_control breakpoints, 5m/1h TTLs, native thinking, tools and images. Hosted prompt caching
TUI multi-line composer Shift+Enter, Alt+Enter, Ctrl+J or a trailing \ add newlines; bracketed paste keeps pasted blocks intact. tui

What's new in v0.3.0

Feature What you get Read more
Cross-server VRAM manager Treats all your local model servers as one pool. It shows which models are resident, loads and unloads them through each runtime's API, and evicts other servers before a run. Server lifecycle manager
Strata local-moe Tiered mixture-of-experts servers (Strata, Avalon) get their own execution profile: larger reply budgets, a 10-minute timeout and one stream at a time. local-moe tier
SSE streaming Tokens stream live over server-sent events, with a live reasoning drawer, a per-call heartbeat and a near-instant Stop. Live telemetry
Security Guard Scans for secrets before any hosted request (sk-, pypi-, ghp_, AWS and Google keys, PEM private keys), keeps sensitive files out of the model's reach, asks before risky actions, and runs commands in an OS sandbox. Security guide
Custom themes Ten-token color schemes shared by the GUI and the TUI. Nine presets, your own saved schemes, and a per-project pin. Color schemes
@ pinning Write @file.py or @Class.method in a prompt to pin that exact code into every phase of the run. Pinning context
Checkpoint tree Every run is checkpointed. Inspect each change as a unified diff, then roll back with pdc undo or pdc checkout. Checkpoints and rollback
Hybrid routing A strong architect model plans a task and a fast local editor implements it. On one GPU, the architect's server is evicted between the two stages. Hybrid routing

Documentation

Guide What it covers
Installation pip, pipx, extras, model servers, GPU inference servers, upgrading
Usage GUI, CLI, TUI, autonomous runs, @ pinning, language switching
Configuration Config files, rules, themes, profiles, language, every setting
Architecture Engine, server lifecycle manager, local-moe, hybrid routing, limits
Skills and tools 19 bundled skills, custom skills, MCP servers, hooks, prompt overrides
Security Credential scanning, sandboxing, checkpoints, reporting
Contributing Dev setup, tests, module map, docs and locale rules
QUICKSTART.md Step-by-step first runs with expected output
MODEL_GUIDE.md Choosing, pairing and tuning models
TECHNIQUES.md How Pedacito gets small models to work well

Docs ownership. docs/ (INSTALLATION, ARCHITECTURE, USAGE, CONFIG, SKILLS_AND_TOOLS, SECURITY and CONTRIBUTING) is the canonical reference for settings, commands and guarantees. The three root guides, QUICKSTART.md, MODEL_GUIDE.md and TECHNIQUES.md, remain the canonical task-oriented guides: first runs, model pairing and tuning, and small-model techniques. This README is the index, and CHANGELOG.md is the history. New reference prose goes to docs/, new walkthroughs go to the root guides, and each set links to the other instead of copying text.

Run pdc --help for every command, or pdc how "your question" for built-in help. Machine clients can drive one warm session over stdio: pedacito rpc speaks newline-delimited JSONL-RPC, and pedacito acp speaks JSON-RPC 2.0 Agent Client Protocol for editors and agent hosts.

Contributing

Issues and pull requests are welcome; please open an issue before a large PR. See docs/CONTRIBUTING.md. The project website is pedacito.dev, and the maintainer can be reached at contact@pedacito.dev. Report security issues privately, as described in docs/SECURITY.md.

License

MIT, see LICENSE.

Metadata

Release files for pedacito 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pedacito 0.3.3
File Size Uploaded Provenance Actions
pedacito-0.3.3.tar.gz 3.3 MB Without provenance Details for pedacito-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pedacito 0.3.3
File Interpreter ABI Platform Actions
pedacito-0.3.3-py3-none-any.whl Python 3 none any Details for pedacito-0.3.3-py3-none-any.whl

Total release size: 5.8 MB

Release files / pedacito-0.3.3.tar.gz

Download URL pedacito-0.3.3.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
f246ca335f4d5d41444de2adb70c6dd15223bfe4fe5cc3e69cf0cd244f23d8f3
BLAKE2b-256 checksum
How to use checksums
410e41afaf719c14ee1f53f0087f81fcbdefe876f057c4a42bf4c934663743d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / pedacito-0.3.3-py3-none-any.whl

Download URL pedacito-0.3.3-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
08553d2eeac60c62f53774f7fa80f64eb4a5a64c8f1a5a5ed1ce5afd4c0771aa
BLAKE2b-256 checksum
How to use checksums
82ba9278a3ad2dd6897716cb7b4911e32cba48ed97e576b5e4c212f26a4a2c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Security for pedacito 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page