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> 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.

7
guides
1
Beginner
3
Intermediate
3
Advanced
2 h
of reading
01

Start here

ReAct Agent Pattern: Tool Execution Loop Explained Simply

The ReAct agent pattern explained simply: what an agent does after it calls a tool, a loop written by hand, the same agent in Promptise, where it breaks.

Beginner · 14 minRead the guide →

Then read on, in this order

6 guides

  1. 02AI Agent Reasoning Patterns in Python: From ReAct to DebateHow AI agent reasoning patterns work, from ReAct to plan-and-execute, reflection, debate and code-action, and how to choose and switch them in Python.Intermediate · 15 minIntermediate · 15 min→
  2. 03ReAct 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 minIntermediate · 8 min→
  3. 04Plan-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 minAdvanced · 15 min→
  4. 05Code-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 minAdvanced · 15 min→
  5. 06Self-Improving AI Agent: Learn From Tool Failures in PythonBuild a self-improving AI agent in Python that learns from failed tool calls without fine-tuning, and keep bad lessons, leaks and poisoned rules out.Intermediate · 22 minIntermediate · 22 min→
  6. 07Self-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 minAdvanced · 16 min→

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
  • AI at work
  • AI for leaders
  • Enterprise AI agents

In the documentation

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

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