TL;DR: Private Agent is a terminal AI agent that runs models locally (Ollama, LM Studio, llama.cpp) or on an OpenAI-compatible endpoint you approve, keeps memory and task plans in SQLite, and grounds answers in a local RAG index. Tools are permission-gated and sandboxed; nothing leaves your machine unless you explicitly approve it. I'd love for you to try it and tell me what you think.
Why I built it
Most AI assistants live in the cloud. That's fine for a lot of things, but I wanted an agent I could hand a real repository or a folder of private documents and trust that the data stays on my machine. Private Agent is my attempt at that: a full-screen terminal chat surface with a conversation pane, input pane, and live status ribbon, backed by local models and a local retrieval index, with every mutating tool action gated behind an approval you choose (`manual` / `auto` / `full`).
What it does
* Local-first models — discovers Ollama, LM Studio, and llama.cpp; routes embedding/reranker models out of the chat list so they stay available for retrieval.
* Local RAG — chunking, indexing, retrieval, reranking with a circuit breaker, route selection, and per-turn citations.
* Persistent memory — SQLite conversations, episodic and learned memory, session summaries, resume with `--resume`, session listing.
* Missions and plans — `/mission` runs an agentic loop toward a verified goal; `/plan`, `/tasks`, `/steer`, `/pause`, `/resume`, `/stop` control it.
* Permission-gated tools — filesystem, shell, network/web, media, memory, planning, RAG; every mutating action is approved and sandboxed (bubblewrap on Linux, sandbox profiles on macOS).
* Skills and custom commands — markdown skills, project/user slash commands from `.private_agent/commands`.
* Context engine — profile-aware context assembly, compaction at a threshold, hard caps on history and stored tool output.
* Online providers, gated — explicit per-session consent, retries, `THINKING_OVERRIDE` for thinking commands a provider doesn't advertise.
* Accessible UI — `PRIVATE_AGENT_ACCESSIBLE=1`, `NO_COLOR`, WCAG AA palette contrast, struck-through disabled commands.
* Ops — `--doctor` diagnostics, `--list-sessions`, redacted JSONL debug logging, MCP servers, hooks, code-task isolation.
Try it in 30 seconds
pip install "git+https://github.com/ZieganWesley/Private_Agent.git@main"
private-agent # start a session
private-agent --doctor # validate config, paths, environment
Python 3.14 required. Linux, macOS, and WSL2 supported (native Windows gets a WSL pointer). Inside the session, type `/` for commands, `/help` for help, or `exit` to leave.
Install options, extras (`.[ollama]`, `.[rag]`, `.[media]`, `.[all]`), WSL/macOS/Termux setup: see `docs/installation.md`.
What I'd love feedback on
- First-run experience — does `--doctor` make setup painless, or where does it get confusing?
- Model discovery — does your local runtime get detected correctly? Any false positives/negatives in the chat list?
- RAG quality — try `/rag` on your own documents; are citations useful and accurate?
- Mission loop — hand it a small goal with `/mission`; does it iterate sensibly or spin?
- Permissions UX — are the approval prompts clear? Is `manual`/`auto`/`full` the right split?
- Performance — startup and scroll feel on your machine (numbers and gates are in `docs/performance.md`).
- Accessibility — try `PRIVATE_AGENT_ACCESSIBLE=1` and report anything that breaks.
Links
* Repo: https://github.com/ZieganWesley/Private_Agent
* Docs: `docs/` (features, configuration, architecture, UI, testing, performance)
* Issues / feedback: GitHub Issues (please include `--doctor` output and OS/runtime details)
A few honest notes
* This is a solo, evolving project. Expect rough edges; the test suite is large (1900+ tests) but real-world coverage is what I'm after now.
* Nothing is sent to a hosted API unless you opt in per session. Online providers require explicit consent.
* Security reports go through GitHub Security Advisories (see `SECURITY.md`), not public issues.
If you try it, I'd genuinely appreciate a star, an issue, or just a comment with what worked and what didn't. Thank you!