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.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
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.

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.2

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.2
File Size Uploaded Provenance Actions
pedacito-0.3.2.tar.gz 3.1 MB Without provenance Details for pedacito-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 5.5 MB

Release files / pedacito-0.3.2.tar.gz

Download URL pedacito-0.3.2.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
3d55023098a24bd0c1fdc7ca96034aab6d1da52f4717f5e241a63cfb089ecede
BLAKE2b-256 checksum
How to use checksums
ca9301a58dbbc8346e853342bfe291037b8c812c3af3c072b8b2f52acfb9e0c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

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

Download URL pedacito-0.3.2-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b9da48300c7d8f886dc1dabeaca9d42ebabb916b77fb63fad852e7d7253ed3c6
BLAKE2b-256 checksum
How to use checksums
2998a6a9351f4e238b29ff7d80db234d9304b7fce877f7d3f1c4a88b6f591a61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Security for pedacito 0.3.2

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