{"slug": "show-hn-akshauhini-watch-your-ai-agents-work-and-see-why-they-fail", "title": "Show HN: Akshauhini – Watch your AI agents work and see why they fail", "summary": "Akshauhini, a new open-source tool published to PyPI, renders multi-agent AI applications as animated office characters driven by real telemetry events, with an Insights feature that answers debugging questions such as why an agent is stuck, which agent causes most of the latency, and which agent consumed the most tokens. The tool, which requires Python 3.11 or later and is installed via `pip install akshauhini`, runs a local collector bound to 127.0.0.1 storing data in SQLite, instruments Python agent functions with a single decorator, and accepts JSON events over HTTP or OpenTelemetry spans from other languages. Akshauhini also provides a read-only view of locally installed coding agents (Claude Code, Codex CLI and Gemini CLI) built from their saved transcripts, with optional offline analysis via a local Ollama model.", "body_md": "Akshauhini is a live visual monitoring tool for multi-agent applications. It renders your agents as characters in an animated office, where each movement reflects a real telemetry event: agents walk to tool stations, carry tasks, wait on dependencies, hand off work and react to errors.\n\nBehind the animation, **Insights** answers the questions you actually debug with: why an agent is stuck, which agent is responsible for most of the latency, whether two agents keep calling each other, why a workflow failed, which agent consumed the most tokens, and whether the latest version performs worse than the previous one. Each answer comes with the events it is based on, backed by built-in LLM tracing and LLM evaluation.\n\nIt also provides a read-only view of the coding agents already installed on your machine (Claude Code, Codex CLI and Gemini CLI), built from the transcripts they save locally, with optional questions answered by a local offline LLM.\n\n- **Live office view.** Agents, tasks, tool calls, handoffs and errors are animated in real time from recorded events.\n- **One collector per machine.** Every instrumented application reports to the same local collector, regardless of the directory it runs from.\n- **Simple integration.** A single decorator instruments a Python agent function; any other language can post JSON events over HTTP or send OpenTelemetry spans.\n- **Live and replay modes.** Follow a run as it happens, or replay stored events at 0.5×, 1×, 2× or 5× speed.\n- **Agent inspector.** Inspect each agent's task queue, model, reported token usage, errors and operation durations.\n- **Insights.** Answers the operational questions for every run and project, with the events that back each answer: why an agent is stuck, which agent causes most of the latency, whether two agents keep calling each other, why a workflow failed, which agent used the most tokens, and whether the latest version performs worse than the previous one.\n- **LLM tracing.** Every LLM call with its model, latency, tokens, cost and errors, per agent and task; prompts and responses only when you opt in.\n- **LLM evaluation.** Record quality checks (`office.evaluate` ) and compare pass rates and scores between versions of your app.\n- **Local agent transparency.** Review what Claude Code, Codex CLI and Gemini CLI did on this machine: timelines, files read and written, shell commands and external targets.\n- **Offline analysis.** Ask questions about recorded activity using a local model served by Ollama.\n- **Local by default.** The server binds to`127.0.0.1` and stores data in SQLite.\n\nThe backend is built with FastAPI and SQLite and uses the Akshauhini Event Protocol (AOEP). The frontend is built with React and PixiJS.\n\nAkshauhini requires Python 3.11 or later.\n\n```\npip install akshauhini\n```\n\nThe published package includes the prebuilt web UI, so Node.js is not required.\n\nEvery `akshauhini` command can also be run as `python -m akshauhini`, for example `python -m akshauhini run python my_app.py`. Use this form on Windows if Smart App Control or an organization's App Control policy reports that `akshauhini.exe` \"has been blocked\": that small launcher is generated by pip at install time and is unsigned, while `python.exe` is signed. Akshauhini itself always starts its server and your apps through Python, so nothing else is affected.\n\nStart the office:\n\n```\nakshauhini\n```\n\nThis starts the collector in the background and opens [http://127.0.0.1:8765](http://127.0.0.1:8765). If another program already uses port 8765, a free port is chosen and printed instead; your apps find it automatically.\n\nInstrument a Python agent:\n\n``` python\nimport akshauhini\n\noffice = akshauhini.init(\"my-agents\", \"My Agent Team\")\n\n@office.track(\"researcher\", name=\"Research Agent\", role=\"researcher\")\ndef research_agent(topic):\n    return run_your_agent(topic)\n\nresearch_agent(\"market trends\")\n```\n\n`init` starts the collector if it is not already running, so the office and your application can be launched in any order.\n\nA typical workflow is to start the office, connect an application, monitor its runs, review local agents, and stop the office when you are finished.\n\n```\nakshauhini\n```\n\nThe office starts in the background and opens [http://127.0.0.1:8765](http://127.0.0.1:8765) (or a free port, if another program holds 8765) in your browser. To run it in the current terminal instead, use:\n\n```\nakshauhini serve --open\n```\n\nPress Ctrl+C to stop an office running in the foreground.\n\nUse one of the following methods.\n\n**Python SDK.** Add the decorator to your agent functions (see [Quick start](#quick-start)) and run your application as usual:\n\n```\npython your_app.py\n```\n\n**Command wrapper.** Run any program with the office attached. The program's start, completion and failure are recorded, and the office opens on the new run:\n\n```\nakshauhini run python your_app.py\n```\n\n**HTTP or OpenTelemetry.** Applications written in other languages can post events to `/api/events` or send spans to `/v1/traces`. See [HTTP API](#http-api) and [OpenTelemetry input](#opentelemetry-input).\n\n1. Open the office in your browser.\n2. Select an application from the toolbar shortcuts or the project switcher. The **Apps** tab lists every application that has reported.\n3. Choose a mode:\n  - **Live** follows the selected run as events arrive.\n  - **Replay** steps through stored events at 0.5×, 1×, 2× or 5× speed.\n  - **Demo** shows clearly labelled sample telemetry.\n4. Click an agent to open the inspector, which shows its task queue, model, token usage, errors and operation durations.\n5. Click a task card to follow the agent carrying it.\n6. Drag to pan and scroll to zoom.\n\nOpen the **Local agents** tab to see sessions from Claude Code, Codex CLI and Gemini CLI on this machine, or list them in the terminal:\n\n```\nakshauhini agents\n```\n\nSelect a session to view its timeline, files, commands and external targets. See [Local agents](#local-agents) for details.\n\nQuestions are answered by a model served by [Ollama](https://ollama.com) on this machine.\n\n1. \nInstall Ollama, start it and download a model: \n\n```\nollama serve\nollama pull <model-name>\n```\n\n2. \nSelect the model from the **Settings** menu in the office, or set it before starting the office:\n\n```\nexport AKSHAUHINI_OLLAMA_MODEL=<model-name>\n```\n\n3. \nSelect a session or agent and enter your question, or press `?` to ask about all sessions.\n\n```\nakshauhini status   # Show whether the office is running and which applications have reported\nakshauhini stop     # Stop the running office\n```\n\nPress **I** or click **Insights** in the office to see answers for the open run and its project. Each answer is computed from the events your app recorded and names the agents, events and numbers it is based on; when the data needed for an answer was not reported, it says what to add.\n\n| Question | How it is answered | \n|---|---|\n| Why is my agent stuck? | LLM or tool calls that started but never finished, reported `waiting` /`blocked` states, pending human approvals, tool queues, and agents with open work that have gone silent | \n| Which agent is responsible for most of the latency? | Measured LLM and tool time per agent, its share of the total, and its slowest call | \n| Are two agents repeatedly calling each other? | Back-and-forth messages, hand-offs, assignments and routed questions between the same two agents on the same task | \n| Why did this workflow fail? | The first failure in the run, its error, retries, the failures that followed, and the exit code; across a project, the most common first failure | \n| Which agent consumed the most tokens? | Input, output and cached tokens and reported cost per agent and model | \n| Is the latest version performing worse than the previous version? | Success rate, run duration, LLM latency, tokens and evaluation scores of the latest version against the previous one, with regression thresholds and a small-sample warning | \n\nThe **LLM calls** tab traces every call in the run, and **Evaluations** lists quality checks and their failures. The same answers are available from the terminal (`akshauhini insights`) and the HTTP API (`/api/insights/...`).\n\nVersion comparison needs to know which version produced each run: pass `version=` to `akshauhini.init()` or set `AKSHAUHINI_APP_VERSION`; the git commit is recorded automatically when the app runs in a git checkout. Without versions, the latest runs are compared with the ones before them.\n\n```\nakshauhini [--port PORT] [--version] [COMMAND] [OPTIONS]\n```\n\nRunning `akshauhini` without a command is equivalent to `akshauhini start`.\n\nGlobal options must be placed before the command, for example `akshauhini --port 9000 serve`.\n\n| Option | Description | \n|---|---|\n| `--port PORT` | Port of the office (default `AKSHAUHINI_PORT` , else`8765` , or a free port when another program holds 8765). An explicit port is never replaced: if it is busy, the command stops with an error | \n| `--version` | Print the installed version and exit | \n| `-h` ,`--help` | Show help and exit. Also available for each command, for example `akshauhini serve --help` | \n\n| Command | Description | \n|---|---|\n| [`start`](#start) | Start the office in the background if needed, and open it in the browser | \n| [`serve`](#serve) | Run the office in the foreground of the current terminal | \n| [`status`](#status) | Show whether the office is running and which applications have reported | \n| [`stop`](#stop) | Stop the running office | \n| [`run`](#run) | Run a program with the office attached | \n| [`insights`](#insights-1) | Answer operational questions about a run or project | \n| [`agents`](#agents) | List local agents and their recent sessions | \n| [`delete-run`](#delete-run) | Permanently delete a stored run | \n| [`scan`](#scan) | Mirror activity reported by a local tool into the office | \n\n```\nakshauhini start\n```\n\nStarts the office as a background process if one is not already running on the selected port, then opens it in the browser. The office keeps running until it is stopped with `akshauhini stop`.\n\n```\nakshauhini serve [--host HOST] [--db PATH] [--app APP_ID] [--open] [--no-local-agents]\n```\n\nRuns the office in the foreground of the current terminal. Press Ctrl+C to stop it.\n\n| Option | Description | \n|---|---|\n| `--host HOST` | Network interface to bind (default `127.0.0.1` ).`0.0.0.0` exposes the unauthenticated collector to your network; local agent data remains available on loopback only | \n| `--db PATH` | SQLite database for this office (default: `AKSHAUHINI_DB` , or`~/.akshauhini/akshauhini.sqlite` ) | \n| `--app APP_ID` | Show only runs from this application, creating a dedicated office for one project | \n| `--open` | Open the office in the browser after it starts | \n| `--no-local-agents` | Disable the Local agents tab | \n\n```\nakshauhini status\n```\n\nReports whether the office is running, its version, the number of stored runs and the time of the last event for each application. Exits with code 1 if the office is not running.\n\n```\nakshauhini stop\n```\n\nStops a background office started by `akshauhini`, `akshauhini start`, `akshauhini.init()` or `akshauhini run`. An office started with `serve` is stopped with Ctrl+C in its terminal.\n\n```\nakshauhini run [--no-open] COMMAND [ARGS...]\n```\n\nRuns `COMMAND` with the office attached. If no office is running, one is started and remains available after the command finishes so the run can be inspected; press Ctrl+C to stop it. The command receives the `AKSHAUHINI_ENDPOINT` and `AKSHAUHINI_RUN_ID` environment variables, and its start, completion or failure is recorded. `run` exits with the exit code of `COMMAND`.\n\n| Option | Description | \n|---|---|\n| `--no-open` | Do not open the browser. Use this in headless environments | \n\n`run` does not inspect arbitrary Python code or patch frameworks such as LangGraph, CrewAI or AutoGen. Agent-level activity is recorded only through SDK calls, HTTP events or OpenTelemetry spans.\n\n```\nakshauhini insights [--run RUN_ID] [--app APP] [--db PATH] [--json]\n```\n\nPrints the [Insights](#insights) answers for a run (default: the latest run) and, with `--app`, for that project, including the version comparison. It reads the database directly, so the office does not need to be running.\n\n| Option | Description | \n|---|---|\n| `--run RUN_ID` | The run to analyse (default: the latest run, or the latest run of `--app` ) | \n| `--app APP` | A project: its `app_id` , or the app name shown in the office | \n| `--db PATH` | SQLite database to read (default: `AKSHAUHINI_DB` , or`~/.akshauhini/akshauhini.sqlite` ) | \n| `--json` | Print the full analysis as JSON | \n\n```\nakshauhini agents\n```\n\nLists each supported local agent with its state (running, installed or not found), number of sessions and data directory, followed by its three most recent sessions with their tool-call and file-write counts.\n\n```\nakshauhini delete-run RUN_ID [--db PATH]\n```\n\nPermanently deletes all events and questions recorded for `RUN_ID`. Stop any office that uses the database before running this command.\n\n| Option | Description | \n|---|---|\n| `--db PATH` | SQLite database to modify (default: `AKSHAUHINI_DB` , or`~/.akshauhini/akshauhini.sqlite` ) | \n\n```\nakshauhini scan ollama [--interval SECONDS]\n```\n\nPolls a local tool's API and mirrors what it reports into the office. Ollama is currently the only supported source. The office must already be running. Run this command in a separate terminal and press Ctrl+C to stop it.\n\n| Option | Description | \n|---|---|\n| `--interval SECONDS` | Time between polls in seconds (default `5` ) | \n\n```\n# Open the office on a different port\nakshauhini --port 9000\n\n# Run a dedicated office for one project with its own database\nakshauhini serve --db ./office.sqlite --app my-app-id --open\n\n# Run a script without opening the browser\nakshauhini run --no-open python your_app.py\n\n# Why did the latest run of a project fail, and is the new version worse?\nakshauhini insights --app my-app-id\n\n# Delete a run from the default database\nakshauhini stop\nakshauhini delete-run <run-id>\n```\n\nThe complete [connection guide](https://github.com/abhineet-pandey/Akshauhini/blob/main/docs/CONNECTING_APPS.md) covers Python and HTTP integration, dynamic agent registration, progress updates, question handlers and Ollama setup. The UI also includes a **Connect app** guide.\n\n`Office.track` is the simplest integration. It supports regular and `async` functions, preserves return values and exceptions, and automatically records agent registration, task lifecycle, duration, success and failure.\n\n``` python\nfrom akshauhini import Office\n\noffice = Office(app_id=\"my-agents\", app_name=\"My Agent Team\")\n\n@office.track(\"researcher\", name=\"Research Agent\", role=\"researcher\")\ndef research_agent(topic):\n    return run_your_agent(topic)\n\nresult = research_agent(\"market trends\")\n```\n\nWithin a tracked function, use:\n\n- `office.operation(...)` to time tool calls and other operations.\n- `office.progress(...)` to report completed work, waiting dependencies, blockers, next steps and work-unit counts. When progress is unknown, no percentage is shown.\n- `office.artifact(...)` to record results and artifact metadata.\n\nFor full control, register agents and emit events directly:\n\n``` python\nfrom akshauhini import Office\n\nwith Office() as office:\n    office.agent(\"researcher\", \"Riley\", role=\"researcher\", department=\"Research\")\n    office.emit(\"task.created\", \"researcher\", \"task-1\", title=\"Find references\")\n    office.emit(\"task.accepted\", \"researcher\", \"task-1\")\n    with office.operation(\"task\", \"researcher\", \"task-1\"):\n        with office.operation(\"tool.call\", \"researcher\", \"task-1\", tool=\"web_search\") as metrics:\n            results = your_search_function()\n            metrics[\"result_count\"] = len(results)\n        office.emit(\"artifact.created\", \"researcher\", \"task-1\", name=\"References\")\n```\n\n`Office.operation` records a correlation ID, the elapsed time in milliseconds and any failure, then re-raises application exceptions. Connection failures to the collector produce warnings by default; pass `Office(strict=True)` to raise instead.\n\n``` python\nimport akshauhini\n\noffice = akshauhini.init(\"support-bot\", \"Support Bot\", version=\"1.4.0\")\n\nwith office.llm(\"researcher\", \"gpt-4o-mini\", prompt=messages) as call:\n    reply = client.chat.completions.create(model=\"gpt-4o-mini\", messages=messages)\n    call.update(response=reply.choices[0].message.content,\n                input_tokens=reply.usage.prompt_tokens, output_tokens=reply.usage.completion_tokens)\n\noffice.evaluate(\"answer_grounded\", passed=cites_sources(reply), agent_id=\"writer\")\noffice.evaluate(\"relevance\", score=0.82, threshold=0.7, evaluator=\"llm_judge\")\n```\n\n- `office.llm(...)` records the call's duration, tokens, cost (`cost_usd` ) and any exception as`llm.started` /`llm.completed` /`llm.failed` .**Prompts and responses are not recorded** unless you pass`capture_content=True` to`init()` /`Office()` or`capture=True` to the call, or set`AKSHAUHINI_CAPTURE_CONTENT=1` ; recorded content is clipped to 4,000 characters.\n- `office.evaluate(name, score=..., passed=..., threshold=...)` records an`eval.recorded` quality check. Give a score, a pass/fail result or both; with a score and a threshold, it passes when`score >= threshold` .\n- `version=` (or`AKSHAUHINI_APP_VERSION` ) tags the run so Insights can compare versions. The current git commit is added automatically when available, or set`AKSHAUHINI_APP_COMMIT` .\n- A run started with `akshauhini.init()` or`with Office(app_id=...)` is marked completed when the program or block ends, or failed with the error if it raises. Call`office.finish(\"failed\", error=...)` to record it yourself.\n\n- Register the application with `Office(app_id=\"my-app\", app_name=\"My App\")` and its agents with`office.agent(...)` . Each run has its own roster; agents can join, update their metadata and leave at any time.\n- Use `with office.answer_questions({agent_id: callback}): ...` to answer questions sent from the inspector. Each question is delivered to the matching agent's callback, and structured replies update its displayed progress.\n- Optional summaries from a local LLM (Ollama) explain recorded telemetry without changing runtime state. No model is selected unless configured, and no fallback provider is used.\n\n**Note:** Events are stored exactly as supplied, without redaction. Do not include secrets in event data, and enable prompt and response capture only where storing them locally is acceptable.\n\nApplications in any language can send events by posting a JSON array of 1 to 1000 events to `/api/events`:\n\n```\n[{\n  \"version\": \"1.0\",\n  \"event_id\": \"unique-event-1\",\n  \"run_id\": \"run-42\",\n  \"type\": \"tool.call.started\",\n  \"timestamp\": \"2026-09-06T12:00:00Z\",\n  \"agent_id\": \"researcher\",\n  \"task_id\": \"task-1\",\n  \"operation_id\": \"search-1\",\n  \"data\": {\"tool\": \"web_search\", \"title\": \"Find references\"}\n}]\n```\n\nQuality checks are `eval.recorded` events with `data.name` and a `data.score`, a `data.passed`, or both; `agent_id` is optional for them. Report a run's version with `data.version` on `run.started` (or `version` in `POST /api/apps/connect`).\n\nUse the same `operation_id` for the matching completion or failure event. Submitting an identical event twice has no effect; reusing an `event_id` with different contents returns `409 Conflict` and rolls back the whole batch. Producers should keep timestamps and IDs stable when retrying.\n\n| Endpoint | Description | \n|---|---|\n| `POST /api/events` | Submit a batch of AOEP events | \n| `GET /api/health` | Health status and protocol version | \n| `GET /api/runs` | The latest 200 runs with event counts | \n| `GET /api/runs/{run_id}/events?after=0&limit=1000` | Cursor-paginated events (maximum `limit` 5000) | \n| `WS /api/live/{run_id}?after=0` | Catch-up from storage followed by live batches (150 ms polling) | \n| `POST /v1/traces` | OTLP/HTTP JSON span input | \n| `GET /api/insights/runs/{run_id}` | Insights for one run: stuck agents, latency, loops, failure, tokens, LLM calls and evaluations | \n| `GET /api/insights/project?app_id=...` | Insights across a project's latest runs (or `?app_name=...` for apps without an`app_id` ), including the version comparison | \n| `GET /docs` | Interactive API documentation | \n\nThe machine-readable protocol schema is available at [docs/aoep.schema.json](https://github.com/abhineet-pandey/Akshauhini/blob/main/docs/aoep.schema.json).\n\nSend OTLP/HTTP **JSON** to `/v1/traces`. Resource or span attributes must include the following:\n\n| Attribute | Description | \n|---|---|\n| `akshauhini.agent.id` | Agent identifier (required) | \n| `akshauhini.operation` | One of `llm` ,`tool.call` ,`task` or`review` | \n| `akshauhini.run.id` | Run identifier; defaults to the trace ID | \n| `akshauhini.task.id` | Task identifier (required for task spans) | \n| `tool.name` | Tool name, used to choose the destination station | \n| `gen_ai.request.model` | Model name shown in the inspector | \n| `gen_ai.usage.input_tokens` ,`gen_ai.usage.output_tokens` | Reported token counts | \n\nEach completed span is converted into a pair of AOEP start and end events with the original timestamps and duration. A failed span produces a failure event. A review span produces only `review.started`, because the end of a span does not indicate approval; emit explicit approval or rejection events instead. Spans without these attributes are ignored.\n\nLimitations: OTLP protobuf and gRPC are not supported, and automatic framework instrumentation is not provided. Because spans are exported only when they complete, in-progress operations are not visible; use SDK start events for live visibility.\n\nThe **Local agents** tab (and the `akshauhini agents` command) shows the coding agents on this machine and what they did, based on the transcript files those agents already save.\n\nSessions are displayed on the same office floor as connected applications. Each recent session appears as a character, grouped by agent as a department, with its project folder as its role. Every movement corresponds to a transcript entry: shell commands and edits go to engineering, file reads and searches to the archive, and web access to research, while model turns take place at the desk. Each prompt appears as a request. Inactive sessions return to the lobby and resume when their transcript is updated.\n\nSelecting a character shows the full session timeline, files read and written, commands, external targets, token usage and models. The **Sessions & data** view provides the same details for every session.\n\n| Agent | Source | \n|---|---|\n| Claude Code | `~/.claude/projects/*/*.jsonl` (or`$CLAUDE_CONFIG_DIR` ) | \n| Codex CLI | `~/.codex/sessions/**/rollout-*.jsonl` (or`$CODEX_HOME` ) | \n| Gemini CLI | `~/.gemini/tmp/*/chats/*.json` | \n| Ollama | Live `/api/ps` : models currently loaded in memory (Ollama keeps no chat history) | \n| Antigravity | Presence only; conversations are stored in a binary format that is not read | \n\nEvery view identifies the file its data came from.\n\nYou can ask a question about a single session, a single agent or all agents (press `?`). Answers are generated by a local model served by Ollama, using only a digest of the relevant transcripts. Each answer lists its sources and the exact text provided to the model. Questions and answers are stored per session in your browser.\n\n| Setting | Description | \n|---|---|\n| `AKSHAUHINI_HOME` | Data directory (default `~/.akshauhini` ) | \n| `AKSHAUHINI_DB` | Path to the SQLite database (default `~/.akshauhini/akshauhini.sqlite` ) | \n| `AKSHAUHINI_LOCAL_AGENTS=0` | Disable the Local agents feature (same as `serve --no-local-agents` ) | \n| `AKSHAUHINI_ALLOW_REMOTE_LLM=1` | Allow cloud-tagged Ollama models and non-loopback Ollama URLs | \n| `AKSHAUHINI_PORT` or`--port` | Collector port. Unset: `8765` , or a free port when another program holds it. The running office's port is recorded in`~/.akshauhini/office.json` , so apps and commands find it | \n| `AKSHAUHINI_OLLAMA_MODEL` | Ollama model used for questions and summaries | \n| `AKSHAUHINI_OLLAMA_URL` | Ollama server URL (default `http://127.0.0.1:11434` ) | \n| `serve --host` | Bind address (default `127.0.0.1` ) | \n\nTo continue using a database from an earlier version, set `AKSHAUHINI_DB` to the path of your existing `./akshauhini.sqlite`.\n\nBy default, a single office serves the whole machine. The **Apps** tab shows how many applications have reported and how many are currently active. Applications that reported within the last 15 seconds appear as shortcuts in the toolbar, and the project switcher groups runs by `app_id`.\n\nEach project's office shows only its own agents and the stations they use. A station (research, archive, records, engineering, compute, human review or meeting) appears the first time an event sends an agent there, and the operations desk appears while an agent with the manager role is present.\n\nTo isolate a project completely, give it its own database and scope:\n\n```\nakshauhini --port 8765 serve --db /path/to/project/office.sqlite --app my-app-id\n```\n\nA scoped office lists only runs for that `app_id` and follows the newest run; disable **Follow latest run** to keep an older run selected. An unscoped office can be filtered in the browser with `?app=my-app-id`.\n\nStop the office before running `delete-run` against its database. SQLite on a network file system is not safe for concurrent writers.\n\n```\nAOEP events → SQLite collector → state projector → behaviour engine\n            → presentation scheduler → character controller → A* navigation → PixiJS\n```\n\n- **Runtime state is authoritative.** The state projector determines task state; animations never advance it.\n- **Priority handling.** Errors, human decisions and cancellations interrupt the current animation immediately. Short successful operations may be displayed for up to 450 ms longer than they took, while the inspector shows the reported metrics.\n- **Progress.** Progress remains indeterminate unless a`task.progress` event reports a measured`data.progress` value between 0 and 1.\n\nTools are mapped to stations by whole words in the tool name, in the following order of precedence:\n\n| Station | Keywords | \n|---|---|\n| Archive | `rag` ,`vector` ,`retriev*` ,`embed*` ,`document` | \n| Records | `sql` ,`postgres` ,`database` | \n| Engineering | `code` ,`python` ,`bash` ,`git` | \n| Research | `web` ,`search` ,`browse` | \n| Compute | Any other tool | \n\nFor example, `vector_search` maps to the archive. A producer can set the station explicitly with `data.station`.\n\n- `message.sent` or`handoff.started` with`data.target_agent_id` moves the agent to the target worker.\n- Messages with three or more `data.participants` take place in the meeting area.\n- `human.requested` moves the agent to human review. This is for display only and does not provide an approval mechanism.\n- Teams of any size are supported; workers beyond the first five are placed in an open-plan area that extends the floor.\n\nThese protections are provided as is, without warranty; see [License](#license).\n\n- The server binds to loopback by default. It has no authentication or tenant isolation and is not intended for exposure to untrusted networks.\n- Local agent transcripts are read-only. Akshauhini never modifies or uploads them; excerpts are shown only in your local browser.\n- Local agent endpoints accept only requests that originate from loopback **and** carry a loopback`Host` header, which prevents DNS rebinding. This applies even when the server is started with`--host 0.0.0.0` .\n- Questions are refused for cloud-tagged Ollama models (`*-cloud` ) and non-loopback Ollama URLs unless`AKSHAUHINI_ALLOW_REMOTE_LLM=1` is set.\n- The web UI loads fonts from Google Fonts when online. This is the only request the office makes outside the local machine; without a connection it falls back to system fonts.\n\nKnown limitations and remaining work are tracked in [IMPLEMENTATION_LOG.md](https://github.com/abhineet-pandey/Akshauhini/blob/main/IMPLEMENTATION_LOG.md).\n\nBuilding from source requires Python 3.11 or later and Node.js 20.19 or later.\n\n```\npython3 -m venv .venv\nsource .venv/bin/activate          # Windows PowerShell: .venv\\Scripts\\Activate.ps1\npip install -e '.[dev]'\ncd web && npm ci && npm run build && cd ..\nakshauhini serve --open\n```\n\nFor frontend development, run `npm run dev` in the `web` directory alongside the collector. Vite proxies `/api` and WebSocket traffic to port 8765.\n\n```\npytest -q\ncd web\nnpm test\nnpm run test:e2e\n```\n\nBrowser tests require Chrome. Set `CHROME_PATH` if it is not installed at the default macOS location. The tests start a local collector automatically.\n\n```\ncd web && npm run package-ui && cd ..\npython -m build\npython scripts/check_dist.py dist\ntwine check --strict dist/*\n```\n\n`npm run package-ui` copies the built UI into `akshauhini/static` so the wheel can serve it without Node.js; run it again after any UI change. `scripts/check_dist.py` fails if a wheel is missing the UI. Releases are built and published by `.github/workflows/publish.yml` when a `v*` tag is pushed; see [docs/RELEASING.md](https://github.com/abhineet-pandey/Akshauhini/blob/main/docs/RELEASING.md).\n\n**Connected application**\n\n```\nakshauhini run python examples/connected_app.py --directory . --seconds 90\n```\n\n**Research team**\n\n```\nakshauhini run python examples/research_team.py\n```\n\n**Insights**\n\n```\npython examples/insights_demo.py\n```\n\nRecords three runs of a simulated support desk at version 1.0 and three at a deliberately worse 1.1, with LLM calls, evaluations, a loop between two agents and one failure. Open **Support Desk** in the office and press **I**.\n\n**Request Studio**\n\n[Request Studio](https://github.com/abhineet-pandey/Akshauhini/blob/main/sample_projects/request_studio/README.md) is a standalone demo application. Run it in a second terminal:\n\n```\n.venv/bin/python sample_projects/request_studio/run.py\n```\n\nOpen [http://127.0.0.1:8766](http://127.0.0.1:8766), enter a request, its requirements and optional source documents, then follow the run in Akshauhini. The manager agent can answer follow-up questions or route them to a specialist, with source citations. The saved report and the office artifact contain identical output. Ollama chat and embedding models can be configured from the Settings menu and enabled in the demo form.\n\nAkshauhini is released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) and is free for personal, academic and commercial use. See [LICENSE](https://github.com/abhineet-pandey/Akshauhini/blob/main/LICENSE) and [NOTICE](https://github.com/abhineet-pandey/Akshauhini/blob/main/NOTICE).\n\n- You may use, modify and redistribute it for any purpose.\n- Redistributions must include the `LICENSE` and`NOTICE` files and state any changes made.\n- Contributions are accepted under the same license.\n\nIf you use Akshauhini in published research, please cite this repository.\n\nThe web UI bundles third-party open-source components (React, PixiJS and their dependencies, and Lucide icons), each under its own permissive license; see [THIRD_PARTY_NOTICES.md](https://github.com/abhineet-pandey/Akshauhini/blob/main/akshauhini/THIRD_PARTY_NOTICES.md). The DM Sans, DM Mono, Manrope, Press Start 2P and Noto Sans Devanagari fonts are served by Google Fonts under the SIL Open Font License.", "url": "https://wpnews.pro/news/show-hn-akshauhini-watch-your-ai-agents-work-and-see-why-they-fail", "canonical_source": "https://github.com/abhineet-pandey/Akshauhini", "published_at": "2026-12-03 01:23:55+00:00", "updated_at": "2026-12-03 01:47:55.503362+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "mlops", "developer-tools", "artificial-intelligence"], "entities": ["Akshauhini", "Claude Code", "Codex CLI", "Gemini CLI", "Ollama", "FastAPI", "SQLite", "PixiJS"], "also_reported_by": [], "takeaway": "Akshauhini instruments a Python agent function with a single decorator (or accepts JSON/OpenTelemetry events from other languages) and turns the resulting telemetry into per-agent latency, token, error and version-comparison answers backed by the underlying events.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-akshauhini-watch-your-ai-agents-work-and-see-why-they-fail", "markdown": "https://wpnews.pro/news/show-hn-akshauhini-watch-your-ai-agents-work-and-see-why-they-fail.md", "text": "https://wpnews.pro/news/show-hn-akshauhini-watch-your-ai-agents-work-and-see-why-they-fail.txt", "jsonld": "https://wpnews.pro/news/show-hn-akshauhini-watch-your-ai-agents-work-and-see-why-they-fail.jsonld"}}