Меня не пустили на Yandex Practical ML Conf. А я так хотел туда попасть((( Видимо, там персоны более важные чем я. Ребят, если кто-то идет офлайн и готов взять меня +1 с собой, ставлю бутылку вискаря.
Уважаемые коллеги, очередной вопрос. Я решил протестировать codex. OpenAI любезно предоставляет первый месяц Pro подписки бесплатно. Но к сожалению, когда я установил его на рабочий компьютер, я не смог авторизоваться в своем аккаунте. Там необходимо подтверждение учетной записи по номеру телефона. Варианта верификации по почте (как в Anthropic) нет вообще, за это им, разумеется, большой минус. Как вы понимаете, российский номер телефона указывать не вариант. Зарубежного номера телефона у меня нет. Кто пользуется активно codex (я знаю, что такие специалисты тут присутствуют), не подскажете, как вы решали этот вопрос?
В python оказывается есть классный аналог фаззинг-тестирования на минималках. Это библиотека hypothesis. Фактически вы можете задать структуру ваших входных данных, и билиотека сама будет генерировать вам входные данные, искать corner cases и подбирать тест-кейс, который может выявить ошибку в вашей функции. А чтобы цикл генерации не шел бесконечно, можно просто задать количество циклов генераций. Причем в отличие от фаззинга, в котором фиг разберешься, тут это просто декоратор над функцией pytest.
Когда я еще работал в Pangolin, часто приходилось писать руками кучу тестовых строк для юнит-тестов. Фактически, hypothesis автоматизирует этот этап. Так что, все, кто пишет юнит-тесты на python — обратите внимание.
Когда я еще работал в Pangolin, часто приходилось писать руками кучу тестовых строк для юнит-тестов. Фактически, hypothesis автоматизирует этот этап. Так что, все, кто пишет юнит-тесты на python — обратите внимание.
🔥3
OpenClaw is an agent system for task automation. It was popular during February–March 2026. At that time, there was a lot of information about it on popular AI forums. It’s interesting that nowadays it is not so popular. These days, AI features become outdated very quickly. Or it could be the result of the development of a lot of agentic harness systems that are very similar to each other, and people just don’t want to waste their time comparing them. Claude Code, Hermes, Pi Coding Agent, Paperclip, and other similar systems. In my opinion, all of them are similar in terms of commands, functions, and behaviour. Each developer can choose an option according to their own needs. But today’s post will be about my latest experiment deploying OpenClaw and why I think that it doesn’t overlap with my use of Claude Code. What differences could I find, and what tasks can you use OpenClaw and Claude Code to solve?
Let’s begin with the most important point when using OpenClaw — its limited environment. OpenClaw developers directly recommend deploying OpenClaw in an isolated environment. For example, in Docker or on a separate server without access to your private project files, documents, etc. The reason for this is that you give OpenClaw global permissions to read/write/execute files, use bash and other tools, and you don’t control all of this manually all the time. We will talk about this model of using OpenClaw later. And it was my main challenge when I started to deploy my own OpenClaw — to make an isolated and safe environment. I tried to host my OpenClaw bot three times. The first time, I tried to host it on my Raspberry Pi mini computer. I thought I would be able to make my own 24/7 server with some kind of Jarvis from the Iron Man movie. However, I couldn’t set it up because I couldn’t redirect the VPN traffic from my work computer to the Raspberry Pi. Also, I didn’t want to set up a separate VPN client on the Raspberry Pi itself, but the AI agent can’t work without a VPN because it uses a base LLM such as Claude, Gemini, or GPT as its core thinking engine. The second time, I tried to deploy OpenClaw in Docker on my own laptop. However, there were some troubles with downloading and setting up the AI agent. I couldn’t authorise in the built-in OpenClaw Web UI, and I also couldn’t make a curl request. Maybe I just did something wrong or used incorrect settings. Anyway, it didn’t work. The third time, I tried to set up OpenClaw on the remote VDS server I have reserved on the Internet. There were some issues with installing the VPN on the remote server, and also the price of the VDS was too high for me at that moment. However, after my last attempt, I decided to postpone this idea for a while.
However, a couple of weeks ago, I decided to resume this idea and try again. This time, I took a different approach. I had a little brainstorming session with an AI assistant and formulated a new idea to solve the problem of an isolated environment. The core of the new approach is quite simple. I don’t know why I didn’t think about it before, even though I have experience in system programming. I created a separate user in the operating system and limited their access. I limited their permissions for potentially dangerous actions in the OS, uploading and downloading files and Internet content, denied them permission to use root access, and provided access only to the files containing my knowledge base and my own pet projects. After that, I installed all the necessary tools under this user, installed and started the OpenClaw gateway. I also connected the OpenClaw gateway to my old Telegram bot, which I had made a long time ago for some experiments.
Now I would like to tell you a little about the technical implementation of the solution I described above. Long story short: there are three main technical points. The first one: a separate user in the OS. As I already said, the agent can’t enter my home directory, view my keys, passwords, or messages, exchange my files or binaries, manage my applications, or get sudo access. At this step, I faced a little problem: macOS does not have a built-in user separation system. When you create a new user, they automatically become a member of the “staff” group, but my home directory had access rules set to 750 after a migration a long time ago. So, I just did a
to solve it. The second challenge: I can’t just make a symlink to the directories I want to provide OpenClaw access to, because it didn’t work like that. When the agent got an instruction to check some folder, the system checked the access rules by the original path, and symlinks were actually useless. To solve it, I used a special macOS feature: ACL. ACL is a feature that can do what the default POSIX permissions can’t do — open a folder that is encapsulated in another folder without giving access to the parent folder. In this way, you give access to just enter the parent folder, but not to list its contents or perform some other actions. For example, I have a folder structure like this: I have a general folder called Projects. It contains subfolders with WorkProjects (with my work code, actually), MyProjects with my personal projects, ExternalProjects with open-source code I download from the Internet, etc. Using ACL, I give the agent permission to enter the Projects folder and perform actions in MyProjects. But it doesn’t even know that there is other content in the Projects folder. In addition, I needed to solve a problem with the reversed direction of the ACL. It turned out that ACL has a one-directional effect. And I can’t read, write, and execute files belonging to the user that was created for OpenClaw. Actually, it’s quite easy to solve: just make one more ACL rule from my user to the OpenClaw user. The last but not least point: making a VPN connection available to the OpenClaw user. Fortunately, I didn’t need to solve this problem because I found that macOS has general routing for the whole system. When I bring up a tunnel for my user, it also works for the OpenClaw user. So I didn’t need to install an additional client specifically for OpenClaw. Moreover, if I did, it would break the system.
chmod 700 ~
to solve it. The second challenge: I can’t just make a symlink to the directories I want to provide OpenClaw access to, because it didn’t work like that. When the agent got an instruction to check some folder, the system checked the access rules by the original path, and symlinks were actually useless. To solve it, I used a special macOS feature: ACL. ACL is a feature that can do what the default POSIX permissions can’t do — open a folder that is encapsulated in another folder without giving access to the parent folder. In this way, you give access to just enter the parent folder, but not to list its contents or perform some other actions. For example, I have a folder structure like this: I have a general folder called Projects. It contains subfolders with WorkProjects (with my work code, actually), MyProjects with my personal projects, ExternalProjects with open-source code I download from the Internet, etc. Using ACL, I give the agent permission to enter the Projects folder and perform actions in MyProjects. But it doesn’t even know that there is other content in the Projects folder. In addition, I needed to solve a problem with the reversed direction of the ACL. It turned out that ACL has a one-directional effect. And I can’t read, write, and execute files belonging to the user that was created for OpenClaw. Actually, it’s quite easy to solve: just make one more ACL rule from my user to the OpenClaw user. The last but not least point: making a VPN connection available to the OpenClaw user. Fortunately, I didn’t need to solve this problem because I found that macOS has general routing for the whole system. When I bring up a tunnel for my user, it also works for the OpenClaw user. So I didn’t need to install an additional client specifically for OpenClaw. Moreover, if I did, it would break the system.
In spite of the fact that the above description of OpenClaw hosting became the only working solution for me, there are some disadvantages I’ve faced after a few days of using it. Firstly, it’s of course the creation of a new user in the operating system. Some people may not want to spawn additional users on their computers. Moreover, if you want to have 24/7 access to your personal assistant, you need to keep your computer and VPN on all the time. If I had a dedicated server, there would be no problem at all, but as it’s my personal computer, sometimes I need to restart the OpenClaw gateway or, for example, restart notifications or cron jobs because my laptop was out of the network for some time.
Another problem for the same reason: obviously, if you are on the road without access to the Internet, you don’t have access to your assistant.
The last problem for me: as I use my Claude Code subscription to provide OpenClaw with access to the base LLM, I sometimes face token limit errors. If you have a lot of tasks for your assistant and you reach the token limit, your OpenClaw will not answer your commands because it uses the same subscription. Your notifications or cron jobs will also fail.
Actually, when your daily limits are updated, the OpenClaw gateway also recovers and can even resume failed cron jobs, but anyway, it can be a little annoying.
Another problem for the same reason: obviously, if you are on the road without access to the Internet, you don’t have access to your assistant.
The last problem for me: as I use my Claude Code subscription to provide OpenClaw with access to the base LLM, I sometimes face token limit errors. If you have a lot of tasks for your assistant and you reach the token limit, your OpenClaw will not answer your commands because it uses the same subscription. Your notifications or cron jobs will also fail.
Actually, when your daily limits are updated, the OpenClaw gateway also recovers and can even resume failed cron jobs, but anyway, it can be a little annoying.
In spite of all the troubles I have faced during the time I have been using OpenClaw, I’m sure it’s not useless. Now I would like to speak more carefully about OpenClaw application scenarios. I have understood for myself that there is a strict separation between using OpenClaw and Claude Code. Claude Code is a tool for coding and working with technical tasks. The context of Claude Code is limited to the current session. This session is opened for a specific task and is fully controlled by the user. The engineer doesn’t give full control to the agent when solving a task, manages Claude Code’s solutions, and reviews its decisions. In contrast, OpenClaw is more like a personal assistant and an automation tool. The knowledge of OpenClaw, by default, lives in a long-term storage (like MD files: MEMORIES.md, SOUL.md, etc.). There is also a native tool to save knowledge and search through it across different OpenClaw sessions. OpenClaw’s tasks don’t need external human control. OpenClaw starts a background gateway that doesn’t need to be restarted. It also has native support for various messengers, for example Telegram, providing the ability to manage the agent through it.
In conclusion, I have defined a rule for myself: Claude Code is for coding, prototyping, and other technical actions that require my full control; OpenClaw is my personal assistant, web search, working with information, and automating routine tasks.
In conclusion to this sequence of posts, I’d like to give some examples of how I have used OpenClaw.
1. I have already told you about my automation for importing arXiv articles and open Kaggle competitions. In the beginning, it was an n8n pipeline, then a Python console application, and then a Claude plugin. Now it’s a cron job in OpenClaw. I think this is the most successful implementation because I fully delegate this task to the agent.
2. I have my personal form in Obsidian where I record my daily progress. I made it to control myself and spend my time more rationally. Before, I needed to fill it in by hand every day. Obviously, sometimes I forgot about it. But now I have made a reminder for OpenClaw to send me notifications every evening about the time to write down the tasks for the day. After that, I can record or even dictate the text to the agent in any form, and the agent will format it beautifully.
3. A couple of months ago, I made a plan of what I would like to study, read, or learn in the field of professional skills. But the problem is that sometimes it’s hard for me to organize myself, and after a working week, it’s very hard to want to do something on the weekend. I just fed my ready-made OpenClaw plan to it, and now it finds one small article for me to read for about 25 minutes every day.
In conclusion to this sequence of posts, I’d like to give some examples of how I have used OpenClaw.
1. I have already told you about my automation for importing arXiv articles and open Kaggle competitions. In the beginning, it was an n8n pipeline, then a Python console application, and then a Claude plugin. Now it’s a cron job in OpenClaw. I think this is the most successful implementation because I fully delegate this task to the agent.
2. I have my personal form in Obsidian where I record my daily progress. I made it to control myself and spend my time more rationally. Before, I needed to fill it in by hand every day. Obviously, sometimes I forgot about it. But now I have made a reminder for OpenClaw to send me notifications every evening about the time to write down the tasks for the day. After that, I can record or even dictate the text to the agent in any form, and the agent will format it beautifully.
3. A couple of months ago, I made a plan of what I would like to study, read, or learn in the field of professional skills. But the problem is that sometimes it’s hard for me to organize myself, and after a working week, it’s very hard to want to do something on the weekend. I just fed my ready-made OpenClaw plan to it, and now it finds one small article for me to read for about 25 minutes every day.
This media is not supported in your browser
VIEW IN TELEGRAM
🤔3