@odradekk/vera-session-tools
Session lifecycle tools for Vera agent (ask-user, todo, output-guard, compaction, prompt-rules, system-time, diagnostics)
Package details
Install @odradekk/vera-session-tools from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@odradekk/vera-session-tools- Package
@odradekk/vera-session-tools- Version
0.2.0- Published
- May 5, 2026
- Downloads
- 82/mo · 6/wk
- Author
- odradekk
- License
- MIT
- Types
- extension
- Size
- 202.1 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./extensions/ask-user/index.ts",
"./extensions/todo/index.ts",
"./extensions/check-vera/index.ts",
"./extensions/output-guard/index.ts",
"./extensions/compaction/index.ts",
"./extensions/prompt-rules/index.ts",
"./extensions/system-time/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
vera-session-tools
Purpose
Provide session-scoped Vera behavior that is neither UI-specific nor network-tool-specific: user prompts, session todos, top-level Vera diagnostics, output guarding, prompt assembly, compaction, and system-time prompt augmentation.
Non-goals
- web search, docs lookup, academic search, or PDF parsing
- local workspace search binaries
- banner/status-line/thinking shortcut UI
- provider compatibility shims such as
proxy-compatorrtk-rewrite
Registered surface
Tools
ask_usertodocheck_vera
Commands
/vera_status— user-facing top-level Vera runtime status, including compaction routing, subagent/Chimera runtime state, and CCC readiness
Hooks
tool_result— output truncation viaoutput-guardbefore_agent_start— prompt-rules layering + system time injectionsession_before_compact— custom compaction pipelinesession_start/session_switch— config and session override hydration
Included extensions
ask-usertodocheck-veraoutput-guardcompactionprompt-rulessystem-time
Config
agent/config/output-guard.jsonagent/config/compaction.json- project
.pi/config/output-guard.json - project
.pi/config/compaction.json agent/rules/SOUL.mdand project.pi/rules/SOUL.mdfor prompt layering
External dependencies
- no separate API keys beyond the model/provider auth Pi already uses
- compaction depends on at least one available model in the active Pi registry
- compatibility patches for unusual providers now live in
agent/extensions/, not this package
Smoke
npm run smokenpm run smoke:offlinenpm run smoke:strict-network- from project root:
node agent/scripts/smoke-all.mjs
Debugging
- For manual inspection inside Pi, run
/vera_status. - For agent/internal inspection, run
check_verato get package presence, compaction routing, memory status, subagent/Chimera runtime status, CCC availability/project readiness, config files, compat shims, web-tool readiness, and overall status (ok/partial/degraded). - Run
npm run smoke:offlinenext; it covers registration, prompt layering, truncation, compaction wiring, and failure paths. - If prompt assembly is wrong, inspect
agent/rules/SOUL.md, project.pi/rules/SOUL.md, and@includechains. - If output truncation is surprising, inspect
output-guard.jsonand emitteddetails.outputGuardmetadata. - If built-in
/compactbehaves oddly, inspect/vera_statusfirst, thenagent/config/compaction.jsonand any persistedvera.compaction.overridesession entries.
Loaded through agent/settings.json as ./packages/vera-session-tools.