🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@feniix/pi-sequential-thinking

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feniix/pi-sequential-thinking

Sequential Thinking MCP extension for pi — structured progressive thinking through defined stages

Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
112
51.35%
Maintainers
1
Weekly downloads
 
Created
Source

@feniix/pi-sequential-thinking

Sequential Thinking extension for pi — structured progressive thinking through defined cognitive stages.

Features

  • Process Thought (process_thought): Record and analyze sequential thoughts with stage metadata
  • Generate Summary (generate_summary): Summarize the entire thinking process
  • Clear History (clear_history): Reset the thinking session
  • Export Session (export_session): Save thinking sessions to JSON files
  • Import Session (import_session): Load previously exported sessions
  • Configurable Output Limits: Client-side byte and line truncation
  • Flexible Configuration: JSON config files, environment variables, and CLI flags
  • Native TypeScript: No external dependencies or child processes

Install

pi install npm:@feniix/pi-sequential-thinking

Ephemeral (one-off) use:

pi -e npm:@feniix/pi-sequential-thinking

Configuration

Option 1: Default Configuration

Works out of the box. Sessions are stored in ~/.mcp_sequential_thinking/.

Option 2: Environment Variables

export MCP_STORAGE_DIR="~/.my-thinking-sessions"
export SEQ_THINK_MAX_BYTES=102400
export SEQ_THINK_MAX_LINES=5000

Option 3: JSON Config File

Create ~/.pi/agent/extensions/sequential-thinking.json (auto-created on first run):

{
  "storageDir": null,
  "maxBytes": 51200,
  "maxLines": 2000
}

Option 4: CLI Flags

pi --seq-think-storage-dir=/tmp/thoughts --seq-think-max-bytes=102400

Config Resolution Order

  • --seq-think-config flag path
  • SEQ_THINK_CONFIG environment variable
  • ./.pi/extensions/sequential-thinking.json (project-level)
  • ~/.pi/agent/extensions/sequential-thinking.json (global)

Tools

process_thought

Record and analyze a sequential thought with metadata.

ParameterTypeRequiredDescription
thoughtstringyesThe content of your thought
thought_numberintegeryesPosition in sequence (starting at 1)
total_thoughtsintegeryesExpected total thoughts
next_thought_neededbooleanyesWhether more thoughts follow
stagestringyesOne of: "Problem Definition", "Research", "Analysis", "Synthesis", "Conclusion"
tagsstring[]noKeywords or categories
axioms_usedstring[]noPrinciples applied
assumptions_challengedstring[]noAssumptions questioned

generate_summary

Generate a summary of the entire thinking process. Returns stage counts, timeline, top tags, and completion status.

clear_history

Reset the thinking process by clearing all recorded thoughts.

export_session

Export the current thinking session to a JSON file.

ParameterTypeRequiredDescription
file_pathstringyesPath to save the exported JSON file

import_session

Import a previously exported thinking session from a JSON file.

ParameterTypeRequiredDescription
file_pathstringyesPath to the JSON file to import

CLI Flags

FlagEnv VariableDefaultDescription
--seq-think-storage-dirMCP_STORAGE_DIRStorage directory for sessions
--seq-think-configSEQ_THINK_CONFIGCustom config file path
--seq-think-max-bytesSEQ_THINK_MAX_BYTES51200Max output bytes
--seq-think-max-linesSEQ_THINK_MAX_LINES2000Max output lines

Thinking Stages

The Sequential Thinking framework organizes thoughts through five cognitive stages:

  • Problem Definition — Define and scope the problem
  • Research — Gather information and context
  • Analysis — Examine and evaluate the evidence
  • Synthesis — Combine insights into a coherent view
  • Conclusion — Draw final conclusions and recommendations

Requirements

  • pi v0.51.0 or later

Uninstall

pi remove npm:@feniix/pi-sequential-thinking

License

MIT

Keywords

pi

FAQs

Package last updated on 19 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts