{"id":26026095,"url":"https://github.com/k2/a-finite-monkey-engine","last_synced_at":"2025-06-27T21:36:00.876Z","repository":{"id":280701820,"uuid":"942870708","full_name":"K2/a-finite-monkey-engine","owner":"K2","description":"async rewrite the dual sync/async got really difficult to maintain w/o a fresh start/ poring remaining functionality as we go","archived":false,"fork":false,"pushed_at":"2025-03-04T21:28:21.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T21:31:38.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/K2.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}},"created_at":"2025-03-04T20:10:14.000Z","updated_at":"2025-03-04T21:28:24.000Z","dependencies_parsed_at":"2025-03-04T21:31:45.430Z","dependency_job_id":null,"html_url":"https://github.com/K2/a-finite-monkey-engine","commit_stats":null,"previous_names":["k2/a-finite-monkey-engine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K2%2Fa-finite-monkey-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K2%2Fa-finite-monkey-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K2%2Fa-finite-monkey-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K2%2Fa-finite-monkey-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/K2","download_url":"https://codeload.github.com/K2/a-finite-monkey-engine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242230865,"owners_count":20093628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-03-06T14:51:31.944Z","updated_at":"2025-03-06T14:51:32.568Z","avatar_url":"https://github.com/K2.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Finite Monkey Engine\n\nA comprehensive smart contract security analysis framework with multi-agent architecture and asynchronous processing.\n[![CI](https://github.com/K2/a-finite-monkey-engine/actions/workflows/python-publish.yml/badge.svg?branch=main)](https://github.com/K2/a-finite-monkey-engine/actions/workflows/python-publish.yml)\n## Features\n\n- **Asynchronous Architecture**: Fully asynchronous workflow processing for handling large codebases efficiently\n- **Multi-LLM Support**: Supports multiple LLM providers (Ollama, Claude, OpenAI) for different analysis tasks\n- **Specialized Agents**: Dedicated agents for research, validation, and documentation\n- **Vector Store Integration**: LlamaIndex-based vector store for efficient code analysis\n- **TreeSitter Analysis**: Semantic code analysis using TreeSitter\n- **Web Interface**: Interactive web interface for project management and result visualization\n- **Cognitive Bias Analysis**: Identifies cognitive biases in code that may lead to vulnerabilities\n- **Interactive Console**: Built-in IPython console with syntax highlighting for debugging\n\n## Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/a-finite-monkey-engine.git\ncd a-finite-monkey-engine\n\n# Install dependencies with uv (recommended)\nuv pip install -e .\n\n# Or with pip\npip install -e .\n```\n\n## Configuration\n\nFinite Monkey Engine is configured through environment variables, `.env` file, or command-line arguments. Key configurations:\n\n- `WORKFLOW_MODEL`: Default LLM model for workflow\n- `CLAUDE_API_KEY`: API key for Claude integration\n- `OPENAI_API_BASE`: Base URL for OpenAI/Ollama API\n- `VECTOR_STORE_PATH`: Path to LanceDB vector store\n\n## Usage\n\n### Command Line Interface\n\n```bash\n# Analyze a single contract\n./run.py analyze -f examples/Vault.sol\n\n# Analyze all contracts in a directory\n./run.py analyze -d examples/\n\n# Generate visualization for a contract\n./run.py visualize examples/Vault.sol\n\n# Analyze contracts and generate visualization\n./run.py full-audit -f examples/Vault.sol\n```\n\n### Python API\n\n```python\nfrom finite_monkey.agents import WorkflowOrchestrator\n\nasync def main():\n    orchestrator = WorkflowOrchestrator()\n    \n    # Run a complete audit\n    report = await orchestrator.run_audit(\n        solidity_path=\"examples/Vault.sol\",\n        query=\"Check for reentrancy vulnerabilities\"\n    )\n    \n    # Save the report\n    await report.save(\"report.md\")\n\n# Run with asyncio\nimport asyncio\nasyncio.run(main())\n```\n\n## Web Interface\n\n```bash\n# Start the web interface\npython -m finite_monkey web\n```\n\n## Development\n\nSee `NEXT_STEPS.md` for current roadmap and priorities.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk2%2Fa-finite-monkey-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk2%2Fa-finite-monkey-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk2%2Fa-finite-monkey-engine/lists"}