Task environment variables
The multi-agent system reads these variables when provisioning and running agents. They are typically set before callingrun_agent.sh or provision_agent.py.
Fallback mechanism
IfTASK_ID is not set, the system falls back to reading current_task.txt in the working directory. Keep this file updated when running agents outside of an explicit task shell.
DeepSeek API configuration
DeepCLI and the DeepSeek proxy require API credentials. Store your key securely and never commit it to git.
Set it in your shell profile or a local
.env file that is listed in .gitignore:
.deepcli/ directory in your home folder for session storage and configuration. Do not commit this directory.
Python dependencies
Install the core Python dependencies before running any monorepo tool:curl-cffi(HTTP requests with browser-like TLS)requests(standard HTTP client)websockets(real-time communication)
Node.js dependencies
The Cedar MCP server and other Node-based tools intermux-multi-agent/ require Node.js. Install dependencies with:
Configuration checklist
1
Install Python deps
Run
pip install -r requirements-base.txt in the monorepo root.2
Set the DeepSeek key
Export
DEEPSEEK_API_KEY or create a local .env file.3
Initialize the agent database
Run
cd termux-multi-agent && python run.py to create the agent tables.4
Export task variables
Set
TASK_ID, REFACTOR_GOAL, TARGET_FILE, and TASK_WORKSPACE before dispatching work.Next steps
- Read the Command reference for the full list of CLI tools
- Review CI gates for the mandatory checks before merging