{"id":50351079,"url":"https://github.com/srid/nix-agent-wire","last_synced_at":"2026-05-29T21:01:18.767Z","repository":{"id":325172260,"uuid":"1093705530","full_name":"srid/nix-agent-wire","owner":"srid","description":"Nix Autowiring for LLM Agents","archived":false,"fork":false,"pushed_at":"2026-03-16T22:11:04.000Z","size":65,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-17T07:35:06.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srid.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-10T18:19:38.000Z","updated_at":"2026-03-16T22:11:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/srid/nix-agent-wire","commit_stats":null,"previous_names":["srid/ai","srid/nix-agent-wire"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srid/nix-agent-wire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fnix-agent-wire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fnix-agent-wire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fnix-agent-wire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fnix-agent-wire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srid","download_url":"https://codeload.github.com/srid/nix-agent-wire/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fnix-agent-wire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33670211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-05-29T21:01:18.014Z","updated_at":"2026-05-29T21:01:18.755Z","avatar_url":"https://github.com/srid.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nix Autowiring for LLM Agents\n\nHome-manager modules that auto-wire standard configuration formats for LLM coding agents.\n\n## Why\n\nLLM agents like Claude Code and OpenCode need configs scattered across multiple files and formats. This module lets you:\n\n- Keep all agent configs in one directory structure\n- Auto-discover and wire configs without manual symlinks\n- Share configs across machines via Nix\n\n## Supported Agents\n\n| Agent | Module |\n|-------|--------|\n| Claude Code | `homeModules.claude-code` |\n| OpenCode | `homeModules.opencode` |\n\n## Usage\n\nAdd to your home-manager config:\n\n```nix\n{\n  inputs.nix-agent-wire.url = \"github:srid/nix-agent-wire\";\n\n  outputs = { inputs, ... }: {\n    homeConfigurations.myuser = inputs.home-manager.lib.homeManagerConfiguration {\n      modules = [\n        inputs.nix-agent-wire.homeModules.opencode\n        {\n          programs.opencode.autoWire.dirs = [ ./my-agent-config ];\n        }\n      ];\n    };\n  };\n}\n```\n\n## Directory Structure\n\n```\nyour-config/\n├── memory.md            # Global rules/context (injected into every session)\n├── agents/*.md          # Sub-agents for specialized tasks\n├── commands/*.md        # Slash commands (/my-command)\n├── skills/*/SKILL.md    # Reusable skill modules\n├── mcp/*.nix            # MCP server configs\n└── settings/*.nix       # Tool-specific settings\n```\n\n### File Types\n\n| File | Purpose |\n|------|---------|\n| `memory.md` | Rules/context added to every conversation. Put coding standards, git policies, tool preferences here. |\n| `agents/*.md` | Specialized sub-agents. Each has YAML frontmatter with `name`, `description`, `tools`. |\n| `commands/*.md` | Slash commands invoked as `/command-name`. Automate repetitive workflows. |\n| `skills/*/SKILL.md` | Reusable skill modules. Loaded on demand when working with specific file types or frameworks. |\n| `mcp/*.nix` | MCP server definitions. Return `{ command, args }` attrset. |\n| `settings/*.nix` | Agent-specific settings (e.g., `claude-code.nix` for Claude Code permissions). |\n\n## Examples\n\n- [srid/nixos-config](https://github.com/srid/nixos-config/tree/master/AI) - Srid's configuration\n- [juspay/AI](https://github.com/juspay/AI/tree/main/.agents/) - Collection of reusable skills for LLM coding agents\n- `example/` in this repo - Minimal template showing all file types\n\n## CI\n\nRun locally: `vira ci -b`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fnix-agent-wire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrid%2Fnix-agent-wire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fnix-agent-wire/lists"}