@pixs/code-session

The /code pi command - start a scoped coding session: pick a workspace, (re)index it with codebase-memory, choose a mode (fresh, grill-me, grill-with-docs, implement), and enforce cbm-first retrieval rules for the session.

Packages

Package details

extension

Install @pixs/code-session from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@pixs/code-session
Package
@pixs/code-session
Version
0.1.2
Published
Aug 20, 2026
Downloads
478/mo · 15/wk
Author
dzag
License
UNLICENSED
Types
extension
Size
20.9 KB
Dependencies
1 dependency · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

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

README

@pixs/code-session

A pi extension providing the /code command — kick off a fresh, rule-enforced coding session.

What it does

Invoking /code:

  1. Prompts for a workspace (apps/* or the monorepo root) and (re)indexes it with codebase-memory.
  2. Prompts for a session mode:
    • fresh — plain session, no extra rules
    • grill-me — interview-first planning session
    • grill-with-docs — grilling with docs research
    • implement — implement a saved memory observation (asks for its id)
  3. Starts a fresh session (keeping the current model and thinking level).
  4. Enforces the session rules on every turn by injecting them into the system prompt:
    • cbm-first retrieval (cbm_* tools before any shell search)
    • workspace scoping and the active codebase-memory project
    • workspace AGENTS.md / CONTEXT.md contents
    • MCP server hints (engram, sequential-thinking, playwright for frontend workspaces)

Install

pi install npm:@pixs/code-session

Dependencies

  • @pixs/cbm-tools — used for indexing and project resolution (runCli, resolveProject).