Commit Graph

2107 Commits

Author SHA1 Message Date
clever-agent 31d281bee2 build: added 1m context qwen endpoint auto-working-v4 2026-05-05 03:45:57 -04:00
clever-agent bcf83a6a69 build: fixed broken endpoint settins 2026-05-05 03:12:19 -04:00
clever-agent f212ca17dd build: Added another endpoint to the config 2026-05-05 03:06:13 -04:00
clever-agent 0bf221594a build: Fixed minor typo in model name 2026-05-05 01:54:05 -04:00
clever-agent 2b4c0aad9c build: Added new minimax endpoint 2026-05-05 01:52:06 -04:00
clever-agent 94f75fcdd0 build: Trying weak reasoning model instead 2026-05-04 13:40:26 -04:00
clever-agent 99f7c0e079 build: Trying stronger instruct model 2026-05-04 12:32:42 -04:00
clever-agent f6a5601b61 build: strengthened the never ask questions directive 2026-05-04 11:53:13 -04:00
clever-agent 870c799647 build: Fixed permissions to allow for a few more commands and trying to block questions 2026-05-04 11:45:04 -04:00
clever-agent 931892b8d1 build: added new endpoints, trying new models 2026-05-04 00:13:22 -04:00
clever-agent c9a21671c8 build: resolving from environment variables and not passing when present 2026-05-03 16:51:22 -04:00
clever-agent 328dd5ab0f build: For extra protection added a deny to all sudo in bash 2026-05-03 15:51:57 -04:00
clever-agent 4ef80bffb4 build: Odd workaround to get permissions honored by all models 2026-05-03 15:45:52 -04:00
clever-agent d443daee23 build: moving back to qwen as the main model 2026-05-02 23:39:58 -04:00
clever-agent 121b57510f build: added explicit read/write permissions across all agents 2026-05-02 23:07:44 -04:00
clever-agent 7a1d748665 build: switched to kimi default model 2026-05-02 22:42:46 -04:00
clever-agent 29ac9b447e build: made auto-agents script executable 2026-05-02 21:37:01 -04:00
freemo 7c10bc861c build: Used new tiers 2026-05-02 18:03:29 -04:00
HAL9000 27176b8d7f feat(agents): add templating-vault skill and fix supervisor fleet monitoring
Add a new templating-vault skill that provides secure key-value storage,
Nunjucks template rendering, and a prompt-by-reference protocol that
prevents LLM credential corruption across multi-hop prompt passing.

Key features:
- Script-enforced literal/non-literal variable classification
- Multi-store data directories with prefix-based key routing
- Write-once, type validation, and access level enforcement
- Prompt prepare/retrieve flow so LLMs never reproduce credentials
- Cascading YAML config with CLI --store-dir prefix:path syntax

Also fixes five issues found in the auto-agents overnight failure:
- Fix 1: Fleet verification in auto-agents main loop detects and
  relaunches missing supervisors
- Fix 2: Health evaluator no longer counts sleep as meaningful activity
- Fix 3: Supervisors report credential errors instead of silently
  entering idle loops; parent agents verify and correct
- Fix 4: New task-discovery-util subagent absorbs large fetch output
  to prevent supervisor context pollution
- Fix 5: Supervisor self-diagnostic after 3 consecutive idle cycles
auto-working-v3
2026-04-23 02:17:26 -04:00
HAL9000 9dc18bfadd build(agents): standardize critical rules formatting and emphasize verbatim credential passing 2026-04-22 04:34:33 +00:00
freemo ed0d7a723e feat(agents): register pr-review-supervisor in auto-agents orchestrator
Add pr-review-supervisor to the managed supervisors table with session tag
AUTO-REV-SUP and worker pool ceil(max_workers / 2). Add launch operation
that maps reviewer bot credentials (FORGEJO_REVIEWER_*) as the supervisor's
primary forgejo pat/username/password, keeping the review pipeline on a
separate identity from the primary bot.
2026-04-22 03:56:37 +00:00
HAL9000 c35918e921 build: minor table alignment cleanup 2026-04-21 23:46:06 -04:00
freemo 52e883836b feat(agents): add pr-review-supervisor and pr-review-worker with five-bucket review pipeline
Introduce a new supervisor/worker pair for automated peer review of pull
requests. The supervisor dispatches workers based on five prioritised task
groups that partition all unapproved PRs (verified with zero overlap against
live data). The worker performs formal code reviews using the 10-category
CONTRIBUTING.md checklist and submits reviews via the Forgejo API.

New scripts (5): list_prs_addressed_changes_ci_passing,
list_prs_no_active_review_ci_passing, list_prs_addressed_changes_ci_failing,
list_prs_no_active_review_ci_failing, list_prs_missing_ci_checks.

Both agents run entirely on the reviewer bot identity — no primary bot
credentials are used or required.
2026-04-22 03:39:45 +00:00
HAL9000 1602a6e0e0 build: properly passing along key arguments to supervisors auto-working-v2 2026-04-21 20:51:42 -04:00
HAL9000 93df2ca9c4 build: Tweaked permissions to prevent call to plain sleep and encourage usage of scripts. 2026-04-21 20:35:17 -04:00
HAL9000 8043e41397 build: cleaned up the health check process so it relies on the subagent rather than doing it manually in the primary agent 2026-04-21 20:22:45 -04:00
HAL9000 7a0403bf1c build: does worker count per supervisor now 2026-04-21 19:51:16 -04:00
HAL9000 51b91ea9f3 docs: clarify parameter resolution and default values in agent documentation
- Add explicit guidance on parameter resolution order (prompt > fetch > env > default)
- Standardize parameter tables with Default column across all agent docs
- Add max_workers parameter documentation with default of 4
- Move CRITICAL tool execution note earlier in supervisor.md
- Improve table formatting consistency across agent specifications
2026-04-21 23:27:01 +00:00
HAL9000 3c75f40bc8 build: supervisors now cleanup their old sessions after 5 minutes too 2026-04-21 17:11:29 -04:00
HAL9000 f003959d2b build: fixed the fact that busy slots were occupied by idle supervisors 2026-04-21 16:57:15 -04:00
freemo 06c0accc3f build: add --status filter to session_find_by_prefix
Allow filtering matched sessions by busy, idle, or all (default).
Avoids the need for downstream jq filtering when callers only care
about one status.
2026-04-21 16:53:54 -04:00
HAL9000 1c8d29c1f5 build: the supervisor and primary agent now use a script to mroe effeciently wait 2026-04-21 16:17:59 -04:00
freemo 4d6e66ba13 build: add session_wait_till_idle blocking scripts and wrappers
Add a polling-based blocking mechanism that gates session launches on
current pool utilization. The core script counts busy sessions by mode
(supervisors via -SUP suffix, workers via tag-prefix with -SUP exclusion)
and blocks until the count drops below a configurable threshold or a
mandatory timeout is reached. Two convenience wrappers provide
purpose-specific CLIs for each use case.
2026-04-21 19:17:34 +00:00
freemo 20c4920885 build: made all scripts executable permissions 2026-04-21 14:47:06 -04:00
HAL9000 61207885d8 build: fixed some tag-prefix inconsistency 2026-04-21 14:23:24 -04:00
HAL9000 275a2454d2 build: Made the steps for supervisor more explicit and lowered the model back to o4-mini in an attempt to get effective cheap results 2026-04-21 14:04:14 -04:00
HAL9000 23dfbb78e5 build: raised supervisor model to haiku, only model with reliable success right now auto-working-v1 2026-04-21 13:26:29 -04:00
HAL9000 d67e4db92b build: fixed a bug with tier escalation where some tiers would fail on a bad reasoningEffort setting 2026-04-21 12:35:08 -04:00
HAL9000 1a27d89e12 build: made sub-prompt passed to workers more explicit so poor models wont mistake it for their own prompt 2026-04-21 12:21:04 -04:00
HAL9000 ac7b5ba78e build: made the permissions more permissive so the agents can perform their jobs 2026-04-21 11:36:55 -04:00
HAL9000 4492096936 fix(agents): restrict mkdir permissions to /tmp/* and update supervisor config 2026-04-21 14:30:05 +00:00
HAL9000 685de91870 fix(agents): switch supervisor model from o4-mini to claude-haiku-4-5
o4-mini consistently stops after completing the task-group fetch phase
without transitioning to the dispatch phase. This was reproduced across
9 test rounds with various prompting strategies (anti-narration rules,
checkpoints, simplified dispatch). The model treats data gathering as
a complete unit of work and stops generating before making dispatch
tool calls. Haiku with max reasoning showed better multi-step
continuation in earlier rounds.
2026-04-21 05:03:35 +00:00
HAL9000 014f7939df fix(agents): restore git-remote fallback for optional env vars (FORGEJO_OWNER/REPO not set)
FORGEJO_OWNER and FORGEJO_REPO are not set as environment variables
in this environment — they were always resolved by parsing git remote.
The previous commit made printenv the only source and exited on empty,
breaking startup. Now: required vars (PAT, email, name) still exit on
empty, but optional vars (URL, owner, repo) fall back to parsing
git -C /app remote get-url origin.
2026-04-21 04:50:28 +00:00
HAL9000 5beafe6650 fix(agents): eliminate credential copying — all agents read from env vars via printenv
Root cause: the model introduced a single-character typo when copying
the 40-char hex PAT through the prompt chain (auto-agents → thin wrapper
→ supervisor). This is unreliable by nature — LLMs cannot reliably
copy long opaque strings.

Fix: remove all credential lines from supervisor launch prompts and
thin-wrapper prompt templates. The generic supervisor now reads all
credentials directly from environment variables using printenv commands
at startup. The exact strings returned by printenv are used throughout,
eliminating any opportunity for the model to corrupt them.
2026-04-21 04:28:22 +00:00
HAL9000 bb41c4e69e fix(agents): fix checkpoint permissions + simplify dispatch to eliminate per-task API calls
- Change checkpoint from echo (blocked by 'echo $*' pattern) to sleep 0
- Rewrite dispatch step to launch ONE worker at a time sequentially
  instead of batching, reducing cognitive load on the model
- Simplify implementation supervisor worker parameters: always pass
  default tier values (tier 1/haiku, is_first_attempt=true) and let
  the worker's dispatcher mode handle escalation logic by reading
  comments itself. This eliminates 14+ API calls the supervisor was
  supposed to make before each dispatch cycle.
2026-04-21 04:13:50 +00:00
HAL9000 06a3d917ca fix(agents): file-based prompt construction + pool size 16 for reliable template substitution
Replace in-memory variable substitution with Write-to-file approach
for both thin-wrapper supervisors. The model writes the prompt to
/tmp with actual values, then reads it back to verify no placeholders
remain. This eliminates the intermittent failure where o4-mini passes
raw {variable} strings instead of substituting actual credentials.

Also increases worker pool size from 4 to 16 for both supervisors
and removes {variable} placeholders from the fetch algorithm section
(replaced with ACTUAL_* markers that must be substituted).
2026-04-21 03:47:59 +00:00
HAL9000 43b102eea6 fix(agents): add tool-call checkpoints to supervisor main loop to prevent stop-after-fetch
The o4-mini model consistently stops generating after fetching task
groups instead of proceeding to the dispatch phase. Adding mandatory
bash echo checkpoints between fetch and dispatch forces the model
to stay in tool-calling mode through the critical transition.
2026-04-21 03:26:22 +00:00
HAL9000 aaac36a010 fix(agents): refine git safety permissions across all worker and utility agents
Applies improved git permission restrictions to prevent workers from
corrupting the main /app repository. Extends protections beyond
implementation-worker to all agents with git bash access.
2026-04-21 03:13:50 +00:00
HAL9000 a6019570d5 fix(agents): resolve worker dispatch failures and prevent /app corruption
- Fix listissues typo to list_issues in implementation-supervisor
- Remove references to non-existent forgejo-label-manager and
  automation-tracking-manager agents from permissions and prompts
- Fix session tag format: remove brackets from tags in auto-agents
  templates so session scripts match correctly
- Clarify session_tag docs in async-agent-util (must not include brackets)
- Add anti-narration rules to supervisor to force tool calls over text
  output, preventing context-saturation stop failures
- Strengthen continue logic in both thin-wrapper supervisors to always
  re-invoke with task_id instead of narrating and stopping
- Replace vague skill-loading fetch algorithms with exact script
  invocation and jq compaction to eliminate trial-and-error startup
  and prevent context window overflow from raw Forgejo JSON
- Deny git checkout/switch/branch-D/reset-hard in implementation-worker
  bash permissions to prevent workers from corrupting the main repo
2026-04-21 02:59:38 +00:00
freemo ecd3ea4b87 build(agents): add session health evaluation system and session management scripts
Introduces a two-tier session health evaluation pipeline (session-health-evaluator,
session-health-quick-evaluator, session-health-full-evaluator) and a complete set
of TypeScript session management CLI scripts (session_api, session_start, session_stop,
session_prompt, session_list, session_messages, session_find_by_tag,
session_find_by_prefix, session_health_data, session_delete) with matching
reference documentation. Updates async-agent-util and the auto-agents-system skill.
2026-04-21 01:18:42 +00:00