The foundation layer for agentic intelligence.
From your first agent to a fleet running in production — without gluing libraries together.
pip install promptise
import asyncio
from promptise import build_agent, PromptiseSecurityScanner, SemanticCache
from promptise.config import HTTPServerSpec
from promptise.memory import ChromaProvider
async def main():
agent = await build_agent(
model="openai:gpt-5-mini",
servers={
"tools": HTTPServerSpec(url="http://localhost:8000/mcp"),
},
instructions="You are a helpful assistant.",
memory=ChromaProvider(persist_directory="./memory"),
guardrails=PromptiseSecurityScanner.default(),
cache=SemanticCache(),
observe=True,
)
result = await agent.ainvoke({
"messages": [{"role": "user", "content": "What's the status of our pipeline?"}]
})
print(result["messages"][-1].content)
await agent.shutdown()
asyncio.run(main())
Turn any LLM into a production-ready agent with one function call.
build_agent() · auto MCP tool discovery · semantic tool optimization (40–70% fewer tokens) · 3 memory providers with auto-injection · 4 conversation stores · 6-head security scanner · semantic cache with per-user isolation · sandboxed code execution · auto-approval classifier · pluggable RAG · streaming · model fallback · adaptive strategy.
Compose reasoning the way you compose code. Not a black box.
PromptGraph with 20 node types — 10 standard (PromptNode, ToolNode, RouterNode, GuardNode, ParallelNode, LoopNode, HumanNode, TransformNode, SubgraphNode, AutonomousNode) and 10 reasoning (ThinkNode, PlanNode, ReflectNode, CritiqueNode, SynthesizeNode, ValidateNode, ObserveNode, JustifyNode, RetryNode, FanOutNode). 7 prebuilt patterns (react, peoatr, research, autonomous, deliberate, debate, pipeline). 18 node flags for typed capabilities. Agent-assembled paths from a node pool. Lifecycle hooks. Skill registry. JSON serialization.
Production server and native client for the Model Context Protocol — multi-user, scalable, secure by default.
@server.tool() with auto-schema from type hints · JWT + OAuth2 + API-key access control · role/scope guards · 12+ middleware (rate limit, circuit breaker, audit, cache, OTel) · HMAC-chained audit logs · priority job queue with retries and progress · versioning + transforms · OpenAPI import · MCPMultiClient federation · live 6-tab dashboard · TestClient for in-process testing · 3 transports (stdio, HTTP, SSE).
The operating system for autonomous agents.
5 trigger types (cron, webhook, file watch, event, message) · crash recovery via journal replay · 5 rewind modes · 14 lifecycle hooks · budget enforcement with tool costs · health monitoring (stuck, loop, empty, error rate) · mission tracking with LLM-as-judge · secret scoping with TTL and zero-fill revocation · 14 meta-tools for self-modifying agents · 37-endpoint REST API with typed client · live agent inbox · distributed multi-node coordination.
Prompts built like software. Not strings.
8 block types with priority-based token budgeting · conversation flows that evolve per phase · 5 composable strategies (chain_of_thought + self_critique) · 4 perspectives · 14 context providers auto-injected every turn · SSTI-safe template engine with opt-in shell · 5 guards · SemVer registry with rollback · inspector that traces every assembly decision · test helpers (mock_llm(), assert_schema()) · chain, parallel, branch, retry, fallback.
Your first agent in 5 minutes. pip install, point at an MCP server, ship.
Architecture, design principles, the five pillars.
Step-by-step, simple to production.
Graphs, nodes, flags, patterns.
Production tool servers with access control, middleware, and audit trails.
Autonomous agents with governance, triggers, and crash recovery.
Composable blocks, strategies, flows, and guards. Prompts built like software, not strings.
End-to-end working patterns and reference implementations.
Every class, method, parameter.
+ any LangChain BaseChatModel · FallbackChain for automatic failover
Local embeddings · air-gapped model paths · prompt-injection mitigation built in
Session ownership enforced · per-user isolation for cache and guardrails
8 transporters: OTel · Prometheus · Slack · PagerDuty · Webhook · HTML · JSON · Console
Docker + seccomp + gVisor + capability dropping · Kubernetes-native health probes
stdio · streamable HTTP · SSE · HMAC-chained audit logs
Contributing · Security · License: Apache 2.0
Built by Promptise
Formerly known as DeepMCPAgent — a public preview of one sliver of this framework (MCP-native agent tooling). Promptise Foundry is the full system it was a teaser for: reasoning engine, agent runtime, prompt engineering, sandboxed execution, governance, and observability.