Unprompted: Open-Source Autonomous AI Agent Framework (649★ in 7 Days)
Most AI "agents" are just over-engineered prompt chains with a retry policy. If your LLM can't reliably decide which tool to call, when to stop, or how to recover from a bad observation, you don't have an agent—you have
Most AI "agents" are just over-engineered prompt chains with a retry policy. If your LLM can't reliably decide which tool to call, when to stop, or how to recover from a bad observation, you don't have an agent—you have a fragile script.
TL;DR:
mocasus/unpromptedis a lightweight, open-source agent framework for orchestrating LLM-driven task executors with pluggable tools, bounded memory, and a hard stop on runaway loops. It hit 649+ stars in under a week because it favors explicit control flow over magic.
The Problem With Current AI Workflows
Current LLM integrations usually fall into two buckets: rigid deterministic pipelines or fully autonomous "auto-GPT" loops that burn tokens and spin forever. The first is too brittle for unstructured tasks; the second is too expensive and unpredictable for production.
The gap is a controlled agent loop: an LLM that can reason about a task, call tools, observe results, and course-correct within a bounded execution budget. Most frameworks obscure this loop behind abstractions that make debugging token usage, tool failures, and state transitions nearly impossible.
How the Architecture Actually Works
unprompted treats an agent as a state machine, not a black box. The core loop is Plan → Act → Observe → Reflect, with a hard iteration cap and explicit tool whitelisting.
┌────────────────┐
│ User Input │
└──────┬─────────┘
▼
┌─────────────────┐
│ Task Router │ Intent classification & decomposition
└──────┬──────────┘
▼
┌─────────────────┐ ┌────────────────────┐
│ Agent Loop │◄────►│ Tool Registry │
│ Plan → Act → │ │ JSON Schema + │
│ Observe (≤N) │ │ sandboxed exec │
└──────┬──────────┘ └────────────────────┘
▼
┌─────────────────┐
│ Memory Layer │ Context buffer + vector store
└──────┬──────────┘
▼
┌────────────────┐
│ Execution Result│
└────────────────┘
Components:
- Task Router: Receives raw input, classifies intent, and decomposes complex requests into ordered subtasks. It directs; it does not execute.
-
Agent Loop: A bounded ReAct-style cycle. The LLM emits a thought, selects a tool from the registry, executes it, and observes the output. If the loop hits
max_stepswithout resolution, it halts and returns a partial result rather than burning credits. - Tool Registry: Typed function definitions (JSON Schema) with permission gates. Tools run in a sandboxed subprocess or container; the framework captures stdout, exit codes, and structured errors back into the observation stream.
- Memory Layer: Short-term context window management plus optional vector-backed long-term memory. You control what gets persisted across sessions.
- LLM Adapter: Provider-agnostic wrapper. Swap OpenAI, Anthropic, or a local vLLM endpoint without changing agent logic.
Quick Start (Copy-Paste Setup)
# Clone the repo
git clone https://github.com/mocasus/unprompted.git
cd unprompted
# Create environment
python -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Configure providers
cat > .env <<EOF
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
UNPROMPTED_MAX_STEPS=10
UNPROMPTED_MEMORY_BACKEND=local
EOF
# Run a basic agent
python -m unprompted --task "Audit the /src directory for unused exports and write a fix plan"
Example agent definition (agent.yaml):
name: code-auditor
llm:
provider: openai
model: gpt-4o
temperature: 0.2
tools:
- fs.read
- fs.write
- shell.run
memory:
short_term: 10
long_term: true
loop:
max_steps: 8
timeout_seconds: 120
Launch it:
unprompted run agent.yaml --input "Find all TypeScript files missing return types"
Real-World Use Cases & Honest Trade-Offs
Three concrete wins:
- Autonomous code review: Point the agent at a PR diff. It reads changed files, runs linters, checks test coverage, and posts structured comments—without a human copying context back and forth.
- Support ticket resolution: The agent queries your knowledge base, calls your internal API to fetch user data, drafts a response, and only escalates to a human when confidence is low or an action requires manual approval.
- Data pipeline triage: On an Airflow alert, the agent inspects logs, queries the warehouse for row counts, restarts failed jobs, and writes a postmortem summary to Slack.
Two honest limitations:
- Memory persistence is your responsibility: Out-of-the-box short-term memory resets on process restart. If you need session continuity across deployments, you must wire up the long-term vector store and handle embedding model versioning yourself.
-
Tool hallucination still happens: Even with JSON Schema validation, the LLM can call a valid tool with invalid arguments or enter a loop of near-miss observations. You must set
max_stepsand cost caps aggressively; the framework provides guardrails, not guarantees.
Direct Links & Daily Open-Source Drops
- unprompted: https://github.com/mocasus/unprompted
- Issues & Discussions: https://github.com/mocasus/unprompted/issues
- License: MIT
Join VibeNode AI on Telegram
Daily open-source AI drops, Claude Code hooks, and ready-to-import n8n JSON workflows. Search#Drop10in the channel for the latest curated releases.
https://t.me/vibenode_ai
What’s your line in the sand between “agentic” and “just a fancy prompt chain”? I’m curious where you draw the boundary in production systems.
Need a fast fixed-price build (24–72h)? I build turnkey landing pages, Telegram bots/Mini Apps, and Python scrapers — test 8 live interactive demos here or DM
@vlad256bakon Telegram.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.