AJAN AÇIKLAMASI Use when auditing ajan fleet activity and consumption.
Agent Fleet Audit
When to Use
Use for a multi-profile ajan health review covering recent activity, estimated consumption, skill telemetry, Markdown footprint, and storage. Do not use it to inspect private conversation content or to make policy changes without approval.
Scope and safety
- Read
~/AGENTS.md and the hermes-agent skill before inspecting ajan profiles.
- Exclude deleted profiles and prohibited/private data zones. Use only metadata, counters, schemas, sizes, and telemetry unless the user explicitly requests conversation content.
- Never read or expose
.env, auth stores, tokens, vault data, personal backups, or health data.
- Treat model routing, retention, skill archive/removal, database maintenance, and scheduled telemetry as policy changes; present evidence and obtain the user's choice first.
Collection
- Use read-only SQLite connections to each non-deleted
profiles/*/state.db.
- For a stated window (default 7 days), collect from
sessions:
- active session count, messages, tool/API calls, and last activity;
- only describe it as session activity, not a billing source.
- Collect cost from
session_model_usage filtered by last_seen:
- group provider/model/profile;
- report
estimated_cost_usd, actual_cost_usd, cost_status, cost_source, and whether first_seen predates the window;
- label it estimated when actual cost is zero or absent.
- Collect async-delegation state and current compression cooldowns. Do not treat historical counter values as live failures.
- Parse each profile's
skills/.usage.json; group by created_by, state, use_count, last_used_at, and pinned. Only curator-managed agent-created skills are candidates for curation.
- Inventory Markdown by metadata only. Exclude
node_modules, cache, sessions, logs, runtime, archives, and generated dependencies. Separate SKILL.md from other Markdown.
- Assess SQLite compaction with
PRAGMA page_count and freelist_count. Recommend VACUUM only when free-page ratio makes its benefit material and profiles can be paused.
Recurring telemetry
- For a daily consumption series, save a metadata-only cumulative
session_model_usage baseline once per calendar day and calculate the next report as the difference between baselines. Do not filter rows merely by last_seen and call the sum daily consumption, because a long-lived aggregate row includes its earlier calls.
- Give the snapshot script a narrow path and explicit retention; prune only that script's dated outputs after the user approves the retention period.
- Use a no-agent cron job for deterministic collection and a separate summary job for delivery. Test the scripts directly before registering the jobs, then trigger one scheduler run and wait for its background outcome before claiming the schedule works.
- Do not use cron delivery
origin as a visible desktop/CLI report target; choose the owning profile's Bot Chat only when the user asks for delivery, because an origin without a live gateway channel is local-only.
Interpretation
- Do not add
sessions.estimated_cost_usd and session_model_usage.estimated_cost_usd: differing granularity can double-count or omit model switches. Use the latter for cost; state any coverage caveat.
- Large SQLite databases with low freelist ratios are retention questions, not compaction bugs.
- Large on-demand skills affect context only when loaded; recommend splitting bulky high-use skills into concise routing body plus references, but obtain approval before restructuring them.
- A stale skill is not automatically safe to archive; check provenance, pinning, and role fit first.
Output
Write a timestamped analysis under solution-center/analysis/ using:
Sorun → Kanıt → Neden → En küçük güvenli çözüm → Test → Tekrarını önleyen kural.
End with a compact decision set covering: model-quality/cost policy, retention/archival policy, and telemetry cadence. Verify every file write, and avoid unverified savings claims.