Could Pi benefit from an optional time-bound autonomous loop?

I’ve been looking at Hermes Agent’s "/goal" approach: give the agent a persistent goal, let it continue across turns, have a lightweight judge decide whether it’s done, and stop when the goal is achieved or the turn budget is exhausted.

It got me thinking about Pi:

Could this be implemented as an extension rather than a core feature?

Something like:

"/loop 30m "Fix the tests and get CI green""

The extension would manage:

  • a time/iteration budget
  • continuation decisions
  • completion checking
  • pause/stop
  • existing Pi session state

That feels quite aligned with Pi's philosophy: keep the core small, but make powerful agent behaviours possible through extensions.

Would a lightweight, time-bound autonomous loop be useful in Pi, or does this belong entirely outside the harness?

reddit.com
u/Certain_Net_3408 — 12 hours ago
▲ 23 r/AIDeveloperNews+2 crossposts

DeepSeek Harness vs Pi Agent are they converging on the same philosophy?

I came across "DeepSeek Harness" (https://github.com/deepseek-ai/deepseek-harness), whose core idea is literally “Everything is a Plugin.”

Looking at it alongside Pi, it feels like there’s a similar philosophy:

keep the core/harness small, and make capabilities composable at the session/plugin level.

Pi has extensions, skills, tools, prompts, etc., while DeepSeek Harness takes the plugin approach even further.

Is this essentially the same architectural direction?

And is “small core + everything else as a session/plugin” becoming the better design for coding-agent harnesses?

Curious what the Pi community thinks.

u/Certain_Net_3408 — 5 days ago

Could Pi evolve toward something like Prime Agent's RLM harness?

I've been looking at Prime Agent, which is built on Pi, and I'm curious what the Pi community thinks about some of the ideas they've added on top of the Pi foundation.

Prime Agent describes itself as a self-improving RLM harness for coding and long-running autonomous tasks, with several interesting differences in how the harness operates:

  • Programmatic tool calling the model can use a persistent execution environment to compose tool calls rather than treating every tool invocation as a simple one-shot interaction.
  • Context as a variable context can be programmatically inspected, transformed, compressed, persisted, and selectively brought back into the working context rather than treating the conversation history as a fixed block.
  • Multi-agent messaging agents can spawn/delegate to other agents and communicate with them as part of a longer-running task.
  • Self-modifiable harness state the agent can modify things such as memories, skills, prompts and sub-agent configurations while working, allowing the harness to adapt based on what it encounters.
  • Long-running autonomous execution the emphasis is less on interactive "chat → edit → chat" coding and more on giving the agent a goal and letting it work through the problem, iterate, test and recover over a longer horizon.
  • RLM-style persistent execution Prime Agent uses a persistent execution environment where state can survive across interactions, giving the model another layer in which to manage context and reasoning.

What caught my attention is that Prime Agent is built on Pi, rather than being an entirely separate agent architecture.

So I'm wondering:

Would it make sense to bring some of these ideas back into Pi as optional/core primitives?

For example, could Pi eventually have a more native concept of:

"Pi → persistent execution → programmable context → sub-agents → modifiable skills/memory → iterative refinement"

while still keeping Pi's current philosophy of being minimal, composable and hackable?

Or is the whole point of Pi that these things should remain extensions on top of the minimal core, rather than becoming part of Pi itself?

I'd be particularly interested in hearing from people who've actually used both Pi and Prime Agent. What does Prime's architecture enable that you couldn't achieve cleanly with Pi extensions today?

Not trying to argue that Prime is "better" — I'm more curious whether some of these RLM/harness ideas represent a direction Pi could support while preserving its minimal philosophy.

reddit.com
u/Certain_Net_3408 — 10 days ago

Has anyone here used or looked into pi-okf-wiki?

I came across pi-okf-wiki · Packages · and I'm trying to understand what it actually is and whether it's useful in practice.

Has anyone here:

  • Used it in a real project?
  • Know what problem it's intended to solve?
  • Have any documentation, examples, or tutorials they'd recommend?
  • Run into any issues or limitations?

I'd appreciate hearing about your experiences good or bad... Thanks! 😁

u/Certain_Net_3408 — 18 days ago

Has anyone tried Honcho for long-term agent memory? Thinking about a Pi memory plugin

I’ve been looking into ways to give coding agents better long-term memory across sessions. One recurring pain point for me is that agents forget project context, user preferences, past decisions, and repo-specific conventions unless I keep re-explaining everything.

I came across Honcho’s Pi integration:
https://honcho.dev/docs/v3/guides/community/pi-honcho-memory

From what I understand, it gives the pi coding agent persistent memory by syncing conversations into Honcho, injecting cached user/project context into the system prompt, and exposing tools like memory search/chat/remember. I also like that session scoping can be configured around repo/branch/directory, and that Pi keeps working if Honcho is unavailable.

Has anyone here actually tried Honcho with Pi or another coding agent in a real workflow? more like a self-hosted/local reference setup: Honcho in Docker, Ollama on a Mac, and a Raspberry Pi talking to Honcho over the LAN. It makes me wonder whether there’s room for a cleaner, packaged Pi memory plugin built around this kind of pattern.

A few things I’m curious about:

  • How painful was setup?
  • Did memory retrieval actually improve coding sessions?
  • Any noticeable latency?
  • Did the memory ever become noisy or misleading?
  • Would you prefer hosted Honcho, or a self-hosted/local setup with Docker + Ollama?
  • Would a polished Pi plugin/package be useful if it made setup simpler?

I’m not announcing anything yet, just trying to validate whether this is worth building. If there’s interest, I’m thinking of putting together something cleaner..

u/Certain_Net_3408 — 22 days ago

pi-output-parser — standalone package that repairs malformed tool calls from small local models

Built a small pi package that ports the output-parser mechanism from little-coder as a standalone installable extension.

What it does: hooks message_end and repairs tool calls that small models (Qwen, Mistral, LFM2, etc.) emit in formats pi doesn't natively recognise:

  • \``tool/```json` fenced blocks
  • <tool_call>, <tool_use>, <function_calls><invoke> XML
  • bare top-level JSON objects
  • Python-list syntax [Read(path='./foo.ts')] from LFM2/Liquid models

It also normalises the many JSON schemas small models use ("parameters", "input", "arguments", OpenAI function-call with stringified args, etc.) down to a single shape.

Safety: only fires if there are no native tool_use blocks already, and validates the extracted tool name against pi.getAllTools() before injecting anything — so stray JSON and code blocks in responses are never misinterpreted as tool calls.

Install:

pi install git:github.com/vishn9893/pi-output-parser

Or drop extensions/output-parser/index.ts directly into .pi/extensions/ if you prefer not to use the package system.

Repo: https://github.com/vishn9893/pi-output-parser

Feedback welcome especially if you hit a model that emits a format this doesn't cover yet.

u/Certain_Net_3408 — 26 days ago

I built a Pi package for agent-managed continuity, subagents, and handoff

I’ve been experimenting with Pi packages and published pi-agent-continuity, a small extension for making long-running Pi sessions less forgetful.

The first version was a continuity layer around compaction, forks, and subagent workflows. After some great feedback, I added an experimental branch for agent-managed handoff: the agent can decide when context is getting noisy, save durable knowledge, record a focused handoff brief, and continue with cleaner state.

What it includes:

  • JSONL memory ledger
  • /ac:status, /ac:memory, /ac:remember
  • continuity_memory and remember_continuity
  • bridge tools for pi-subagents
  • subagent lifecycle tracking
  • new continuity_handoff tool
  • durable reusable notes
  • session-scoped handoff briefs
  • next-step tracking
  • context-load advisory memory around ~30%, ~50%, and ~70%

The important bit: this does not replace Pi’s native compaction yet. It is advisory/tool-driven. The agent gets visibility and tools, but still chooses when to hand off, compact, continue, or ask the user.

The idea is heavily inspired by:

  • elpapi42/pi-observational-memory
  • tintinweb/pi-subagents
  • agenticoding/pi-agenticoding

My mental model right now:

pi-subagents = execution layer
pi-agent-continuity = memory layer
agent-managed handoff = policy layer

Repo: https://github.com/vishn9893/pi-agent-continuity

Tags:

  • v0.0.1: baseline continuity package on main
  • v0.1.0: agent-managed handoff experiment branch

Would love feedback from anyone building Pi extensions or running long-lived agent sessions.

reddit.com
u/Certain_Net_3408 — 2 months ago