@pixs/code-session
v0.1.2
Published
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.
Downloads
473
Readme
@pixs/code-session
A pi extension providing the /code command — kick off a fresh, rule-enforced coding session.
What it does
Invoking /code:
- Prompts for a workspace (
apps/*or the monorepo root) and (re)indexes it with codebase-memory. - 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)
- Starts a fresh session (keeping the current model and thinking level).
- 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.mdcontents - MCP server hints (engram, sequential-thinking, playwright for frontend workspaces)
- cbm-first retrieval (
Install
pi install npm:@pixs/code-sessionDependencies
@pixs/cbm-tools— used for indexing and project resolution (runCli,resolveProject).
