do not edit this file agent.md , it's for human
(do not edit this file unless i tell you the part you can edit)
task for this project
new task
improve /chatclient, make it edit like, replace with the rich text editor as a tab of main view, then add some tool icon buttons below the editor, a setting button to show setting ui for endpoint,system prompt, a add button for user to add image and audio file, a send button to send message to ai, after send, get image and audio files as attachment and send it with text, show the output rich text page tab to view ai response, also add a rowoutput to show raw response from ai
agent.md
doc/agent.md, put md doc file in doc/
this is tasks doc for AI agent, instead input prompts direct, put the plan here and ask AI to complete unfinished task (in # new task) so we can record what we have do with AI agent.
before start new task, recorder current time stamp so when the task end , we know how much time cost for this task, put the start and end , total time in doc/update.md too, read doc/overview.md to understand the project,ensure doc/common_mistakes.md not happen, follow the # princple ,complete # new tasks, then do # post task and # additional tasks too
post task (do not edit here, only human can edit)
review
review what you have done just now, and if you think there are some improvment to improve the app function and cleaness or follow the princinple better, you can improve now
build
try to build the project and fix compile error if any, use temp folder as build output place like /tmp/prj_name, show the folder path after finish the task
finnally:
update doc files
update doc/overview.md properly with show project current status , the project structure and all project file tree with simple description
when finshed the task, move it to updates.md put newer task above old ones, also add time start/end/total for finished task and which agent and model finished task, if you are codex gpt5 or codex with gpt5-codex , add by codex/gpt5 or codex/gpt5-codex after time stamp, if you are droid/gpt5 or droid/gpt5-codex or claude or cursor/gpt5 or windsurf, put your name like that, do not commit for me unless i ask you to commit
write a summary to tell user what you do, and some key info like build output folder path and how to run the app, the way you implement or fix the features
principles
some coding principles for AI or human to make software quality high((keep this line when modify # principles) keep code simple and clean, utilze module and MVC(for gui app), make each module simple and clean(<150-200 lines) have clear responsibility, and each module have clear interface, and each module have clear implementation, and each module have clear test.
make sure the UI looks clean, modern , by using minimal style.
make sure UI easy to use on mobile, use some modern sytle like tabs, dropdown menu
when edit doc file like .md , put these doc files into folder ./doc
common experience
for gui app:
virsualize every user interaction, implement some simple clean feedback when user click app for webapp:
always add a service worker to cache all html and js css files, and also update the cache after 10s when app loaded, so user can get fast offline load and update to latest version at same time
also add a simple error notifacation at bottom for 10s to let user know what's wrong and copy the the error code when click the notice
do not user brower built in prompt like alert() prompt(), write a simple ui to do that
do not put too many buttons in one place, classify buttons , put them in a dropdown menu
for ios app: (comming soon)
for android app: (comming soon)
for server :
(comming soon)