What is Project Memory?
Project memory is a markdown file (.polpo/memory.md) that Polpo injects into every agent’s context. It’s persistent across sessions and shared by all agents working on your project.
Use it to capture:
- Architecture decisions and patterns
- Build commands and common operations
- Known issues and workarounds
- Coding style and conventions
- Project-specific knowledge
Creating Memory
Via TUI
Via Web UI
Navigate to Memory in the sidebar. Click Create Memory to start from a template.Via API
Manually
Create.polpo/memory.md in your project root:
Template
When creating memory through the TUI or web UI, you get a starter template:How Agents Use Memory
When an agent is spawned for a task, Polpo:- Reads
.polpo/memory.md - Prepends it to the agent’s system prompt
- The agent sees it as project context alongside the task description
Best Practices
- Keep it concise — agents have limited context. Focus on actionable info, not prose.
- Update frequently — add new learnings as agents discover them. Memory evolves with the project.
- Be specific — “Use
./node_modules/.bin/tsc” is better than “use the TypeScript compiler” - Include commands — exact build, test, and lint commands save agent time
- Document patterns — if you have a preferred error handling pattern, put it here
- Note known issues — prevents agents from rediscovering the same problems
Memory is also available via the React SDK’s
useMemory() hook, which provides real-time content with save/reset functionality.System Context
System context (.polpo/system-context.md) is a separate file that stores standing instructions for Polpo itself — not for the agents it spawns. Every time you start a conversation with Polpo (via TUI or the /v1/chat/completions endpoint), this file is injected into Polpo’s system prompt.
Use it for:
- Standing instructions (“always use TypeScript strict mode”)
- Project conventions Polpo should follow when generating missions
- Preferences for agent selection or model choice
- Anything you’d tell a project manager on day one
How It Works
- Polpo reads
.polpo/system-context.mdat the start of every conversation - The content is injected as “Standing instructions” in Polpo’s system prompt
- Polpo follows these instructions when planning, delegating, and reviewing work
Creating System Context
Tell Polpo to remember something during a conversation:append_system_context tool to write this to .polpo/system-context.md. You can also create or edit the file manually.
Memory vs System Context
| Project Memory | System Context | |
|---|---|---|
| File | .polpo/memory.md | .polpo/system-context.md |
| Injected into | Agent prompts | Polpo’s own prompt |
| Purpose | Project knowledge for agents | Standing instructions for Polpo |
| Who uses it | The worker agents | Polpo (the manager) |
| Managed via | /memory command, API, or manual edit | append_system_context tool, or manual edit |