How orzfly/todou works
todou is a self-hostable issue tracker for people and AI agents. Users work through the web app or CLI; requests reach the API, which authenticates them and operates on project data and attachments. Issues support comments, labels, questions, and versioned spec review; search and cursor-based SSE watching extend the workflow. The CLI also resolves server/project configuration and agent-session context. The graph preserves documented capabilities, but many route and UI implementations were not sampled, so some documented links are cited to the README rather than inferred from source.
Main entry points: app.ts HTTP API · commands CLI commands · src Web app · client.ts Shared API client
Components 21
User clients
- Web app
projects/web/src - CLI commands
projects/cli/src/commands - CLI configuration
projects/cli/src/config.ts - CLI context resolution
projects/cli/src/context.ts - Agent harness detection
projects/cli/src/harness/index.ts
API and identity
- HTTP API
projects/server/src/app.ts - Authentication
projects/server/src/auth/middleware.ts
Issue workflows
- Issues and projects
projects/server/src/routes/issues.ts - Spec review
projects/server/src/routes/spec.ts - Structured questions
projects/server/src/routes/inbox.ts - Search
projects/server/src/routes/search.ts - SSE watch
projects/server/src/routes/sse.ts - Agent accounts
projects/server/src/routes/agents.ts - Attachments
projects/server/src/routes/attachments.ts
Persistence and events
- Database routing
projects/server/src/db/router.ts - Project and system databases
projects/server/src/db/system-schema.ts - Blob storage
projects/server/src/storage/types.ts - Event bus
projects/server/src/events/bus.ts
Shared contracts
- Shared API client
projects/shared/src/client.ts - Shared schemas
projects/shared/src/schemas/common.ts
Other components
- People and agents
Connections 26
- People and agents → Web app: uses
README.md - People and agents → CLI commands: uses
README.md - Web app → HTTP API: requests
- CLI commands → HTTP API: requests
- CLI commands → CLI configuration: loads config
- CLI commands → CLI context resolution: resolves context
- CLI context resolution → Agent harness detection: detects harness
projects/cli/src/context.ts - HTTP API → Authentication: authenticates
projects/server/src/app.ts - HTTP API → Issues and projects: routes requests
projects/server/src/app.ts - HTTP API → Spec review: routes requests
projects/server/src/app.ts - HTTP API → Structured questions: routes requests
projects/server/src/app.ts - HTTP API → Search: routes requests
projects/server/src/app.ts - HTTP API → SSE watch: routes requests
projects/server/src/app.ts - HTTP API → Agent accounts: routes requests
projects/server/src/app.ts - HTTP API → Attachments: routes requests
projects/server/src/app.ts - HTTP API → Database routing: uses context
- Database routing → Project and system databases: opens databases
projects/server/src/db/router.ts - Attachments → Blob storage: stores blobs
- HTTP API → Event bus: provides event bus
- Web app → Shared API client: uses API client
- CLI commands → Shared API client: uses API client
- Shared API client → Shared schemas: uses contracts
- People and agents → Spec review: reviews versions
README.md - People and agents → Structured questions: answers questions
README.md - People and agents → SSE watch: watches updates
README.md - People and agents → Agent accounts: creates accounts
README.md