Getting Started with OmniCoreAgent
Welcome to the OmniCoreAgent learning path. This guide takes you from writing your first line of code to building production-ready, autonomous agents with persistent memory, context management, and guardrails. Follow the examples in order — each one builds on the concepts from the previous.📚 The Learning Path
🎯 “I just want to…”
🛠️ Prerequisites
REDIS_URL, DATABASE_URL, or
MONGODB_URI only when you intentionally run the persistence examples.
📖 Key Concepts
Memory with Summarization
Context Management
Choosing the Right Mode
Trade-offs:
Recommendations:
- Chatbots / Q&A agents: Use
sliding_windowwithvalue: 10-20 - Tool-heavy agents (APIs, web scraping): Use
token_budgetwithvalue: 8000-16000 - Mixed workloads: Use
token_budgetwith lower threshold (50-60%)
Tool Response Offloading
artifacts/ area, with only a preview in context.
How it works:
- Tool returns large response (e.g., web search with 50 results)
- Response saved to
workspace/artifacts/ - Agent sees preview + file reference in context
- Agent uses
read_artifact()tool to get full content when needed
Tool offloading adds 4 artifact tools:
read_artifact(artifact_id)- Read full contenttail_artifact(artifact_id, lines)- Read last N linessearch_artifact(artifact_id, query)- Search within artifactlist_artifacts()- List all offloaded artifacts
ls, read_file, write_file, glob, and grep.
💡 Inspired by Cursor’s “dynamic context discovery” and Anthropic’s context engineering patterns
Guardrails
Metrics
🚀 Next Steps
- Workflows: Chain agents together (Sequential, Parallel, Router)
- Background Agents: Scheduled autonomous tasks
- Production: Metrics and guardrails