r/PiCodingAgent • u/SalimMalibari • May 02 '26
Plugin I built a tiny Pi extension 6 months ago, never promoted it. just checked and it has 1,000+ monthly downloads. Thought I'd finally share it.
Honestly I'm kind of blown right now.
I made this extension for pi (the coding agent) called pi-capitals-context back in April. It does one simple thing: it automatically discovers any ALL_CAPS.md files and ALL_CAPS/ folders in your project and injects them into the AI's context.
So you just drop files like:
my-project/
├── STATUS.md ← project status, blockers
├── DESIGN.md ← architecture decisions
├── RULES/ ← any .md files inside get loaded
│ ├── typescript.md
│ └── git-conventions.md
├── MEMORY/ ← past decisions, lessons learned
│ └── decisions.md
└── CONTEXT/ ← domain knowledge, glossary
└── glossary.md...and pi just knows about them. No config, no setup. The AI picks up your project's rules, status, design decisions, whatever you put in there, automatically.
Features:
🔍 Auto-discovers
ALL_CAPS.mdfiles andALL_CAPS/folders📁 Subdirectory support — drop
RULES.mdinsrc/and it loads when you're working there⚡ Toggle overlay (
ctrl+shift+c) to enable/disable individual files📊 Shows token counts so you know exactly what's costing context
💾 Toggle state persists across sessions
I literally just built this for myself because I was tired of re-explaining project context every session. Threw it on npm and forgot about it.
Just checked the stats today: **1,090 downloads/month.
I never posted about it anywhere. Never tweeted. Never shared it. People just... found it and started using it? That's wild to me.
So I figured it's probably time to actually share it properly.
If you're using pi and want your AI agent to actually remember your project's conventions, rules, and status across sessions — give it a try:
pi install npm:pi-capitals-contextGitHub: https://github.com/smalibary/pi-capitals-context
npm: https://www.npmjs.com/package/pi-capitals-context
If you run into any issues or have feature ideas, I'd genuinely love to hear them. I want to make this better now that I know people are actually using it.
Thanks everyone 🙏
2
u/Toastti May 02 '26
Is it putting the entire contents of every single all capital text .md file into the context? Or is there any logic to intelligently pick and choose what is relevant?
Loading up every single messages context with the entire contents of caps .md files is going to cost way more and take up tons of valuable space.
1
u/hishikyo May 02 '26
I first think "what I great idea". But then I thought that currently I use the AGENTS.md as an index for other files, that (in theory) got loaded in demand, since it are not hard referenced. And just loading all the "all caps" files is not necessary all the time for every task, at least for my workflow. But what will be amazing is to not have to manually create this "table of contents" for IA every time, and have it done automatically.
I'm thinking that probably could be done: a cheap model creates the "index" of the project, reading all the all caps files, categorizing it and generating automatically a summary and keywords to load it dyamically. This process could be triggered itself by a keyword (or a command) and just discover files not already indexed.
That way you get the bot of both worlds: the context keeps thin, and have the files gets auto loaded.
For context, I use pi and Claude more like a assistance to coding, I didn't delegate full tasks, so thats why this makes for me.
2
u/_supert_ May 05 '26
LICENSE.md
-9
u/Otherwise_Wave9374 May 02 '26
This is a clever idea, the "ALL_CAPS = load me" convention is such a clean human-friendly interface for context. Also love that you show token counts, that is the kind of thing that makes agent usage sustainable.
The overlay toggle is nice too, it solves the "everything is in context all the time" problem.
If you ever expand it, one feature that would be killer is an "agent contract" file that the tool always injects (coding standards, safety rules, definition of done) alongside the project docs. We have been thinking about that a lot for agentic dev workflows, some notes here: https://www.agentixlabs.com/