What problem does it solve?
It removes the friction of creating new session-local interpretability “method” primitives by turning a structured method spec into runnable Python code with tests and documentation, following strict layering rules.
Core Features & Use Cases
- Scaffold session-local method code: Generates
${SESSION_DIR}/code/methods/<name>/ with an importable module, a placeholder implementation, and a smoke test.
- Elicit or consume method specifications: Supports interactive single-spec elicitation or batch scaffolding from one or more provided spec paths.
- Enforce interpretability-layer invariants: Refuses forbidden imports (e.g., from runner/ or analyses/) and keeps methods pure (no disk I/O and no hyperparameter defaults in code).
- Batch approval workflow: In interactive mode, presents a consolidated batch summary so you can approve or edit specs before code scaffolding.
Quick Start
Run /research-session first, then invoke setup-methods with one or more method spec paths, for example: “/setup-methods path/to/method_1/set_up_method.md path/to/method_2/set_up_method.md”.