packages/examples/code/README.md
An async coding agent terminal app built on ElizaOS - like Claude Code, but with fully asynchronous task execution and continuous conversation.
cd eliza-code
bun install
Copy the environment example and add your API key:
cp .env.example .env
# Edit .env and add your OPENAI_API_KEY or ANTHROPIC_API_KEY
Start Eliza Code:
bun start
| Key | Action |
|---|---|
Enter | Send message |
Tab | Toggle focus between chat/task panes |
Ctrl+N | Create new chat room |
Ctrl+Q | Quit |
Ctrl+↑/↓ | Scroll chat history or task output |
↑/↓ | Navigate task list (when task pane focused) |
Once running, you can chat with the agent:
> list files in src
> read the package.json
> search for "TODO" in the codebase
> run npm test
> create a task to implement user authentication
eliza-code/
├── src/
│ ├── index.tsx # Entry point
│ ├── App.tsx # Main layout
│ ├── components/ # Ink UI components
│ │ ├── ChatPane.tsx
│ │ ├── TaskPane.tsx
│ │ ├── StatusBar.tsx
│ │ └── MessageBubble.tsx
│ ├── lib/
│ │ ├── agent.ts # Eliza runtime setup
│ │ ├── chat-manager.ts
│ │ ├── task-manager.ts
│ │ └── store.ts # Zustand state
│ ├── lib/cwd.ts # CWD tracking (no filesystem listing)
│ └── types.ts # TypeScript types
The agent can use these actions:
In this example, the main agent is an orchestrator (no filesystem tools). It uses:
All file reading/writing/editing and detailed repo work happens inside worker sub-agents (Codex, Claude Code, SWE-agent, etc.).
# Run with watch mode
bun dev
# Type check
bun run tsc --noEmit