ijfw-metrics

Solid

Internal session metrics tracking. Auto-triggered at session boundaries. Tracks tokens, agent usage, efficiency gains. View with /ijfw-status.

AI & Automation 184 stars 32 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
75
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# IJFW Metrics -- Internal Tracking Lightweight metrics captured at session boundaries via hooks. Zero per-turn cost. All tracking happens in the Stop hook. ## What We Track At each session end, append to `.ijfw/metrics/sessions.jsonl`: ```json { "timestamp": "2026-04-13T14:30:00Z", "session_id": "<session-id>", "duration_minutes": 45, "turns": 23, "mode": "smart", "effort": "high", "agents_dispatched": { "scout": 8, "builder": 12, "architect": 3 }, "memory_ops": { "stores": 5, "recalls": 2, "searches": 1 }, "skills_loaded": ["ijfw-core", "ijfw-commit", "ijfw-review"], "compactions": 1, "handoff_generated": true, "routing": "OpenRouter + local model" } ``` ## Derived Metrics (calculated on /ijfw-status) From the JSONL log, compute: **Efficiency:** - Average turns per session - Agent distribution (% scout vs builder vs architect) - Estimated token savings from model routing: - scout turns x (opus_price - haiku_price) = routing savings - builder turns x (opus_price - sonnet_price) = routing savings **Quality:** - Sessions with handoff generated (continuity metric) - Memory operations per session (knowledge accumulation) - Compaction count (context pressure indicator) - Skills loaded per session (specialisation usage) **Cost Projection:** Using Anthropic pricing (per 1M tokens): - Haiku: $0.25 input / $1.25 output - Sonnet: $3 input / $15 output - Opus: $15 input / $75 output If smart routing sent 40% of turns to ...

Details

Author
FerroxLabs
Repository
FerroxLabs/ijfw
Created
1 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category