npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@felan-ai/ext-prewalk

v0.3.2

Published

Same-session planner-to-implementation model handoff for Felan

Downloads

1,643

Readme

@felan-ai/ext-prewalk

Same-session Prewalk for Felan: the current model explores and plans the work in the session task graph, then makes one focused mutation. Felan switches the next model request to the low model tier, which finishes and verifies the task with the full conversation and tool history intact. Tier resolution prefers the planner's provider and model family before falling back to another authenticated provider.

After the run settles, Prewalk restores the original planner model and thinking level by default.

Requirements

  • An authenticated model in the configured target tier, or an authenticated exact target model
  • At least one explicit mutation tool: Pi's edit or write, or the Codex extension's apply_patch

Prewalk refuses to arm when no explicit mutation tool is active. Shell tools such as bash and Codex exec_command do not qualify because they are also used for exploration and verification. The planning and verification prompts direct the models to use the Tasks workflow, but Prewalk does not inspect task activity at runtime.

Commands

/prewalk <task>  Arm Prewalk and start the task immediately
/prewalk         Arm Prewalk for the next ordinary prompt
/prewalk status  Show the phase, target model, and restoration setting
/prewalk off     Cancel Prewalk

status and off are handled locally and do not make a provider request. In TUI mode, an inline task is submitted as a user message. In JSON and print modes, it is submitted as a visible custom message and the command waits for the run to become idle. Turning Prewalk off after handoff restores the original planner when restoration is enabled. A manual model selection cancels Prewalk and keeps the model selected by the user.

Lifecycle

  1. The planner explores the relevant repository surface and determines the complete implementation scope.
  2. The planner creates outcome-oriented implementation and validation tasks with TaskCreate, links them with blocked_by dependencies that encode the execution order, and claims the first ready task with TaskUpdate.
  3. The planner performs one focused successful edit, write, or apply_patch.
  4. At that turn boundary, Felan resolves and switches to the configured target tier or exact model.
  5. The target model completes the existing session task graph and runs the relevant verification.
  6. Once the agent run has fully settled, Felan restores the planner model and thinking level.

A successful mutation qualifies the turn for handoff regardless of Tasks activity. Failed mutation calls do not qualify. If the planner stops after prose or partial tool progress, Prewalk can queue a bounded hidden continuation, with a maximum of three per run.

The handoff does not fork, summarize, or replace the session. Planning guidance and implementation guidance are transient context messages; user messages, assistant responses, task-tracking results, mutations, and verification results remain in one trajectory.

The extension also registers concise static prewalk capability guidance during initialization. Phase-specific planning and implementation instructions remain transient context messages.

Flags

Prewalk uses Pi's namespaced extension flags and does not read a configuration file.

--prewalk-target-model <high|medium|low|provider/model-id>
--prewalk-restore-planner
--no-prewalk-restore-planner

prewalk-target-model defaults to low. Tier selection uses the authenticated models allowed by the current session, preferring the planner's provider and model family. An exact provider/model-id overrides tier selection. prewalk-restore-planner defaults to true.

Failure behavior

  • A target tier with no authenticated candidate, or a missing exact target model or authentication, clears the handoff and keeps the existing trajectory.
  • A failed target-model switch clears Prewalk and reports the failure once.
  • A failed planner restoration clears Prewalk, reports the failure once, and keeps the current model.
  • A manual model change cancels Prewalk without restoring over the user's selection.
  • Session quit, reload, replacement, or fork while the target is active attempts planner restoration as a graceful shutdown backstop.
  • Reaching the automatic continuation limit lets the run settle normally.

Development

Source: packages/ext-prewalk in https://github.com/felan-ai/felan.

corepack enable
pnpm install --frozen-lockfile
pnpm --filter @felan-ai/ext-prewalk build
pnpm --filter @felan-ai/ext-prewalk test

Attribution

This package adapts the MIT-licensed packages/pi-prewalk implementation from mslavov/pi-extensions at commit 7e72e509fe45a5a87c4c2e176cb711de994a8c1d. See NOTICE and LICENSE.