infra_advisor
Skill2 starsChanged 3 months agoMITView on GitHub
Audit the local cluster's hardware/software/MCP setup and recommend changes that cut token cost — GPU upgrades, Hailo NPU for vision, moving the inference node to Linux, running Qdrant locally, wiring MCP — with an ASCII cluster diagram. Also provides an auto one-pass audit (directives + infra + code duplication + skills) on the project. Use when the user asks how to reduce token/usage cost via hardware/infra, wants cluster setup tips, an ASCII diagram of their setup, or a quick all-in-one audit.
In this repository75 other files it gives its agents.
- AGENTS.mdAGENTS.md
- clean-cacheSkill
- agent-cacheSkill
- app_testSkill
- asset-qualitySkill
- auto_distillSkill
- auto-memorySkill
- auto_routerSkill
- benchSkill
- bootstrapSkill
- botte-proxySkill
- cacheSkill
- capabilitiesSkill
- cardinalSkill
- cavemanSkill
- checkupSkill
- clarificationSkill
- clusterSkill
- code_fingerprintSkill
- completion_proofSkill
- conductorSkill
- context_budgetSkill
- context_profilerSkill
- context_slicerSkill
- context_windowsSkill
- control_loopSkill
- cost_estimatorSkill
- cwe_kbSkill
- dag_optimizerSkill
- dashboardSkill
- decision-ladderSkill
- demoSkill
- diff_languageSkill
- directives_auditSkill
- docgenSkill
- docs_stewardSkill
- eventsSkill
- fallow_likeSkill
- fast_contextSkill
- fixSkill
- harness_deltaSkill
- hermes-bridgeSkill
- hf_provenanceSkill
- ingestSkill
- llm_backendsSkill
- llm_mcpSkill
- loaderSkill
- mcp_gatewaySkill
- meta_harnessSkill
- metricsSkill
- migration_auditSkill
- monte_cristoSkill
- mousquetairesSkill
- nlp_deterministicSkill
- nn_auditSkill
- prefix-prunerSkill
- prefix_treeSkill
- preflightSkill
- prompt_improverSkill
- reportSkill
- The first 60 shown.
The file
Files
infra_advisor — cut token cost beyond the code
Most audits only look at code. This looks at the machine and the local cluster and recommends concrete hardware/software/infra changes that move work off paid cloud models — then bundles a fast one-pass audit of the project.
Commands
# Cluster tips + ASCII diagram
python -m skills.infra_advisor.cli tips
python -m skills.infra_advisor.cli tips --subnet --json
# One-pass audit on the project where Botte Secrète is installed
python -m skills.infra_advisor.cli auto .
python -m skills.infra_advisor.cli auto /path/to/project --jsonInfra tips (rules, prioritized P0→P3)
- Install a local LLM (LM Studio/Ollama) if none — the foundation for any saving.
- Add/upgrade a GPU (≥12-16 GB VRAM) → run a 7-14B coder locally.
- Add a Hailo-8 / 8L / 10 NPU → vision (detection/OCR/PDF) at ~0 tokens via
media_loader. - Move the always-on inference node to Linux/WSL2 → no forced Windows reboots/updates killing the endpoint; more free VRAM/RAM.
- Run Qdrant locally → unlock the semantic response cache (-60% repeats).
- Dedicate the strongest host as a shared inference node for all projects.
- Wire the MCP server (
bootstrap) so the agent actually uses the local tools.
Each tip carries why and an impact (expected token/cost effect). An ASCII
cluster diagram is rendered by default (--json for machine-readable).
Auto audit
auto combines the cheap, reliable passes into one report:
directives health (directives_audit) · infra tips + diagram · duplicate
function bodies across files (stdlib AST, free) · skill catalog size · plus
pointers to deeper passes (full mousquetaires/fallow pipeline, skill_project_optimizer,
understand-anything, botte terminal compression).
Exposed via [[llm_mcp]] as infra_tips and auto_audit. Related: [[bootstrap]],
[[llm_backends]], [[directives_audit]], [[skill_finder]].
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

