AGENTS.md instructions for /home/ubuntu/multica <INSTRUCTIONS> Repository Instructions…
- User
AGENTS.md instructions for /home/ubuntu/multica
This repository uses layered
AGENTS.mdfiles. Start with this file, then follow the nearest childAGENTS.mdfor the area you are editing.Project Snapshot
Multica is an AI-native task management platform where coding agents act as teammates.
- Backend: Go API in
server/using Chi, sqlc, PostgreSQL, WebSockets, and a local daemon for agent execution. - Frontend: Next.js App Router app in
apps/web/with feature-based state and UI modules. - E2E: Playwright tests in
e2e/. - Secondary app:
apps/mobile/exists, but the main product surface in this repo is the web app plus Go backend.
Instruction Layout
server/AGENTS.mdapplies to backend, daemon, sqlc, migrations, and runtime execution code.apps/web/AGENTS.mdapplies to the Next.js app, shared frontend utilities, and web tests.e2e/AGENTS.mdapplies to Playwright coverage and test fixtures.
If a child file conflicts with this one, follow the child file for that subtree.
Working Rules
- Explore the existing code path first. Match the current architecture before adding new abstractions.
- Keep instructions, docs, and code aligned. If you change an execution workflow, update the instruction files or tests that describe it.
- Do not hand-edit generated code in
server/pkg/db/generated/. - Keep comments in code in English only.
- Unless explicitly requested, do not add compatibility shims, dual-write logic, fallback paths, or legacy adapters.
- Avoid broad refactors unless the task requires them.
- Prefer deleting obsolete paths over preserving both old and new behavior when the product is not yet live.
Commands
Top-level commands:
bashmake setup make start make stop make check make test make build pnpm install pnpm build pnpm typecheck pnpm testWorktree-aware flows:
bashmake worktree-env make setup-worktree make start-worktreeVerification
- Do not run heavy verification by default. Run checks when the user asks for verification or when the task explicitly requires proof.
- Backend: Go API in
- User
<environment_context> /home/ubuntu/multica bash <current_date>2026-04-12</current_date> Asia/Shanghai </environment_context>
- User
- Assistant
我会先对仓库做一次定向勘察,确认现有 agent/执行器/协议相关实现和约束,再把你这版 Agenticos 方案落成可直接交付工程团队的生产级实施计划。
- Assistant
沙箱里连基础只读检索都被环境限制拦住了。我改用提权只读命令获取仓库事实,然后基于现有结构收敛实施方案,不会修改任何文件。
- Assistant
仓库里已经有你方案依赖的关键现实基础,不是从零开始:
server/pkg/agent/里已有claude/codex/opencode/trae后端,daemon 配置也已经做了多执行器自动发现。这意味着方案要从“新建系统”调整为“在 Multica 既有 agent runtime 上叠加 Agenticos 控制面”。 - Assistant
我会用
doc-coauthoring的结构来组织这份方案,但不走长流程问答,因为你的目标和方向已经足够明确;当前只补仓库事实,把方案做成“决策完备、可直接开工”的工程规格。 - Assistant
我已经确认一个关键边界:Multica 当前协议偏“任务派发/进度消息”,而不是你提案里的跨层统一契约。这决定了方案里必须明确“Agenticos Protocol 是新控制面契约,还是演进现有
server/pkg/protocol”。我继续把这块边界钉死。 - Assistant
现状更清楚了:daemon 已经有“执行环境 + 技能注入 + provider 适配 + 流式消息上报”四件套。缺的不是基础 runtime,而是跨 provider 的统一控制面、评估闭环和可进化记忆层。接下来我补全任务生命周期与技能装载边界,避免方案脱离现有数据模型。
- Assistant
- User
批判性review上述plan
- Assistant
- User
重新拟定plan
- Assistant
我按刚才的批判点重构方案,把范围收紧到真正能落地的层级:先固定协议边界、子任务模型、隔离策略和评估数据面,再把多代理模板与技能进化分期挂上去。
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.