Skip to content

beatzip/archeon

Repository files navigation

πŸ›οΈ Archeon

Archeon

Understand any Rust codebase in 30 seconds.

Semantic code comprehension engine for Rust.

Install β€’ Commands β€’ Architecture β€’ Examples β€’ License

Build a semantic knowledge graph of your project and ask human questions instead of searching files.

Rust License Tests Zero Dependencies Status

Not a linter. Not a formatter. Not another grep.
Archeon is a code comprehension engine.


✨ Why Archeon?

Most tools answer:

"Where is this function?"

Archeon answers:

  • 🧠 What does this function actually do?
  • πŸ•ΈοΈ What depends on it?
  • 🚦 How do I get from A to B?
  • πŸ“ˆ Which components are most important?
  • 🩺 What should I fix first?
  • πŸ—οΈ How is this project architected?

πŸš€ Demo

archeon analyze serde
Repository
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Language          Rust
Architecture      Mixed
Definitions       4762
Dependencies      2847
Resolver          53.8%

Health Score
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 58/100   Grade C

Repository Scorecard

Architecture      B
Maintainability   B
Complexity        C
Coupling          A
Testing           N/A

Architectural Hubs

1. Str (Struct)
2. test (Function) β—‰ HUB

⚑ Four Commands

πŸ” Analyze

Understand an entire repository.

archeon analyze <path>

βœ” Health Score

βœ” Repository Scorecard

βœ” Architectural Hubs

βœ” Insights

βœ” Dependency Graph


🧠 Explain

Understand any symbol.

archeon explain add
add

This is a domain service.

Belongs to:
Domain Layer

Used by:
5 symbols

Impact:
Low

Architectural violations:
None detected

Confidence:
86%

πŸ›£ Journey

Find how two symbols are connected.

archeon journey main add
main
  β”‚
  β–Ό
add

Confidence 80%

🩺 Doctor

Prioritized improvements.

archeon doctor serde
Priority 1
Remove circular dependency
+8 Health

Priority 2
Split UserService
+5 Health

Estimated Health
73/100 (B)

βš™ Installation

Cargo

cargo install archeon-cli

Build from source

git clone https://github.com/beatzip/Archeon-Ai.git

cd Archeon-Ai

cargo build --release

πŸ— Architecture

        Scanner
            β”‚
            β–Ό
        Tree-sitter
            β”‚
            β–Ό
      Symbol Engine
            β”‚
            β–Ό
        Resolver
            β”‚
            β–Ό
     Intelligence Engine
            β”‚
            β–Ό
     Reasoning Engine
            β”‚
            β–Ό
      Human Narrative

🧬 Pipeline

Files
   β”‚
   β–Ό
AST
   β”‚
   β–Ό
Definitions
   β”‚
   β–Ό
Dependency Graph
   β”‚
   β–Ό
Semantic Knowledge
   β”‚
   β–Ό
Human Explanation

🎯 Why not grep?

Question grep Archeon
Find a symbol βœ… βœ…
Find callers ❌ βœ…
Explain what it does ❌ βœ…
Discover architecture ❌ βœ…
Find critical components ❌ βœ…
Find path A β†’ B ❌ βœ…
Prioritize technical debt ❌ βœ…

πŸ“š Commands

Command Description
analyze Repository overview
explain Explain any symbol
journey Trace dependencies
doctor Prioritized improvements

πŸ”§ Global Flags

--verbose
--debug
--json
--check

🚦 Exit Codes

Code Meaning
0 Success
1 Critical insights found (--check)
2 CLI error
3 Parse error
4 Invalid arguments

🧩 How Archeon is Different

Traditional static analyzers tell you:

❌ "Something is wrong."

Archeon tells you:

βœ… "Here's how this part of the system works, why it matters, and what to improve first."


πŸ“„ License

MIT

About

Open-source AI cognitive framework built in Rust for modular reasoning, knowledge exploration, and autonomous intelligence.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages