The Agen CLI enables developers to directly integrate AI workloads right where they code. The CLI natively communicates with your existing active sessions to retrieve code created inside Agen isolated sandbox instances.Documentation Index
Fetch the complete documentation index at: https://docs.agenhq.com/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Ensure that you havenpm or yarn correctly installed via Node.
Setup and Authentication
Before pulling any patch files from active Sandbox sessions, confirm you have securely logged in to the Agen web portal inside your local terminal environment.login command launches a secure authorization flow directly inside your default web browser. Once finished, an HTTP API token maps uniquely to your verified user account and local .agen workspace configurations.
The Watch Command
The real magic happens behind the scenes while the CLI listens to your codebase changes seamlessly. The following command starts a continuous bidirectional synchronization stream:agen watch streams the exact differences dynamically into your code editor.
Common Issue: Stale Patches
If you shut down theagen CLI during an active process, some previously active sessions might be missed. You can simply resume your stream via the same command: