Logo white

宜博 / lemonboss

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 444
  • Compare
  • Branches 1
  • Tags 0
  • lemonboss
26 Mar, 2026
23 commits
  • chore: include Scrapling test script
    061c2cbd
    yibo authored
    2026-03-26 17:03:08 +0800  
    Browse Code »
  • feat: Automate full hiring orchestration (Creator -> Skills -> Innovator) ...
    5b508ce8
    - Added async orchestration in `/company/:id/hire` when no template is found.
    - Triggers Agent-Creator to write definition files based on scaffold.
    - Searches Arena (skillDb) for 3 basic skills matching the role and injects them.
    - Dispatches Innovator to run FDE pipeline and evaluate initial capabilities.
    Yi Bo authored
    2026-03-26 17:00:29 +0800  
    Browse Code »
  • chore: remove legacy agent folders
    a485e251
    yibo authored
    2026-03-26 16:51:37 +0800  
    Browse Code »
  • feat(templates): add scrapling_crawler agent and skill binding
    2ae15a8a
    yibo authored
    2026-03-26 16:51:36 +0800  
    Browse Code »
  • feat: Agent action controls - chat, skills panel, train trigger ...
    ed877480
    - Agent names are clickable links to chatbot page
    - Action button group per agent: heartbeat ▶/⏹, 💬 Chat, 📋 Skills, 🎓 Train
    - Expandable skills panel shows agent's loaded skills
    - Train button sends instruction to CEO to arrange Innovator training
    - Backend: GET /api/company/:id/agents/:agentId/skills API
    Yi Bo authored
    2026-03-26 16:36:47 +0800  
    Browse Code »
  • fix(company): 修复前端心跳配置为 undefined 时后端的异常打印
    c5693e36
    yibo authored
    2026-03-26 16:29:18 +0800  
    Browse Code »
  • feat(p4): 动态技能挂载与人机待办机制 ...
    b794ae6e
    Phase 4 人机流转机制打通:
    
    1. 新增 API 与 CLI:
       - POST /api/agent/human-request 支持 Agent 求助
       - `node bin/lemon.js human request` CLI 暴露给 Agent 使用
       - 请求将自动追加至根目录 .env 文件并带有时间戳注释
       - 同时将记录追加至 Master 的 workspace/human_todo.md 待办清单
       - 触发实时通知事件给 Master Agent
    
    2. `agent_creator` 人事专员模板创建:
       - 专门负责使用 `skill_search` (或自述构建) 并在新员工的 .claude/skills/ 下写武器代码
       - 强制为技能预留 .env 读取代码,并当 key 不存在时使用 human request
       - 强制在装配初版后将该技能推入 innovator-001 队列进行强化学习训练
    
    3. 架构优化:
       - 修改 CTO Agent 模板指令:在 hire 底层员工的同时,强制 hire 一名 agent_creator
       - CTO 不再亲自绑定技能,全部通过 `task dispatch` 给 agent_creator 完成装配
    yibo authored
    2026-03-26 16:20:27 +0800  
    Browse Code »
  • fix: FileAdapter missing default config causes startup crash
    3955a69a
    Yi Bo authored
    2026-03-26 16:20:09 +0800  
    Browse Code »
  • feat: Company Overview page with per-agent heartbeat controls ...
    cc6b1f0d
    - Add Company Overview tab as default landing page
    - Show company info: status, uptime, agent count, heartbeat status
    - Start/Stop company buttons (activate/deactivate all agent heartbeats)
    - Per-agent heartbeat controls: interval dropdown, start/stop buttons
    - Backend APIs: GET status, POST start/shutdown, PUT/POST agent heartbeat
    - Track startedAt timestamp for uptime calculation
    - Update CEO agent.md with mandatory 5-step startup workflow
    - Fix company nav to default to overview tab
    Yi Bo authored
    2026-03-26 16:11:09 +0800  
    Browse Code »
  • fix(templates): 补全 CTO 模板与 Pipeline Registration ...
    23de2e1d
    解决 CTO 无法自动把 CEO 设计图转化为系统流水线的问题:
    - bin/lemon.js: 新增 pipeline create / pipeline list 命令行接口
    - templates/cto/agent.md: 重写 4 步强制工作流, 明确用 json 注册流水线及循环 hire 工具
    - templates/cto/tools.md: 新增 pipeline 注册命令与环境初始化命令
    - templates/cto/soul.md & identity.md: 泛化架构师角色设定, 移除写死的旧业务名
    yibo authored
    2026-03-26 16:10:21 +0800  
    Browse Code »
  • feat(p1): 运营数据接入 + 归因分析 + Know-how自动更新 ...
    b24b562c
    Phase 3 反馈进化闭环:
    
    1. DataSourceService (运营数据接入):
       - 新增 datasource-service.js: 抽象适配器模式
       - MockAdapter: 模拟运营数据 (开发调试)
       - FileAdapter: 从本地 JSON 文件读取数据
       - 可扩展: 预留 WechatAdapter/DouyinAdapter 接口
       - API: GET /data/metrics, /data/trending, /data/attribution
    
    2. 归因分析引擎:
       - analyzeAttribution(): 自动对比两个时间段指标
       - 计算变化百分比和趋势方向
       - 自动提取显著变化维度并生成洞察文本
       - API: GET /api/company/:id/data/attribution
    
    3. Know-how 自动更新 (memory-service.js):
       - 新增 updateAgentKnowhow() 函数
       - autoReflect 产出的 patterns/lessons 自动写回 SKILL.md
       - 在 SKILL.md 末尾维护'经验教训(自动沉淀)'段落
       - 保留最近 20 条记录,自动清理过旧条目
       - 闭环: Agent执行 → 反思 → 经验写入SKILL → 下次读取改进行为
    yibo authored
    2026-03-26 16:05:18 +0800  
    Browse Code »
  • feat(p1): 工作日历系统 + 告警通道 + CEO Pipeline设计 + Master晨会日报 ...
    67b54882
    Phase 2 改进:
    
    1. 工作日历系统 (ScheduleService):
       - 新增 schedule-service.js: 公司级日程管理
       - 支持按小时调度、按周几过滤、时区感知
       - 心跳触发时自动检查到期 slots 并触发 Agent
       - 执行去重(同日同 slot 不重复触发)
       - CRUD API: GET/POST/PUT/DELETE /api/company/:id/schedule/slots
       - CLI: schedule add / schedule list
    
    2. 告警通道 (Alert Channel):
       - Pipeline 步骤超时自动告警 Master Agent
       - 心跳异常自动告警 Master Agent
       - _sendAlertToMaster() 统一告警接口
    
    3. CEO → Pipeline 自动生成:
       - CEO 模板从 3 步升级为 5 步工作流
       - 新增 Step 2: Pipeline JSON 设计(含 loop/cron/steps 结构)
       - 新增 Step 4: OKR 创建
       - Pipeline 设计输出为 CTO 搭建流水线的蓝图
    
    4. Master 晨会日报:
       - 每天 08:00 自动生成全公司运营日报
       - 包含公司状态、Pipeline 运行、OKR 进度、Agent 活跃度
       - 自动推送给 Master Agent
       - 防重复机制(每天只生成一次)
    
    5. Pipeline 驳回信息注入:
       - 驳回步骤被心跳重新触发时,__rejection 信息注入 prompt
       - 让 Agent 知道被驳回的原因和重做次数
       - 替换原有 curl 汇报指令为 task report CLI
    yibo authored
    2026-03-26 16:02:48 +0800  
    Browse Code »
  • feat(p0): Pipeline↔Task闭环 + 循环执行 + COO质量门控 ...
    e3921011
    Phase 1 核心改进:
    
    1. Pipeline↔Task 系统打通:
       - task/report 回调自动推进 Pipeline 步骤
       - findActiveRunStep() 按 agentId 定位活跃步骤
       - 扫描所有公司的 Pipeline Runs 实现跨公司桥接
    
    2. Pipeline 循环执行:
       - 新增 pipeline.loop 配置项
       - Run 完成后自动启动下一轮 (最大 maxLoops=365)
       - loopCount 计数器追踪循环轮次
    
    3. COO 质量门控:
       - 新增 rejectStep() 驳回方法,含驳回历史记录
       - POST /api/agent/task/reject API 端点
       - POST /api/company/:id/pipelines/runs/:runId/reject 路由
       - node bin/lemon.js task reject CLI 命令
       - 驳回后自动唤醒 Agent 重做,注入改进意见
    
    4. COO 模板全面强化:
       - agent.md: 4维度评分体系、质量审核流程图
       - soul.md: 性格、价值观、决策原则
       - tools.md: 新增 task reject 核心工具
       - heartbeat.md: 结构化巡检清单 + 升级规则
    yibo authored
    2026-03-26 15:55:51 +0800  
    Browse Code »
  • docs: add create-drama documentation and scripts
    17e6455e
    yibo authored
    2026-03-26 15:44:45 +0800  
    Browse Code »
  • fix: Master delegation discipline, agent-creator Write-over-Edit, task completion callback ...
    5261d0d2
    1. Rewrote master/agent.md: strict anti-overreach rules, cleaned git merge conflicts
    2. Enhanced agent-creator/agent.md: force Write tool for new files, mandatory task report
    3. Implemented task/report callback: auto-wakes sender agent to continue next steps
       - Added .tasks/ metadata persistence for dispatch→report traceability
       - task/report sends [TASK_CALLBACK] to dispatching agent on done/failed
    Yi Bo authored
    2026-03-26 15:43:42 +0800  
    Browse Code »
  • chore: sync master plan.md runtime state
    8286e30f
    yibo authored
    2026-03-26 13:05:26 +0800  
    Browse Code »
  • chore: agent training updates, OKR dashboard, satire-news-scraper skill refinement
    4e57ff87
    Yi Bo authored
    2026-03-26 13:04:21 +0800  
    Browse Code »
  • chore: sync runtime state + resolve conflicts
    0d1e6e75
    yibo authored
    2026-03-26 12:55:58 +0800  
    Browse Code »
  • fix(p0): dynamic heartbeat registration on hire + CEO single-turn continuous execution ...
    eed1fae4
    - company.js: call heartbeatService._setupAgentHeartbeat after hire
    - CEO agent.md: enforce 3-step continuous execution in same turn
    - All CXO heartbeat intervals: 5 minutes
    - task dispatch message: self-drive directive, use lemon CLI
    - bin/lemon.js: add 'task report' command
    yibo authored
    2026-03-26 12:55:50 +0800  
    Browse Code »
  • chore: agent runtime updates (digester, evolver, innovator)
    5b68a9fd
    Yi Bo authored
    2026-03-26 11:08:57 +0800  
    Browse Code »
  • chore: persist runtime agent state
    ed11d125
    yibo authored
    2026-03-26 11:00:35 +0800  
    Browse Code »
  • feat(agent): implement autonomous observer UI, namespaced agent routing, and Mas… ...
    7a5fb5f3
    …ter Agent cognitive auto-recovery loop
    
    - Refactored CompanyDashboard into read-only Observer UI
    - Enforced strict companyId:roleId namespacing across Node APIs and AgentManager
    - Added dynamic <env_status> injection to PromptBuilder for robust context
    - Introduced bin/lemon.js CLI for structured LLM tool execution
    - Implemented in-stream error interceptors for implicit silent retry loop
    yibo authored
    2026-03-26 11:00:10 +0800  
    Browse Code »
  • feat: raise FDE pass threshold to 90, fix JSON body sanitizer stream bug, add agent runtime updates
    b8f5090f
    Yi Bo authored
    2026-03-26 10:57:04 +0800  
    Browse Code »

25 Mar, 2026
17 commits
  • chore: agent runtime updates
    c01cb6c9
    Yi Bo authored
    2026-03-25 18:48:53 +0800  
    Browse Code »
  • feat(master): redesign autonomous operation system - 24/7 self-healing patrol, a… ...
    c3952f8e
    …nti-confirmation prompts, cron dedup fix
    Yi Bo authored
    2026-03-25 18:48:52 +0800  
    Browse Code »
  • improve: explicit port conflict detection in start.sh
    b3c74d6d
    yibo authored
    2026-03-25 18:23:02 +0800  
    Browse Code »
  • fix: register company routes in agent-server.js for start.sh compatibility
    7738cafd
    yibo authored
    2026-03-25 18:22:42 +0800  
    Browse Code »
  • feat(web): add Company Dashboard frontend ...
    4d6e754f
    - CompanyDashboard.vue: full company management UI
      - Company list grid with status badges
      - Company detail view with tabs (Agents/Pipelines/Goals)
      - Create company modal
      - Hire agent modal with template/training feedback
      - Template library slide-out panel
      - Pipeline flow visualization (step nodes with arrows)
      - Pipeline run history with status
      - OKR goals list
    - Route: /company registered in Vue Router
    - Build verified: all assets compiled successfully
    yibo authored
    2026-03-25 18:14:47 +0800  
    Browse Code »
  • feat(company): add autonomous Pipeline auto-trigger via heartbeat ...
    6d03688f
    - CompanyHeartbeatService: company-level heartbeat with timer registration
    - Auto-trigger: cron-based pipeline scheduling (intervalHours)
    - Active run driving: dispatch tasks to agents, timeout detection
    - CEO heartbeat: periodic company status check
    - Pipeline cron field support in definitions
    - Registered in server startup alongside agent heartbeat
    - E2E test: 113/113 passed (all phases + autonomous loop)
    yibo authored
    2026-03-25 18:08:37 +0800  
    Browse Code »
  • feat(company): implement Phase 4 - SOP Pipeline execution engine ...
    ec77ccb9
    - PipelineService: define pipelines with ordered agent-assigned steps
    - Run lifecycle: start → markStepStarted → advanceStep → complete
    - Step output automatically flows as next step input
    - Pipeline CRUD + Run management REST API routes
    - E2E test: 106/106 passed (Phase 1 + 2 + 3 + 4)
    yibo authored
    2026-03-25 17:59:11 +0800  
    Browse Code »
  • feat(company): implement Phase 3 - Company-scoped OKR + GoalsService refactor ...
    34584a52
    - GoalsService refactored: constructor accepts optional companyId
      - With companyId: goals stored in data/{companyId}/goals/
      - Without: backward-compatible data/goals/ (global)
    - Company Goals REST API: full OKR CRUD under /api/company/:id/goals
    - OKR isolation verified: different companies have independent goal spaces
    - E2E test: 81/81 passed (Phase 1 + 2 + 3)
    yibo authored
    2026-03-25 17:54:34 +0800  
    Browse Code »
  • feat(company): implement Phase 2 - Hiring Pipeline with training & benchmark ...
    2c2cde85
    - scaffoldNewAgent: create agent skeleton via AgentScaffold directly
    - depositTemplate: benchmark gating (≥95) + auto-deposit to templates/
    - hireWithTraining: full flow (template lookup → scaffold fallback)
    - Company route: /hire uses hireWithTraining, new /deposit-template endpoint
    - E2E test: 69/69 passed (Phase 1 + Phase 2)
    yibo authored
    2026-03-25 17:46:10 +0800  
    Browse Code »
  • feat(company): implement Phase 1 - Company Layer with template hiring ...
    212d022e
    - CompanyService: CRUD (create/get/list/update/shutdown)
    - Agent Hiring Pipeline: template lookup → copy → context injection
    - Template registry (_registry.json) with CEO and qa-judge initial templates
    - resolveAgentDir(companyId, agentId) unified agent directory resolution
    - Company REST API routes (/api/company/*)
    - E2E test: 46/46 passed
    yibo authored
    2026-03-25 17:42:41 +0800  
    Browse Code »
  • docs: add Agent Hiring Pipeline, template system, Company-scoped OKR to design doc 24
    49e795a7
    yibo authored
    2026-03-25 17:36:33 +0800  
    Browse Code »
  • docs: add Company Layer architecture design (24)
    f1ece951
    yibo authored
    2026-03-25 17:22:46 +0800  
    Browse Code »
  • feat: add novelai agents, update agent memories and reflections, add qa-judge updates
    ce4b2bbc
    Yi Bo authored
    2026-03-25 17:20:14 +0800  
    Browse Code »
  • feat(agent): implement active heartbeat service for autonomous cycles ...
    66cc5195
    - Extracted HeartbeatService to periodically wake up agents flagged with 'heartbeat.enabled'
    - Sends a silent [SYSTEM HEARTBEAT] message to trigger self-checks (e.g. OKR state validation)
    - Automatically integrated service dispatch hook in server startup sequence
    - Configured qa-judge to run autonomous heartbeat every 10 min
    yibo authored
    2026-03-25 17:17:16 +0800  
    Browse Code »
  • feat(okr): complete okr system with frontend dashboard and agent prompt context injection
    4d518483
    Yi Bo authored
    2026-03-25 11:56:46 +0800  
    Browse Code »
  • docs: update memory system layout and phase results
    091f46a5
    yibo authored
    2026-03-25 11:52:04 +0800  
    Browse Code »
  • fix(memory): prioritize current task relative to history for hippocampus; optimi… ...
    c45e4968
    …ze Chinese keyword extraction
    
    - Fix: The long trailing history in todo.md drowned out the actual current task keywords because English tokens (e.g. TASK, P2, from) padded the 30-keyword limit beforehand.
    - Updated extractKeywords: Process Chinese characters first as they carry more weight for NLP context intent.
    - Added userMessage prefix to searchText in buildSystemPrompt so newly dispatched tasks dominate keyword extraction.
    - End-to-end e2e test created and passed (27/27 asserts passed)
    yibo authored
    2026-03-25 11:50:24 +0800  
    Browse Code »