{"id":39822957,"url":"https://github.com/b-a-m-n/machinist","last_synced_at":"2026-01-18T13:01:11.234Z","repository":{"id":330094792,"uuid":"1120237800","full_name":"B-A-M-N/Machinist","owner":"B-A-M-N","description":"LLM autotooling pipeline with Ollama-only models, Bubblewrap sandboxing, and a provenance-aware tool registry specializing in low parameter model inference","archived":false,"fork":false,"pushed_at":"2025-12-23T06:49:27.000Z","size":366,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-24T21:39:53.794Z","etag":null,"topics":["ai","automation","codebase-analysis","ollama","python","tooling","tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/B-A-M-N.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-20T19:18:39.000Z","updated_at":"2025-12-23T06:49:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/B-A-M-N/Machinist","commit_stats":null,"previous_names":["b-a-m-n/machinist"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/B-A-M-N/Machinist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-A-M-N%2FMachinist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-A-M-N%2FMachinist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-A-M-N%2FMachinist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-A-M-N%2FMachinist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B-A-M-N","download_url":"https://codeload.github.com/B-A-M-N/Machinist/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-A-M-N%2FMachinist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","automation","codebase-analysis","ollama","python","tooling","tools"],"created_at":"2026-01-18T13:00:51.437Z","updated_at":"2026-01-18T13:01:11.225Z","avatar_url":"https://github.com/B-A-M-N.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Machinist\n\nLLM autotooling pipeline with Ollama-only models, Bubblewrap sandboxing, and a provenance-aware tool registry.\n\n## Flow\n1. **Spec phase**: LLM produces a contract (name, signature, docstring, I/O types, failure modes, determinism).\n2. **Implementation phase**: LLM emits only the tool code.\n3. **Test phase**: LLM emits tests (unit, property-based via Hypothesis, abuse cases).\n4. **Validation phase**: run lint/static, tests, coverage; enforce sandbox policy (bwrap, no network). Only then promote to registry.\n\n## Registry\nFilesystem-backed (`registry/\u003ctool_id\u003e/metadata.json` + artifacts) storing spec, code path, tests path, test results, dependencies, security policy, capability profile, model provenance.\n\n## Sandbox\n`BwrapSandbox` isolates execution:\n- `--unshare-all` + `--no-new-privs`\n- read-only binds for system dirs\n- writable scratch at `/scratch`\n- tmpfs for `/tmp` and `/var/tmp`\n- network disabled by default\n\nAdjust policy in `machinist/sandbox.py`.\n\n## LLM integration\n`machinist/llm.py` defines an abstract `LLMClient`. `machinist/cli.py` contains `StubOllamaClient`; wire it to Ollama CLI or API (models available: `phi4-mini`, `llama3.2`, `qwen3:4b`, `qwen2.5-coder:3b`).\n\n## Interactive CLI\n```\npython -m machinist.cli\n```\nPrompts for goal and model (choices: `phi4-mini`, `llama3.2`, `qwen3:4b`, `qwen2.5-coder:3b`), shows spec/code/tests, asks before validating in the sandbox, and asks before promoting to the registry.\n\n## Notes / TODO\n- Add real Ollama client (streaming or batch).\n- Harden sandbox (cgroups, timeouts, size limits, capability filter).\n- Consider mutation testing for high-value tools.\n- Add persistence for test results and better coverage parsing.\n\n## Licensing\n\nThis software is dual-licensed:\n\n1.  **GNU Affero General Public License v3.0 (AGPL-3.0)**: This license applies to all non-commercial and public use of the software. You are free to use, modify, and distribute this software under the terms of AGPL-3.0.\n2.  **Commercial License**: For commercial entities and businesses, commercial licensing terms are available. This option allows for use in proprietary projects without the copyleft obligations of AGPL-3.0.\n\nFor commercial licensing inquiries, please contact [Your Contact Information Here].\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-a-m-n%2Fmachinist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb-a-m-n%2Fmachinist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-a-m-n%2Fmachinist/lists"}