Skip to content

Agent Sessions

Session ID setup, agent directories, Python conda environment, and Poetry dependency management

Entry points

  • work_buddy.agent_session

Details

WORK_BUDDY_SESSION_ID is set automatically by a SessionStart hook (.claude/hooks/session-init.sh). On Claude Code Desktop, the hook outputs it as context.

Agent directories live under data/agents//. Created automatically when wb_init is called. Contains: manifest.json, consent.db (SQLite), activity ledger (JSONL), context bundles, logs, and workflow DAG state.

To run Python in the conda env: powershell.exe -Command "cd ; conda activate work-buddy; "

NEVER use pip install. Always use Poetry: - Production deps: poetry add - Temporary deps: poetry add --group temp - Remove: poetry remove