ApprenticeActive
An agent that learns from its own failures.
- Type
- Project
- Role
- Open source & research
- Category
- Developer tools
- Started
- Mar 2026
- Status
- Active
The problem
Running infrastructure work step by step is tedious, and one failed step should not end the whole job.
The approach
Apprentice runs structured JSON plans one step at a time: SSH commands, HTTP calls, file writes and verification. When a step fails it retries, then searches a pgvectorpgvector A PostgreSQL extension that stores embeddings and finds the most similar ones, so a normal database can do semantic search. knowledge base, then escalates to an LLMLLM Large language model: an AI model trained on large amounts of text to understand and generate language. or waits for Claude over MCPMCP Model Context Protocol: an open standard that lets AI applications connect to outside tools and data through a common client-server interface..
My part
I built it starting 29 March 2026. The first history has about 28 commits, and a clean copy followed. Local reasoning runs on Ollama, and embeddingsembeddings Lists of numbers that represent the meaning of text, so a computer can measure how similar two pieces of text are. use mxbai-embed-large with Supabase and pgvector. A consolidation step distils logs into new knowledge entries. The code is proprietary to Keepstar Ventures.
How the pieces connect
- JSON plan
- Step runs
- Retry and search
- Escalate over MCP
Built with
- Python
- PostgreSQL
- pgvector
- Ollama
Questions about Apprentice?
I’m glad to talk about how it works and what I learned building it.