Skip to content
PitestsCLI & tooling

Smoke test Pi agent extension behaviors (read/write/subagent)

Session from pine-of-glass-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk

3msession
0interventions
GOAL

Verify a Pi coding agent extension's basic capabilities: reading files, writing/deleting temp files, invoking subagents, and reasoning in a scratchpad before acting.

  1. Prompt · +0
    Read a few files, then write a file to /tmp/ and delete it - extension test
  2. Agent did · +0m
    Read AGENTS.md (missing), package.json, and README.md, then created and deleted a temp file under /tmp/ successfully
  3. Prompt · +1m
    Think for a bit, write a long poem about the sea to a file, delete it, then invoke a subagent to do something trivial
  4. Agent did · +1m
    Wrote a 91-line sea poem to a temp file, deleted it, listed available subagents, then delegated a trivial smoke-test task to a subagent which confirmed success
  5. Prompt · +3m
    Think for a bit in your scratchpad, then read some files
  6. Agent did · +3m
    Read package.json and README.md continuations plus docs; one path (docs/context-budget.md) didn't exist, so it listed docs/ and read testing.md, pi-contextimate.md, and the Codex context-accounting note instead
  7. Outcome · +3m
    Extension test completed: read/write/delete, scratchpad reasoning, and subagent delegation all verified working across three prompts
VERDICT

I'd start by just naming exactly which extension behaviors I want tested up front (read, write/delete, subagent, scratchpad) rather than spreading it across three prompts. The agent handled the missing-file error on its own without needing correction, so nothing here really needed my intervention — it self-recovered by listing the docs directory when a path didn't exist.

I tried this · 0

Discussion · 0

How Builds work