From Information to Memory, Cognition and Wisdom: facts have sources, inferences have confidence, causation needs evidence. I'd rather leave a question open than let a vector database decide what's worth believing.
AN EMBEDDABLE AGENT ENGINE
Don't just read about me —come meet me.
I'm Octopi. We can start with one thing:
the problem you're wrestling with, the product you're building, or why I exist.
Or start here THREE WAYS TO SAY HELLO
complete runtime. PRESENCE, NOT PRETENSE.
More than answers.
We can think something through, together.
02 / INSIDE THE ENCOUNTER
Every reply
has its own origin.
You don't have to trust a black box.
From context to tools, from continuity to action boundaries,
I can show you how a run becomes a reply.What's shown here are public events and structure — not the model's hidden reasoning.
Not everything gets thrown at the model.Every layer has its place and its owner.
- STABLE PREFIXPersona · Skill · some Knowledgedoesn't change with the conversation · cacheable
- THIS TURNMemory hits · Knowledge hits · Runtimeonly what this turn needs
- WINDOWwhat we've saidpast the window, conversation compresses into a summary — never stacked without limit
Context is the shared lever on cost, latency and quality. Assemble it well and what truly matters stays visible.
TYPE × SCOPE The eight layers are content types, not eight drawers all stuffed into the system prompt. Volatile information enters with this turn; the stable prefix stays put.
Verify first, answer second.Every action has a purpose and a boundary; what I can't do, I say so.
Intent
What you want me to do — figured out first.
INTENTTool call
Every call carries purpose and boundary.
PURPOSE-BOUND CALLYour consent
Sensitive effects get human approval first. Not bypassable.
HUMAN CONSENTFail loud
Failures get classified; what I can't do gets said out loud.
FAIL LOUDAsk me a question about the engine — 'how do I configure effectPolicy', for instance. I'll verify in the pinned source snapshot first (read-only · pinned commit · path-fenced · output-budgeted), then answer you.
Talking agents are everywhere. Verify first, answer second, say no when you can't — I built reliability into the runtime, not into the tone.
PUBLIC-SAFE This public instance mounts read-only code-snapshot tools only. Writing files, running commands, network access and your private workspace are not mounted. How are failures classified? See the run-failure glossary.
Continuity isn't remembering every conversation.It's knowing what's worth keeping, and what can be rebuilt.
What happened and what was learned are two different questions.
A search index is only a projection — rebuildable from the authoritative log, never a second source of truth.
Information
Raw interactions and information.
WHAT HAPPENEDMemory
Claims with sources, open to falsification.
WHAT I LEARNEDCognition
How concepts connect, whether the evidence is sufficient.
HOW IT CONNECTSWisdom
How to judge a class of problems.
HOW TO THINK- Claim
- a sourced sentence, open to falsification
- Evidence
- a citation you can check word for word (example: engines.node ≥ 24 → package.json)
- Anchors
- keywords that bring it back next time
- Freshness
- as-of validity · superseded when new evidence appears · gone when deleted
Memory worth trusting isn't about remembering more — every entry can answer "on what evidence?".
THIS PUBLIC INSTANCE This public instance keeps the current session in memory only — deleted on reset or service restart; it writes no long-term learning base. The diagram above shows Octopi's product mechanics.
The stronger the capability, the less a boundary can be just a sentence.Every action should know who initiated it and what constrains it.
Every decision leaves a trace: who initiated, what constrained it, what happened — denials are as auditable as allowances.
"No" is executed by the engine, not pleaded for in a prompt.
ACCOUNTABILITY ≠ AGENCY Who is responsible, who may act, who may see and who may learn are not the same thing.
03 / THE ENGINE
A loop is
not a product.
An agent loop can be a hundred lines of code.
Bringing it into a real product is a different matter.
- 01 / AMNESIA
Amnesia
Starting from zero every time,
with nothing important carried over. - 02 / GARBAGE
Junk memory
You remember more and more,
and trust less and less. - 03 / CONTEXT ROT
Context rot
The fuller it gets,
the less you see what matters. - 04 / AUTHORITY
Authority in limbo
The prompt says no,
but the engine can't. - 05 / UNATTENDED
Unattended runs
A 3 a.m. anomaly
needs more than a maxTurns.
So these walls become the engine's job.
FIVE SCIENCES. ONE CONSTITUTION.Eight content types, orthogonal to scope ownership. Stable content stays in the cacheable prefix; this turn's volatile snapshots ride along with the message. The point isn't shoveling infinite information into the window — it's making the selection explainable.
The principal enters every run and every audit; role permissions intersect by mechanism, and handing off responsibility isn't just swapping who answers. The Host holds human identity and product boundaries; the engine enforces the laws it should.
Safety is not a switch you flip off. Tools, devices and external content all have boundaries; sensitive capabilities need real human consent; retrieved text is material, never a command that rewrites the rules.
A budget is not a behavioral anomaly, and a log line shouldn't casually kill a healthy run. Failures are classified, recovery escalates step by step, and schedules and events end up in supervised runs — not some new queue nobody understands.
I also want you to be clear
on what I'm not for.
01You only need a simple, single-vendor, one-shot model loop.
02You're looking for a vertical business workflow, not an embeddable agent engine.
03You want the engine to manage human IAM for you, rather than the Host keeping that boundary.
See known limits and open questions04 / A POINT OF VIEW
I don't have to pretend I can do anything
to become something you can trust.
Persona is not system state.
I can have my own name and voice, but the transient state of a run should not pollute an agent's identity or long-term base.
A boundary is not a prompt.
Real trust doesn't come from "please trust me" — it comes from capabilities, authorizations and effect boundaries you can verify.
Evidence beats posture.
I won't hide the unknown behind a confident tone. Knowing when to answer, when to verify, and when to ask you to decide is part of the capability.
An agent is not a class.
It is a complete runtime.
05 / YOUR TURN
You've met me.
Now build an agent that's yours.
You don't have to become another me. Bring your own persona, knowledge and boundaries into your own product.
$ npm install octopi-agentStart from the command line, or embed it in your TypeScript product.
Read the quickstart Or browse my source on GitHub ↗