Skip to main content

folpipe

Folder-based agentic AI pipeline framework. No programming required to use.

pip install folpipe
folpipe run ./my-pipeline --watch

The idea

A pipeline is a folder. Instructions live in plain-English markdown files. Tools are drop-in folders. The model is swappable with one line.

my-pipeline/
├── pipeline.yaml       ← steps, model, routing
├── SKILL.md            ← global instructions (plain English)
├── .env                ← API keys
├── input/              ← drop files here
├── output/             ← results land here
├── tools/              ← drop-in custom tools
├── step-01-ingest/
│   └── SKILL.md        ← what this step does
└── step-02-process/
    ├── SKILL.md
    └── sub-01-chunk/   ← sub-steps, recursively
        └── SKILL.md

Zip the folder, share it, version it in git. No server, no database, no cloud account.


Quick start

1. Install

pip install folpipe

2. Create a pipeline

folpipe new my-pipeline
cd my-pipeline

3. Configure the model — edit .env:

DEEPSEEK_API_KEY=sk-...

4. Write your step — edit step-01-start/SKILL.md:

# Summarise input

Read the file from input/ and write a 3-paragraph summary to output/summary.md.

## Task

Use read_file to read the input file.
Use write_file to write output/summary.md.
Leave a handoff note when done.

5. Run it

cp myfile.txt input/
folpipe run . --watch

What it can do

Linear pipelines — steps run in order, each hands off to the next via shared state.

Agent branching — the model decides which step comes next from a declared whitelist:

- id: step-03-validate
  can_goto: [step-04-output, step-05-partial-output]

Parallel dispatch — the model fires multiple dispatch_task calls in one response; the runner detects the batch and executes them concurrently:

## Task
Process all documents at once — send them all for chunking
in the same breath rather than one at a time.

Sub-steps — steps contain named sub-step folders with their own SKILL.md and tools:

dispatch_task(task="chunk intro-to-ml.txt", substep="sub-01-chunk", context={...})

Human-in-the-loop — steps can pause for console input, file review, or a custom tool (Slack, email, webhook):

- id: step-03-review
  human_input:
    mode: console
    prompt: "Approve this output? (yes/no):"

Model-driven context — each step's ## Context section tells the model what state to pay attention to and what to ignore. Skip signals are respected; the model never sees irrelevant data.

Filesystem sandbox — every step is sandboxed to the pipeline directory. The model cannot read files outside it, and secret-named files (.env, *.key, *.pem, etc.) are blocked even inside. To grant access to an external path, drop a symlink into the pipeline — the symlink is the access grant, no config required.

Any model — DeepSeek, Anthropic, OpenAI, Ollama, Groq, or any OpenAI-compatible endpoint. Change one line in pipeline.yaml. Optional per-step overrides for cost optimisation.


Custom tools

Drop a folder into tools/:

tools/
└── send_slack/
    ├── tool.json    ← MCP-compatible schema + deps declaration
    └── run.py       ← stdin JSON in, stdout JSON out
{
  "name": "send_slack",
  "description": "Post a message to a Slack channel. Use for approvals and failures that need human eyes.",
  "inputSchema": { ... },
  "deps": ["slack-sdk"]
}

Dependencies declared in deps are installed automatically before the first run. No manual pip install.

Any language works — run.py, run.sh, or run.js.


Example pipelines

doc-pipeline

Ingests documents → chunks → embeds → indexed output.

folpipe run ./examples/doc-pipeline --watch

Demonstrates: parallel dispatch, sub-steps, agent branching, partial-failure routing.

cv-pipeline

Job URL → developer profile → tailored CV + styled PDF.

folpipe run ./examples/cv-pipeline --input "https://example.com/jobs/engineer" --watch

Demonstrates: custom tools (fetch_page, render_pdf), linear pipeline, HTML→PDF via Edge headless.


CLI

folpipe run ./my-pipeline               # run
folpipe run ./my-pipeline --watch       # run with live output
folpipe run ./my-pipeline --from step-03  # resume after failure
folpipe run ./my-pipeline --dry-run     # validate config without running
folpipe new my-pipeline                 # scaffold new pipeline
folpipe new step step-05-review --in ./my-pipeline
folpipe new tool send_email --in ./my-pipeline/tools
folpipe validate ./my-pipeline          # check config
folpipe tools list --pipeline ./my-pipeline
folpipe tools install ./my-pipeline     # pre-install tool deps
folpipe log ./my-pipeline               # show run log
folpipe log ./my-pipeline --errors      # show last error report

Documentation


Requirements

  • Python 3.10+
  • A model with tool calling support (DeepSeek, Claude, GPT-4, Llama 3.1+)
  • For PDF rendering in cv-pipeline: Edge or Chrome installed

Metadata

Release files for folpipe 0.1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for folpipe 0.1.12
File Size Uploaded Provenance Actions
folpipe-0.1.12.tar.gz 108.4 kB Without provenance Details for folpipe-0.1.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for folpipe 0.1.12
File Interpreter ABI Platform Actions
folpipe-0.1.12-py3-none-any.whl Python 3 none any Details for folpipe-0.1.12-py3-none-any.whl

Total release size: 140.9 kB

Release files / folpipe-0.1.12.tar.gz

Download URL folpipe-0.1.12.tar.gz
Size 108.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d232ab713c181fd13dbce96c3fcf5abe3f568c4660edb3ed6b94df6284a2b876
BLAKE2b-256 checksum
How to use checksums
e111d1a4cea34e3bd252ad17d7055d402ce9fd0097d91c80db3d86226b8308ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / folpipe-0.1.12-py3-none-any.whl

Download URL folpipe-0.1.12-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01cc0dc3a286a6a81bf96884f95b6a0a0db4693cd210d887b82e5c18fc4b905e
BLAKE2b-256 checksum
How to use checksums
c1f79ef94837b905f4c2315cbf6d71ea4f50a968bc7957e53c8ea992c72f7da1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for folpipe 0.1.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page