agentleFS
zebbernzebbern/icron/CLAUDE.md

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

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
  1. Very specific:

    Type hints: Use X | None not Optional[X]

    line 94
  2. Very specific:

    File I/O: Always use encoding="utf-8"

    line 96
  3. Distinctive:

    Logging: Use loguru, no emojis in debug

    line 97

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 bridge

Built-in Tools

CategoryTools
Filesread_file, write_file, edit_file, list_dir, rename_file, move_file, copy_file, create_dir
Searchglob, grep
Webweb_search (Brave), web_fetch
Shellexec
Memoryremember, recall, note_today
Schedulingset_reminder, list_reminders, cancel_reminder, cron
Communicationmessage, 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 configuration

Code 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 raise

Async-First

async def process_message(self, message: Message) -> AsyncIterator[str]:
    async for chunk in self.llm.stream(messages):
        yield chunk

Conventions

  • Type hints: Use X | None not Optional[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/

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.