22 AI agents for compounding pharmacy — inspired by AIOS-core #165
Replies: 3 comments
-
Update: Context Engine + Session Bridge (inspired by SYNAPSE)After posting here, we went deeper into the SYNAPSE architecture — studied the 8-layer pipeline, the UAP Session Bridge, bracket-aware injection, and the diagnostics system. Here's what we built from those patterns. The problem we hadOur agents were forgetting their rules in long sessions (40+ prompts). Our original hook ("Enforcement Brutal v1.0") injected everything on every prompt — governance, territory, rules, handoffs — all at once, always the same. It was like shouting louder instead of speaking better. What SYNAPSE taught usThree patterns we didn't have:
What we implementedWe translated SYNAPSE's patterns to our stack (Bash + YAML, no Node.js): Context Engine (5 layers, <50ms):
We simplified from 8 layers to 5 — removed keyword recall (L6) and star-commands (L7) as unnecessary for our domain. Bracket tracking:
We use Session Bridge: Evolved from a file containing just session_id: "ses-260216-1430"
active_agent: "giovanni"
active_squad: "farmaceutico" # auto-resolved from SQUADS.yaml
active_handoff: null
prompt_count: 34
context_bracket: "MODERATE"
activation_history:
- agent: "alex"
deactivated_at: "2026-02-16T14:00:00Z"
prompts: 12With graceful degradation: if the file is corrupted, it recreates from scratch. If missing, operates without an agent. Never blocks. Performance
All within the 100ms budget that SYNAPSE targets. What we can give backA few observations from adapting SYNAPSE to a non-dev domain:
We'll keep posting updates as we implement Phase 2 (Runtime Diagnostics inspired by your 10-collector system). Fabio Resende Fonseca — Carpe Diem Compounding Pharmacy, Brazil |
Beta Was this translation helpful? Give feedback.
-
|
Ola Fábio, Como esta usando esses agentes na sua farmácia? Fiquei curioso para ver como as pessoas usam, aqui uso 2 apenas que o pessoal utiliza no atendimento com todo o conhecimento de duvidas que foram tiradas com nossa farmaceutica tipo um banco de dados e outra para utilizar para duvidas no laboratorio. |
Beta Was this translation helpful? Give feedback.
-
|
Excelente trabalho, orquestração de gente grande. Parabéns!!!. Depois que descobri o AIOS eu também mudei a mentalidade em relação aos meus projetos e agora está fluindo muito mais rápido e conciso |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! I'm Fabio, a pharmacist and founder of Carpe Diem Compounding Pharmacy in Brazil. Writing from ES (Espirito Santo) — English isn't my first language, but I wanted to share how aios-core directly influenced the evolution of our agent ecosystem, which operates in a very different domain from software development.
Context
Since December 2025, we've been building an ecosystem called TALS/AI — 22 specialized agents for compounding pharmacy. The stack is 100% Anthropic (Claude Code + MCP), with agents defined in pure Markdown and centralized governance in YAML.
Current numbers:
How we found AIOS-core
We were in a consolidation phase — the ecosystem worked, but it felt like it lacked operational robustness. When we discovered aios-core (v4.0), I ran a detailed comparative analysis and identified 5 operational gaps that you had already solved and we hadn't:
What we implemented (inspired by you)
In a single work session (Feb 14-15), the flow was: ALEX (our CTO advisor agent) analyzed the gaps → prioritized → generated specs → Andrew (our agent architect) implemented everything.
1. Post-Execution Gate (inspired by the QA agent)
We added a self-critique block to our 6 main slash commands. Before completing any task, the agent verifies:
2. Schema Validation (inspired by AIOS formal structure)
We created 4 formal YAML schemas:
agent-schema.yaml— required fields for every agentskill-schema.yaml— skill structurehandoff-schema.yaml— agent-to-agent handoff protocolrecovery-checkpoint.yaml— recovery state3. Recovery System (inspired by your retry/fallback)
MEMORY/recovery/directory for 5 tier-1 agents4.
/validarSkill (inspired by quality gates)An automated QA with 6 phases and a 0-100 score:
Score >= 80 = approved. < 80 = fix before closing the task.
5. Squads (directly inspired by AIOS Squads)
5 composed squads:
Where we diverged
Our ecosystem differs from AIOS in a few architectural decisions that might be interesting to you:
Markdown-first (no code)
Our agents are defined entirely in Markdown. The main prompt (CORE) is ~100-150 lines. Skills are SOPs (Standard Operating Procedures) in
.mdfiles. This gives us 100% portability — if we switch orchestrators tomorrow, 90% of the ecosystem comes with us.Handoff System with chaining
We have a task-passing system between agents with:
from_agent,to_agent,context,return_pathresult_return(back to origin),chain(forward to next),terminateROUTING.yamlTerritory-based Governance
Each agent has a
can_modifyfield — explicit paths it's allowed to alter. If it tries to modify outside its territory, it's blocked. This prevents the classic problem of agents stepping on each other's toes.MCP per need
Out of 22 agents, only 2 use MCP. The other 20 work with in-process services or no external integration. The rule is: create an MCP server only when the agent needs external integration. Pragmatism > feature bloat.
The domain: compounding pharmacy
Perhaps the most interesting part is the domain. Our agents deal with:
It's a vertical use case very different from software development, but AIOS-core's multi-agent orchestration architecture turned out to be surprisingly applicable.
Thank you
Your work on aios-core has been an important reference for us. Especially:
Congrats on the project and its rapid growth.
If you're curious about how a multi-agent ecosystem works outside the dev domain, I'm happy to share more — including a deeper technical write-up on any of these patterns if there's interest.
Fabio Resende Fonseca
Pharmacist (CRF-ES 2116)
Carpe Diem Compounding Pharmacy — Brazil
Beta Was this translation helpful? Give feedback.
All reactions