# Read the files a CompanyOS Task produced from your own app

> Agno AgentOS adds read-only Company API routes, such as `GET /company/tasks/{task_id}/files`, that list and read a CompanyOS Task's files and the shared notes.

- Published: 2026-11-17
- Author: Ashpreet Bedi
- Categories: Changelog
- Canonical: https://www.agno.com/blog/read-the-files-a-companyos-task-produced-from-your-own-app
- Markdown: https://www.agno.com/blog/read-the-files-a-companyos-task-produced-from-your-own-app.md

The AgentOS Company API now serves a [CompanyOS](https://www.agno.com/blog/introducing-companyos) Task's files and the shared notes over HTTP, so your own app or dashboard can show what a Task produced. CompanyOS agents leave their work in a file tree, and in earlier releases a person could read those folders only by asking Super Agent in chat.

![A CompanyOS file tree in two panels. The left panel shows a Task folder written by Mini Agent, tasks/task_id/ holding report.md and data/rows.csv, read with GET /company/tasks/task_id/files and GET /company/tasks/task_id/files/path, scopes tasks:read and wiki:read. The right panel shows the shared notes written by Super Agent, notes/ holding follow-ups.md, read with GET /company/notes and GET /company/notes/path, scope wiki:read. Below, real output of reading data/rows.csv returns 200 with its content and a size of 22 bytes](https://www.agno.com/images/v3-2-1-company-file-tree.png)

Mini Agent writes working files and deliverables into `tasks/<task-id>/` while it runs a Task. Super Agent keeps its own notes in `notes/`, one folder shared by everyone who talks to it. Each folder gets a listing route and a read route:

```text
GET /company/tasks/{task_id}/files          list a Task's files
GET /company/tasks/{task_id}/files/{path}   read one file
GET /company/notes                          list the shared notes
GET /company/notes/{path}                   read one note
```

Listings use the wiki routes' paged shape, with `limit` from 1 to 200 (20 by default) and `page`. Each entry gives `path`, `size_bytes`, `version` and `updated_at`, and the path is relative to the folder, so `data/rows.csv` keeps its subfolder and goes straight into the read route. A read returns `content`, the same metadata and `next_offset`, which tells you where the next read of a long file starts.

We ran the routes on SQLite through FastAPI's `TestClient`. The script wrote the files with `CompanyFiles.write`, the call behind the agents' `write_company_file` tool, in place of Mini Agent and Super Agent. Real output:

```text
GET /company/tasks/{task_id}/files               200  ["data/rows.csv", "report.md"]
GET /company/notes/follow-ups.md                 200  size_bytes 37
GET /company/tasks/{task_id}/files/missing.md    404  File not found
GET /company/tasks/{task_id}/files/%2e%2e/...    422  Invalid file path. A path is at most 469 characters ...
```

The same script against the previous release got `404 Not Found` on all four routes. With AgentOS authorization on, a token holding `tasks:read` alone still opens the Task and gets 403 on its files, which also need `wiki:read`, the scope chat asks for when it reads them. A missing or archived Task returns `404 Task not found`. User isolation doesn't apply to these routes, so any caller with the scope can open them. Treat the notes as shared with everyone who can read the wiki.

See the [cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/05_agent_os/30_company/16_company_file_tree.py), and learn more about [running CompanyOS](https://docs.agno.com/agent-platform/company-os) in the documentation.
