Agent Log Server
A Rust-first server and browser UI for AI agent orchestration and conversation
management. Launch with als-rs; Python owns the generic extension adapter and
conversation-scoped stdio MCP tools, not the web server.
Current architecture: ALS_RS_TECHNICAL_REFERENCE.md.
Dependency/stdio migration: DEPENDENCY_TRIM_PLAN.md.
The older Python-server descriptions below are historical, not current runtime
requirements. The unused HTTP MCP shim and legacy codex-agent console entrypoint
are retired.
Codex is the only bundled provider. The Copilot SDK extension has been removed
for independent maintenance; existing conversation data is not deleted.
Native stdio MCP uses rmcp/PyO3, not the Python MCP SDK. SDK reference tests use
the optional development extra: pip install '.[test]'. ALS no longer directly
requires FastAPI, FastMCP or Pydantic. Framework-Shells is pinned to the
FastAPI-free 0.2.65 release; fresh runtime dependency resolution also excludes
the Python MCP SDK and cryptography.
Optional Python loop acceleration is available with
pip install 'agent-log-server[performance]': Linux x86-64 selects upstream
uvloop; Android aarch64 selects uvloop-te2. Both expose uvloop. Without it,
asyncio remains supported; ALS_DISABLE_UVLOOP=1 explicitly disables selection.
Device Litmus (Symlink-Resolved CWD)
- Date:
2026-02-26 - Logical CWD (
pwd):/data/data/com.termux/files/home/mrselect6/worktrees/agent_log_server - Physical CWD (
pwd -P/readlink -f .):/data/data/com.termux/files/home/agent_log_server
This repo is confirmed to run from a symlinked worktree path on this device. Any new IPC/transport features should treat path identity canonically (resolved path) when deriving socket paths, locks, and process-group keys.
Codex Agent UI (/)
The main feature is a rich conversational interface mounted at /. It acts as a bridge and UI layer between the codex-app-server binary and a web frontend.
- Canonical app UI:
/ - Legacy agent log page:
/agent-log - Compatibility redirect:
/codex-agent→/
Architecture
┌─────────────────────────────────────────────────────────────────────┐
│ Web Browser (Frontend) │
│ - Dumb renderer (displays what backend tells it) │
│ - WebSocket client for real-time updates │
│ - REST client for actions (send message, approve, etc.) │
└──────────────────────────────┬──────────────────────────────────────┘
│ WebSocket (events) + REST (actions)
▼
┌─────────────────────────────────────────────────────────────────────┐
│ Python Server (`agent_log_server/server.py`) │
│ - Translates codex events → frontend-friendly format │
│ - Manages conversation state (SSOT sidecar) │
│ - Stores internal transcript (richer than rollout) │
│ - Handles approvals, settings, conversation switching │
└──────────────────────────────┬──────────────────────────────────────┘
│ stdin/stdout (JSON-RPC)
▼
┌─────────────────────────────────────────────────────────────────────┐
│ codex-app-server (Rust binary) │
│ - Manages conversations with OpenAI API │
│ - Executes tools (shell commands, file edits) │
│ - Emits events via stdout (JSON-RPC notifications) │
│ - Writes rollout logs to ~/.codex/sessions/ │
└─────────────────────────────────────────────────────────────────────┘
Key Features
- Streaming responses with markdown rendering
- Approval workflow for file changes and shell commands
- Conversation management with persistence
- File mentions via
@autocomplete (Tribute.js) - Direct shell execution with
!prefix - Model/effort selection with dynamic dropdowns
- Context window tracking with token usage display
- Rollout loading — resume conversations from
~/.codex/sessions/rollout logs - PWA support — installable as a standalone app
Progressive Web App (PWA)
The Codex Agent UI is a full PWA with:
- Web App Manifest (
/manifest.json) — enables "Add to Home Screen" on mobile and desktop - Service Worker (
/sw.js) — caches static assets for offline access - Standalone display — runs in its own window without browser chrome when installed
- Theme color — dark theme (#0d0f13) for native app feel
To install: visit / in Chrome/Edge/Safari and use the browser's "Install" or "Add to Home Screen" option.
Transcript Entry Types
The server maintains a richer transcript than raw rollout logs:
| Role | Description |
|---|---|
user |
User messages |
assistant |
Agent responses |
reasoning |
Agent thinking/reasoning |
diff |
File change diffs |
command |
Shell command execution with output |
approval |
Approval decisions (accepted/declined) |
plan |
Agent task plans with step status |
shell_input / shell_output |
Direct shell commands |
token_usage |
Context window statistics |
debug_trace |
Internal-only structured debug rows tagged with internal: true |
Normal transcript replay/range reads ignore internal: true rows so UI history stays clean; inspect the raw transcript.jsonl or use include_internal=true on the transcript range endpoint when you need them.
For detailed documentation, see CODEX_APP_SERVER_EXTENSION.md and AGENT_EXTENSION_INTEGRATION.md.
Agent Chat Log API
The server also provides a simple REST + HTML "chat log" for coordinating multiple agents.
- Port: 12356
- Log format: JSON Lines (one JSON object per line)
- Write payload: JSON with
whoandmessagefields - Read:
GET /api/messagesreturns stored entries (includes server-addedts)
Curl Examples
Post a message:
curl -sS -X POST http://127.0.0.1:12356/api/messages \
-H 'Content-Type: application/json' \
-d '{"who":"agent-alpha","message":"starting task 3"}'
Read all messages:
curl -sS http://127.0.0.1:12356/api/messages
Tail the last N:
curl -sS "http://127.0.0.1:12356/api/messages?limit=100"
Install From Git
pip install "git+<repo-url>"
codex-agent --log agent_chat.log.jsonl --port 12356
Run From Repo
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python -m agent_log_server --log agent_chat.log.jsonl --port 12356
Open the Codex Agent UI: http://127.0.0.1:12356/
Framework Shells Integration
The server uses Framework Shells for process orchestration. You can also launch via the FWS CLI:
python -m framework_shells.cli.main up agent_log_server/shellspec/agent_log.yaml
Roadmap (WIP)
- IDE Chat Extension — run Codex Agent UI as an embedded chat panel in your IDE
- Sideband Terminal — use the IDE terminal alongside Codex Agent for hybrid workflows
Stay tuned for updates.
License
GPL-3.0 (see LICENSE).
Metadata
Release files for agent-log-server 0.2.140
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_log_server-0.2.140-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for agent_log_server-0.2.140-py3-none-manylinux_2_28_x86_64.whl |
| agent_log_server-0.2.140-cp314-none-android_24_arm64_v8a.whl | CPython 3.14 | none | Android API level 24+ ARM64 v8a | Details for agent_log_server-0.2.140-cp314-none-android_24_arm64_v8a.whl |
Total release size: 67.1 MB
Release files / agent_log_server-0.2.140-py3-none-manylinux_2_28_x86_64.whl
| Download URL | agent_log_server-0.2.140-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 57.3 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
1e10fbe276ab38171ee49b843bc07f418446e945b2d2a013198dd08c679f71c7
|
|
BLAKE2b-256 checksum How to use checksums |
3b91ced43b415bfee2bb1d6e11ab64dc4199ec20578f41c79bb0f5bfaae41338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / agent_log_server-0.2.140-cp314-none-android_24_arm64_v8a.whl
| Download URL | agent_log_server-0.2.140-cp314-none-android_24_arm64_v8a.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Android API level 24+ ARM64 v8a CPython 3.14 |
|
SHA-256 checksum How to use checksums |
2f71db6948b0cddce439b2f4a1ea2738448de89de9540b6d8e27cfd7aeccdd70
|
|
BLAKE2b-256 checksum How to use checksums |
e384b41cfe35297fa9e252b7bb23591664ec368bf72b8c6e38785512d8056d8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for agent-log-server 0.2.140
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.