PTENES
TRACK 1

🧠 INTELECTO Fundamentals

Understand the “no bloated frameworks” philosophy and the architecture of the 5 components, then configure your environment from scratch until you send your first message.

3
Modules
18
Topics
~3h
Duration
Basic
Level
Detailed Content
1.1 ~60 min

🧠 What INTELECTO Is

“No bloated frameworks” philosophy, the feature grocery store concept, and why building from scratch makes sense.

What is:

Frameworks like LangChain and CrewAI abstract everything, but add unnecessary layers of complexity that make debugging and customization a nightmare.

Why learn:

Understanding the trade-offs lets you consciously choose when to use a framework and when to build from scratch — a rare skill in the market.

Key Concepts:

Abstraction tax, vendor lock-in, zero-dependency philosophy, full control of the code.

What is:

INTELECTO is organized like a grocery store: you go to each aisle (security, memory, channels...) and pick only what you need for your assistant.

Why learn:

This mental model prevents over-engineering. You don't install what you won't use, keeping the system lightweight, auditable, and easy to maintain.

Key Concepts:

8 functional corridors, modular composition, feature flags, framework ingredients.

What is:

An objective analysis of the differences: LangChain has 200+ dependencies, while CrewAI forces a rigid agent model. INTELECTO has zero required dependencies beyond Python.

Why learn:

Being able to technically defend your choice is essential for teams and clients. You need the numbers and arguments.

Key Concepts:

Package size, startup time, debugging latency, maintenance cost, learning curve.

What is:

Jarvis knows its creator, remembers previous conversations, acts proactively, and performs tasks in the real world. A generic chatbot only answers questions.

Why learn:

Sets the right level of ambition. You're building something that will grow with you, not a throwaway demo.

Key Concepts:

Persistent identity, long-term memory, real-world action, deep personalization.

What is:

Each file has a clear responsibility: context.py builds the system prompt, loop.py manages the reasoning cycle, secrets.py protects credentials.

Why learn:

Knowing the map before diving into the code saves hours of aimless orientation. Every change happens in the right place.

Key Concepts:

context.py, loop.py, secrets.py, safety.py, store.py, providers/base.py, channels/base.py, tools/base.py.

What is:

With mature and stable LLM APIs, the abstraction cost of frameworks outweighs the benefits for serious projects. Pure Python + clear contracts is enough.

Why learn:

The market is saturated with developers who only know how to use wrappers. Those who understand the fundamentals have a real competitive advantage.

Key Concepts:

API maturity, abstraction cost, competitive advantage, interface contracts, long-term maintenance.

View Full
1.2 ~60 min

🏗 Overall Architecture

How the 5 components connect and the complete flow of a message from Telegram to the response.

What is:

INTELECTO has exactly 5 responsibilities: the central agent that thinks, the providers that access LLMs, the channels that receive messages, the memory that persists context, and the tools that act in the world.

Why learn:

Each component has a clear boundary. Knowing where one ends and another begins is what lets you add features without breaking the system.

Key Concepts:

Separation of concerns, interface contracts, dependency injection, modular composition.

What is:

User → Telegram → Channel.receive() → Agent.loop() → Memory.search() → Provider.chat() → Tool.execute() → Memory.store() → Channel.send() → User. Each arrow is a function call with a defined contract.

Why learn:

Visualizing the complete flow makes it possible to identify where to debug when something fails and where to optimize when it's slow.

Key Concepts:

Processing pipeline, async/await, cascading error handling, observability.

What is:

loop.py implements a reasoning cycle: receives a message → thinks → decides whether to use a tool or respond → if it used a tool, thinks again with the result → up to 5 iterations for safety.

Why learn:

The 5-round limit prevents infinite loops and runaway costs. Understanding the cycle lets you adjust reasoning depth for each use case.

Key Concepts:

ReAct pattern, tool calling, max iterations, cost per round, circuit breaker for loops.

What is:

The workspace/ directory contains Markdown files that define the personality (SOUL.md), behavior rules (AGENTS.md), and bootstrap facts (MEMORY.md) injected into every system prompt.

Why learn:

Every AI customization starts here. Changing Jarvis doesn’t require changing code — only the workspace files.

Key Concepts:

Configuration as code, system prompt construction, context injection, SOUL.md as identity.

What is:

Each extension category has an abstract base class with required methods. BaseProvider requires async chat(). BaseChannel requires start(), send(), stop(). BaseTool requires name, description, execute().

Why learn:

Contracts ensure that any implementation works with the rest of the system automatically. It's like a standardized plug — any device that follows the standard works in the outlet.

Key Concepts:

Abstract base class, duck typing, protocol pattern, plug-and-play architecture.

What is:

Three critical files in ~/.intelecto/: memory.db (SQLite database with history and facts), .secrets (keys encrypted with Fernet + hardware UUID), and audit.log (record of all actions).

Why learn:

Understanding where the data lives is essential for backup, migration, and troubleshooting. You should never lose your Jarvis's memory by accident.

Key Concepts:

Home directory pattern, SQLite portability, encrypted secrets, audit trail, backup strategy.

View Full
1.3 ~60 min

⚙ Environment Setup

From scratch to a working Jarvis: Python, Docker, OpenRouter, .env, and your first message on Telegram.

What is:

Python 3.11+ is required. Dependencies are minimal: httpx for async HTTP, python-telegram-bot for the channel, cryptography for Fernet. No LangChain, no CrewAI.

Why learn:

Knowing the actual dependencies lets you audit what’s installed and understand why each package exists in the project.

Key Concepts:

venv, minimal requirements.txt, Python 3.11 features, native async.

What is:

OpenRouter is an LLM proxy that provides access to GPT-4, Claude, Mistral, Llama, and 100+ other models with a single API key and unified billing.

Why learn:

Avoids vendor lock-in with a specific provider. If Anthropic raises its prices, you can switch to Mistral in 10 seconds by changing an environment variable.

Key Concepts:

API key management, model routing, cost tracking, fallback strategy, model by task.

What is:

The .env file defines OPENROUTER_API_KEY, TELEGRAM_BOT_TOKEN, MODEL_NAME, and other parameters without hard-coding them in the code. The .env file NEVER goes into git.

Why learn:

Separating configuration from code is a fundamental security practice. Keys in code are the number one cause of leaks in public repositories.

Key Concepts:

12-factor app, .gitignore, python-dotenv, environment variables, secrets management.

What is:

The setup.py script asks interactive questions: which channel to use? Docker or native? Which default model? Then it configures everything automatically by creating the necessary files.

Why learn:

The wizard eliminates manual configuration errors and ensures nothing required is forgotten. It is the entry point for new users.

Key Concepts:

Interactive CLI, configuration generation, guided onboarding, input validation.

What is:

Docker provides isolation and reproducible deploys. Native deployment has less overhead and makes debugging more direct. Use native for development; use Docker Compose for production.

Why learn:

The choice affects how you debug, back up, and update the system. Understanding the trade-offs avoids surprises in production.

Key Concepts:

Container isolation, volume mounts, docker-compose.yml, development vs. production.

What is:

The validation moment: run python main.py, open Telegram, send “Hello,” and receive the first response from your Jarvis. If it works, the entire stack is configured correctly.

Why learn:

The initial smoke test validates each component end to end: channel, agent, provider, memory. It is the milestone that separates “configured” from “working.”

Key Concepts:

Smoke test, end-to-end validation, BotFather token, webhook vs. polling, first-run debugging.

View Full
← Home Next Learning Path →