{"slug":"magika","name":"Magika","summary":"Magika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","kind":"resource","homepage":"https://pypi.org/project/magika/","repoUrl":"https://github.com/google/magika","docsUrl":"https://securityresearch.google/magika/","publisher":"","license":"Apache-2.0","hasMcp":false,"hasApi":false,"costRange":"unknown","composabilityRationale":"","functions":["test","route"],"functionProbabilities":[{"functionId":"test","value":0.8,"source":"06 Knowledge Library/Resources/coding/2026-09-08-google-magika.md","method":"lexical","observedAt":"2026-09-08T00:00:00.000Z"},{"functionId":"route","value":0.72,"source":"06 Knowledge Library/Resources/coding/2026-09-08-google-magika.md","method":"lexical","observedAt":"2026-09-08T00:00:00.000Z"}],"slices":[{"functionId":"test","label":"Test","note":"Magika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","cost":"unknown"},{"functionId":"route","label":"Route","note":"Magika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","cost":"unknown"}],"tweets":[],"sources":[{"kind":"human","label":"Compendium resource card","excerpt":"06 Knowledge Library/Resources/coding/2026-09-08-google-magika.md\nMagika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","at":"2026-09-08T00:00:00.000Z"},{"kind":"human","label":"Compendium resource card","excerpt":"Surfaces: Rust CLI; Python API; JS/TS npm (browser demo); Go WIP; Homebrew / cargo install magika-cli.","at":"2026-09-08T00:00:00.000Z"}],"interfaces":[{"kind":"cli"}],"origin":"seed","notes":[],"createdAt":"2026-09-08T00:00:00.000Z","updatedAt":"2026-09-08T00:00:00.000Z","stagingSeed":"leyline-0.3.0-staging","recordId":"cmp_magika","claims":{"name":"Magika","summary":"Magika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","kind":"resource","publisher":"","homepage":"https://pypi.org/project/magika/","repoUrl":"https://github.com/google/magika","docsUrl":"https://securityresearch.google/magika/","license":"Apache-2.0","costRange":"unknown","functions":["test","route"],"slices":[{"functionId":"test","label":"Test","note":"Magika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","cost":"unknown"},{"functionId":"route","label":"Route","note":"Magika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","cost":"unknown"}],"interfaces":[{"kind":"cli"}],"composabilityRationale":""},"relations":[{"from":"magika","to":"fix-cold-start-latency-in-ai-sandboxes-techniques","kind":"fills-same-slot-as","note":"Shared functions route, test. Can fill the same function slot."},{"from":"magika","to":"best-code-execution-sandbox-for-ai-agents-in-2026","kind":"fills-same-slot-as","note":"Shared functions route, test. Can fill the same function slot."},{"from":"magika","to":"onyx","kind":"fills-same-slot-as","note":"Shared functions route, test. Can fill the same function slot."}],"signals":[{"key":"has_license","value":1,"source":"component-record","method":"declared-license","observedAt":"2026-09-08T00:00:00.000Z"},{"key":"has_docs","value":1,"source":"component-record","method":"declared-docs","observedAt":"2026-09-08T00:00:00.000Z"}],"claimVerification":[],"explain":{"score":9,"formula":"100 × sum(weight × value) over observed factors only. Unobserved factors are omitted, not zeroed.","factors":[{"id":"github_health","label":"GitHub health","weight":0.18,"value":0.3,"contribution":0.054,"why":"A licence is declared. Documentation is available.","sources":[],"evidence":"observed"},{"id":"agent_use","label":"Agent use","weight":0.16,"why":"insufficient evidence","sources":[],"evidence":"insufficient"},{"id":"human_notes","label":"Human notes","weight":0.14,"why":"insufficient evidence","sources":[{"kind":"human","label":"Compendium resource card","excerpt":"06 Knowledge Library/Resources/coding/2026-09-08-google-magika.md\nMagika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","at":"2026-09-08T00:00:00.000Z"},{"kind":"human","label":"Compendium resource card","excerpt":"Surfaces: Rust CLI; Python API; JS/TS npm (browser demo); Go WIP; Homebrew / cargo install magika-cli.","at":"2026-09-08T00:00:00.000Z"}],"evidence":"insufficient"},{"id":"composability","label":"Composability","weight":0.16,"why":"insufficient evidence","sources":[],"evidence":"insufficient"},{"id":"checklist","label":"Checklist","weight":0.1,"value":0,"contribution":0,"why":"No MCP surface is declared. No API is declared. Cost is unknown. 0 of 3 checklist fields are complete.","sources":[],"evidence":"observed"},{"id":"evidence_quality","label":"Evidence quality","weight":0.14,"value":0.22849520230941842,"contribution":0.031989328323318585,"why":"2 sources cover 1 evidence types. The latest dated evidence is 2026-09-08. Freshness is omitted unless observed as a signal.","sources":[{"kind":"human","label":"Compendium resource card","excerpt":"06 Knowledge Library/Resources/coding/2026-09-08-google-magika.md\nMagika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).","at":"2026-09-08T00:00:00.000Z"},{"kind":"human","label":"Compendium resource card","excerpt":"Surfaces: Rust CLI; Python API; JS/TS npm (browser demo); Go WIP; Homebrew / cargo install magika-cli.","at":"2026-09-08T00:00:00.000Z"}],"evidence":"observed"},{"id":"benchmark","label":"Benchmarks","weight":0.12,"why":"insufficient evidence","sources":[],"evidence":"insufficient"}],"missing":["Agent use: insufficient evidence","Human notes: insufficient evidence","Composability: insufficient evidence","Benchmarks: insufficient evidence"]},"score":9}