Commit Graph

23 Commits

Author SHA1 Message Date
¨NW¨
af43eaef80 Merge remote-tracking branch 'origin/agent-sync-features' 2026-04-24 07:21:39 +01:00
¨NW¨
6b71ea2b57 feat: add .architect/ project mapping system with architect-indexer agent and Docker containerization
- Add .architect/ directory structure (10 template files) as project brain for agent orientation
- Add architect-indexer agent that scans codebase and generates structured architecture docs
- Add Docker containerization: Dockerfile.architect-indexer, docker-compose.architect.yml
- Add TypeScript project-mapper module with staleness detection and context injection
- Add /index-project command, architect-first-contact rule, project-mapping skill
- Integrate orchestrator first-contact check: triggers indexing before any task delegation
- Add npm arch:* scripts for Docker-based indexing workflow
- Register agent in capability-index.yaml and AGENTS.md
2026-04-22 20:01:38 +01:00
¨NW¨
9d85dd9f83 merge: dev into main — centralized auth + trailing-slash fix + all recent features
- Security: extricate hardcoded Gitea credentials, add centralized auth module
- Fix: get_target_repo() regex now handles trailing slashes (.rstrip('/') in Python, sed 's:/*' in Bash)
- Fix: task-analysis broken functions (orphaned req references, stray parentheses)
- Documentation: README.md, STRUCTURE.md, AGENTS.md updated with auth section
- Evolution: Entry #5 documenting credentials extrication
2026-04-19 12:20:38 +01:00
¨NW¨
573d9a641e fix(security): add rstrip('/') to get_target_repo for trailing-slash URLs
The regex r'[:/]([^/]+/[^/]+?)(?:\.git)?$' fails on URLs with trailing slashes
like 'https://git.softuniq.eu/UniqueSoft/APAW/' because the final '/' breaks
the pattern. Added .rstrip('/') in Python and sed 's:/*' in Bash to all
get_target_repo() implementations across 11 files.
2026-04-19 12:17:53 +01:00
¨NW¨
7523911812 fix(security): extricate hardcoded Gitea credentials, add centralized auth module
- Remove all hardcoded NW:eshkink0t credentials from 9 files across skills, commands, rules, and specs
- Add .kilo/shared/gitea-auth.md with get_gitea_token() and .kilo/gitea.jsonc config structure
- All Gitea API callers now use env vars (GITEA_TOKEN → GITEA_USER+GITEA_PASS → ValueError)
- Fix task-analysis/SKILL.md broken functions (orphaned req references, stray parentheses)
- Replace hardcoded UniqueSoft/APAW API URLs with get_target_repo() auto-detection in 3 files
- Update README.md, STRUCTURE.md, AGENTS.md with centralized auth documentation
- Add EVOLUTION_LOG Entry #5 documenting credentials extrication
2026-04-19 11:43:59 +01:00
¨NW¨
7445e66676 feat: add Next.js, Vue/Nuxt, React, Python (Django/FastAPI) skills and agents
- python-developer agent: Django/FastAPI backend specialist
- nextjs-patterns skill: App Router, Server Components, Server Actions, Auth.js
- vue-nuxt-patterns skill: Composition API, Pinia, Nitro server, SSR
- react-patterns skill: hooks, Context, TanStack Query, React Hook Form
- python-django-patterns skill: DRF, services, repositories
- python-fastapi-patterns skill: async, Pydantic, SQLAlchemy, dependencies
- /nextjs pipeline command for full-stack Next.js apps
- /vue pipeline command for full-stack Vue/Nuxt apps
- Updated frontend-developer with framework-specific skills
- Updated orchestrator, capability-index for Python + frontend routing
- Updated README, STRUCTURE, EVOLUTION_LOG with all new stacks

Total agents: 30. Stacks: PHP, Next.js, Vue/Nuxt, React, Python, Go, Flutter, Node.js
2026-04-19 10:04:51 +01:00
¨NW¨
b46a1a20a8 feat: add PHP development stack, atomic tasks, modular code rules, agent monitoring, fix target project detection
7 evolutionary tasks implemented:

1. PHP web development: php-developer agent + 6 skills (Laravel, Symfony, WordPress, security, testing, modular architecture) + 2 pipeline commands (/laravel, /wordpress)

2. Atomic task decomposition: 1 action = 1 task rule, task sizing guide, decomposition protocol for orchestrator, token budgets per complexity

3. Modular code rules: max 100 lines/file, max 30 lines/function, service/repository patterns, cross-module communication via events only

4. Gitea-centric workflow: mandatory issue creation before work, research with links, progress checkboxes, screenshots on test, git history as knowledge base

5. Fix: target project auto-detection — removed all hardcoded UniqueSoft/APAW from API calls, added get_target_repo() via git remote, GITEA_TARGET_REPO env override

6. Agent execution monitoring: agent-executions.jsonl logging, agent-stats.ts statistics script, required fields per invocation, Gitea comment includes duration/tokens

7. Token optimization: 1 action = 1 task principle, token budgets by task type, routing matrix, no scope creep, skip unnecessary pipeline steps
2026-04-18 23:43:04 +01:00
¨NW¨
c416f53103 refactor: clean main to starter template — remove project-specific and generated files
- Remove project-specific commands: booking, blog, commerce, landing-page, feature, hotfix
- Remove project-specific skills: booking, blog, ecommerce
- Remove generated files: EVOLUTION_LOG, WORKFLOW_AUDIT, logs/, reports/
- Add .gitignore entries for auto-generated dirs (.kilo/logs/, .kilo/reports/)
- Remove e2e_booking_flow from capability-index.yaml
- Remove docker/evolution-test/ (dev infra, not starter)
- Genericize AGENTS.md project description
- Genericize tests/README.md title

All removed content preserved on dev branch.
2026-04-17 21:11:12 +01:00
NW
3a8aa6b416 docs: update visual testing agent docs, remove test artifacts from git, add pipeline documentation
- Remove baseline screenshots from git tracking (test artifacts, not code)
- Add tests/visual/baseline/ to .gitignore
- Rewrite .kilo/agents/visual-tester.md: Docker-first pipeline, bbox extraction, console/network error detection
- Rewrite .kilo/commands/web-test.md: accurate commands, output format, agent flow
- Update .kilo/capability-index.yaml: add bbox_extraction, console_error_detection, button_overflow_detection to visual-tester
- Update AGENTS.md: add /web-test and /e2e-test commands, update visual-tester description
2026-04-16 22:48:46 +01:00
NW
e19fa3effd refactor: full agent system revision — migrate to GLM-5.1, fix delegation chains, audit consistency
- Migrate 8 agents from openrouter/qwen3.6-plus:free to ollama-cloud/glm-5.1
- Assign thinking/variant/instant depth by role complexity
- Fix broken delegation chains: system-analyst, all developer agents, devops-engineer now can reach orchestrator
- Add task permissions to browser-automation, visual-tester, capability-analyst, markdown-validator
- Add visual-tester permission to flutter-developer and frontend-developer
- Fix capability-index.yaml routing map indentation (go_* keys misplaced)
- Add delegates_to and variant fields to capability-index.yaml
- Update KILO_SPEC.md agent table with Variant column
- Update AGENTS.md with Model/Variant/CanCall columns
- Update kilo.jsonc ask agent model
- Fix YAML indentation in capability-analyst.md and markdown-validator.md
- Update agent-architect.md template models (remove gpt-oss, qwen3.6-plus)
- Add Skills Reference tables to 7 previously unlinked agents
- Full audit: 10/10 consistency checks passed
2026-04-12 22:38:41 +01:00
¨NW¨
fa68141d47 feat: add pipeline-judge agent and evolution workflow system
- Add pipeline-judge agent for objective fitness scoring
- Update capability-index.yaml with pipeline-judge, evolution config
- Add fitness-evaluation.md workflow for auto-optimization
- Update evolution.md command with /evolve CLI
- Create .kilo/logs/fitness-history.jsonl for metrics logging
- Update AGENTS.md with new workflow state machine
- Add 6 new issues to MILESTONE_ISSUES.md for evolution integration
- Preserve ideas in agent-evolution/ideas/

Pipeline Judge computes fitness = (test_rate*0.5) + (gates*0.25) + (efficiency*0.25)
Auto-triggers prompt-optimizer when fitness < 0.70
2026-04-06 00:23:50 +01:00
¨NW¨
15a7b4b7a4 feat: add Agent Evolution Dashboard
- Create agent-evolution/ directory with standalone dashboard
- Add interactive HTML dashboard with agent/model matrix
- Add heatmap view for agent-model compatibility scores
- Add recommendations tab with optimization suggestions
- Add Gitea integration preparation (history timeline)
- Add Docker configuration for deployment
- Add build scripts for standalone HTML generation
- Add sync scripts for agent data synchronization
- Add milestone and issues documentation
- Add skills and rules for evolution sync
- Update AGENTS.md with dashboard documentation
- Update package.json with evolution scripts

Features:
- 28 agents with model assignments and fit scores
- 8 models with benchmarks (SWE-bench, RULER, Terminal)
- 11 recommendations for model optimization
- History timeline with agent changes
- Interactive modal windows for model details
- Filter and search functionality
- Russian language interface
- Works offline (file://) with embedded data

Docker:
- Dockerfile for standalone deployment
- docker-compose.evolution.yml
- docker-run.sh/docker-run.bat scripts

NPM scripts:
- sync:evolution - sync and build dashboard
- evolution:open - open in browser
- evolution:dashboard - start dev server

Status: PAUSED - foundation complete, Gitea integration pending
2026-04-05 19:58:59 +01:00
¨NW¨
af5f401a53 feat: add Flutter development support with agent, rules and skills
- Add flutter-developer agent (.kilo/agents/flutter-developer.md)
  - Role definition for cross-platform mobile development
  - Clean architecture templates (Domain/Presentation/Data)
  - State management patterns (Riverpod, Bloc, Provider)
  - Widget patterns, navigation, platform channels
  - Build & release commands
  - Performance and security checklists

- Add Flutter development rules (.kilo/rules/flutter.md)
  - Code style guidelines (const, final, trailing commas)
  - Widget architecture best practices
  - State management requirements
  - Error handling, API & network patterns
  - Navigation, testing, performance
  - Security and localization
  - Prohibitions list

- Add Flutter skills:
  - flutter-state: Riverpod, Bloc, Provider patterns
  - flutter-widgets: Widget composition, responsive design
  - flutter-navigation: go_router, deep links, guards

- Update AGENTS.md: add @flutter-developer to Core Development
- Update kilo.jsonc: configure flutter-developer and go-developer agents
2026-04-05 17:04:13 +01:00
¨NW¨
b517ad5dad feat: add synchronization system for agent definitions
- Add kilo.jsonc (official Kilo Code config)
- Add kilo-meta.json (source of truth for sync)
- Add evolutionary-sync.md rule for documentation
- Add scripts/sync-agents.cjs for validation
- Fix agent mode mismatches (8 agents had wrong mode)
- Update KILO_SPEC.md and AGENTS.md

The sync system ensures:
- kilo-meta.json is the single source of truth
- Agent .md files frontmatter matches meta
- KILO_SPEC.md tables stay synchronized
- AGENTS.md category tables stay synchronized

Run: node scripts/sync-agents.cjs --check
Fix: node scripts/sync-agents.cjs --fix
2026-04-05 13:19:54 +01:00
¨NW¨
0a854a3bc3 fix: add missing agent permissions and update orchestrator mappings
- Add devops-engineer permission to orchestrator
- Add BrowserAutomation to orchestrator mappings
- Add code-skeptic task permission to devops-engineer, backend-developer, frontend-developer, go-developer
- Add security-auditor task permission to devops-engineer
- Add Task Tool Invocation section to agent files
- Add go-developer to AGENTS.md Core Development table
- Update KILO_SPEC.md with go-developer agent
2026-04-05 13:02:32 +01:00
¨NW¨
43747d9875 feat: add Docker/DevOps skills and devops-engineer agent 2026-04-05 12:47:01 +01:00
¨NW¨
348c47fa6f feat: add research cycle skill and /research command for continuous self-improvement
- Created research-cycle skill with automatic monitoring
- Added /research command for manual or automatic research
- Configured research sources: Anthropic, OpenAI, Lilian Weng
- Implemented evolution tracking workflow

Components:
- .kilo/skills/research-cycle/SKILL.md: Self-improvement logic
- .kilo/commands/research.md: Research command definition
- AGENTS.md: Added /research to command list

Milestone: Cognitive Enhancement - Agent Evolution (#47)
Related: Issue #25 (Research Milestone)
2026-04-05 02:07:08 +01:00
¨NW¨
774dc9ac40 feat: add cognitive enhancement agents based on research
Based on Anthropic 'Building Effective Agents' and Lilian Weng's research:

New Agents:
- @planner: Task decomposition using CoT, ToT, Plan-Execute-Reflect
- @reflector: Self-reflection using Reflexion pattern
- @memory-manager: Memory systems (short/long/episodic)

New Skills:
- memory-systems: Memory architecture for autonomous agents
- planning-patterns: CoT, ToT, ReAct, Reflexion patterns
- tool-use: ACI design principles from Anthropic

New Rules:
- agent-patterns: Core patterns from research

Updated AGENTS.md with new agent categories:
- Cognitive Enhancement: planner, reflector, memory-manager
- Improved workflow state machine with reflection loop

Related: Issue #25 (Research Milestone)
2026-04-05 02:01:05 +01:00
swp
298dde4273 feat: add capability-analyst and agent-architect for task coverage analysis
- Add @capability-analyst agent to analyze task requirements vs available tools
- Update @agent-architect to create new agents/workflows/skills based on gap analysis
- Add workflow for automatic review and fix task creation

Workflow:
1. @capability-analyst analyzes incoming task
2. Maps requirements to existing capabilities
3. Identifies gaps (agents, workflows, skills)
4. Recommends new components or enhancements
5. @agent-architect creates requested components
6. @capability-analyst reviews and validates

Gap types:
- Critical: No tool covers this requirement
- Partial: Tool exists but lacks feature
- Integration: Tools exist but don't work together
- Skill: Need domain knowledge

Output:
- Coverage analysis with requirements mapping
- Recommendations for new agents/workflows/skills
- Integration points and dependencies
- Handoff to @agent-architect for creation
2026-04-04 01:51:28 +01:00
swp
35bbdcb08f feat: integrate agent-manager module with KiloCode workflows
- Move agent-manager from packages/opencode/ to src/kilocode/
- Add Gitea client for pipeline logging
- Add pipeline-runner for workflow orchestration
- Create slash commands: /pipeline, /status, /evaluate
- Update AGENTS.md with workflow documentation
- Update README.md with KiloCode integration details
- Add package.json and tsconfig.json for TypeScript compilation
- Remove duplicate files from packages/opencode/

This enables:
- /pipeline <issue> - run full agent pipeline with Gitea logging
- Direct agent invocation via @mention
- Performance tracking and prompt optimization
2026-04-04 01:11:06 +01:00
swp
4a69c5323b feat: update agent models to current configuration
- Update README.md with correct model assignments for all agents
- Sync AGENTS.md and .kilo/ files with new model IDs
- Change History Miner: Gemini-3-Flash → GPT-OSS 20B
- Change System Analyst: GPT-OSS 120B → Qwen3.6-Plus (Free)
- Change Product Owner: Qwen3.5 122B → Qwen3.6-Plus (Free)
- Change Lead Developer: DeepSeek-v3.2 → Qwen3-Coder 480B
- Change The Fixer: MiniMax-m2.7 → MiniMax-m2.5
- Change SDET Engineer: Qwen3-Coder-Next → Qwen3-Coder 480B
- Change Code Skeptic: GPT-OSS 120B → MiniMax-m2.5
- Change Security Auditor: GLM-4.7 → Kimi-k2.5
- Change Release Manager: Devstral-2 123B → Qwen3-Coder 480B
- Change Evaluator: GPT-o3 → GPT-OSS 120B
- Change Prompt Optimizer: Claude 4.5 → Qwen3.6-Plus (Free)
- Add AgentArchitect agent configuration
- Update commands: plan, ask, debug, code models
- Add permissions configuration to commands
2026-04-04 00:50:22 +01:00
swp
a0ef7cd02d feat: add Agent Architect and KILO_SPEC documentation
- Add agent-architect.md for managing agent network
- Create KILO_SPEC.md with complete Kilo.ai specification
- Update AGENTS.md with Agent Architect reference
- Update kilo.jsonc with agent-architect configuration
2026-04-03 20:27:54 +01:00
swp
47219c4204 feat: реорганизация структуры агентов и добавление skills согласно документации Kilo Code
- Добавлен skill gitea для автоматизации git операций
- Добавлены правила безопасности для работы с credentials
- Указан публичный URL проекта: https://git.softuniq.eu/UniqueSoft/APAW
- Реализованы безопасные методы аутентификации (SSH, tokens, credential store)
2026-04-03 20:14:22 +01:00