This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are Gemini CLI, an interactive CLI agent specializing in software engineering tasks. Your primary goal is to help users safely and effectively. | |
| # Core Mandates | |
| ## Security & System Integrity | |
| - **Credential Protection:** Never log, print, or commit secrets, API keys, or sensitive credentials. Rigorously protect `.env` files, `.git`, and system configuration folders. | |
| - **Source Control:** Do not stage or commit changes unless specifically requested by the user. | |
| ## Context Efficiency: | |
| Be strategic in your use of the available tools to minimize unnecessary context usage while still |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are an interactive agent that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user. | |
| IMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases. | |
| IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files. | |
| # System | |
| - All text you output outside of tool use is displayed to the user. Output text to communicate with the user. You can use Github-flavored markdown for formatting, and will be ren |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are Codex, a coding agent based on GPT-5. You and the user share the same workspace and collaborate to achieve the user's goals. | |
| # Personality | |
| You are a deeply pragmatic, effective software engineer. You take engineering quality seriously, and collaboration comes through as direct, factual statements. | |
| You communicate efficiently, keeping the user clearly informed about ongoing actions without unnecessary detail. | |
| ## Values | |
| You are guided by these core values: | |
| - Clarity: You communicate reasoning explicitly and concretely, so decisions and tradeoffs are easy to evaluate upfront. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Value Percentile TotalCount 1/(1-Percentile | |
| 5023.00 0.500000000000 502647 2.00 | |
| 9023.00 0.900000000000 902416 10.00 | |
| 9791.00 0.975000000000 979157 40.00 | |
| 9919.00 0.990625000000 992103 106.67 | |
| 9983.00 0.998046875000 998439 512.00 | |
| 10047.00 0.998632812500 1000000 731.43 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Value Percentile TotalCount 1/(1-Percentile) | |
| 1.00 0.000000000000 104 1.00 | |
| 999.00 0.100000000000 100120 1.11 | |
| 1999.00 0.200000000000 200638 1.25 | |
| 3007.00 0.300000000000 301219 1.43 | |
| 3999.00 0.400000000000 400228 1.67 | |
| 5023.00 0.500000000000 502647 2.00 | |
| 5503.00 0.550000000000 550255 2.22 | |
| 6015.00 0.600000000000 601367 2.50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String dsl = args[0]; | |
| System.out.println(dsl); | |
| CompilationContext context = new CompilationContext("FXTradeTemplate", dsl); | |
| Function<CompilationContext, RuleEngine<FXTransaction>> pipeline = RuleEnginePipeline.pipeline(); | |
| RuleEngine<FXTransaction> rules = pipeline.apply(context); | |
| System.out.format("Rule Name %s \n", rules.name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static List<CompilerOutput> compile(String className, String code) { | |
| try { | |
| JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); | |
| DiagnosticCollector<JavaFileObject> ds = new DiagnosticCollector<>(); | |
| try (StandardJavaFileManager mgr = compiler.getStandardFileManager(ds, null, null)) { | |
| JavaFileObject file = new InMemoryJavaCode(className, code); | |
| Iterable<? extends JavaFileObject> sources = Arrays.asList(file); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FXTradeTemplate$REPLACE { | |
| static RuleSchema<FXTransaction> tradeSchema = schema("Trade", schema -> { | |
| schema.attribute("source", FXTransaction::getSource); | |
| schema.attribute("target", FXTransaction::getTarget); | |
| schema.attribute("amount", FXTransaction::getAmount); | |
| schema.attribute("date", FXTransaction::getTransactionDate); | |
| schema.attribute("bankCode", FXTransaction::getBankCode); | |
| schema.attribute("accountNo", FXTransaction::getAccountNum); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| newOrder(equity("IBM"), (order, ts) -> { | |
| order | |
| .buy(100) | |
| .at(126.07d); | |
| ts.execute(order); | |
| }); | |
| newOrder(equity("GOOG"), (order, ts) -> { | |
| order |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| specification("A Stack", scenario -> { | |
| scenario.should("Empty stack should have size 0", then -> { | |
| Stack<String> stack = new Stack<>(); | |
| then.value(stack.size()).shouldBe(0); | |
| }); | |
| scenario.should("pop values in last-in-first-out order", then -> { | |
| Stack<String> stack = new Stack<>(); |
NewerOlder