Lets another machine control your Amiga
- Size
- 201K (206,184 bytes)
- Added
- 2026-11-19 22:44
- Downloads
- 2
- Long Description
- New in 0.13.1 ------------- * LIST reports a soft link as type L instead of D. A soft link used to be reported as a directory whatever it pointed at, so a client walking "directories" would try to descend into a link to a file. Clients that only test for D read an L entry as a plain file - the safe reading. amiagent is the Amiga half of amimcp. It is a small TCP daemon that lets a program on another machine work on this Amiga: run AmigaDOS commands, read and write files, list drawers, report system state, capture the screen, run ARexx, and inject mouse and keyboard input. The other half is an MCP server that runs on a Mac or PC, which is how Claude (Anthropic's LLM) talks to it. Nothing about the agent is specific to that, though - the wire protocol is documented (PROTOCOL.md, now in this archive) and simple enough to drive from a shell script if you would rather. It is written in plain C against the OS libraries, needs no third-party dependencies, and runs on AmigaOS 2.0 upwards. Two builds of each program are included: amiagent 68000 - runs on any Amiga amiagent.020 68020+ - slightly smaller and faster amimon 68000 - the status window, GadTools (runs everywhere) amimon.020 68020+ - the same, for an 020 and up amimon-mui 68000 - the status window, MUI (needs MUI 3.8+) amimon-mui.020 68020+ - the same, for an 020 and up NEW IN 0.13.0 - STARTING IT FROM AN ICON Double-click amiagent and the settings come from the icon's TOOL TYPES, because a Workbench start has no command line to put them on. Select the icon, Icons/Information, and edit: TOKEN=pickasecret the shared secret. SET THIS ONE. PORT=7846 the port to listen on VERBOSE open a window and log every request to it DONOTWAIT for a copy of the icon in SYS:WBStartup - read by Workbench itself, not by the agent The icon in this archive already carries all four, in parentheses - "(TOKEN=put-your-secret-here)" - which is the Workbench convention for "present but inactive". Take the parentheses off the ones you want. Started that way there is no console, so the two things you would otherwise never see are requesters instead: no TOKEN set (start anyway, or quit) and a startup failure such as the TCP/IP stack not being up yet. VERBOSE opens a window instead, and Ctrl-C in that window stops the agent. Without a window, what stops a Workbench-started agent is the ARexx port - there is no CLI number for Status/Break to find: address AMIAGENT 'QUIT' Requested by djbase, who runs it on a machine with no Shell open. NEW IN 0.12.0 TASKPRI and TASKLIST on the AMIAGENT ARexx port: address AMIAGENT 'TASKPRI "imp3" -1' /* RESULT: imp3 pri 0 -> -1 */ 'TASKLIST "imp"' /* RESULT: IMP3 - Debugger (0), imp3 (-1) */ TASKPRI sets a task's priority BY NAME - the reach ChangeTaskPri lacks: it only addresses CLI process numbers, while the tasks you actually need to re-prioritise (a Workbench-started player spinning at 100% CPU and starving its own audio decoder) have no CLI number at all. Exact name match beats substring, rc=0/5, RESULT reports "name pri old -> new". Plus a fix worth having if you script the port from the network side: a client-sent ARexx program that itself did "address AMIAGENT" deadlocked the agent. It now keeps serving its port while such a program runs. NEW IN 0.11.0 - A LOCAL AREXX PORT The agent now opens a public ARexx port, "AMIAGENT", so your own ARexx scripts and ARexx-aware applications can drive its input machinery directly - no network, no AI, just ARexx: /* activate a window by title pattern, then type into it */ address AMIAGENT 'ACTIVATEWINDOW "CHAT --*"' /* rc=0 found+activated, rc=5 not */ 'ENTERTEXT "hello there<enter>"' Commands: ACTIVATEWINDOW <pattern> AmigaDOS wildcards ('*' ac