How qtrieu0610/tieru-agent works
Tieru is a local-first personal AI runtime. Its main workflow routes a user request through Model Fabric and the conversation loop, where requested actions pass the Trust Kernel before registered tools execute; Replay records bounded run evidence. Distinct product branches provide durable tasks, persistent memory and context, reusable skills and passive suggestions, portable identity, and external messaging. The graph follows documented flows and indexed imports; several subsystem internals were not sampled, so uncertain connections are omitted.
Main entry points: agent.py Conversation Loop · app.py Runtime Assembly · replay/service.py Replay · fabric/service.py Model Fabric
Components 21
Conversation Runtime
- Runtime Assembly
tieru/app.py - Model Fabric
tieru/fabric/service.py - Conversation Loop
tieru/loop/agent.py - Context Firewall
tieru/context/builder.py
Action Governance
- Trust Kernel
tieru/trust/kernel.py - Tool Registry
tieru/tools/registry.py - Capability Router
tieru/capabilities/router.py
Memory and Evidence
- Personal Memory
tieru/memory/personal.py - Memory Graph
tieru/memory/graph/service.py - Skill Retrieval
tieru/memory/procedural/loader.py - Replay
tieru/replay/service.py
Durable Workflows
- Durable Tasks
tieru/tasks/service.py - Task Recovery
tieru/recovery/service.py - Skill Forge
tieru/forge/service.py - Shadow Suggestions
tieru/shadow/service.py
Identity and Channels
- Capsule Transfer
tieru/capsule/service.py - Messaging Gateways
tieru/gateway/telegram.py - Local Dashboard
tieru/ops/dashboard.py
Other components
- User
- Model Providers
- Ollama
Connections 21
- User → Runtime Assembly: sends request
README.md - Runtime Assembly → Model Fabric: routes request
README.md - Runtime Assembly → Conversation Loop: runs conversation
tieru/app.py - Model Fabric → Model Providers: selects model
README.md - Conversation Loop → Trust Kernel: requests authorization
README.md - Trust Kernel → Tool Registry: authorizes action
tieru/tools/registry.py - Conversation Loop → Capability Router: routes capabilities
tieru/loop/agent.py - Conversation Loop → Context Firewall: assembles context
tieru/loop/agent.py - Runtime Assembly → Replay: records events
tieru/app.py - Conversation Loop → Personal Memory: uses explicit memory
README.md - Conversation Loop → Memory Graph: uses typed memory
README.md - Conversation Loop → Skill Retrieval: retrieves skills
README.md - User → Durable Tasks: creates task
README.md - Durable Tasks → Task Recovery: recovers execution
tieru/tasks/service.py - Replay → Skill Forge: drafts from run
README.md - Replay → Shadow Suggestions: observes patterns
tieru/shadow/service.py - Shadow Suggestions → Skill Forge: suggests candidate
tieru/shadow/service.py - User → Capsule Transfer: exports identity
README.md - User → Messaging Gateways: messages through
README.md - User → Local Dashboard: opens dashboard
README.md - Model Providers → Ollama: may use local
README.md