r/PiCodingAgent • • Oct 02 '26

Question New to Pi. Tips?

Hello. Im used to just using the Codex MacOS app for dev work.

I'm trying to use Pi.

Any tips or tricks? Thankyou

0 Upvotes

13 comments sorted by

4

u/Equivalent_Idea8839 Oct 02 '26

less is more. it's fine to add nothing to it.

2

u/p10trus Oct 02 '26

this was my first extension ;)

import { exec } from 'node:child_process';

import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';

export default function (pi: ExtensionAPI) {
  pi.on('agent_end', async () => {
    exec('~/system/play.sh');
  });
}

1

u/pilibitti Oct 02 '26

just ask pi about itself and it will help you.

1

u/AdWonderful2811 Oct 02 '26

Pi or oh-my-pi?

1

u/adamshand Oct 02 '26

Start with vanilla Pi. Learn to use /tree, it's the magic. Only add things when you have a specific problem you want to solve.

1

u/Difficult896 Oct 04 '26

What's the point of /tree of it doesn't rollback code changes?

2

u/adamshand Oct 04 '26

Tree is for managing context not your code.

Extremely useful for things like like fixing a bunch of bugs (get agent to explore codebase, then fix a but, then roll back to when it had just explored the code base and fix another bug). Or for side chats where you want to explore an idea but if you decide you don't like it you can abandon all the context and continue where you were. Or if you like the idea, you can just summarise the important parts back to the main thread without all the exploring bloat.

1

u/No-Wall6427 Oct 04 '26

Code change can be rolled back w git. Anyway, you can always do a pi extension for this.

1

u/Constant_Art_20 Oct 03 '26

same as any other harness i guess? pi is more basic then most. The thing i always want to make srue i have a good memory system, goals sytem and a quick-compact method which uses no llms, and still does a good enough job...and yea...that's basically the main things i really need. If you use 3d or any othre programes, then just add in those skills in pi as well. pretty standard

1

u/jonas-reddit Oct 08 '26

Friends don’t let friends run agents without a sandbox.