
Threat Research
/Security News
Searchjacked: Hidden Browser Extensions Hijack Searches for 13 Million Users
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.
@capyup/pi-goal
Advanced tools
Goal mode extension for pi: persistent long-running objectives, /goal-set drafting, Sisyphus prompt style, autoContinue, and an above-editor status overlay.
pi-goal is a long-running goal extension for pi. It gives the agent a durable objective, a visible lifecycle, and schema-gated tools for drafting, executing, pausing, resuming, and completing work.
The extension is designed around one rule: the user owns intent; the agent executes only after the goal is explicit and confirmed.
/goal-set and /goal-sisyphus start a drafting conversation before any work begins.propose_goal_draft; the user confirms or keeps chatting..pi/goals/.goal_question and goal_questionnaire let the agent ask structured drafting questions without depending on another package.From npm:
pi install npm:@capyup/pi-goal
From a local checkout:
pi install .
Try once without installing:
pi -e .
/goal-set add structured logging to the auth module
Flow:
propose_goal_draft with a concrete objective after incorporating the answer..pi/goals/.update_goal(status="complete"), pauses, aborts, hits a budget/cap, or the user interrupts./goal-sisyphus Refactor the auth flow: 1) extract token validation. 2) wire it into login. 3) update tests.
Sisyphus mode is for patient ordered execution. It uses the same lifecycle and tools as a regular goal; the difference is the prompt style and completion standard: preserve the user's order, do not rush, do not invent preflight/reconnaissance steps, and stop to ask when blocked.
/goal-set <topic> Start drafting a regular goal
/goal-sisyphus <topic> Start drafting a Sisyphus-style goal
/goal-status Show current goal state
/goal-tweak <change> Draft a revision to the active/paused goal
/goal-pause Pause the active goal
/goal-resume Resume a paused goal
/goal-abort Abort/archive the current goal or cancel drafting
/goal-clear Archive the active goal or cancel drafting
Pressing Esc or aborting an active run pauses the goal so it does not remain falsely active.
The extension exposes tools only when they make sense for the current lifecycle phase.
| Tool | Visible when | Purpose |
|---|---|---|
goal_question | drafting / tweak drafting | Ask one focused user question |
goal_questionnaire | drafting / tweak drafting | Ask multiple structured questions |
get_goal | always | Read current goal state |
propose_goal_draft | goal drafting only | Submit a concrete draft for user confirmation |
apply_goal_tweak | tweak drafting only | Submit a revision to an existing goal |
update_goal | active or paused goal | Mark the goal complete when all requirements are satisfied |
pause_goal | active/budget-limited goal | Pause because of a real blocker |
abort_goal | active, budget-limited, or paused goal | Abort/archive an obsolete, impossible, unsafe, or user-cancelled goal |
step_complete | hidden / legacy | Compatibility no-op; Sisyphus no longer requires a step counter |
create_goal | hidden | Internal compatibility path; normal creation goes through propose_goal_draft |
During /goal-set, /goal-sisyphus, or /goal-tweak, the agent is in an interview phase. For /goal-set and /goal-sisyphus, the agent must ask at least one concrete grill-me style question before propose_goal_draft; the B0 question gate rejects direct proposals. Prefer goal_question with a recommended answer for the first decision branch; use goal_questionnaire only for tightly related choices. Workhorse tools are blocked.
Allowed during goal drafting:
goal_questiongoal_questionnaireget_goalpropose_goal_draftBlocked during goal drafting:
bash, read, write, edit, grep, find, lsWhen a draft is proposed, the confirmation UI shows a full plain-text report with draft details, the original topic, and the proposed goal. When it is confirmed, the tool result includes the full final objective, not a one-line summary. This makes the confirmed contract visible in the conversation as well as on disk.
Completion is also explicit. The agent should call:
{"status":"complete","completionSummary":"What was completed and what evidence proves it."}
The completion result prints a full report into the conversation:
Goal complete.Sisyphus goals use the same completion tool as regular goals. The stricter part is the prompt/criteria standard: the agent should only complete after the whole ordered objective is actually satisfied. A paused goal can also be completed directly when the agent already has enough evidence that every requirement is satisfied; it does not need a resume just to call update_goal.
The shipped gates are intentionally small and mechanical.
| Gate | Prevents |
|---|---|
| Drafting tool whitelist | The agent doing repo reconnaissance before the user confirms a goal |
| Focus consistency | /goal-set accidentally becoming Sisyphus, or /goal-sisyphus becoming regular mode |
| Required drafting question | The agent directly agreeing to a goal without grilling the user on criteria or constraints |
| Confirm-before-commit | The agent silently creating or replacing a goal |
| Completion gate | Completing stale, missing, or already completed goals; paused goals remain completable when evidence is sufficient |
| Abort gate | Aborting missing, stale, completed, or reasonless goals |
| Post-stop block | Continuing to call tools after pause_goal, abort_goal, update_goal, or apply_goal_tweak stops the turn |
| Auto-continue cap | Runaway continuation chains |
| Abort pause | Active goals staying active after user abort / Ctrl-C |
| Post-compaction reminder | Losing the active objective after session compaction |
.pi/goals/active_goal_<timestamp>_<id>.md
.pi/goals/archived/goal_<timestamp>_<id>.md
Each file contains:
# Goal Prompt section;The extension re-reads only the # Goal Prompt body from disk. Lifecycle metadata remains controlled by the extension.
Goal paths are constrained to .pi/goals/ and .pi/goals/archived/; absolute paths, traversal, NUL bytes, symlinks, and unsafe metadata paths are rejected.
| Variable | Default | Purpose |
|---|---|---|
PI_GOAL_MAX_AUTOCONTINUE_TURNS | 30 | Hard cap for consecutive auto-continue turns, clamped to 1-1000 |
PI_GOAL_AUTO_CONFIRM | unset | When 1, auto-confirms drafts in headless/test contexts |
npm install
npm test
npm run check
npm pack --dry-run
The fast unit suite uses Node's built-in test runner and covers core parsing, drafting gates, lifecycle policy, abort policy, questionnaire formatting, centralized tool names, Sisyphus prompt-style behavior, completion reporting, and display helpers.
The experiment harness under experiments/ runs full pi sessions against real model calls and mechanical rubrics.
cd experiments
bash harness/run.sh C1-vague-goal-set --count 3 --grade --no-smoke
The npm package ships only the runtime extension, docs, and package metadata. The extension is split into small modules:
extensions/goal.ts orchestration, commands, tools, events, timers
extensions/goal-record.ts goal record types, normalization, creation helpers
extensions/goal-core.ts parsing and display helpers
extensions/goal-draft.ts drafting prompt, proposal validation, drafting tool gate
extensions/goal-policy.ts lifecycle, pause/resume/complete, Sisyphus, budget policy
extensions/goal-questionnaire.ts built-in question UI and question tool registration
extensions/goal-tool-names.ts centralized published tool names and allowlists
extensions/prompts/goal-prompts.ts active, continuation, budget, tweak, and stale prompts
extensions/storage/goal-files.ts goal file paths, serialization, parsing, archive IO
extensions/widgets/goal-widget.ts above-editor goal beacon component
extensions/widgets/goal-notifications.ts widget-style notification text
.pi/goals/.MIT
FAQs
Goal mode extension for pi: persistent long-running objectives, /goal-set drafting, Sisyphus prompt style, autoContinue, and an above-editor status overlay.
The npm package @capyup/pi-goal receives a total of 0 weekly downloads. As such, @capyup/pi-goal popularity was classified as not popular.
We found that @capyup/pi-goal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.