agentleFS
hgflimahgflima/alon-agents/skills/setup/SKILL.md

setup

Skill2 starsChanged 16 days agoMITView on GitHub

Configura o agente always-on alon nesta máquina - inicia o estado, ajusta canais de entrega, credenciais do proxy, webhooks e regras de permissão, e sobe o daemon. Use quando o usuário quiser instalar, configurar ou reconfigurar o alon.

  • Reads credentials

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-discord, add-slack and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • +10 more from microsoft

The file

Files
SKILL.md

Configurar o alon

O estado fica em ~/.alon (ou $ALON_HOME). O comando alon está em bin/ deste plugin; se não estiver no PATH, use node <raiz do plugin>/src/cli.ts.

Faça um passo de cada vez e confirme o resultado antes do próximo.

1. Iniciar

alon init
alon status

init cria o banco, a memória, config.json, credentials.json e o schedule diário de dreaming.

2. Ajustar ~/.alon/config.json

Só entram as chaves que mudam em relação ao padrão. Pergunte ao usuário o que ele quer e edite só isso.

Onde o agente trabalha e com qual modelo (runner):

{
  "runner": {
    "workspace": "/caminho/absoluto/do/projeto",
    "model": "claude-sonnet-5-5"
  }
}
  • workspace é a pasta em que todo run executa. Sem ela, o agente trabalha em ~/.alon/workspace, longe de qualquer projeto. Se o usuário quer o agente neste projeto, use o caminho absoluto do diretório atual (pwd).
  • model é opcional. Sem ele, os runs usam o modelo padrão do usuário, que pode custar mais.
  • Depois de mudar config.json com o daemon no ar, reinicie: alon stop && alon start.

Canais de entrega (dispatcher.channels):

{
  "dispatcher": {
    "channels": [
      { "type": "file" },
      { "type": "macos", "minPriority": "normal" },
      { "type": "webhook", "url": "https://…", "minPriority": "normal" },
      { "type": "command", "command": "/caminho/script", "args": [] }
    ],
    "quietHours": { "start": "22:00", "end": "08:00" },
    "minIntervalMs": 300000,
    "maxPerHour": 6
  }
}
  • file grava em ~/.alon/logs/outbox.log.
  • macos mostra uma notificação do sistema.
  • webhook faz POST em JSON (serve para Slack, ntfy e similares).
  • command roda um programa com a mensagem em JSON no stdin (para Telegram ou qualquer outro canal).

Regras de permissão (permissions.defer e permissions.deny): cada regra tem tool (nome da ferramenta, * como curinga), match (regex sobre o comando ou o input) e reason. defer pausa o run e pede aprovação; deny bloqueia.

Webhooks de entrada (webhooks.<nome>): secret (HMAC-SHA256), idHeader (identificador para dedup) e thread (opcional, para todos os eventos da origem continuarem a mesma conversa). O endpoint é POST http://127.0.0.1:4747/webhooks/<nome>.

3. Credenciais do proxy

O agente não vê credenciais. Elas ficam em ~/.alon/credentials.json e o proxy as injeta:

{
  "services": {
    "github": {
      "baseUrl": "https://api.github.com",
      "description": "API do GitHub",
      "headers": { "Authorization": "Bearer <token>" },
      "allow": [{ "methods": ["GET"] }, { "methods": ["POST"], "path": "^/repos/[^/]+/[^/]+/issues" }]
    }
  }
}

Sem allow, só GET e HEAD passam. Não leia nem escreva o token você mesmo: peça ao usuário para editar o arquivo e conferir chmod 600.

4. Subir o daemon

alon start          # nesta sessão
alon service install   # opcional: sobe no login, via launchd

service install altera a inicialização do sistema. Só rode se o usuário pedir.

5. Testar

alon send "Olá. Anote que prefiro respostas curtas e me confirme."
alon runs
alon outbox

Um run de teste gasta tokens de verdade. Avise antes de rodar.

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.