icron
CLAUDE.md4 starsChanged 10 months agoMITView on GitHub
A lightweight personal AI assistant framework with multi-channel support. Channels: Discord, Telegram, WhatsApp, Slack, Feishu Providers: Anthropic, OpenAI, OpenRouter, Together, Groq, Gemini, Zhipu, vLLM Config: ~/.icron/config.json
In this repositoryOne other file it gives its agents.
- workspace/AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 94
Type hints: Use X | None not Optional[X]
- Very specific: line 96
File I/O: Always use encoding="utf-8"
- Distinctive: line 97
Logging: Use loguru, no emojis in debug
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
icron
A lightweight personal AI assistant framework with multi-channel support.
Architecture
User -> Channel -> MessageBus -> AgentLoop -> LLM Provider
| |
v v
SessionStore ToolRegistry (18 tools + MCP)Channels: Discord, Telegram, WhatsApp, Slack, Feishu
Providers: Anthropic, OpenAI, OpenRouter, Together, Groq, Gemini, Zhipu, vLLM
Config: ~/.icron/config.json
Key Directories
icron/
├── agent/ # Core agent loop, tools, context
├── channels/ # Discord, Telegram, WhatsApp, Slack, Feishu
├── bus/ # Async message bus
├── config/ # Pydantic config schema
├── cron/ # Scheduled jobs service
├── mcp/ # Model Context Protocol client
├── session/ # JSONL conversation storage
├── cli/ # Typer CLI commands
ui/ # Svelte web settings UI
bridge/ # Node.js WhatsApp bridgeBuilt-in Tools
| Category | Tools |
| Files | read_file, write_file, edit_file, list_dir, rename_file, move_file, copy_file, create_dir |
| Search | glob, grep |
| Web | web_search (Brave), web_fetch |
| Shell | exec |
| Memory | remember, recall, note_today |
| Scheduling | set_reminder, list_reminders, cancel_reminder, cron |
| Communication | message, spawn |
Commands
icron onboard # Initialize config + workspace
icron gateway # Start full server (web UI at :3883)
icron agent -m "..." # Direct chat + REPL mode
icron cron list # Manage scheduled jobs
icron status # Show configurationCode Patterns
Tool Implementation
class MyTool(Tool):
def __init__(self, workspace: Path | None = None):
self.workspace = workspace
@property
def name(self) -> str:
return "my_tool"
@property
def description(self) -> str:
return "Does something useful"
@property
def parameters(self) -> dict[str, Any]:
return {"type": "object", "properties": {...}}
async def execute(self, **kwargs: Any) -> str:
try:
return "result"
except Exception as e:
return f"Error: {e}" # Return errors, don't raiseAsync-First
async def process_message(self, message: Message) -> AsyncIterator[str]:
async for chunk in self.llm.stream(messages):
yield chunkConventions
- Type hints: Use
X | NonenotOptional[X] - Line length: 100 chars max
- File I/O: Always use
encoding="utf-8" - Logging: Use loguru, no emojis in debug
- Error handling: Tools return error strings, don't raise exceptions
- Imports: Absolute imports from
icron.
Verification
pytest && ruff check icron/ && ruff format --check icron/Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

