PromptisePromptise
Docs
GitHub
Promptise - AI Framework LogoPromptise

The foundation layer for agentic intelligence. Build, secure and operate autonomous AI systems with Promptise Foundry.

pip install promptise

[01] Foundry

  • MCPcast
  • The Promptise Agent
  • Reasoning Engine
  • MCP
  • Agent Runtime
  • Prompt Engineering
  • Execution Engine
  • Agent Identity

[02] Resources

  • Documentation
  • GitHub
  • Guides
  • Learning Paths
  • Questions

[03] Company

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

© 2026 Promptise by Manser Ventures. All rights reserved.

Open source · Python

← Guides> Topic

Agent reasoning patterns

A reasoning pattern is the shape of an agent's thinking: the order in which it plans, acts, observes and checks its own work. The simplest is ReAct, where the model alternates between a thought and a tool call. Others plan the whole task first and then execute it, write and run code instead of calling one tool at a time, or critique and revise an answer before returning it.

No pattern is best for every task. A short lookup needs one tool call; a multi-step research job benefits from an explicit plan; data work often goes faster as code. These guides start with an overview of the main patterns and when to use each, then build them one by one: ReAct from scratch, plan-and-execute, code-action agents, self-improving agents that learn from past runs, and governed self-modification.

[n.01/02]> 6 guides, in order
  1. 01AI Agent Reasoning Patterns in Python: 9 Patterns TestedReAct, plan-and-execute, reflection, debate and code-action on the same three tasks, 12 runs each: which agent reasoning patterns were right, at what cost.Intermediate · 15 minOct 15, 2026
  2. 02ReAct Agent From Scratch in Python: The Reason-Act LoopBuild a ReAct agent from scratch in Python: the Thought, Action, Observation loop, a 60-line controller with a real trace, and how it maps to tool calling.Intermediate · 8 minOct 18, 2026
  3. 03Plan-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 minOct 11, 2026
  4. 04Code-Action Agents in Python: One Program vs 37 Tool CallsBuild a code-action agent in Python over an MCP server, test it against ReAct in 60 runs, and see why a tool budget set too low returns wrong answers.Advanced · 15 minOct 15, 2026
  5. 05Self-Improving AI Agent: Learn From Tool Failures in PythonBuild an AI agent that learns from failed tool calls without fine-tuning. Real before-and-after numbers, plus the risks: bad lessons, leaks, poisoning.Intermediate · 22 minOct 11, 2026
  6. 06Self-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 honest measured limits.Advanced · 16 minOct 11, 2026
[n.02/02]> go further

In the documentation

  • Reasoning patternsdocs ↗
  • Reasoning enginedocs ↗
  • Custom reasoningdocs ↗
  • Code actiondocs ↗

Other topics

  • Building AI agents in Python→
  • Models and providers→
  • Tools and the Model Context Protocol (MCP)→
  • Memory, context and RAG→
  • Multi-agent systems→
  • Guardrails and security→
  • Human approvals (human-in-the-loop)→
  • Observability and debugging→
  • Cost control and rate limits→
  • Testing and evals→
  • Runtime, triggers and deployment→
  • Frameworks and comparisons→

Build it with Promptise Foundry.

The code in these guides runs on Promptise Foundry, an open-source Python framework for AI agents and MCP servers.

QuickstartAll guides