
Weekend Productivity Challenge: Timothy - a productivity AI agent
Timothy is a self-hosted personal AI productivity agent powered by Amazon Bedrock. It goes beyond simple chat.

Vision & What the App Does
The problem is simple. Regular AI chat is fast but not very useful for real work. Answers are often made up or not grounded. You can't easily get it to do actual tasks like looking up fresh info, editing code, or remembering what you decided last week. And you have no idea how much it's costing you.
Timothy is a full personal AI productivity agent that helps you get real things done. From the web UI you can:
- Chat normally or give it tasks that require tools.
- Ask it to research something and it will search the web (using a private self-hosted search), fetch pages, and cite real sources.
- Use long-term memory so it remembers facts, decisions, and context across many sessions instead of forgetting everything after a few turns.
- Run safe automation with a shell tool that works inside a controlled workspace.
- See every cost in a dashboard so you know exactly what each model call is costing.
It is event-sourced so conversations survive crashes and can be replayed exactly. Tools only run after permission checks for anything dangerous. All the "thinking" intelligence comes from Amazon Bedrock.
A concrete example from this weekend: I asked about AWS S3 service history. Timothy used its web search and fetch tools, pulled the official AWS page, and answered with exact numbers plus citations. Then I asked for a monthly cost calculation for my usage. It reused the sources, called the calculator tool, and gave a clear breakdown with the sources still attached.
I also asked to research about zero trust security, it provided me a very detailed response with all references cited.
This is the kind of tool that actually saves time instead of creating more verification work.



How You Built It
Timothy is a monorepo with three Go services (brain, gateway, memoryd) plus a React web frontend. I started building it before the challenge as my own personal AI setup. For the challenge I made sure the core productivity features were solid and that it clearly used AWS.
Key parts of the build:
The gateway is the only place that talks to LLMs. It has pluggable drivers. For this I added a native Amazon Bedrock driver using the AWS SDK and Converse API. It handles streaming, tool calling, and usage tracking. Because everything else is normalized, adding Bedrock was mostly one new file plus registry updates.
Sessions are fully event-sourced. Every user message, assistant turn, tool call, and compaction is an immutable event in Postgres. This means conversations survive restarts and you can replay exactly what happened. Two projections come from the same events: one for the UI transcript and one for the exact context the model sees.
There's a dedicated memory service using Postgres with pgvector. It does hybrid search (vector + keyword + recency) and stages facts so old information can be superseded without losing history.
Tools (web search via private SearXNG, web fetch, shell in a safe workspace, calculator, remember/retrieve, time) all go through one agent loop in the brain service. The loop is deterministic. Every tool call passes through constraints and a permission system so dangerous actions ask the user first.
Skills are packaged rule sets (like the research-brief and coding-task ones). They load on demand so the prompt stays small. The skill tells the model the exact process to follow.
For the challenge submission I used a SKILLS_ALLOWLIST to focus the demo on research while the underlying system supports the full set of tools and memory. I also added a dedicated Research page in the UI that locks the experience to that workflow.
One real challenge I hit during testing: when the model made parallel tool calls, the follow-up cost question crashed with a Bedrock validation error. The root cause was how tool results were packaged back to the model. Because sessions are event-sourced I could replay the exact failing conversation from the database, turn it into a unit test, fix the message merging logic in the Bedrock driver, and verify it worked on real Bedrock in under an hour.
The web frontend is a React app that shows chat, a memory browser, usage dashboard with cost aggregates, and permission confirmations. It talks to the brain over SSE for streaming responses.
AWS Services Used / Architecture Overview
The main AWS service is Amazon Bedrock. All the AI intelligence (chat, tool calling, streaming) uses Bedrock with Nova models through the Converse API. This is what powers the research, coding help, and any other agent behavior. Nova Lite and Nova Pro are routed depending on the task.
Other pieces:
- The gateway service uses the AWS SDK for Go v2 to talk to Bedrock. Credentials come through the standard chain (IAM roles or local profile).
- All persistent data (sessions as events, memory facts, tool outputs, cost ledger, provider config) lives in PostgreSQL (with pgvector for memory search) running on Amazon RDS.
- The three Go services and React frontend are containerized running on Amazon ECS Fargate.
I also run a private SearXNG instance (containerized) for web search so queries don't go to a third-party search engine.
Here's the high-level architecture:
Browser (React) │ ▼brain (Go service in ECS) ← event-sourced sessions, agent loop, skills, permissions │ ▼gateway (Go service in ECS) ──► Amazon Bedrock (Nova models via Converse API) │ │ └── cost ledger ◄────┘ (every call logged with model, tokens, latency, cost) │ ▼memoryd (Go service in ECS) ──► PostgreSQL + pgvector (RDS)The cost ledger feeds a dashboard so you can see exactly what each session and model is costing. Diagrams and screenshots of the UI are in the article placeholders below.
This setup uses Amazon Bedrock as the core AWS service for the AI while keeping the rest of the system self-hosted and controllable. The containers are running on Amazon ECS Fargate + RDS.
What You Learned
Narrowing the demo helped a lot for the challenge, but the real learning came from building the whole system.
Event sourcing for sessions was the best decision. Every turn, tool call, and compaction is an immutable event. This made debugging the Bedrock tool result bug trivial. I just replayed the exact failing conversation from the database. It also means the UI can show the full history including interrupted turns and the model only ever sees a clean context.
The permission system and tool constraints are essential for productivity tools. Without them an agent that can run shell or edit files is too dangerous. Requiring explicit confirmation for risky actions and clamping arguments makes the tool actually usable for real work.
Adding Bedrock support was straightforward because providers are just drivers behind a normalized interface. The Converse API was stricter than the others on parallel tool results (all results for one assistant turn must come back in a single user message). That difference only showed up when I started using real tool calling heavily.
Hybrid memory (vector + keyword + recency) plus staged facts is much more practical than pure vector search for a personal assistant. Facts can be updated over time without losing history.
Cost tracking in the same system as the agent changes how you use it. Seeing the ledger and dashboard makes you think about which model to use for what task instead of just throwing everything at the most powerful one.
The skill packs (separate rule files that load on demand) keep the system prompt small even as capabilities grow. It is a simple but effective pattern.
Overall, keeping the agent loop, safety, memory, and state in deterministic code while letting the model (via Bedrock) only do the intelligent part per turn makes the whole thing reliable enough for daily productivity use.
Link to App or Repo
- Full source code (public GitHub): https://github.com/SumonMSelim/timothy
To run it yourself:
-
cp deploy/env.example deploy/.env
- Add your Amazon Bedrock credentials (or use AWS SSO profile).
- Run
make up
The main chat, Research page, Memory view, and Usage dashboard are all there. Screenshots and a short video of the research workflow in action are included with this submission.
Note on demo: I am not providing a public live demo link. The agent has broad capabilities (including tool use with shell access and web interactions) that could be misused if exposed, and running a public instance would quickly burn through my Bedrock tokens. The full source code and local run instructions (using your own credentials) are in the repo above.
The system is built with containers so it can be deployed to AWS services (ECS Fargate + RDS) using Free Tier resources. The AI itself runs on Amazon Bedrock (Nova models).
Any feedback or suggestions are welcome.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article