joern
AGENTS.md3.6k starsChanged 4 years agoApache-2.0View on GitHub
AGENTS instructions =================== Joern is a Scala 3 platform that turns source code, bytecode and binaries into Code Property Graphs (CPGs) and queries them. The main developer documentation is the Contributor's guide. Compiling with sbt ------------------ Always scope to the module you are working on. Compiling or testing the whole build is slow. Module names are the lazy vals at the top of build.sbt, for example semanticcpg, x2cpg, dataflowengineoss, c2cpg, javasrc2cpg, console, joerncli, querydb. The build uses -Werror: a compiler…
Trending
Quiet since September.about the whole repository
Who's talking about joernio/joern
- @asfaload.bsky.social“github.com/joernio/joern is a multi language code analysis tool. Its release checksums are mirrored by …”Bluesky · Jun 20, 2025 · 1 likes
- ac0d3r/ac0d3r.github.io“静态程序分析入门之Go实践笔记”GitHub · Apr 21, 2025 · 1 reactions
- xerial/sbt-sonatype“SyncSonatypeClient: configure read timeout”GitHub · Mar 20, 2025 · 1 reactions
- ShiftLeftSecurity/codepropertygraph“add parallelism disabling hook for CpgPass”GitHub · Dec 1, 2023 · 1 reactions
- sp80808/Tessera“Comparative study: toke, ION, code-graph agents, and failure modes Tessera should avoid”GitHub · Sep 29, 2026
The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 51
Talked about on GitHub and Bluesky (51 times).
On GitHub · 50
- Apr 21, 2025静态程序分析入门之Go实践笔记 — ac0d3r/ac0d3r.github.io1 reaction
- Mar 20, 2025SyncSonatypeClient: configure read timeout — xerial/sbt-sonatype1 reaction · 4 comments
- Dec 1, 2023add parallelism disabling hook for CpgPass — ShiftLeftSecurity/codepropertygraph1 reaction
- Sep 29, 2026Comparative study: toke, ION, code-graph agents, and failure modes Tessera should avoid — sp80808/Tessera0 reactions
- Sep 24, 2026[2.x] Windows: 'another process has locked a portion of the file' when action cache hashes Test / packageBin inputs during test — sbt/sbt0 reactions · 4 comments
45 more on GitHub
- Sep 9, 2026Add serial filter patterns for the sbt forked test protocol — joernio/ghidra0 reactions · 2 comments
- Sep 7, 2026Add "<operator>.import" — ShiftLeftSecurity/codepropertygraph0 reactions
- Aug 3, 2026wip: windows flakiness. — joernio/astgen-monorepo0 reactions
- Aug 3, 2026Installation fails owing to wrong URL in joern-install.sh — qcri/codebadger0 reactions · 1 comment
- Jul 26, 2026ampel/verify (used by setup-sbt) creates literal $HOME/.carabiner/bin/ directory — carabiner-dev/actions0 reactions · 2 comments
- Jul 26, 2026literal $HOME folder after sbt setup — sbt/setup-sbt0 reactions · 2 comments
- Jul 24, 2026cannot access 'sbt/bin/sbt' on windows-latest — sbt/setup-sbt0 reactions · 6 comments
- Jul 14, 2026experimental: esp-tailored static analysis, model checking etc. — omnitex/idf-extra-components0 reactions · 1 comment
- Jul 13, 2026[rust_ast_gen] fully qualify dyn trait. — joernio/astgen-monorepo0 reactions
- Jul 9, 2026[rust_ast_gen] fix cardinality for sequence of optionals. — joernio/astgen-monorepo0 reactions
- Jun 22, 2026[rust_ast_gen] emit rust-analyzer's 'adjustments'. — joernio/astgen-monorepo0 reactions
- Jun 3, 2026[rust_ast_gen] support scala-gen accessor renaming. — joernio/astgen-monorepo0 reactions
- Mar 31, 2026Implement Jumping Knowledge (JK) concat in TripleViewNet to reduce over-smoothing — adithyag1/devign-project0 reactions
- Mar 18, 2026Explicit control-structure schema edges — ShiftLeftSecurity/codepropertygraph0 reactions
- Mar 11, 2026[RFC] support accumulator in cpgpass — ShiftLeftSecurity/codepropertygraph0 reactions · 10 comments
- Mar 11, 2026Add `isModuleImport` field for java 25 module import support — ShiftLeftSecurity/codepropertygraph0 reactions
- Mar 9, 2026Automate JavaParser releases — javaparser/javaparser0 reactions · 2 comments
- Feb 24, 2026Fix BlockStmtContext.typePatternExprsExposedToChild performance issue — javaparser/javaparser0 reactions · 1 comment
- Jan 17, 2026joern请求加入 ghcr.io/joernio/joern — DaoCloud/public-image-mirror0 reactions · 1 comment
- Jan 9, 2026Discussion: New Branches for Feature Extensions and Joern CPG — FSoft-AI4Code/CodeWiki0 reactions
- Oct 17, 2025refactor: use camelCase for buffer methods and symbols — joernio/ruby_ast_gen0 reactions
- Sep 1, 2025Error when installing — VainlyStrain/charon0 reactions · 2 comments
- Aug 16, 2025[Bug] 6.1 started failing on Windows-latest runners — SwiftyLab/setup-swift0 reactions · 6 comments
- Jul 22, 2025Feat/update 2025 07 — joernio/standalone-ext0 reactions
- Jul 9, 2025Override Joern Classes at Classpath Level — BrokkAi/brokk-app0 reactions
- May 21, 2025Delete Location and NewLocation — ShiftLeftSecurity/codepropertygraph0 reactions · 1 comment
- Apr 23, 2025🐞 [Bug] joern-scan - AccessDeniedException — sysec-uic/AutoPatch-LLM0 reactions · 6 comments
- Mar 13, 2025update interpreter docs — joernio/website0 reactions
- Feb 18, 2025exclude trivia from MetaData's Code property — joernio/DotNetAstGen0 reactions · 1 comment
- Jan 14, 2025[EPIC] Program Dependency & Capability Identification using Static Code Analysis — safedep/code0 reactions · 7 comments
- Jan 13, 2025Do not longer remove surrogates — ShiftLeftSecurity/codepropertygraph0 reactions
- Jan 10, 2025dot export: fix file format — joernio/flatgraph0 reactions
- Dec 13, 2024fixup initialisation order of cpg generators (#5137) — Privado-Inc/joern0 reactions
- Dec 4, 2024fix 'runBefore' in server mode — mpollmeier/scala-repl-pp0 reactions
- Dec 3, 2024Fix use of option that is only available in php >= 7.2 — joernio/PHP-Parser0 reactions · 1 comment
- Nov 26, 2024frontends: --exclude parameter can be specified multiple times — joernio/website0 reactions
- Sep 13, 2024Kotlin performance issue fix specific to privado — Privado-Inc/joern0 reactions
- Aug 20, 2024Test and include joern into FMD — FirmwareDroid/FirmwareDroid0 reactions
- Jul 26, 2024Go frontend memory optimisation — Privado-Inc/joern0 reactions
- Jul 15, 2024Improve detection of generalizable asserts — glockyco/Teralizer0 reactions · 1 comment
- Jul 15, 2024Improve detection of tested method — glockyco/Teralizersays it tested it0 reactions · 2 comments
- Apr 22, 2024[Bug] Action started to fail on Windows latest — SwiftyLab/setup-swift0 reactions · 1 comment
- Apr 4, 2024Explore stack graphs / scope graphs — 0xdevalias/chatgpt-source-watch0 reactions · 3 comments
- Mar 8, 2024jline: automatically fall back to dumb terminal if we can't instantiate a regular one — mpollmeier/scala-repl-pp0 reactions
- Feb 29, 2024Developer Guide — joernio/website0 reactions
On Bluesky · 1
- Jun 20, 2025github.com/joernio/joern is a multi language code analysis tool. Its release checksums are mirrored by Asfaload to increase the security of… — @asfaload.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Always scope to the module you are working on.
- Distinctive: line 28
Follow contributing-docs/08_pull_requests.md.
- Distinctive: line 33
Write a short PR description and link the related issue, if any.
- Distinctive: line 43
Follow Coding style and best practices.
- Very specific: line 47
Do not use better.files or scala.sys.process.
- Very specific: line 49
No single-letter identifiers except i, j, k and _.
- Very specific: line 50
Do not iterate over unordered collections (HashMap, HashSet, TrieMap, ...) where the order can reach the CPG.
- Distinctive: line 53
Avoid inline comments that restate the code.
- Distinctive: line 58
Always add a unit test that verifies your change.
- Very specific: line 105
NEVER edit maven_install.json by hand.
- Distinctive: line 106
NEVER commit downloaded astgen binaries or other generated artifacts.
- Distinctive: line 111
NEVER reproduce copyrighted material.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS instructions
Joern is a Scala 3 platform that turns source code, bytecode and binaries into Code Property Graphs (CPGs) and queries them. The main developer documentation is the Contributor's guide.
- Architecture and module layout
- Development environment
Compiling with sbt
Always scope to the module you are working on. Compiling or testing the whole build is slow.
sbt --client --color=false --supershell=false --batch c2cpg/compile
sbt --client --color=false --supershell=false --batch "c2cpg/Test/compile"Module names are the lazy vals at the top of build.sbt, for example semanticcpg, x2cpg,
dataflowengineoss, c2cpg, javasrc2cpg, console, joerncli, querydb.
The build uses -Werror: a compiler warning fails the build.
Pull request guideline
- Follow contributing-docs/08_pull_requests.md.
- Title is
[module] Description, for example[javasrc2cpg] Fix addition operator. - Before working on a bug fix, reproduce the problem with a failing test.
- After making the change, confirm that it compiles, the new test passes, and the problem is fixed.
- Format and lint before submitting (see below).
- Write a short PR description and link the related issue, if any.
Coding style
sbt --client --color=false --supershell=false --batch "scalafmt ; Test/scalafmt ; integrationTests/scalafmt ; integrationTests/Test/scalafmt"
sbt --client --color=false --supershell=false --batch "scalafix --diff-base origin/master RestrictedImports SingleLetterIdentifiers UnorderedIteration"- Follow Coding style and best practices.
- Scala 3 with braces: the build uses
-no-indent -old-syntax. Do NOT use indentation-based syntax,endmarkers or:fewer-braces lambdas. - Max line length is 120 (scalafmt).
- Do not use
better.filesorscala.sys.process. Useio.shiftleft.semanticcpg.utils.FileUtil,os-lib,java.nio.fileandio.shiftleft.semanticcpg.utils.ExternalCommand. - No single-letter identifiers except
i,j,kand_. - Do not iterate over unordered collections (
HashMap,HashSet,TrieMap, ...) where the order can reach the CPG. CPG output must be deterministic. Sort first, or use an ordered collection. - Code must work on Linux, macOS and Windows. CI runs on all three.
- Avoid inline comments that restate the code. Document intent with ScalaDoc.
Tests
Always add a unit test that verifies your change.
- contributing-docs/04_unit_tests.md
- contributing-docs/05_integration_tests.md
- contributing-docs/06_manual_tests.md
Tests live in {module}/src/test/scala/io/joern/{module}/... and are named {Name}Tests.scala.
Frontend tests derive from the frontend's own fixture (for example C2CpgSuite) and use code("...") to build a CPG.
For example, here's how to run a single test suite:
sbt --client --color=false --supershell=false --batch "c2cpg/testOnly *MethodTests"To run all tests of one module:
sbt --client --color=false --supershell=false --batch c2cpg/testsbt 2.x skips tests that already passed on unchanged inputs. Use testFull (for example c2cpg/testFull) to
force a full run, which is what CI does.
Several frontends need external tools (Go, Swift, Rust, PHP) to run their tests. See Development environment.
Architecture
- contributing-docs/01_architecture.md
- contributing-docs/07_tech_stack.md
- contributing-docs/09_common_tasks.md
Dependency direction is semanticcpg -> x2cpg -> dataflowengineoss and x2cpg -> frontends,
then console -> joern-cli -> querydb. Never introduce a dependency in the other direction.
A change in semanticcpg or x2cpg affects every frontend, so run the tests of the dependent modules too.
The CPG schema (node and edge types) is NOT defined in this repository. It comes from the external
codepropertygraph library, whose version is cpgVersion in build.sbt.
Dependencies and build files
- Dependency versions are declared in project/Versions.scala.
- The experimental Bazel build (bazel.md) mirrors part of the sbt build. When you add or change a
dependency or a source layout in a module that has a
BUILDfile, updateBUILDandMODULE.bazeltoo. - NEVER edit
maven_install.jsonby hand. Regenerate it withREPIN=1 bazel run @maven//:pin. - NEVER commit downloaded astgen binaries or other generated artifacts. They are git-ignored.
Copyright
- NEVER reproduce copyrighted material. Test code must be written from scratch or be under a compatible license.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

