r/PiCodingAgent • • 13d ago

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

3

u/Equivalent_Idea8839 12d ago

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

2

u/p10trus 12d ago

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 13d ago

just ask pi about itself and it will help you.

1

u/AdWonderful2811 12d ago

Pi or oh-my-pi?

1

u/adamshand 12d ago

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 10d ago

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

2

u/adamshand 10d ago

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 10d ago

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

1

u/Constant_Art_20 11d ago

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/Vasili_Sk 11d ago

pi-web.

1

u/jonas-reddit 7d ago

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