pi-open-executive

Executive orchestration and isolated department advice for Pi.

Packages

Package details

extensionskillprompt

Install pi-open-executive from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-open-executive
Package
pi-open-executive
Version
0.1.0
Published
Aug 27, 2026
Downloads
162/mo · 162/wk
Author
narumitw
License
Apache-2.0
Types
extension, skill, prompt
Size
47.1 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ],
  "skills": [
    "./skills"
  ],
  "prompts": [
    "./prompts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

🏢 pi-open-executive — Cross-Functional Decision Advisor for Pi

npm Pi extension License: Apache 2.0

Origin: This package is a lightweight, Pi-native adaptation of SenteLabsAI/OpenExecutive. It retains the core Executive-plus-eight-specialist decision model, but reimplements it for Pi with isolated, read-only department advisors and Git-backed repository context instead of the upstream FastAPI/Next.js application, RAG and database-backed memory, scheduler, integrations, and workflow system.

Open Executive provides an Executive orchestrator and eight isolated department advisors.

It helps analyze business questions involving strategy, finance, people, legal, operations, marketing, product, and board communications.

✨ Features

  • Produces one decision-ready recommendation by synthesizing cross-functional analysis through the Executive.
  • Consults advisors for strategy, finance, people, legal, operations, marketing, product, and board communications.
  • Consults up to eight departments per request, with up to four isolated processes running concurrently.
  • Includes the /council and /oe-init prompt templates.
  • Includes a skill for managing Git-backed company context under .openexecutive/.
  • Treats department output as untrusted advisory content before the Executive evaluates and synthesizes it.

📦 Install

Install permanently from npm:

pi install npm:pi-open-executive

Try it from npm without installing permanently:

pi -e npm:pi-open-executive

Install from GitHub:

pi install git:github.com/narumiruna/pi-open-executive

Try it from a local checkout:

npm install
pi -e .

The package loads src/index.ts directly, so a local checkout does not require a build.

Pi extensions run with your user permissions.

Review the source before installing or running the extension.

🚀 Quick start

Ask a business question in ordinary conversation.

The Executive will inspect relevant repository context, consult the appropriate departments, and synthesize one recommendation.

For example:

Should we launch an enterprise plan next quarter? Provide a decision, the main risks, and the next step.

If the extension changes while Pi is running, use /reload.

💬 Commands

Run a cross-functional review

Use /council to request an explicit cross-functional analysis:

/council Should we enter the Japanese market this year?

The system selects every materially relevant department, runs their analyses in parallel, and asks the Executive to synthesize the result.

The response presents one coherent recommendation with supporting evidence and concrete next steps instead of forwarding each department report separately.

Create company context

Use /oe-init to create Git-managed company context under .openexecutive/:

/oe-init

Before creating files, Pi checks the repository for existing company, strategy, finance, planning, and decision documents and asks for confirmation.

It creates only the files currently needed, using a structure such as:

.openexecutive/
├── company.md
├── decisions.md
└── departments/
    └── <department>/
        ├── charter.md
        ├── goals.md
        └── notes.md

The .openexecutive/ directory stores company context that Git can review and track.

For a new project, run /oe-init, then record important goals, constraints, owners, and links to existing documents under .openexecutive/.

Ask the Executive directly for routine questions and use /council for major or cross-functional decisions.

After confirming a decision, ask Pi to record it in .openexecutive/decisions.md.

🛠️ Tools

The Executive can use consult_department to consult one department or request opinions from up to eight departments at once.

The system runs no more than four department consultations concurrently.

Users normally do not need to invoke this tool directly; ask the Executive or use /council instead.

Department Responsibility
strategy Company strategy, competitive positioning, and resource allocation.
finance Financial impact, budgets, cash flow, and return on investment.
people Organization design, workforce planning, hiring, performance, and culture.
legal Legal, contractual, regulatory, and governance risk.
operations Processes, delivery capacity, quality, and operational risk.
marketing Markets, brand, demand generation, and go-to-market strategy.
product User needs, product strategy, prioritization, and product risk.
board-comms Board materials, decision narratives, and stakeholder communication.

🔒 Security and privacy

Department advisors can use only Pi's read-only read, grep, find, and ls tools.

They can read only non-sensitive paths inside the current repository and cannot modify files or access credentials, keys, or other restricted files.

Isolated department processes inherit Pi's built-in models and providers.

Providers registered only by another runtime extension are not forwarded to department processes.

Repository content and department output are treated as untrusted data rather than executable instructions.

🗂️ Package layout

pi-open-executive/
├── agents/                       # Eight department definitions and system prompts
├── prompts/                      # /council and /oe-init prompt templates
├── skills/department-management/ # Company-context management skill
├── src/index.ts                  # Pi extension entrypoint
├── test/                         # Package and Pi loader verification
├── package.json                  # Pi package manifest
└── README.md                     # User guide and security boundaries

🔎 Keywords

Pi, Executive, business strategy, cross-functional review, department consultation, decision support.

📄 License

Apache License 2.0