File-based entry point for agent-pi. Reads a markdown task file, runs the agent, writes the updated content back to the same file. Mirrors the Kafka entry point (../../main.go) but uses file I/O instead of Kafka/CQRS.
Pi reads its own config from $HOME/.pi. Authenticate the pi CLI once interactively (pi auth login) before running tasks here — the saved credentials are picked up automatically.
Command run-task is the local-CLI entry point for agent-pi.
Reads a markdown task file from disk, runs the agent against it, and
writes the updated content back to the same file. Mirrors the Kafka
entry point (../../main.go) but uses file I/O instead of Kafka/CQRS.