Skip to content

Command line & agent skill

The interactive-pipe command (also python -m interactive_pipe) is documented with examples in Command line & coding agents:

Command What it does
interactive-pipe skill [--install [--user \| --project DIR] [--force]] [--agents-md] [--path] print or install the agent skill
interactive-pipe doctor [--json] installed backends, display, what gui="auto" picks
interactive-pipe snapshot SCRIPT.py [-o OUT] [--set NAME=VALUE] [--output NAME] [-- args] run an unmodified GUI script, one PNG per pipeline call
interactive-pipe sweep SCRIPT.py --param NAME=V1,V2 [--steps NAME=N] [--set ...] [-o OUT] a contact sheet over parameter values, per pipeline call
interactive-pipe describe SCRIPT.py [--json] [--max-calls N] [-- args] the controls and outputs of the pipelines a script runs
interactive-pipe check SCRIPT.py [--json] [--set ...] [-- args] build and run every pipeline once, report outputs, warnings and errors
interactive-pipe --version the installed version

The environment variable INTERACTIVE_PIPE_SNAPSHOT=<path.png or folder/> makes GUI-decorated pipelines render a snapshot instead of opening a window (Snapshots).

skill_path

skill_path() -> Path

Path of the installed agent skill file (SKILL.md).

Source code in src/interactive_pipe/agent/__init__.py
38
39
40
def skill_path() -> Path:
    """Path of the installed agent skill file (``SKILL.md``)."""
    return _HERE / SKILL_NAME / "SKILL.md"

main

main(argv: Optional[Sequence[str]] = None) -> int

Entry point of the interactive-pipe command; returns the exit code.

Source code in src/interactive_pipe/agent/command_line.py
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
def main(argv: Optional[Sequence[str]] = None) -> int:
    """Entry point of the ``interactive-pipe`` command; returns the exit code."""
    own_args, script_args = _split_script_args(sys.argv[1:] if argv is None else argv)
    parser = build_parser()
    args = parser.parse_args(own_args)
    if args.version:
        from interactive_pipe import __version__

        print(f"interactive_pipe {__version__}")
        return 0
    if args.command is None:
        parser.print_help()
        return 0
    if script_args and args.command not in SCRIPT_COMMANDS:
        parser.error(f"arguments after -- are only used by the script commands: {script_args}")
    if args.command == "skill":
        return _cmd_skill(args)
    if args.command == "doctor":
        return _cmd_doctor(args)
    return _cmd_run(args, script_args)