{"data":{"slug":"1broseidon-promptext","name":"promptext","tagline":"Smart code context extractor for AI assistants","github_url":"https://github.com/1broseidon/promptext","owner":"1broseidon","repo":"promptext","owner_avatar_url":"https://avatars.githubusercontent.com/u/20682970?v=4","primary_language":"Go","stars":22,"forks":1,"topics":["ai","ai-tools","chatgpt","claude","cli","code-analysis","code-context","code2prompt","codebase","command-line-tool","context-window","developer-tools","go","golang","llm","llm-prompts","prompt-engineering","prompt-generator","tokenizer"],"archived":false,"github_pushed_at":"2026-04-12T20:05:25+00:00","maintenance_label":"Slowing","url":"https://www.graphcanon.com/tools/1broseidon-promptext","markdown_url":"https://www.graphcanon.com/tools/1broseidon-promptext.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/1broseidon-promptext","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=1broseidon-promptext","description":"Smart code context extractor for AI assistants","homepage_url":"https://chain.sh/promptext","license":"MIT","open_issues":0,"watchers":1,"ai_summary":"A Go-based tool that extracts smart code contexts from repositories to aid in prompt-based interactions with AI assistants.","readme_excerpt":"## Installation\n\n**macOS/Linux:**\n```bash\ncurl -sSL chain.sh/promptext/scripts/install.sh | bash\n```\n\n**Windows:**\n```powershell\nirm chain.sh/promptext/scripts/install.ps1 | iex\n```\n\n**Go Install (requires Go 1.19+):**\n```bash\ngo install github.com/1broseidon/promptext/cmd/promptext@latest\n```\n\n**Manual Download:**\nDownload pre-built binaries from [GitHub Releases](https://github.com/1broseidon/promptext/releases/latest)\n\nThe executable is installed as `promptext` with `prx` alias.\n\n---\n\n## Quick Start\n\nNavigate to your project directory and run:\n\n```bash\npromptext\n\n---\n\n### Installation\n\n```bash\ngo get github.com/1broseidon/promptext/pkg/promptext\n```\n\n---\n\n### Quick Start\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n\n    \"github.com/1broseidon/promptext/pkg/promptext\"\n)\n\nfunc main() {\n    // Simple extraction\n    result, err := promptext.Extract(\".\")\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    fmt.Printf(\"Extracted %d files (%d tokens)\\n\",\n        len(result.ProjectOutput.Files),\n        result.TokenCount)\n\n    // Use the formatted output\n    fmt.Println(result.FormattedOutput)\n}\n```\n\n---\n\n## License\n\nThis project is licensed under the **MIT License** — see the [LICENSE](LICENSE) file for details.\n\n---\n\n<div align=\"center\">\n\n**Built with ❤️ by the promptext community**\n\n[⭐ Star on GitHub](https://github.com/1broseidon/promptext) • [📖 Documentation](https://chain.sh/promptext) • [🐛 Report Bug](https://github.com/1broseidon/promptext/issues)\n\n</div>","github_created_at":"2024-12-16T20:06:59+00:00","created_at":"2026-07-11T23:20:33.362959+00:00","updated_at":"2026-08-02T18:01:27.86465+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"}],"tags":[{"slug":"ai-tools","name":"ai-tools"},{"slug":"code-analysis","name":"code-analysis"},{"slug":"go","name":"go"},{"slug":"prompt-engineering","name":"prompt-engineering"}],"trust":{"provenance":{"is_fork":false,"github_id":904396561,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-02T18:01:27.148Z","maintenance":{"label":"Slowing","score":36,"methodology":"github_public_v1","releases_90d":0,"days_since_push":111,"last_release_at":"2026-03-17T21:32:33Z"},"security_summary":{"status":"findings","scanner":"osv@v1","low_count":1,"high_count":0,"last_scan_at":"2026-07-11T23:20:38.561Z","medium_count":0,"scan_profile":"deps","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-08-02T18:01:27.611Z"},"languages":{"value":["go"],"source":"github.language","observed_at":"2026-08-02T18:01:27.611Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-08-02T18:01:27.611Z"}},"decision_facts":{"hosting":null,"pricing":{"model":"freemium","summary":"promptext is freely available under the MIT license. It does not directly charge for usage but potential costs might arise from integrating it into larger commercial products."},"requirements":{"notes":["promptext requires either an existing Go installation (version 1.19+) or uses one-off scripts for installation on macOS/Linux and Windows.","A compatible command-line environment is a must since promptext operates primarily through the command line."],"min_ram_gb":null,"requires_docker":false},"constraints":{"min_ram_gb":null,"pricing_model":"freemium","requires_docker":false},"when_to_use":["When you work in a Go (golang) project environment where quick, efficient code context extraction is required.","If your workflow involves frequent interactions between large codebases and AI assistants like ChatGPT or Claude, and you prefer command-line tools."],"when_not_to_use":["In projects heavily reliant on languages other than Go, as the support for extracting contexts from non-Go files is limited.","If your development setup does not allow for CLI operations. promptext's primary mode of operation is through its command-line interface."],"source":"enrich:decision_facts","observed_at":"2026-07-17T12:49:19.493Z"},"constraint_facets":{"min_ram_gb":null,"pricing_model":"freemium","requires_docker":false},"decision_summary":[{"label":"Pricing","value":"freemium - promptext is freely available under the MIT license. It does not directly charge for usage but potential costs might arise from integrating it into larger commercial products."},{"label":"Requirements","value":"promptext requires either an existing Go installation (version 1.19+) or uses one-off scripts for installation on macOS/Linux and Windows.; A compatible command-line environment is a must since promptext operates primarily through the command line."},{"label":"Adopt for","value":"For developers seeking a tool to streamline AI interaction with codebases via context extraction, promptext stands out for its Go-centric design and CLI focus."},{"label":"License detail","value":"The MIT License entails permissive terms under which developers can use, modify, and distribute the software."}]}}