Skip to content

docs: add AI agent framework implementation plan#1

Merged
chinkan merged 6 commits intomainfrom
claude/ai-agent-framework-BEBZn
Feb 17, 2026
Merged

docs: add AI agent framework implementation plan#1
chinkan merged 6 commits intomainfrom
claude/ai-agent-framework-BEBZn

Conversation

@chinkan
Copy link
Copy Markdown
Owner

@chinkan chinkan commented Feb 16, 2026

16-task plan across 8 phases: SQLite memory with FTS5, platform
abstraction layer, markdown skill system, agent core extraction,
tokio-cron scheduler, cargo feature flags, and integration.

https://claude.ai/code/session_01HCJirZ2E5csJzeo13285a1

claude and others added 6 commits February 16, 2026 05:52
16-task plan across 8 phases: SQLite memory with FTS5, platform
abstraction layer, markdown skill system, agent core extraction,
tokio-cron scheduler, cargo feature flags, and integration.

https://claude.ai/code/session_01HCJirZ2E5csJzeo13285a1
Transform from Telegram-only chatbot into a modular AI agent framework:

- memory/: SQLite-backed persistent conversations + knowledge base
  with hybrid vector (sqlite-vec) + FTS5 search using Reciprocal
  Rank Fusion. Embeddings via configurable OpenAI-compatible API
  with graceful FTS5-only fallback when not configured.
- platform/: Platform abstraction layer with IncomingMessage types.
  Telegram adapter refactored from bot.rs.
- agent.rs: Platform-agnostic agentic loop with memory tools
  (remember, recall, search_memory) exposed to the LLM.
- skills/: Markdown-based skill loader. Skills are natural-language
  instructions injected into the system prompt at runtime.
- scheduler/: Background task scheduler using tokio-cron-scheduler.
- config.rs: Extended with memory, skills, and embedding sections.

https://claude.ai/code/session_01HCJirZ2E5csJzeo13285a1
In rusqlite >= 0.32, execute_batch errors when statements return rows.
PRAGMA journal_mode=WAL always returns the resulting mode as a result
row, causing "Execute returned results - did you mean to call query?"
at startup. Use query_row instead to properly handle the returned value.

https://claude.ai/code/session_01HCJirZ2E5csJzeo13285a1
blocking_lock() on tokio::sync::Mutex panics when called from within
an async runtime. Changed run_migrations to a static method that takes
a &Connection directly, called before wrapping in Arc<Mutex<>>.

https://claude.ai/code/session_01HCJirZ2E5csJzeo13285a1
…memory module

- Added rustbot.db to .gitignore to prevent tracking of the database file.
- Updated the model in config.example.toml to "qwen/qwen3-embedding-8b" for embedding configuration.
- Enhanced README to include optional embedding configuration details.
- Modified memory module to implement schema metadata for embedding dimensions and improved table creation logic for vector search.
…ules

- Enhanced readability by adjusting line breaks and indentation in `agent.rs`, `main.rs`, `mcp.rs`, `tools.rs`, `memory/conversations.rs`, `memory/embeddings.rs`, `memory/knowledge.rs`, `memory/mod.rs`, `platform/mod.rs`, `platform/telegram.rs`, `scheduler/mod.rs`, `skills/loader.rs`, and `skills/mod.rs`.
- Consolidated chained method calls for better clarity and maintainability.
- Added `#[allow(dead_code)]` annotations to unused functions and structs to suppress warnings.
@chinkan chinkan merged commit 19643a6 into main Feb 17, 2026
5 checks passed
@chinkan chinkan deleted the claude/ai-agent-framework-BEBZn branch February 20, 2026 07:50
chinkan added a commit that referenced this pull request Feb 20, 2026
docs: add AI agent framework implementation plan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants