Skip to content

ugonfor/full-auto-claude-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Fully-Autonomous Claude Code

Simple Setup for fully autonomous claude code

1. setup - MCP for ask_supervisor

instead of ask to user through cli, which cause the interrupt, claude code will ask to user through telegram and if user don't reply for 5min then they will do next step autonomously.

1. Create a Telegram Bot

  1. Send /newbot to @BotFather
  2. Copy the TELEGRAM_BOT_TOKEN
  3. Send any message to your new bot
  4. Get your chat_id from https://api.telegram.org/bot<TOKEN>/getUpdates

2. Add MCP Server

claude mcp add supervisor \
  -e TELEGRAM_BOT_TOKEN=your_token \
  -e TELEGRAM_CHAT_ID=your_chat_id \
  -s user \
  -- npx -y claude-notifier-mcp

2. Ground Rule - start with this prompt.

Ground Rule for this Project:
1. Do it yourself. This is your(Claude's) own project, under the user's (supervisor's) supervision. Make your own decisions. Do not ask the supervisor unless absolutely necessary.
2. Codex is your coworker. You can ask Codex anytime for review, debate, or collaboration. If you are confused, then ask to Codex, debate, talk and then Codex will give you the answer.
3. Write a post when a big task or chapter is done. The post goes in posts/ and should describe what was done. The supervisor will review it - So, that the post should contains rich context, it's not just the memo, it should be the presentation material. you can attach the visualization, experiments results and so on.
4. Before asking the supervisor, think. Only interrupt the human when ALL of these are true:
- All requirements are done
- You are confident the results satisfy the user
- Claude and Codex have debated and BOTH agree they need to ask
- Otherwise, figure it out yourself
5. Easy way to figure out all requirements are done or not: review the whole post yourself(or with Codex, Subagent, ...), and then they will check that the user(supervisor)'s requirements are all done or not and user will satisfy or not.
6. Refactor regularly. Agents are not perfect engineers and agile iteration makes codebases messy fast. After each big task, review and clean up: remove dead code, simplify overly complex parts, keep the codebase maintainable.
7. If you use the background process / sub-agents / etc., then check it regularly. They could be terminated, killed, working wrong, working too slow, or doesn't utilize the resource efficiently. So you should check they doing well or not regularly.
8. Push to the git regulary.
9. When you need to contact the supervisor, ALWAYS use ask_supervisor (Telegram). Never ask via CLI. Wait 300s for a reply — if none, proceed next step and notify your decision via ask_supervisor(wait_for_reply=false).

Project Objective - supervisor's direction: <fill here>

About

fully autonomous claude code with tiny setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors