PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← Guides> Library> Level

Advanced guides: research techniques and agent architecture

Advanced guides assume you already build with LLMs and want techniques beyond the basics. On the prompting side they cover methods from research papers, with working code and their measured limits: self-consistency and least-to-most, Self-Ask, Tree of Thoughts, Chain-of-Verification, semantic entropy, self-correction, active prompting, automatic prompt optimization, prompt ensembles, prompt compression and Skeleton-of-Thought.

On the engineering side they cover agent architecture: plan-and-execute and code-action agents, autonomous runtimes, self-modifying agents, multi-tenancy, agent identity and MCP authentication with OAuth. The security guides at this level cover red teaming, RAG security, supply chain trust and hardening model output.

38
guides
38
Advanced
9 h
of reading

Start here

SPIFFE vs AWS IAM Roles vs Entra ID for AI Agents

SPIFFE vs AWS IAM roles vs Entra ID for AI agents: what an SVID is, how each gives an agent its own identity, and how to federate them, with runnable code.

Advanced · 18 minRead the guide →

AI Engineering20

  1. 01Policy as Code for AI Agent Tool Calls: OPA vs ApprovalPolicy as code for AI agent tool calls: when deterministic rules beat human approval or model judgment, and how to check each call with OPA before it runs.Advanced · 20 minHuman approvals (human-in-the-loop)Advanced · 20 minHuman approvals (human-in-the-loop)→
  2. 02LangChain Multi-Tenant Isolation: Tenants, Quotas, MemoryLangChain multi-tenant isolation: what LangChain and LangGraph provide, what you build yourself, per-tenant rate limits and quotas, and the Promptise way.Advanced · 20 minGuardrails and securityAdvanced · 20 minGuardrails and security→
  3. 03Audit-Grade Agent Traces Without Storing Prompt ContentAudit-grade agent traces without storing prompt content: what to record, keyed digests, hash chains, per-tenant keys, verification and a tamper check.Advanced · 18 minObservability and debuggingAdvanced · 18 minObservability and debugging→
  4. 04Does the Harness Matter? Test One Model Across HarnessesDoes the agent harness matter? How to test one model across coding agent harnesses fairly, with hidden tests, repeated trials and one meter for token cost.Advanced · 20 minTesting and evalsAdvanced · 20 minTesting and evals→
  5. 05AI Agent Kill Switch: Detect, Downgrade and Stop an AgentAn AI agent kill switch that works: detect bursts and loops, downgrade the agent to read-only, pause or stop it over an API, and revoke its credentials.Advanced · 18 minRuntime, triggers and deploymentAdvanced · 18 minRuntime, triggers and deployment→
  6. 06On-Behalf-Of Auth for AI Agents: Act as Each UserHow AI agents act on behalf of each user: OAuth token exchange (RFC 8693), audience-bound tokens, the act claim, and a runnable MCP example with output.Advanced · 22 minGuardrails and securityAdvanced · 22 minGuardrails and security→
  7. 07Context Compaction for AI Agents: Trim vs SummarizeContext compaction for AI agents: drop, trim or summarize, what each keeps on a real transcript, why agents forget file paths, and how to compact safely.Advanced · 20 minMemory, context and RAGAdvanced · 20 minMemory, context and RAG→
  8. 08MCP 2026-07-28 Migration: Make Your MCP Server StatelessMigrate an MCP server to the stateless 2026-07-28 spec: what changed, how to replace sessions and elicitation, and a runnable before and after in Python.Advanced · 22 minTools and the Model Context Protocol (MCP)Advanced · 22 minTools and the Model Context Protocol (MCP)→
  9. 09AI Agent Network Egress: Limit Where Agents Can ConnectLimit AI agent network egress: give agent code no network, route the rest through an allowlist proxy, and make tools refuse private IPs and redirects.Advanced · 18 minGuardrails and securityAdvanced · 18 minGuardrails and security→
  10. 10LLM Confidence Calibration: Test Scores on a Labeled SetLLM confidence calibration on a labeled set: measure Brier score and reliability, compare stated confidence, logprobs and decision models, then fix it.Advanced · 25 minModels and providersAdvanced · 25 minModels and providers→
  11. 11Custom AI Agent Triggers: Wake an Agent From Any SourceBuild a custom AI agent trigger for any queue or source: the trigger protocol, registering a type, acknowledging jobs, clean stops and use in manifests.Advanced · 22 minRuntime, triggers and deploymentAdvanced · 22 minRuntime, triggers and deployment→
  12. 12Distributed AI Agents: Run Agents Across Many MachinesRun AI agents across multiple servers: a coordinator, node registration, health checks and remote control, and what to do when one node dies.Advanced · 22 minRuntime, triggers and deploymentAdvanced · 22 minRuntime, triggers and deployment→
  13. 13SPIFFE for AI Agents: Workload Identity Without API KeysUse SPIFFE and SPIRE for AI agent identity: X.509 vs JWT-SVIDs, calling APIs and MCP servers, cloud workload identity compared, with runnable code.Advanced · 20 minGuardrails and securityAdvanced · 20 minGuardrails and security→
  14. 14Code-Action Agents in Python: One Program vs 37 Tool CallsBuild a code-action agent in Python over an MCP server: the model writes one program that calls your tools in a Docker sandbox, within a budget you set.Advanced · 15 minTools and the Model Context Protocol (MCP)Advanced · 15 minTools and the Model Context Protocol (MCP)→
  15. 15Autonomous AI Agent Runtime: Budgets, Crash Recovery, APIRun an autonomous AI agent runtime in Python: budgets for irreversible actions, restarts, kill -9 recovery, missions and an API, tested on real runs.Advanced · 18 minRuntime, triggers and deploymentAdvanced · 18 minRuntime, triggers and deployment→
  16. 16Self-Modifying AI Agent in Python: Open Mode & LimitsBuild a self-modifying AI agent in Python with Promptise open mode: meta-tools, hot reload, the guardrails that bound it, and the limits to plan for.Advanced · 16 minAgent reasoning patternsAdvanced · 16 minAgent reasoning patterns→
  17. 17MCP Authentication in Python: API Keys, JWT and OAuthMCP authentication in Python on one server: API keys, JWTs and OAuth client credentials with JWKS, plus roles, scopes, 401s and agent token forwarding.Advanced · 20 minTools and the Model Context Protocol (MCP)Advanced · 20 minTools and the Model Context Protocol (MCP)→
  18. 18AI Agent Identity: Authenticate Agents to MCP ServersGive your AI agent its own verifiable identity: short-lived JWTs from your IdP, checked by MCP servers with JWKS. Real runs, refresh and honest limits.Advanced · 22 minTools and the Model Context Protocol (MCP)Advanced · 22 minTools and the Model Context Protocol (MCP)→
  19. 19Plan-and-Execute Agents in Python: Beyond the ReAct LoopBuild a plan, act, verify, reflect agent in Python with the Promptise Reasoning Graph, then compare it with ReAct on one task: accuracy, calls, tokens.Advanced · 15 minAgent reasoning patternsAdvanced · 15 minAgent reasoning patterns→
  20. 20Multi-Tenant AI Agents: Keep Each Customer's Data ApartBuild a multi-tenant AI agent in Python: per-user tokens, tenant-scoped MCP tools and isolated sessions, with runs proving one tenant can't read another.Advanced · 18 minTools and the Model Context Protocol (MCP)Advanced · 18 minTools and the Model Context Protocol (MCP)→

Prompt Engineering14

  1. 21Active Prompting: Pick the Few-Shot Examples That MatterActive prompting explained: sample answers, measure disagreement, and annotate only the most uncertain inputs as few-shot examples. Runnable code, output.Advanced · 8 minPrompt EngineeringAdvanced · 8 minPrompt Engineering→
  2. 22Automatic Prompt Optimization: APE, ProTeGi and AMPOAutomatic prompt optimization explained: APE, ProTeGi, OPRO and multi-branch prompts, with one real optimization round on a ticket classifier in Python.Advanced · 9 minTesting and evalsAdvanced · 9 minTesting and evals→
  3. 23Prompt Ensembles and LLM Judges: Generate, Rank, RespondPrompt ensembles and rank-then-respond: generate candidates with prompt variants, rank them with an LLM judge, and correct for position bias. Real example.Advanced · 8 minPrompt EngineeringAdvanced · 8 minPrompt Engineering→
  4. 24Chain-of-Verification and SelfCheckGPT: Catch HallucinationsChain-of-Verification (CoVe) and SelfCheckGPT explained: draft, verify with independent questions, flag claims that samples disagree on. Real pitfalls.Advanced · 9 minPrompt EngineeringAdvanced · 9 minPrompt Engineering→
  5. 25Program-of-Thought in Python: Run Model Code SafelyCompute answers with model-written code in Python: an output contract, a locked-down Docker sandbox, a two-run check, and when to use a code tool instead.Advanced · 8 minPrompt EngineeringAdvanced · 8 minPrompt Engineering→
  6. 26Prompt Compression: LLMLingua and Lost in the MiddlePrompt compression techniques compared: selection, LLMLingua, summaries. Fix lost in the middle with reordering. Real example: 15,900 tokens cut to 1,400.Advanced · 9 minCost control and rate limitsAdvanced · 9 minCost control and rate limits→
  7. 27Directional Stimulus Prompting: How Hints Improve OutputDirectional stimulus prompting adds a per-input hint, such as keywords, so the AI's response keeps what matters. How it works, plus a prompt-only build.Advanced · 7 minPrompt EngineeringAdvanced · 7 minPrompt Engineering→
  8. 28Skeleton-of-Thought: Outline First, Expand in ParallelSkeleton-of-Thought prompting: write the outline in one call, expand each point in parallel under a word budget. Runnable Python, real output, and limits.Advanced · 7 minPrompt EngineeringAdvanced · 7 minPrompt Engineering→
  9. 29Semantic Entropy: Detect When an LLM Is UnsureSemantic entropy explained: sample answers, group them by meaning, and use the entropy to decide when to answer, retrieve or abstain. Runnable Python code.Advanced · 8 minPrompt EngineeringAdvanced · 8 minPrompt Engineering→
  10. 30LLM Self-Correction: Self-Refine, Reflexion and CRITICLLM self-correction without fine-tuning: how Self-Refine, Reflexion and CRITIC work, why external feedback matters, and a real self-review vs test example.Advanced · 7 minTesting and evalsAdvanced · 7 minTesting and evals→
  11. 31LLM Tool Call Planning: Validate Plans Before ExecutingHave the LLM plan multi-step API calls as JSON, validate tools, arguments and guards in code, then execute safely. Python code and a real plan that failed.Advanced · 8 minPrompt EngineeringAdvanced · 8 minPrompt Engineering→
  12. 32Tree of Thoughts Prompting: How ToT Works and When to Use ItTree of Thoughts (ToT) and Graph of Thoughts explained: propose, score and prune reasoning steps, a runnable Game of 24 search, and cheaper modern options.Advanced · 9 minPrompt EngineeringAdvanced · 9 minPrompt Engineering→
  13. 33Self-Ask Prompting, Auto-CoT and Decomposition PromptsSelf-Ask prompting and Auto-CoT explained: split multi-hop questions into follow-ups, plug in search, and know when reasoning models need it. Real output.Advanced · 8 minPrompt EngineeringAdvanced · 8 minPrompt Engineering→
  14. 34Self-Consistency and Least-to-Most Prompting: When They HelpSelf-consistency and least-to-most prompting explained: how voting and decomposition work, real examples, and when reasoning models make them unnecessary.Advanced · 9 minPrompt EngineeringAdvanced · 9 minPrompt Engineering→

LLM Security3

  1. 35LLM Hardening: Constrain Model Output When Prompts FailHarden LLM behavior beyond the prompt: structured outputs, constrained decoding, output checks, safety classifiers and sampling limits, with real examples.Advanced · 11 minGuardrails and securityAdvanced · 11 minGuardrails and security→
  2. 36RAG Security: Stop Poisoned Documents and Prompt InjectionSecure a RAG pipeline: stop poisoned documents and indirect prompt injection, filter retrieval by permission, mark context, check answers. Real examples.Advanced · 10 minLLM SecurityAdvanced · 10 minLLM Security→
  3. 37LLM Red Teaming: How to Test Your Own LLM ApplicationRed-team your own LLM app: define what must never happen, write probes per attack type, run a harness with canaries, fix findings and keep them in CI.Advanced · 11 minLLM SecurityAdvanced · 11 minLLM Security→

Topics at this level

  • Model Context Protocol (MCP)10
  • Authentication and Access Control9
  • Deployment7
  • Cost Control4
  • Evals and Testing4
  • Multi-Tenancy4
  • Prompt Injection4
  • Chain-of-Thought3
  • Code Execution and Sandboxing3
  • Guardrails3

Other levels

  • Beginner guides75
  • Intermediate guides140

Categories

  • AI Engineering147
  • Prompt Engineering54
  • AI at Work18
  • AI Leadership12
  • LLM Security10
  • Enterprise AI8

Search every guide.

The library lists all guides with filters for topic, level, category and reading time.

All guidesLearning paths